CN110795121A - Virtualization system upgrading method, device, equipment and computer readable storage medium - Google Patents

Virtualization system upgrading method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110795121A
CN110795121A CN201910927728.1A CN201910927728A CN110795121A CN 110795121 A CN110795121 A CN 110795121A CN 201910927728 A CN201910927728 A CN 201910927728A CN 110795121 A CN110795121 A CN 110795121A
Authority
CN
China
Prior art keywords
upgrading
upgrade
execution script
upgraded
virtualization system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910927728.1A
Other languages
Chinese (zh)
Inventor
栗丽霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN201910927728.1A priority Critical patent/CN110795121A/en
Publication of CN110795121A publication Critical patent/CN110795121A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention discloses a virtualization system upgrading method, a virtualization system upgrading device, virtualization system upgrading equipment and a computer readable storage medium. The method comprises the steps of automatically configuring an upgrade requirement and an upgrade range according to an upgrade package configuration instruction, and calling a corresponding execution script according to the upgrade requirement to generate an adaptive upgrade package, wherein the upgrade package comprises a pre-upgrade execution script for automatically configuring a pre-upgrade environment required by a current application scene, an upgrade program and a post-upgrade execution script for automatically configuring an post-upgrade environment; when the adaptation upgrading packet is suitable for the application entity to be upgraded, reading configuration information in the adaptation upgrading packet; calling a required task interface according to the configuration information, and storing a corresponding task record; and sequentially executing the pre-upgrade execution script, the upgrade program and the post-upgrade execution script, and recovering the environment to a pre-upgrade state according to the task record after the upgrade is successful, so that the virtualization system can be flexibly upgraded according to actual needs, the system upgrade efficiency is improved, and the system maintenance cost is reduced.

Description

Virtualization system upgrading method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to a virtualization system, and in particular, to a virtualization system upgrade method, apparatus, device, and computer-readable storage medium.
Background
The virtualization system accesses the virtualization management system of the management node through the browser to uniformly manage virtualized resources such as data centers, clusters and computing nodes (i.e., hosts). The virtualization system generally includes at least one management node and a plurality of computing nodes, and system upgrade includes upgrade to the management node and upgrade to each computing node.
At present, the upgrading of the virtualization system generally downloads an upgrading package to the local, and then the upgrading package is installed or upgraded by running an executable program of the upgrading package. However, for large virtualized data centers, such system upgrade is not very convenient.
It can be understood that, when upgrading is performed according to different resource entities, each service has different requirements for an environment or an application entity, for example, generally, an upgrade management node or a compute node needs to enter a maintenance mode, otherwise, an update of a certain time needs to restart a host to take effect, restarting the host also means that a virtual machine running on the host needs to be shut down before being upgraded again, some service updates need to perform upgrading in series with the host in a cluster, and the update of some storage modules needs to enter a maintenance mode in a storage domain before being upgraded, and so on. If all the upgrading requirements are made into a uniform upgrading process, each upgrading process is very complicated, and the modification of each upgrading process is lagged, so that the efficiency is low, and the maintenance cost is high.
In view of this, how to flexibly upgrade the virtualization system according to actual needs, improve the upgrade efficiency of the virtualization system, and reduce the maintenance cost is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device and equipment for upgrading a virtualization system and a computer readable storage medium, which realize flexible upgrading of the virtualization system according to actual needs, improve the upgrading efficiency of the virtualization system and reduce the maintenance cost of the virtualization system.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a virtualization system upgrading method, including:
automatically configuring an upgrading requirement and an upgrading range according to an upgrading packet configuration instruction, and calling a corresponding execution script to generate an adaptive upgrading packet according to the upgrading requirement; the adaptive upgrading package comprises a pre-upgrading execution script and an upgrading program which are used for automatically configuring a pre-upgrading environment required by the current application scene, and an after-upgrading execution script which is used for automatically configuring an after-upgrading environment required by the current application scene;
when the adaptation upgrading packet is suitable for the application entity to be upgraded, reading configuration information in the adaptation upgrading packet;
calling a required task interface according to the configuration information, and storing a corresponding task record;
and sequentially executing the pre-upgrade execution script, the upgrade program and the post-upgrade execution script, and after the upgrade is successful, restoring the environment to a pre-upgrade state according to the task record.
Optionally, the upgrade requirement includes any one or any combination of the following:
whether to enter a maintenance mode before upgrading, whether to empty the virtual machine before upgrading, whether to enter the maintenance mode before upgrading, whether to shut down the HA of the cluster before upgrading, whether to shut down load balancing of the cluster before upgrading, whether to restart the host after upgrading, and the upgrading sequence of each computing node in the cluster.
Optionally, the upgrade scope is any one or any combination of the following:
data center, cluster and compute node.
Optionally, the restoring the environment to the pre-upgrade state according to the task record includes:
exiting the maintenance mode, restarting the virtual machine of the application entity to be upgraded, and starting the cluster HA.
Optionally, the virtualization system includes a management node and a plurality of computing nodes, and the executing the script before the upgrade, the upgrade program, and the executing script after the upgrade in sequence, and after the upgrade is successful, restoring the environment to the state before the upgrade according to the task record includes:
sequentially executing the pre-upgrade execution script, the upgrade program and the post-upgrade execution script on the management node, and restoring the environment of the management node to a pre-upgrade state after the management node is upgraded successfully;
and selecting the current computing node to be upgraded according to the upgrading sequence and the upgrading range of each computing node in the cluster adapting to the upgrading packet, and issuing an upgrading task to the computing node to be upgraded so as to sequentially execute the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the computing node to be upgraded.
Optionally, the determination process that the adaptation upgrade package is applicable to the application entity to be upgraded includes:
and determining whether the adaptation upgrading packet is suitable for the application entity to be upgraded according to the comparison result of the version number of the adaptation upgrading packet and the version number of the application entity to be upgraded.
Another aspect of the embodiments of the present invention provides a virtualization system upgrade apparatus, including:
the upgrading script pre-compiling module is used for pre-compiling an execution script before upgrading and an execution script after upgrading for configuring an upgrading environment;
the upgrade package configurator is used for automatically configuring the upgrade requirement and the upgrade range according to the upgrade package configuration instruction and calling the corresponding execution script to generate an adaptive upgrade package according to the upgrade requirement; the adaptive upgrading package comprises a pre-upgrading execution script and an upgrading program which are used for automatically configuring a pre-upgrading environment required by the current application scene, and an after-upgrading execution script which is used for automatically configuring an after-upgrading environment required by the current application scene;
the upgrade system comprises an upgrade execution engine module, a upgrade module and a data processing module, wherein the upgrade execution engine module comprises an upgrade packet matcher, an upgrade packet parser, a preparer before upgrade, an upgrade executor and an environment restorer after upgrade; the upgrade package matcher is used for detecting whether the adaptation upgrade package is suitable for an application entity to be upgraded, the upgrade package parser is used for reading configuration information in the adaptation upgrade package, and the pre-upgrade preparer is used for calling a required task interface according to the configuration information and storing a corresponding task record; the upgrading executor is used for sequentially executing the pre-upgrading execution script, the upgrading program and the post-upgrading execution script, and the post-upgrading environment restorer is used for restoring the environment to a pre-upgrading state according to the task record after upgrading is successful.
Optionally, the virtualization system includes a management node and a plurality of computing nodes, and the upgrade execution engine module includes a management node upgrade submodule and a computing node upgrade submodule;
the management node upgrading submodule is used for sequentially executing the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the management node, and restoring the environment of the management node to a pre-upgrading state after the management node is successfully upgraded;
the computing node upgrading submodule is used for selecting a current computing node to be upgraded according to the upgrading sequence and the upgrading range of each computing node in the cluster in the adaptive upgrading packet, and issuing an upgrading task to the computing node to be upgraded so as to sequentially execute the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the computing node to be upgraded.
An embodiment of the present invention further provides a virtualization system upgrade apparatus, including a processor, where the processor is configured to implement the steps of the virtualization system upgrade method according to any one of the foregoing embodiments when executing a computer program stored in a memory.
Finally, an embodiment of the present invention provides a computer-readable storage medium, where a virtualized system upgrade program is stored on the computer-readable storage medium, and when being executed by a processor, the virtualized system upgrade program implements the steps of the virtualized system upgrade method according to any of the foregoing embodiments.
The technical scheme provided by the application has the advantages that various upgrading scenes are considered, changing items in the upgrading process, such as upgrading requirements and upgrading ranges, are made to be configurable and packaged into executable scripts applicable to various application scenes, the upgrading requirements can be arranged as required by each time of iterative updating of system software, a plurality of combinations of the executable scripts are printed into the upgrading package, flexible configuration of the upgrading package is achieved through flexible combination of various requirements and application ranges, maintenance is facilitated, various requirements of upgrading of a virtualization system are met, upgrading efficiency of the virtualization system is improved, and system maintenance cost can be reduced.
In addition, the embodiment of the invention also provides a corresponding implementation device, equipment and a computer readable storage medium for the virtualization system upgrading method, so that the method has higher practicability, and the device, the equipment and the computer readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a virtualization system upgrade method according to an embodiment of the present invention;
fig. 2 is a structural diagram of an embodiment of an upgrading apparatus for a virtualization system according to an embodiment of the present invention;
fig. 3 is a structural diagram of a specific implementation of a virtualization system upgrade apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a virtualization system upgrading method according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s101: and automatically configuring an upgrading requirement and an upgrading range according to the upgrading packet configuration instruction, and calling a corresponding execution script according to the upgrading requirement to generate an adaptive upgrading packet.
In the embodiment of the invention, the upgrade package configuration instruction determines the upgrade requirement and the upgrade range to be configured according to the actual requirements of the current application scene, and automatically configures the corresponding upgrade requirement and the corresponding upgrade range according to the received upgrade package configuration instruction, so that the generated upgrade package can adapt to various scenes and service requirements. The upgrade requirements may include, for example, any one or any combination of the following: whether to enter a maintenance mode before upgrading, whether to empty the virtual machine before upgrading, whether to enter the maintenance mode before upgrading, whether to shut down the HA of the cluster before upgrading, whether to shut down load balancing of the cluster before upgrading, whether to restart the host after upgrading, and the upgrading sequence of each computing node in the cluster. The upgrade scope may be, for example, any one or any combination of the following: data center, cluster and compute node. Corresponding executable scripts or commands can be scheduled in advance for each upgrade requirement to ensure the normal operation of subsequent systems. The adaptive upgrading package comprises an execution script before upgrading, an upgrading program and an execution script after upgrading; executing the script before upgrading is used for automatically configuring the environment before upgrading required by the current application scene, for example, certain services can be forbidden through commands before upgrading; the post-upgrade execution script is used to automatically configure the post-upgrade environment required by the current application scenario, e.g., restart certain services to effect the update.
S102: and when the adaptation upgrading packet is suitable for the application entity to be upgraded, reading the configuration information in the adaptation upgrading packet.
After the upgrade package is generated, it may be further determined that the adaptation upgrade package is matched with the application entity to be upgraded according to a comparison result between the version number of the adaptation upgrade package and the version number of the application entity to be upgraded, that is, whether the adaptation upgrade package generated in S101 is applicable to the application entity to be upgraded, where the application entity to be upgraded may be a management node and/or a computing node.
S103: and calling a required task interface according to the configuration information, and storing a corresponding task record.
In the application, S102 reads configuration information of the adaptive upgrade package, determines which preparation operations before upgrade are performed according to specific configuration information, and then calls corresponding task interfaces according to requirements according to the analysis result read in S102 to complete the preparation operations, and records the tasks in a database for checking when the upgraded environment is restored.
S104: and executing the script before upgrading, the upgrading program and the script after upgrading in sequence.
After the required task interface is called in S103, the upgrade process is started to be executed on the application entity to be upgraded, the script is executed before the upgrade is executed, then the upgrade program is executed, and finally the script is executed after the upgrade is executed.
S105: and after the upgrade is successful, restoring the environment to a pre-upgrade state according to the task record.
After the application entity to be upgraded is upgraded successfully, the environment of the application entity to be upgraded is restored, for example, the application entity to be upgraded exits from the maintenance mode, the virtual machine of the application entity to be upgraded is restarted, the cluster HA is started, and the like.
In the technical scheme provided by the embodiment of the invention, various upgrading scenes are considered, the changing items in the upgrading process, such as the upgrading requirement and the upgrading range, are made to be configurable and packaged into the executable scripts applicable to various application scenes, the upgrading requirement can be arranged as required each time the system software is updated iteratively, and a plurality of combinations of the executable scripts are arranged into the upgrading package, so that the flexible configuration of the upgrading package is realized through the flexible combination of various requirements and application ranges, the maintenance is convenient, various requirements of the upgrading of the virtualization system are met, the upgrading efficiency of the virtualization system is improved, and the maintenance cost of the system can be reduced.
As an optional implementation manner, the virtualization system includes a management node and a plurality of computing nodes, when the virtualization system is upgraded, the management node may be upgraded first, and after the management node is upgraded, each computing node is upgraded, that is, S104 may be:
and sequentially executing the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the management node, and restoring the environment of the management node to a pre-upgrading state after the management node is successfully upgraded.
And selecting the current computing node to be upgraded according to the upgrading sequence and the upgrading range of each computing node in the cluster adapting to the upgrading packet, and issuing an upgrading task to the computing node to be upgraded so as to execute the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the computing node to be upgraded in sequence. The upgrading sequence of each computing node in the cluster can be random, serial or determined according to other factors.
In order to make clear the technical solutions of the present application for those skilled in the art, the present application further describes an upgrade implementation process of a virtualization system for a specific application scenario, which may include the following:
the virtualization system comprises a management node and a plurality of computing nodes, the management node needs to enter a maintenance mode, the upgrading range of the computing nodes is a cluster, the upgrading requirement is that the management node needs to enter the maintenance mode before upgrading, the virtual machine needs to be emptied before upgrading, a host needs to be restarted after upgrading to take effect, the cluster needs to be closed before upgrading, the host in the cluster needs to be upgraded in series, and the specific implementation process is as follows:
the method comprises the steps that a maintenance mode needs to be entered according to management nodes, the upgrading range of computing nodes is a cluster, the upgrading requirement is that the maintenance mode needs to be entered before upgrading, a virtual machine needs to be emptied before upgrading, a host needs to be restarted to take effect after upgrading, the cluster needs to be closed before upgrading, the host in the cluster needs to be upgraded in a serial mode to automatically generate an adaptive upgrading package, when the adaptive upgrading package is suitable for a virtualization system, configuration information in the adaptive upgrading package is read, a required task interface is called according to the configuration information, and corresponding task records are stored;
(1) the upgrade management node enters a maintenance mode before upgrading, executes an upgraded script after an upgrade program is executed, restarts the service to enable the upgrade to take effect, and exits the maintenance mode after upgrading;
(2) upgrading the cluster, and closing the cluster HA before upgrading;
(3) taking a first computing node, and issuing an upgrading task;
(4) before upgrading the computing node, automatically closing the virtual machine and entering a maintenance mode;
(5) upgrading the computing node to execute a pre-upgrade script;
(6) upgrading the computing node to execute an upgrading program;
(7) upgrading the computing node to execute the upgraded script;
(8) upgrading the computing node to exit the maintenance mode;
(9) upgrading the computing node to start the virtual machine closed in the step 4;
(10) repeating the step 6-9, and sequentially upgrading other hosts in the cluster;
(11) and finishing the upgrading of all the computing nodes in the cluster, and starting the cluster HA.
As can be seen from the above, in the embodiments of the present invention, according to different service updates and environmental requirements, configuration items supported each time, including an upgrade requirement and an upgrade range, are arranged, different versions correspond to customized upgrade processes of corresponding versions, and the upgrade requirement and the application range are made to be distributable, so that various requirements can be met through flexible combination of various requirements and application ranges, thereby not only improving upgrade efficiency, but also reducing maintenance cost.
The embodiment of the invention also provides a corresponding implementation device for the virtualization system upgrading method, so that the method has higher practicability. In the following, the virtualization system upgrading device provided by the embodiment of the present invention is introduced, and the virtualization system upgrading device described below and the virtualization system upgrading method described above may be referred to correspondingly.
Referring to fig. 2, fig. 2 is a structural diagram of an upgrading apparatus for a virtualization system according to an embodiment of the present invention, in a specific implementation manner, where the apparatus may include:
and the upgrading script pre-compiling module 21 is used for pre-compiling an execution script before upgrading and an execution script after upgrading for configuring the upgrading environment.
The upgrade package configurator 22 is used for automatically configuring the upgrade requirement and the upgrade range according to the upgrade package configuration instruction and calling the corresponding execution script to generate an adaptive upgrade package according to the upgrade requirement; the adaptation upgrading package comprises a pre-upgrading execution script for automatically configuring a pre-upgrading environment required by the current application scene, an upgrading program and a post-upgrading execution script for automatically configuring a post-upgrading environment required by the current application scene.
The upgrade execution engine module 23 includes an upgrade package matcher 231, an upgrade package parser 232, a pre-upgrade preparer 233, an upgrade executor 234, and an upgraded environment restorer 235. The upgrade package matcher 231 is used for detecting whether the adaptation upgrade package is suitable for the application entity to be upgraded, the upgrade package parser 232 is used for reading configuration information in the adaptation upgrade package, and the pre-upgrade preparer 233 is used for calling a required task interface according to the configuration information and storing a corresponding task record; the upgrade executor 234 is configured to execute a pre-upgrade execution script, an upgrade program, and an upgraded execution script in sequence, and the upgraded environment restorer 235 is configured to restore the environment to a pre-upgrade state according to the task record after the upgrade is successful.
Optionally, in some embodiments of this embodiment, the virtualization system includes a management node and a plurality of computing nodes, and the upgrade execution engine module 23 may further include, for example, a management node upgrade submodule and a computing node upgrade submodule;
the management node upgrading submodule is used for sequentially executing a pre-upgrading execution script, an upgrading program and an upgraded execution script on the management node, and restoring the environment of the management node to a pre-upgrading state after the management node is successfully upgraded;
the computing node upgrading submodule is used for selecting the current computing node to be upgraded according to the upgrading sequence and the upgrading range of each computing node in the cluster in the adaptive upgrading packet, and issuing an upgrading task to the computing node to be upgraded so as to execute the execution script before upgrading, the upgrading program and the execution script after upgrading in sequence on the computing node to be upgraded.
In other embodiments of this embodiment, the upgrade package matcher 231 is specifically configured to determine whether the adaptation upgrade package is applicable to the application entity to be upgraded according to a comparison result between the version number of the adaptation upgrade package and the version number of the application entity to be upgraded.
The functions of the functional modules of the virtualization system upgrade apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention realizes flexible upgrading of the virtualization system according to actual needs, improves the upgrading efficiency of the virtualization system, and reduces the maintenance cost of the virtualization system.
An embodiment of the present invention further provides a virtualized system upgrade device, and referring to fig. 3, the virtualized system upgrade device 3 may specifically include:
a memory 31 for storing a computer program;
a processor 32 for executing a computer program to implement the steps of the virtualization system upgrade method as described in any one of the above embodiments.
The functions of the functional modules of the virtualization system upgrade apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention realizes flexible upgrading of the virtualization system according to actual needs, improves the upgrading efficiency of the virtualization system, and reduces the maintenance cost of the virtualization system.
The embodiment of the present invention further provides a computer-readable storage medium, in which a virtualized system upgrade program is stored, and the steps of the virtualized system upgrade method according to any one of the above embodiments are performed when the virtualized system upgrade program is executed by a processor. The storage medium may be various media capable of storing program codes, such as a U disk, a removable hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention realizes flexible upgrading of the virtualization system according to actual needs, improves the upgrading efficiency of the virtualization system, and reduces the maintenance cost of the virtualization system.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above details are provided for a virtualization system upgrade method, apparatus, device and computer readable storage medium provided by the present invention. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present disclosure without departing from the principle of the present invention, and such improvements and modifications also fall within the scope of the claims of the present disclosure.

Claims (10)

1. A virtualization system upgrade method, comprising:
automatically configuring an upgrading requirement and an upgrading range according to an upgrading packet configuration instruction, and calling a corresponding execution script to generate an adaptive upgrading packet according to the upgrading requirement; the adaptive upgrading package comprises a pre-upgrading execution script and an upgrading program which are used for automatically configuring a pre-upgrading environment required by the current application scene, and an after-upgrading execution script which is used for automatically configuring an after-upgrading environment required by the current application scene;
when the adaptation upgrading packet is suitable for the application entity to be upgraded, reading configuration information in the adaptation upgrading packet;
calling a required task interface according to the configuration information, and storing a corresponding task record;
and sequentially executing the pre-upgrade execution script, the upgrade program and the post-upgrade execution script, and after the upgrade is successful, restoring the environment to a pre-upgrade state according to the task record.
2. The virtualization system upgrade method according to claim 1, wherein the upgrade requirement comprises any one or any combination of the following:
whether to enter a maintenance mode before upgrading, whether to empty the virtual machine before upgrading, whether to enter the maintenance mode before upgrading, whether to shut down the HA of the cluster before upgrading, whether to shut down load balancing of the cluster before upgrading, whether to restart the host after upgrading, and the upgrading sequence of each computing node in the cluster.
3. The virtualization system upgrading method according to claim 2, wherein the upgrading range is any one or any combination of the following:
data center, cluster and compute node.
4. The virtualization system upgrade method according to claim 3, wherein the restoring the environment to the pre-upgrade state according to the task record comprises:
exiting the maintenance mode, restarting the virtual machine of the application entity to be upgraded, and starting the cluster HA.
5. The virtualization system upgrade method according to any one of claims 1 to 4, wherein the virtualization system includes a management node and a plurality of computing nodes, and the executing the pre-upgrade execution script, the upgrade program, and the post-upgrade execution script in sequence, and restoring the environment to the pre-upgrade state according to the task record after the upgrade is successful includes:
sequentially executing the pre-upgrade execution script, the upgrade program and the post-upgrade execution script on the management node, and restoring the environment of the management node to a pre-upgrade state after the management node is upgraded successfully;
and selecting the current computing node to be upgraded according to the upgrading sequence and the upgrading range of each computing node in the cluster adapting to the upgrading packet, and issuing an upgrading task to the computing node to be upgraded so as to sequentially execute the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the computing node to be upgraded.
6. The virtualization system upgrading method according to claim 5, wherein the determination that the adapted upgrade package is applicable to the application entity to be upgraded is as follows:
and determining whether the adaptation upgrading packet is suitable for the application entity to be upgraded according to the comparison result of the version number of the adaptation upgrading packet and the version number of the application entity to be upgraded.
7. A virtualization system upgrade apparatus, comprising:
the upgrading script pre-compiling module is used for pre-compiling an execution script before upgrading and an execution script after upgrading for configuring an upgrading environment;
the upgrade package configurator is used for automatically configuring the upgrade requirement and the upgrade range according to the upgrade package configuration instruction and calling the corresponding execution script to generate an adaptive upgrade package according to the upgrade requirement; the adaptive upgrading package comprises a pre-upgrading execution script and an upgrading program which are used for automatically configuring a pre-upgrading environment required by the current application scene, and an after-upgrading execution script which is used for automatically configuring an after-upgrading environment required by the current application scene;
the upgrade system comprises an upgrade execution engine module, a upgrade module and a data processing module, wherein the upgrade execution engine module comprises an upgrade packet matcher, an upgrade packet parser, a preparer before upgrade, an upgrade executor and an environment restorer after upgrade; the upgrade package matcher is used for detecting whether the adaptation upgrade package is suitable for an application entity to be upgraded, the upgrade package parser is used for reading configuration information in the adaptation upgrade package, and the pre-upgrade preparer is used for calling a required task interface according to the configuration information and storing a corresponding task record; the upgrading executor is used for sequentially executing the pre-upgrading execution script, the upgrading program and the post-upgrading execution script, and the post-upgrading environment restorer is used for restoring the environment to a pre-upgrading state according to the task record after upgrading is successful.
8. The virtualization system upgrade apparatus according to claim 7, wherein the virtualization system includes a management node and a plurality of compute nodes, and the upgrade execution engine module includes a management node upgrade submodule and a compute node upgrade submodule;
the management node upgrading submodule is used for sequentially executing the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the management node, and restoring the environment of the management node to a pre-upgrading state after the management node is successfully upgraded;
the computing node upgrading submodule is used for selecting a current computing node to be upgraded according to the upgrading sequence and the upgrading range of each computing node in the cluster in the adaptive upgrading packet, and issuing an upgrading task to the computing node to be upgraded so as to sequentially execute the pre-upgrading execution script, the upgrading program and the post-upgrading execution script on the computing node to be upgraded.
9. A virtualization system upgrade apparatus comprising a processor for implementing the steps of the virtualization system upgrade method according to any one of claims 1 to 6 when executing a computer program stored in a memory.
10. A computer-readable storage medium, having a virtualized system upgrade program stored thereon, which when executed by a processor implements the steps of the virtualized system upgrade method according to any one of claims 1 to 6.
CN201910927728.1A 2019-09-27 2019-09-27 Virtualization system upgrading method, device, equipment and computer readable storage medium Pending CN110795121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910927728.1A CN110795121A (en) 2019-09-27 2019-09-27 Virtualization system upgrading method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910927728.1A CN110795121A (en) 2019-09-27 2019-09-27 Virtualization system upgrading method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110795121A true CN110795121A (en) 2020-02-14

Family

ID=69439952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910927728.1A Pending CN110795121A (en) 2019-09-27 2019-09-27 Virtualization system upgrading method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110795121A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277412A (en) * 2022-06-28 2022-11-01 海尔智家股份有限公司 Method and device for upgrading edge gateway, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150234647A1 (en) * 2012-06-25 2015-08-20 Zte Corporation Upgrade Package Generation Method And Device, Dynamic File Differential Upgrade Method And Terminal
CN105260377A (en) * 2015-09-01 2016-01-20 浪潮(北京)电子信息产业有限公司 Updating method and system based on hierarchical storage
CN105589725A (en) * 2016-01-11 2016-05-18 武汉虹信通信技术有限责任公司 Upgrade patch manufacture method of electronic equipment, upgrade method and upgrade patch
CN108270806A (en) * 2016-12-30 2018-07-10 航天信息股份有限公司 A kind of more application upgrade method and systems
CN108768758A (en) * 2018-08-31 2018-11-06 郑州云海信息技术有限公司 Distributed memory system online upgrading method, apparatus, equipment and storage medium
CN108958770A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 A kind of virtualization system upgrade method and device
CN108984198A (en) * 2018-07-16 2018-12-11 深圳市茁壮网络股份有限公司 A kind of upgrade method and device of android system
CN109445825A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 The method and apparatus that a kind of server cluster system updates upgrading

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150234647A1 (en) * 2012-06-25 2015-08-20 Zte Corporation Upgrade Package Generation Method And Device, Dynamic File Differential Upgrade Method And Terminal
CN105260377A (en) * 2015-09-01 2016-01-20 浪潮(北京)电子信息产业有限公司 Updating method and system based on hierarchical storage
CN105589725A (en) * 2016-01-11 2016-05-18 武汉虹信通信技术有限责任公司 Upgrade patch manufacture method of electronic equipment, upgrade method and upgrade patch
CN108270806A (en) * 2016-12-30 2018-07-10 航天信息股份有限公司 A kind of more application upgrade method and systems
CN108958770A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 A kind of virtualization system upgrade method and device
CN108984198A (en) * 2018-07-16 2018-12-11 深圳市茁壮网络股份有限公司 A kind of upgrade method and device of android system
CN108768758A (en) * 2018-08-31 2018-11-06 郑州云海信息技术有限公司 Distributed memory system online upgrading method, apparatus, equipment and storage medium
CN109445825A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 The method and apparatus that a kind of server cluster system updates upgrading

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277412A (en) * 2022-06-28 2022-11-01 海尔智家股份有限公司 Method and device for upgrading edge gateway, storage medium and electronic device
CN115277412B (en) * 2022-06-28 2024-03-22 海尔智家股份有限公司 Edge gateway upgrading method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US8881136B2 (en) Identifying optimal upgrade scenarios in a networked computing environment
KR101963912B1 (en) Application compatibility with library operating systems
US9928059B1 (en) Automated deployment of a multi-version application in a network-based computing environment
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
US8239854B2 (en) Bookmark and configuration file for installation sequence
CN103677870B (en) Method for upgrading system and the system using this method upgrading
CN108427571A (en) A kind of dynamic link library update method and server
US9542173B2 (en) Dependency handling for software extensions
CN111752637B (en) Multi-service inspection management method and device, computer equipment and storage medium
US20210311715A1 (en) Software and firmware updates in a combined single pane of glass interface
JP2016194891A (en) Method of updating software component, computer system, and memory apparatus
US10838712B1 (en) Lifecycle management for software-defined datacenters
CN111176790A (en) Active maintenance method and device of cloud platform physical host and readable storage medium
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
US9760364B2 (en) Checks for software extensions
CN110795121A (en) Virtualization system upgrading method, device, equipment and computer readable storage medium
US20230342181A1 (en) Validation of combined software/firmware updates
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN114721781A (en) Micro-service deployment method and device, computer equipment and storage medium
CN110308914B (en) Upgrade processing method, device, equipment, system and computer readable storage medium
CN112130900A (en) User information management method, system, equipment and medium for BMC
CN112579156A (en) Processing system, processing method, processing device and processing equipment of business event
CN112015436A (en) Short message platform deployment method and device, computing equipment and computer storage medium
US11314500B2 (en) System and method for modularizing update environment in life cycle manager

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200214

RJ01 Rejection of invention patent application after publication