CN116820526B - Operating system upgrading method, device, equipment and storage medium - Google Patents

Operating system upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN116820526B
CN116820526B CN202311077014.9A CN202311077014A CN116820526B CN 116820526 B CN116820526 B CN 116820526B CN 202311077014 A CN202311077014 A CN 202311077014A CN 116820526 B CN116820526 B CN 116820526B
Authority
CN
China
Prior art keywords
cloud host
operating system
upgrade
cloud
version number
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.)
Active
Application number
CN202311077014.9A
Other languages
Chinese (zh)
Other versions
CN116820526A (en
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202311077014.9A priority Critical patent/CN116820526B/en
Publication of CN116820526A publication Critical patent/CN116820526A/en
Application granted granted Critical
Publication of CN116820526B publication Critical patent/CN116820526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an operating system upgrading method, an operating system upgrading device, operating system upgrading equipment and a storage medium, and can be applied to the technical field of cloud computing. The method comprises the following steps: acquiring an IP list of a cloud host, wherein proxy nodes are arranged on the cloud host; detecting the version number of an operating system component of the cloud host through the proxy node according to the IP list of the cloud host; executing an upgrade script to upgrade the operating system of the cloud host under the condition that the operating system component version number is not the latest version number; and acquiring an upgrade feedback result of the operating system, and displaying the feedback result.

Description

Operating system upgrading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of cloud computing, and in particular, to an operating system upgrade method, apparatus, device, medium, and program product.
Background
In the process of managing the operating system of the large-scale cloud environment host, with the updating of threat information IOC, the mining of operating system bug or the updating of supervision specifications and the like, the cloud host in the current production environment can be subjected to the work of updating and upgrading of operating system components, parameter modification and the like at an unscheduled period.
The existing mode is to prepare an upgrade script, then execute the script in batches to the cloud host in batches to finish the upgrade, and most of the work of the method relies on manual planning of upgrade, so that the communication cost is high and the efficiency is low. In addition, the newly created cloud host is still an initial mirror image, and the history update needs to be executed once again, so that the delivery efficiency of the new host is affected.
Disclosure of Invention
In view of the foregoing, the present invention provides operating system upgrade methods, apparatus, devices, media, and program products.
According to a first aspect of the present invention, there is provided an operating system upgrade method, comprising: acquiring an IP list of a cloud host, wherein proxy nodes are arranged on the cloud host; detecting the version number of an operating system component of the cloud host through the proxy node according to the IP list of the cloud host; executing an upgrade script to upgrade the operating system of the cloud host under the condition that the operating system component version number is not the latest version number; and acquiring an upgrade feedback result of the operating system, and displaying the feedback result.
According to the embodiment of the invention, the cloud host is arranged on the distributed platformThe distributed platform comprisesnEach system comprisesmA plurality of deployment units, each deployment unit comprisingpThe personal cloud host and the operating system upgrading method further comprise the following steps: according to the cloud host IP list, pairnThe systems are ordered according to the importance levels so as to determine the upgrading sequence of the systems; according to the system upgrading sequence, the method sequentially pairsnAnd the cloud host in the personal system upgrades the operating system.
According to the embodiment of the invention, the system upgrading sequence is sequentially carried out onnThe cloud host in the personal system performs operating system upgrade comprising: respectively acquiring a cloud host in each deployment unit to upgrade an operating system; and under the condition that the feedback result is successful, sequentially and circularly acquiring the residual cloud host in each deployment unit to upgrade the operating system until the current system upgrade is completed.
According to an embodiment of the present invention, detecting, by the proxy node, an operating system component version number of the cloud host according to the cloud host IP manifest includes: synchronizing the version numbers of the operating system components of the proxy nodes and the corresponding cloud hosts; maintaining the latest operating system component version number through the master control node; determining the address of each proxy node according to the cloud host IP list; and comparing the version numbers of the components of the main control node and the proxy nodes according to the addresses of the proxy nodes.
According to the embodiment of the invention, after the operating system of the cloud host is upgraded, the method further comprises the following steps: and re-detecting the version number of the operating system component of the cloud host after upgrading.
According to the embodiment of the invention, after the operating system of the cloud host is upgraded, the method further comprises the following steps: detecting the service running condition of the upgraded cloud host; and under the condition that the upgraded cloud host starts to run the service, backing up the upgrading process of the upgraded cloud host.
According to the embodiment of the invention, the steps of obtaining the feedback result of the upgrade of the operating system and displaying the feedback result comprise the following steps: displaying the upgrade feedback results of the operating systems of the cloud hosts by adopting a tree structure, wherein the tree structure is used for connecting a main control node and an agent node; the route which is successfully upgraded and the route which is failed to upgrade are distinguished through different colors, and the route is a connecting line between the main control node and the proxy node; and acquiring and displaying an upgrade log of the cloud host which fails to upgrade.
According to an embodiment of the present invention, the operating system upgrade method further includes: according to the upgrade script, manufacturing a cloud host image; and updating the cloud host image to the public image library.
A second aspect of the present invention provides an operating system upgrade apparatus, comprising: the acquisition module is used for acquiring an IP list of a cloud host, and proxy nodes are arranged on the cloud host; the detection module is used for detecting the version number of the operating system component of the cloud host through the proxy node according to the IP list of the cloud host; the upgrade module is used for executing an upgrade script to upgrade the operating system of the cloud host under the condition that the version number of the operating system component is not the latest version number; and the display module is used for acquiring the feedback result of the upgrade of the operating system and displaying the feedback result.
A third aspect of the present invention provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method described above.
A fourth aspect of the invention also provides a computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the above method.
The fifth aspect of the invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the above method.
According to the operating system upgrading method, the device, the equipment, the medium and the program product provided by the invention, by setting the proxy nodes on the plurality of cloud hosts, the automatic traversal detection of the version numbers of the operating system components of each cloud host can be performed based on the proxy nodes, the cloud host operating system components with the version numbers not being the latest are updated and upgraded, and the upgrading results are displayed. Because only automatic detection based on version numbers is needed to upgrade the cloud host operating system, the technical effects of high communication cost and low efficiency of manually planning to upgrade the cloud host operating system are at least partially solved, and the updating efficiency and reliability of the cloud host operating system are improved.
Drawings
The foregoing and other objects, features and advantages of the invention will be apparent from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of an operating system upgrade method, apparatus, device, medium and program product according to embodiments of the present invention;
FIG. 2 schematically illustrates a flow chart of a method of operating system upgrade according to an embodiment of the present invention;
FIG. 3 schematically illustrates a flow chart of a method of detecting operating system component version numbers of a cloud host, in accordance with an embodiment of the present invention;
FIG. 4 schematically illustrates an architecture diagram of an operating system upgrade system according to an embodiment of the present invention;
FIG. 5 schematically illustrates a flow chart of a method of operating system upgrade to a cloud host, in accordance with an embodiment of the present invention;
FIG. 6 schematically illustrates a flow chart of a method of operating system upgrades to a cloud host according to another embodiment of the invention;
FIG. 7 schematically shows a flow chart of a method of presenting feedback results according to an embodiment of the invention;
FIG. 8 schematically illustrates a flow chart of a method of operating system upgrade according to another embodiment of the present invention;
FIG. 9 schematically illustrates a flow chart of a method of operating system upgrade according to a further embodiment of the present invention;
FIG. 10 schematically illustrates a flow chart of a method of operating system upgrade according to a further embodiment of the present invention;
FIG. 11 schematically illustrates a block diagram of an operating system upgrade apparatus according to an embodiment of the present invention; and
fig. 12 schematically illustrates a block diagram of an electronic device adapted to implement an operating system upgrade method according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. It should be understood that the description is only illustrative and is not intended to limit the scope of the invention. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present invention.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the invention, the related data (such as including but not limited to personal information of a user) are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all meet the requirements of related laws and regulations, necessary security measures are adopted, and the public welcome is not violated.
The embodiment of the invention provides an operating system upgrading method, which comprises the following steps: acquiring an IP list of a cloud host, wherein proxy nodes are arranged on the cloud host; detecting the version number of an operating system component of the cloud host through the proxy node according to the IP list of the cloud host; executing an upgrade script to upgrade the operating system of the cloud host under the condition that the operating system component version number is not the latest version number; and acquiring an upgrade feedback result of the operating system, and displaying the feedback result. By arranging the proxy nodes on the plurality of cloud hosts, the automatic traversal detection of the version numbers of the operating system components of each cloud host can be performed based on the proxy nodes, the cloud host operating system components with the version numbers not up to date are updated and upgraded, and the upgrading results are displayed. Because only automatic detection based on version numbers is needed to upgrade the cloud host operating system, the technical effects of high communication cost and low efficiency of manually planning to upgrade the cloud host operating system are at least partially solved, and the updating efficiency and reliability of the cloud host operating system are improved.
Fig. 1 schematically shows an application scenario diagram of an operating system upgrade method according to an embodiment of the present invention.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device. In particular, the server 105 may execute control instructions of the first terminal device 101, the second terminal device 102, and the third terminal device 103, upgrade an operating system of each cloud host in the cloud computing server cluster, and return an upgrade result.
It should be noted that the operating system upgrade method provided by the embodiment of the present invention may be generally executed by the server 105. Accordingly, the operating system upgrade apparatus provided in the embodiments of the present invention may be generally disposed in the server 105. The operating system upgrade method provided by the embodiment of the present invention may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the operating system upgrading apparatus provided by the embodiment of the present invention may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The operating system upgrade method of the disclosed embodiments will be described in detail below with reference to fig. 2 to 10 based on the scenario described in fig. 1.
FIG. 2 schematically illustrates a flow chart of a method of operating system upgrade according to an embodiment of the present invention.
As shown in FIG. 2, the operating system upgrading method of the embodiment includes, for example, operations S210-S240.
In operation S210, an IP manifest of a cloud host is obtained, and a proxy node is disposed on the cloud host.
For example, in the method of the present invention, a master node is provided. All system levels in the cloud environment and the cloud host IP list of each deployment unit in each set of system are obtained from a CMDB (Configuration Management Database ) system through a master control node.
In operation S220, the operating system component version number of the cloud host is detected by the proxy node according to the cloud host IP manifest.
For example, cloud host operation relies on an operating system that is made up of components such as drivers, kernels, libraries and applications, each component having a respective version number.
FIG. 3 schematically illustrates a flow chart of a method of detecting operating system component version numbers of a cloud host, in accordance with an embodiment of the present invention.
According to an embodiment of the present invention, as shown in fig. 3, for example, the operating system component version number of the cloud host is detected through steps S321 to S324.
Step S321, synchronizing the version numbers of the operating system components of the proxy nodes and the corresponding cloud hosts.
For example, the agent node is a lightweight agent on each computer hosting a server instance, including a computer hosting a domain-management server (DAS). The proxy node may: the server instance is started, stopped, created and deleted as directed by the domain-management server. Restarting the failed server instance. A log file view of the failed server is provided. And synchronizing the local configuration system information repository for each server instance with the central system information repository of the domain-management server. Each local system information base contains only information related to that server instance or proxy node. For example, version number synchronization is performed on the proxy node and the cloud host corresponding to the proxy node regularly.
In step S322, the latest operating system component version number is maintained by the master node.
For example, the latest version of the operating system component version number is maintained on the computer where the master node resides. The version numbers of the driver, the kernel, the runtime, and the application can be maintained separately.
Step S323, according to the cloud host IP list, the address of each proxy node is determined. And
for example, the IP address of each cloud host may be determined from a cloud host IP manifest obtained from the CMDB system. And further, determining the IP address of the computer where each proxy node is located through the mapping relation between each cloud host and the corresponding proxy node.
Step S324, the version numbers of the components of the main control node and the proxy nodes are respectively compared according to the addresses of the proxy nodes.
For example, the version numbers of the latest drivers, kernels, running libraries, applications, etc. maintained at the master node may be compared with the version numbers of the drivers, kernels, running libraries, applications, etc. synchronized with the existing version of the cloud host in the proxy node, respectively. By regularly synchronizing version numbers of the proxy node and the cloud host, detection and upgrading of the cloud host and normal business processing of the cloud host can be separated, and version numbers in the main control node and the proxy node are compared, so that timely updating of the cloud host can be realized, and influence on normal service of the cloud host is avoided.
In operation S230, in case that the operating system component version number is not the latest version number, an upgrade script is executed to upgrade the operating system of the cloud host.
For example, the upgrade script includes, for example, a detection module and an upgrade module. The detection module is used for comparing the version numbers of the main control node and the proxy node, so that the operating system component which is required to be upgraded in the cloud host corresponding to the proxy node can be identified. When the component version numbers are inconsistent, an upgrade program in the upgrade script can be executed to upgrade the operating system of the cloud host. Version upgrades generally have the means of source code compilation installations and binary package installations. When the component version numbers are consistent, execution is exited.
FIG. 4 schematically illustrates an architecture diagram of an operating system upgrade system according to an embodiment of the present invention. FIG. 5 schematically illustrates a flow chart of a method for operating system upgrades to cloud hosts according to an embodiment of the invention.
For example, as shown in fig. 4, cloud hosts typically provide services in the form of clusters of multiple cloud hosts. Cloud host sets up in distributed platform, and distributed platform includesnEach system comprisesmA plurality of deployment units, each deployment unit comprisingpAnd the cloud host. Wherein,nmpthe number of systems, deployment units, and cloud hosts, respectively, may be the same or different. And establishing communication connection with each proxy node through the main control node, sending an installation packet for version upgrade to the proxy nodes, and upgrading and updating corresponding components of the cloud host through the proxy nodes.
According to the embodiment of the invention, as shown in fig. 5, for example, the operating system of the cloud host is upgraded through steps S531 to S532.
Step S531, according to the cloud host IP list, pairnAnd ordering according to the importance levels to determine the system upgrading sequence.
For example, at least two of the systems a, … systems N are systems for handling different traffic. The importance of different services is also different, and the priority of each cloud host system is correspondingly ordered according to the importance of the services, for example, the cloud hosts of each system are upgraded in batches according to the order of low to high priority.
Step S532, according to the system upgrade order, sequentiallynAnd the cloud host in the personal system upgrades the operating system.
For example, after determining the upgrade priority order of the cloud host systems, the cloud hosts of the other systems are upgraded after all the cloud hosts in one system are upgraded by taking the systems as units. By sequencing the priorities of different cloud host systems and updating the cloud host system with high priority, the cloud host processing important business can be ensured to be upgraded preferentially, and the business compatibility of the operating system upgrading method is improved.
FIG. 6 schematically illustrates a flow chart of a method for operating system upgrades to cloud hosts according to another embodiment of the invention.
According to an embodiment of the present invention, as shown in FIG. 6, for example, the steps S6321 to S6322 are sequentially performednAnd the cloud host in the personal system upgrades the operating system.
Step S6321, respectively obtaining a cloud host in each deployment unit to upgrade an operating system.
Step S6322, under the condition that the feedback result is successful, sequentially and circularly acquiring the residual cloud host in each deployment unit to upgrade the operating system until the current system upgrade is completed.
For example, for a single set of system, according to a gray scale upgrading mode, each batch obtains one node in each deployment unit for upgrading, and after upgrading is successful, the rest nodes of each deployment unit are continuously and circularly obtained to execute an upgrading script until all cloud hosts of the system are upgraded. If the midway upgrading fails, the task is paused, and after the manual intervention investigation is completed, the rest flow is continuously executed according to the plan. And the cloud hosts in each deployment unit are respectively upgraded in sequence by taking the deployment units as units, so that the updating of each cloud host is ensured, omission is avoided, and the monitoring of the upgrading progress is also facilitated.
In operation S240, an operating system upgrade feedback result is obtained, and the feedback result is displayed.
Fig. 7 schematically shows a flowchart of a method for presenting feedback results according to an embodiment of the invention.
According to the embodiment of the invention, as shown in fig. 7, for example, the feedback result is displayed through steps S741 to S743.
Step S741, a tree structure is adopted to display the upgrade feedback results of the operating systems of the cloud hosts, and the tree structure is used for connecting the main control node and the proxy node.
In step S742, the route with successful upgrade and the route with failed upgrade are distinguished by different colors, and the route is a connection between the master node and the proxy node. And
step S743, obtaining and displaying an upgrade log of the cloud host that fails in upgrade.
For example, the upgrade process is visually displayed on the management end through a tree structure, the upgrade failure route and the actual success route are separately displayed through different colors, and corresponding execution failure logs are displayed for the failure nodes. By displaying the upgrading process of each cloud host by adopting the tree structure, the intuitiveness of the upgrading process is improved, the cloud hosts which fail to be upgraded can be positioned quickly and the failure reasons can be found conveniently, and the upgrading efficiency is improved.
FIG. 8 schematically illustrates a flow chart of a method of operating system upgrade according to another embodiment of the present invention.
According to an embodiment of the present invention, as shown in fig. 8, after the operating system is upgraded on the cloud host, the operating system upgrading method further includes:
and (S) at operation S810, detecting the version number of the operating system component of the upgraded cloud host again.
For example, after the cloud host operating system component with the version number not being the latest version number is upgraded by the upgrade module in the upgrade script, the cloud host with the version number updated by the finished component version can also be detected by the detection module in the upgrade script, so as to ensure that the cloud host operating system component is successfully upgraded. After the cloud host is upgraded, the version number of the cloud host is detected again, so that the effectiveness of upgrading the cloud host can be guaranteed, the cloud host which is not successfully updated can be found in time, and the reliability of updating the cloud host operating system is improved.
FIG. 9 schematically illustrates a flow chart of a method of operating system upgrade according to a further embodiment of the present invention.
According to an embodiment of the present invention, as shown in fig. 9, after the operating system is upgraded on the cloud host, the operating system upgrading method further includes:
operation S910 detects the service operation condition of the upgraded cloud host.
In operation S920, under the condition that the upgraded cloud host has started to run the service, the upgrading process of the upgraded cloud host is rolled back.
For example, the upgrade script also includes a rollback module. After the cloud host is upgraded in the test environment, the cloud host needs to be put into the production environment for business processing, and after business influence occurs, the upgrading process of the cloud host is timely backed off through a rollback module in an upgrade script, so that production data is prevented from entering the test environment, and production safety is ensured. After the cloud host is successfully updated, the updating process of the cloud host is timely rolled back, so that the leakage of production data is avoided, and the data security of the cloud host during updating is ensured.
FIG. 10 schematically illustrates a flow chart of a method of operating system upgrade according to a further embodiment of the present invention.
According to an embodiment of the present invention, as shown in fig. 10, the operating system upgrade method further includes, for example:
and S1010, manufacturing a cloud host image according to the upgrade script. And
in operation S1020, the cloud host image is updated to the public image library.
For example, in addition to updating and upgrading existing cloud hosts, cloud hosts can be newly built according to task requirements, so that cloud host image files are needed to be used for creating new cloud hosts. As shown in fig. 4, the operating system upgrade system further includes, for example, a mirror management module, in which a mirror host node is disposed. In order to enable the operating system version of the newly created cloud host to be the current latest version, the latest operating system upgrade script can be pushed to the mirror image management module through the master control node, the mirror image management module makes the latest cloud host mirror image after the mirror image host node executes the upgrade script, and then the latest cloud host mirror image is pushed to the public mirror image library. Therefore, when the cloud host is newly built, the latest version of the operating system file can be directly called from the public mirror image library. By manufacturing the cloud host image, the creation efficiency of the new host is improved.
Based on the operating system upgrading method, the invention also provides an operating system upgrading device. The device will be described in detail below with reference to fig. 11.
FIG. 11 schematically illustrates a block diagram of an operating system upgrade apparatus according to an embodiment of the present invention.
As shown in fig. 11, the operating system upgrade apparatus 1100 of this embodiment includes: an acquisition module 1110, a detection module 1120, an upgrade module 1130, and a presentation module 1140.
The obtaining module 1110 is configured to obtain an IP manifest of a cloud host, where proxy nodes are disposed on the cloud host. In an embodiment, the acquiring module 1110 may be configured to perform the operation S210 described above, which is not described herein.
The detection module 1120 is configured to detect, by the proxy node, an operating system component version number of the cloud host according to the cloud host IP manifest. In an embodiment, the detection module 1120 may be used to perform the operation S220 described above, which is not described herein.
The upgrade module 1130 is configured to execute an upgrade script to upgrade the operating system of the cloud host if the operating system component version number is not the latest version number. In an embodiment, the upgrade module 1130 may be configured to perform the operation S230 described above, which is not described herein.
The display module 1140 is configured to obtain an operating system upgrade feedback result, and display the feedback result. In an embodiment, the presentation module 1140 may be used to perform the operation S240 described above, which is not described herein.
Any of the acquisition module 1110, the detection module 1120, the upgrade module 1130, and the presentation module 1140 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules, according to an embodiment of the present invention. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. At least one of the acquisition module 1110, the detection module 1120, the upgrade module 1130, and the presentation module 1140 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware, according to embodiments of the present invention. Alternatively, at least one of the acquisition module 1110, the detection module 1120, the upgrade module 1130, and the presentation module 1140 may be at least partially implemented as computer program modules that, when executed, perform the corresponding functions.
Fig. 12 schematically illustrates a block diagram of an electronic device adapted to implement an operating system upgrade method according to an embodiment of the present invention.
As shown in fig. 12, the electronic apparatus 1200 according to the embodiment of the present invention includes a processor 1201 which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. The processor 1201 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 1201 may also include on-board memory for caching purposes. The processor 1201 may include a single processing unit or multiple processing units for performing the different actions of the method flow according to embodiments of the invention.
In the RAM 1203, various programs and data required for the operation of the electronic apparatus 1200 are stored. The processor 1201, the ROM 1202, and the RAM 1203 are connected to each other through a bus 1204. The processor 1201 performs various operations of the method flow according to the embodiment of the present invention by executing programs in the ROM 1202 and/or the RAM 1203. Note that the program may be stored in one or more memories other than the ROM 1202 and the RAM 1203. The processor 1201 may also perform various operations of the method flow according to embodiments of the present invention by executing programs stored in the one or more memories.
According to an embodiment of the invention, the electronic device 1200 may also include an input/output (I/O) interface 1205, the input/output (I/O) interface 1205 also being connected to the bus 1204. The electronic device 1200 may also include one or more of the following components connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output portion 1207 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 1208 including a hard disk or the like; and a communication section 1209 including a network interface card such as a LAN card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. The drive 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 1210 so that a computer program read out therefrom is installed into the storage section 1208 as needed.
The present invention also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement the operating system upgrade method according to the embodiment of the present invention.
According to embodiments of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the invention, the computer-readable storage medium may include ROM 1202 and/or RAM 1203 and/or one or more memories other than ROM 1202 and RAM 1203 described above.
Embodiments of the present invention also include a computer program product comprising a computer program containing program code for performing the method shown in the flowcharts. When the computer program product runs in a computer system, the program code is used for enabling the computer system to realize the operating system upgrading method provided by the embodiment of the invention.
The above-described functions defined in the system/apparatus of the embodiment of the present invention are performed when the computer program is executed by the processor 1201. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the invention.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program can also be transmitted, distributed over a network medium in the form of signals, and downloaded and installed via a communication portion 1209, and/or from a removable medium 1211. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1209, and/or installed from the removable media 1211. The above-described functions defined in the system of the embodiment of the present invention are performed when the computer program is executed by the processor 1201. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the invention.
According to embodiments of the present invention, program code for carrying out computer programs provided by embodiments of the present invention may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or in assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the invention can be combined in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the present invention. In particular, the features recited in the various embodiments of the invention can be combined and/or combined in various ways without departing from the spirit and teachings of the invention. All such combinations and/or combinations fall within the scope of the invention.
The embodiments of the present invention are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the invention, and such alternatives and modifications are intended to fall within the scope of the invention.

Claims (9)

1. An operating system upgrade method, comprising:
acquiring an IP list of a cloud host, wherein proxy nodes are arranged on the cloud host;
detecting an operating system component version number of the cloud host through the proxy node according to the cloud host IP list;
executing an upgrade script to upgrade the operating system of the cloud host under the condition that the operating system component version number is not the latest version number;
acquiring an operation system upgrading feedback result, and displaying the feedback result;
the detecting, by the proxy node, the operating system component version number of the cloud host according to the cloud host IP manifest includes:
synchronizing the version numbers of the operating system components of the proxy nodes and the corresponding cloud hosts;
maintaining the latest operating system component version number through the master control node;
determining the address of each proxy node according to the cloud host IP list;
comparing the version numbers of the components of the main control node and the proxy nodes according to the addresses of the proxy nodes; and
the cloud host is arranged on a distributed platform, the distributed platform comprises n systems, each system comprises m deployment units, each deployment unit comprises p cloud hosts, and the method further comprises:
according to the cloud host IP list, sequencing the n systems according to importance levels to determine a system upgrading sequence;
and sequentially upgrading the operating systems of the cloud hosts in the n systems according to the system upgrading sequence.
2. The method of claim 1, wherein sequentially performing operating system upgrades on cloud hosts in the n systems in the system upgrade order comprises:
respectively acquiring one cloud host in each deployment unit to upgrade an operating system;
and under the condition that the feedback result is successful, sequentially and circularly acquiring the residual cloud host in each deployment unit to upgrade the operating system until the current system upgrade is completed.
3. The method of claim 1, after operating system upgrades to the cloud host, further comprising:
and re-detecting the version number of the operating system component of the cloud host after upgrading.
4. The method of claim 3, after operating system upgrades to the cloud host, further comprising:
detecting the service running condition of the upgraded cloud host;
and under the condition that the upgraded cloud host starts to run the service, returning the upgrading process of the upgraded cloud host.
5. The method of claim 1, wherein the obtaining the feedback result of the operating system upgrade and displaying the feedback result comprise:
displaying the upgrade feedback results of the operating systems of the cloud hosts by adopting a tree structure, wherein the tree structure is used for connecting the main control node and the proxy node;
differentiating a route which is successfully upgraded from a route which is failed to upgrade through different colors, wherein the route is a connecting line between the main control node and the proxy node; and
and acquiring and displaying an upgrade log of the cloud host which fails to upgrade.
6. The method of claim 1, further comprising:
according to the upgrade script, manufacturing a cloud host image; and
and updating the cloud host image to a public image library.
7. An operating system upgrade apparatus, comprising:
the cloud host comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring an IP list of a cloud host, and proxy nodes are arranged on the cloud host;
the detection module is used for detecting the version number of the operating system component of the cloud host through the proxy node according to the cloud host IP list;
the upgrade module is used for executing an upgrade script to upgrade the operating system of the cloud host under the condition that the version number of the operating system component is not the latest version number; and
the display module is used for acquiring an upgrade feedback result of the operating system and displaying the feedback result;
the detecting, by the proxy node, the operating system component version number of the cloud host according to the cloud host IP manifest includes:
synchronizing the version numbers of the operating system components of the proxy nodes and the corresponding cloud hosts;
maintaining the latest operating system component version number through the master control node;
determining the address of each proxy node according to the cloud host IP list;
comparing the version numbers of the components of the main control node and the proxy nodes according to the addresses of the proxy nodes; and
the cloud host sets up in distributed platform, distributed platform includes n systems, and every system includes m deployment unit, and every deployment unit includes p cloud host still includes:
according to the cloud host IP list, sequencing the n systems according to importance levels to determine a system upgrading sequence;
and sequentially upgrading the operating systems of the cloud hosts in the n systems according to the system upgrading sequence.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
CN202311077014.9A 2023-08-25 2023-08-25 Operating system upgrading method, device, equipment and storage medium Active CN116820526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311077014.9A CN116820526B (en) 2023-08-25 2023-08-25 Operating system upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311077014.9A CN116820526B (en) 2023-08-25 2023-08-25 Operating system upgrading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116820526A CN116820526A (en) 2023-09-29
CN116820526B true CN116820526B (en) 2023-11-24

Family

ID=88118768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311077014.9A Active CN116820526B (en) 2023-08-25 2023-08-25 Operating system upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116820526B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850416A (en) * 2014-02-18 2015-08-19 中国移动通信集团公司 Upgrading system, method and device and cloud computing node
CN106201773A (en) * 2016-06-24 2016-12-07 北京海誉动想科技股份有限公司 The upgrading of instance system, cloud system and instance system or restoration methods
CN106998338A (en) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 A kind of method and device for realizing VNF deployment
CN107659458A (en) * 2017-11-02 2018-02-02 广东亿迅科技有限公司 Agent deployment upgrade methods and system based on git Version Controls
CN108874503A (en) * 2018-06-05 2018-11-23 国云科技股份有限公司 A kind of Configuration Agent update method of cloud platform application cluster
CN110912975A (en) * 2019-11-12 2020-03-24 国云科技股份有限公司 Private cloud version management system and implementation method thereof
WO2021129733A1 (en) * 2019-12-24 2021-07-01 中兴通讯股份有限公司 Cloud operating system management method and apparatus, server, management system, and medium
CN114416132A (en) * 2021-12-14 2022-04-29 广州极飞科技股份有限公司 Equipment upgrading method, device, equipment and storage medium
WO2023093016A1 (en) * 2021-11-26 2023-06-01 北京百度网讯科技有限公司 Cloud code development system, method, and apparatus, device, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9189224B2 (en) * 2013-07-11 2015-11-17 Oracle International Corporation Forming an upgrade recommendation in a cloud computing environment
US11483405B2 (en) * 2015-06-10 2022-10-25 Platform9, Inc. Private cloud as a service
US11089098B2 (en) * 2018-07-24 2021-08-10 Vmware, Inc. Migration as a service-based server and agent applications migration
US11307842B2 (en) * 2020-04-07 2022-04-19 Vmware, Inc. Method and system for virtual agent upgrade using upgrade proxy service

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850416A (en) * 2014-02-18 2015-08-19 中国移动通信集团公司 Upgrading system, method and device and cloud computing node
CN106998338A (en) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 A kind of method and device for realizing VNF deployment
CN106201773A (en) * 2016-06-24 2016-12-07 北京海誉动想科技股份有限公司 The upgrading of instance system, cloud system and instance system or restoration methods
CN107659458A (en) * 2017-11-02 2018-02-02 广东亿迅科技有限公司 Agent deployment upgrade methods and system based on git Version Controls
CN108874503A (en) * 2018-06-05 2018-11-23 国云科技股份有限公司 A kind of Configuration Agent update method of cloud platform application cluster
CN110912975A (en) * 2019-11-12 2020-03-24 国云科技股份有限公司 Private cloud version management system and implementation method thereof
WO2021129733A1 (en) * 2019-12-24 2021-07-01 中兴通讯股份有限公司 Cloud operating system management method and apparatus, server, management system, and medium
WO2023093016A1 (en) * 2021-11-26 2023-06-01 北京百度网讯科技有限公司 Cloud code development system, method, and apparatus, device, and storage medium
CN114416132A (en) * 2021-12-14 2022-04-29 广州极飞科技股份有限公司 Equipment upgrading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116820526A (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN107608710B (en) Software project construction task configuration method and device based on Jenkins tool
US9386079B2 (en) Method and system of virtual desktop infrastructure deployment studio
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US8762929B2 (en) System and method for exclusion of inconsistent objects from lifecycle management processes
US8140905B2 (en) Incremental problem determination and resolution in cloud environments
US20160026547A1 (en) Generating predictive diagnostics via package update manager
US20110296398A1 (en) Systems and methods for determining when to update a package manager software
US11561889B2 (en) Orchestration for automated performance testing
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20050022176A1 (en) Method and apparatus for monitoring compatibility of software combinations
US20150100832A1 (en) Method and system for selecting and executing test scripts
US9652220B2 (en) Zero down-time deployment of new application versions
US20150100830A1 (en) Method and system for selecting and executing test scripts
US20150100831A1 (en) Method and system for selecting and executing test scripts
US7392149B2 (en) Automatic software testing
CN110727575B (en) Information processing method, system, device and storage medium
CN113900834A (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN111831567A (en) Application test environment configuration method, device, system and medium
CN109299124B (en) Method and apparatus for updating a model
CN116820526B (en) Operating system upgrading method, device, equipment and storage medium
CN109120433B (en) Method and apparatus for containerized deployment of hosts
CN114489704A (en) Version compiling and deploying method and device based on strategy
CN113504916A (en) Code updating method and device, computer equipment and medium
US11275574B2 (en) Recovering the last successful device update on a computing system
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant