Software updating method and device, storage medium and computer program product
By automatically identifying and updating the software in the container cluster management system, the problem of mismatch between selection errors and versions during the software update process is solved, and an efficient and secure software update process is achieved, reducing the incidence of errors and work burden.
Patent Information
- Application Number
- CN202411186599.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
Smart Images

Figure CN119065689A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a software updating method, device, storage medium, and computer program product. Background Art
[0002] When allocating resources such as computing, network, and storage, a container cluster management system can be used for resource allocation and management. A container cluster management system automates the operation and maintenance of clusters of multiple containerized applications and is a container orchestration framework tool. A container cluster management system includes multiple devices, such as servers, that are installed with various software packages. Due to evolving software and hardware technologies, new business functionality requirements, and other factors, device software updates may be necessary. Software updates can be performed using scripts or program platforms. Devices in a container cluster management system can have multiple software packages installed, and the software and versions installed on different devices may vary. Currently, when updating device software, personnel must select the software and versions to be updated. Incorrectly selecting the software and versions can lead to update failures or errors, potentially causing business downtime, inefficient software updates, and prone to errors. Summary of the Invention
[0003] The present disclosure provides a software updating method, apparatus, storage medium, and computer program product.
[0004] According to a first aspect of the present disclosure, a software updating method is provided, comprising: determining first target version information and first current version information of first software installed in the device based on a correspondence between software version information and the device; determining first software to be updated as second software based on the first target version information and the first current version information; updating the second software based on the second target version information of the second software; and updating or marking the second current version information of the second software based on an update result of the second software.
[0005] Optionally, the updating process of the second software based on the second target version information of the second software includes: performing an update test on the software update resource corresponding to the second target version information; generating corresponding update information of the second software when the software update resource passes the update test, wherein the update information of the second software includes second software identification information and a download address of the software update resource; generating software update information based on the update information of the second software and sending it to the device, so that the device performs update processing based on the software update information, wherein the software update information includes at least one update information of the second software.
[0006] Optionally, the software update information includes software update sequence information; generating the software update information includes: when it is determined that multiple second software need to be updated, determining the update sequence of the multiple second software based on the software type information and update priority of the multiple second software, so as to generate the software update sequence information.
[0007] Optionally, the software types include platform applications and business applications; the software update information includes software update method information, wherein the software update method information includes at least one of the following: when updating the multiple second software, if the update of the second software whose software type is a platform application fails, stop updating the remaining second software; when updating the multiple second software, if the update of the second software whose software type is a business application fails, continue updating the remaining second software.
[0008] Optionally, the update test of the software update resource corresponding to the second target version information includes: sending an operating environment detection request to the device to obtain current operating environment information returned by the device; and performing an update test on the software update resource based on the current operating environment information.
[0009] Optionally, the update test of the software update resource based on the current operating environment information includes: generating configuration information based on the current operating environment information; constructing a test operating environment that is identical to the current operating environment of the device according to the configuration information; and performing an update test on the software update resource in the test operating environment.
[0010] Optionally, a download verification password is generated based on the second target version information; the download verification password is sent to the device; and the address information of the device and the download verification password are sent to a server corresponding to the download address.
[0011] Optionally, based on an encryption algorithm, the download uniform resource locator (URL) of the software update resource is encrypted to generate the address information; wherein the device uses a decryption algorithm corresponding to the encryption algorithm to decrypt the address information to obtain the download URL.
[0012] Optionally, determining the first software that needs to be updated based on the first target version information and the first current version information as the second software includes: when it is determined that the first target version information has passed the review and is different from the first current version information, determining that the corresponding first software needs to be updated.
[0013] Optionally, updating or marking the second current version information of the second software according to the update result of the second software includes: when the update result is a successful update, replacing the second current version information with the second target version information; when the update result is a failed update, marking the second current version information as an update failure.
[0014] Optionally, the device includes a device in a container cluster management system.
[0015] According to a second aspect of the present disclosure, a software updating device is provided, including: a version acquisition module, used to determine the first target version information and first current version information of the first software installed in the device according to the correspondence between the software version information and the device; an update determination module, used to determine the first software to be updated as the second software according to the first target version information and the first current version information of the first software; an update processing module, used to update the second software based on the second target version information of the second software; and an information update module, used to update or mark the second current version information of the second target version information according to the update result of the second software.
[0016] According to a third aspect of the present disclosure, a software updating apparatus is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method described above based on instructions stored in the memory.
[0017] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the instructions are executed by a processor to perform the method described above.
[0018] According to a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product stores computer instructions, and the instructions are executed by a processor to perform the method described above.
[0019] The software update method, device, storage medium and computer program product disclosed in the present invention can accurately and in real time detect whether the software needs to be updated, and determine the update scope and update version, which can ensure the accuracy of the software that needs to be updated and the target version after the update, reduce the occurrence of software update errors, and improve the security and reliability of software updates; it can automatically update the software, reduce the workload and work intensity, and improve the efficiency of software updates. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other purposes and advantages of the present disclosure will be further described below in conjunction with specific embodiments and with reference to the accompanying drawings. In the accompanying drawings, the same or corresponding technical features or components will be represented by the same or corresponding figure marks.
[0021] Figure 1 is a flowchart of some embodiments of the software update method according to the present disclosure;
[0022] Figure 2 1 is a flowchart of an update process in some embodiments of the software update method according to the present disclosure;
[0023] Figure 3 1 is a flowchart of performing update testing in some embodiments of the software update method according to the present disclosure;
[0024] Figure 4 Schematic diagram of modules of some embodiments of the software updating device according to the present disclosure;
[0025] Figure 5 is a schematic diagram of an update processing module in some embodiments of the software update device according to the present disclosure;
[0026] Figure 6 Schematic diagram of modules of other embodiments of the software updating device according to the present disclosure. DETAILED DESCRIPTION
[0027] Exemplary embodiments of the present disclosure will be described below with reference to the accompanying drawings. For the sake of clarity and conciseness, not all features of the embodiments are described in the specification. However, it should be understood that many implementation-specific settings must be made in the process of implementing the embodiments in order to achieve the developer's specific goals, such as meeting those restrictions related to equipment and services, and these restrictions may vary depending on the implementation. In addition, it should be understood that although the development work may be very complex and time-consuming, it is only a routine task for those skilled in the art who benefit from the contents of this disclosure.
[0028] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0029] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, and do not represent any specific technical meanings, nor do they indicate a necessary logical order between them.
[0030] It should also be understood that in the embodiments of the present disclosure, “a plurality of” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0031] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0032] In addition, the term "and / or" in this disclosure is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this disclosure generally indicates that the related objects are in an "or" relationship.
[0033] It should also be understood that the description of the various embodiments in this disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced with each other. For the sake of brevity, they will not be described one by one.
[0034] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0035] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0036] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0037] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0038] In addition, in order to avoid obscuring the present disclosure with unnecessary details, only the processing steps and / or device structures that are closely related to at least the solution according to the present disclosure are shown in the drawings, while other details that are not closely related to the present disclosure are omitted. It should also be noted that similar reference numerals and letters in the drawings indicate similar items, and therefore once an item is defined in one drawing, it does not need to be discussed again for subsequent drawings.
[0039] Figure 1 FIG. 1 is a flowchart of some embodiments of the software update method according to the present disclosure. Figure 1 As shown, the software updating method includes steps S101-S104.
[0040] Step S101: determining first target version information and first current version information of first software installed in a device according to a correspondence between software version information and the device.
[0041] A container cluster management system provides centralized management, scheduling, and monitoring capabilities for software tools or platforms that manage and operate container clusters. A container cluster management system can be a variety of systems, and devices can be any of the various devices within the container cluster management system. For example, a device can be a hardware device or server in the logical resource area of a container cluster management system.
[0042] The correspondence between software version information and devices can be preset, and the correspondence can be one or more database tables, which are stored in a database. By querying the database tables, the first target version information and the first current version information of the first software installed in the device can be obtained.
[0043] One or more first software programs may be installed in the device. The first software programs may be of multiple types, for example, platform applications, business applications, etc. The first target version may be a baseline version of the first software program, which is a stable version of the software program. The first current version is the current version of the first software program installed in the device.
[0044] Step S102: Determine the first software that needs to be updated as the second software according to the first target version information and the first current version information.
[0045] Various methods can be used to determine whether the first software installed on the device requires an update based on the first target version information and the first current version information, and the first software requiring an update can be used as the second software. For example, if it is determined that the first target version information of the first software has passed review and is different from the first current version information of the first software, it is determined that the corresponding first software requires an update, and the first software can be used as the second software.
[0046] Step S103: updating the second software based on the second target version information of the second software.
[0047] Step S104: updating or marking the second current version information of the second software according to the update result of the second software.
[0048] The software update method disclosed herein can accurately and in real time detect whether the software needs to be updated, and determine the update scope and update version. It can ensure the accuracy of the software that needs to be updated and the target version after the update, reduce the occurrence of software update errors, and improve the security and reliability of software updates. It can automatically update the software, reduce workload and work intensity, and improve the efficiency of software updates.
[0049] In some embodiments, information such as the first target version information and the first current version information of the first software installed in the device can be obtained in advance, and a database table (correspondence) of the software version information and the device can be generated and stored in the database. The number of database tables can be one or more.
[0050] For example, the correspondence between software version information and devices includes data tables such as a baseline version table, a first software version table, and a software version and function correspondence table. The baseline version table is a software version table based on cluster dimensions, as shown in Table 1 below:
[0051]
[0052] Table 1 - Baseline Version Table
[0053] In Table 1, device 1 is a hardware device in the logical resource zone of cluster lf10. The first software installed on device 1 includes software A, software B, and software C. The baseline version is the target version information, and the current version is the current version information. Software A can be, for example, the logical resource partition unit docker software. The (first) target version information of software A is baseline version 1.17, and the (first) current version information of software A is current version 1.17. Software B can be, for example, kernel baseline software. The target version information of software B is baseline version 4.18, and the current version information of software B is current version 4.18. Software C can be, for example, CNI software. The target version information of software C is baseline version 2.11, and the current version information of software C is current version 2.11.
[0054] The version table of the first software is a version table based on software, as shown in Table 2 below:
[0055] Software Name Clusters and devices Baseline version Existing versions Software A lf10+device1 1.17 1.17
[0056] Table 2 - Version table of the first software
[0057] The first software installed in device 1 includes software A. Table 2 sets the cluster and device, target version information (baseline version), and current version information (existing version) of software A. The software version and function correspondence table is shown in Table 3 below:
[0058]
[0059] Table 3 - Software version and function correspondence
[0060] Table 3 lists information such as the software name, software version, new features, updates, and existing features of Software C. Operations and maintenance personnel can use Tables 1-3 to obtain the version information for each first software item. Based on this information and update requirements, they can adjust the "baseline version" in Table 1-2. For example, as shown in Table 4 below, operations and maintenance personnel adjust the first target version (baseline version) of Software C to 2.12.
[0061]
[0062] Table 4 - Adjusted baseline version table
[0063] Operation and maintenance personnel and other relevant personnel can comprehensively review and determine the necessity and risks of updating the first target version information (baseline version) of the first software based on Tables 2 to 4, and determine whether the first target version information (baseline version) of the first software is an appropriate version, and review and process the first target version information of the first software. If the operation and maintenance personnel and other relevant personnel determine that the first target version information of the first software has passed the review, the corresponding "baseline version" information in Table 4 will be marked as reviewed. A variety of existing marking methods can be used. For example, in Table 4, the "baseline version" 2.12 of software C is marked as reviewed.
[0064] Various methods can be used to determine the first software that needs to be updated based on the first target version information and the first current version information of the first software. For example, if it is determined that the first target version information of the first software has passed review, and the first target version information of the first software is different from the non-first current version information of the first software, then it is determined that the corresponding first software needs to be updated.
[0065] In some embodiments, Table 4 is periodically queried at time intervals of 12 hours, 24 hours, etc. to obtain the first target version information (baseline version) and first current version information (existing version) of software A, software B, and software C installed in device 1.
[0066] If it is determined that the first target version information of software A, software B and software C installed in device 1 have all passed the review (marked as reviewed by operation and maintenance personnel and other relevant personnel), and the first target version information of software A and software B are the same as the first current version information, and the first target version information of software C is different from the first current version information, then software C is determined to be the first software that needs to be updated in device 1, and is used as the second software.
[0067] Various methods can be used to update or mark the second current version information of the second software based on the update result of the second software. For example, if the update result is successful, the second current version information of the second software is replaced with the second target version information; if the update result is failed, the second current version information of the second software is marked as failed. Various existing marking methods can be used.
[0068] In some embodiments, it is determined that software C installed in device 1 needs to be updated and is the second software. Device 1 performs an update process on the installed software C (as the second software). If the update result of software C is successful, the second current version information (existing version) 2.11 in Table 4 is replaced with the second target version information (baseline version) 2.12, as shown in Table 5 below:
[0069]
[0070]
[0071] Table 5 - Updated baseline version table
[0072] Alternatively, in Table 2, the current version information 2.11 of software C can be replaced with the target version information 2.12. If the update result of software C is an update failure, the current version information 2.11 in Table 4 is marked as an update failure. For example, the current version information 2.11 can be marked with a different color or with a different annotation. If the current version information 2.11 of software C in Table 4 is marked as an update failure, device 1 periodically updates the installed software C at intervals of one hour, two hours, or the like until the update is successful.
[0073] Figure 2 FIG. 1 is a flow chart of an update process in some embodiments of the software update method disclosed herein. Figure 2 As shown, the software updating method includes steps S201-S203.
[0074] Step S201: Perform an update test on the software update resource corresponding to the second target version information. The software update resource may be a software update package or the like.
[0075] Step S202: If the software update resource passes the update test, the corresponding second software update information is generated. The second software update information includes the second software identification information and the download address of the software update resource, and the download address includes an encrypted or unencrypted URL (Uniform Resource Locator).
[0076] Step S203: Based on the update information of the second software, software update information is generated and sent to the device, so that the device performs an update process based on the software update information. The software update information includes update information of one or more second software.
[0077] For example, if it is determined that software A and software C installed on device 1 need to be updated, software A and software C are used as second software. Various methods can be used to perform update tests on software update resource A corresponding to the second target version information of software A and software update resource C corresponding to the second target version information of software C.
[0078] If software update resource A passes the update test, update information of software A is generated, including identification information of software A and the download address of software update resource A, etc. The identification information may be the software name, etc.; if software update resource C passes the update test, update information of software C is generated, including identification information of software C and the download address of software update resource C.
[0079] Generate software update information, including update information for software A and software C. Send the software update information to device 1, which then updates software A and software C based on the software update information. If the update of software A or software C fails, maintain the version of software A or software C before the update.
[0080] The software update information may include software update sequence information; when it is determined that multiple second software need to be updated, the update sequence of the multiple second software is determined based on the software type information and update priority of the multiple second software to generate the software update sequence information.
[0081] Software types include platform applications and business applications. Business application software includes various applications provided to users, such as billing applications, shopping applications, voice applications, and conferencing applications. Platform application software provides operational support for business applications, such as driver software, database software, support software, and operating system software.
[0082] Platform application software is updated before business application software. You can set a pre-defined update priority for each software. The update priority can be set as either first or second. First priority is the highest priority, and software with a higher priority is updated before software with a lower priority.
[0083] For example, the multiple second software updates installed in device 1 that need to be updated include: software D, software E, software F, software G, and software H; among them, software D and software F are platform application type software, the update priority set for software D is the first update priority, and the update priority set for software F is the second update priority; software E, software G, and software H are business application type software, the update priority set for software E and software H is the first update priority, and the update priority set for software G is the second update priority.
[0084] Based on the software type information, it can be determined that software D and software F are updated before other first software. Based on the update priority, software D can be updated before software F. Based on the update priority, software E and software H can be updated before software G. For software E and software H, a random method can be used to determine the update order between software E and software H. The update counts of software E and software H in the container cluster management system can also be obtained, and the software with the highest update count can be updated first. For example, the software update order information generated is {software D, software F, software E, software H, software G}.
[0085] The software update information may include software update method information, and the software update method information includes one or more types. For example, when updating multiple second software, if the update of the second software whose software type is a platform application fails, stop updating the remaining second software; when updating multiple second software, if the update of the second software whose software type is a business application fails, continue updating the remaining second software.
[0086] For example, when device 1 performs software updates according to the software update sequence information {software D, software F, software E, software H, software G}, if the update of software D, whose software type is a platform application, fails, the updating of the remaining software F, software E, software H, and software G is stopped; if the update of software H, whose software type is a business application, fails, the updating of the remaining software G continues.
[0087] Figure 3 FIG. 1 is a flow chart of performing update testing in some embodiments of the software update method according to the present disclosure. Figure 3 As shown, the software updating method includes steps S301-S302.
[0088] Step S301: Send an operating environment detection request to the device and obtain the current operating environment information returned by the device.
[0089] For example, a running environment detection request can be sent to device 1. After receiving the running environment detection request, device 1 performs detection processing, obtains the current running environment information of device 1 and returns it; the current running environment information of device 1 includes the hardware information of device 1, the operating system information of device 1, and the software information currently installed on device 1.
[0090] Step S302: performing an update test on the software update resource based on the current operating environment information.
[0091] , There are several methods for testing software update resources. For example, you can generate configuration information based on the current operating environment information; use the configuration information to build a test environment that is identical to the device's current operating environment; and then perform update testing on the software update resources in the test environment.
[0092] For example, based on the current operating environment information returned by device 1, configuration information is generated, including hardware configuration information, operating system configuration information, and software installation configuration information. Based on the hardware configuration information, a test device such as a test server that matches device 1 is selected. Based on the operating system configuration information and software installation configuration information, a test operating environment identical to the current operating environment of device 1 is constructed on the test server.
[0093] According to the second target version information of the second software, a software update resource corresponding to the second target version information is obtained from the software resource server, the software update resource including the software update package, etc. The software update resource is put into the test running environment for running and performing update test on the software update resource.
[0094] If the software update resource can successfully run in the test execution environment and update the corresponding second software, the test result is determined to be successful; if the software update resource cannot successfully run in the test execution environment and update the corresponding second software, the test result is determined to be failed.
[0095] In some embodiments, a download verification password is generated based on the second target version information of the second software, and the download verification password is sent to the device; the address information of the device and the download verification password are sent to a server corresponding to the download address.
[0096] For example, a download verification password can be generated using a password generation algorithm based on the second target version information of the second software. The password generation algorithm can be a variety of algorithms, such as a hash algorithm. The download verification password is sent to the device, and the device address information and the download verification password are sent to a server corresponding to the download address of the software update resource.
[0097] The server establishes a correspondence between the download verification password and the device's address information and stores this correspondence in a correspondence table. Upon receiving a download request from the device, which includes the download address of the software update resource and the download verification password, the server establishes a correspondence between the address information used to send the download request and the download verification password in the download request and determines whether this correspondence exists in the correspondence table. If so, the server sends the software update resource to the device based on the download address. If not, the server returns a download error message.
[0098] The server verifies the download request of the device through the download verification password and the address information of the device, which can effectively ensure the security of software update resource download.
[0099] In some embodiments, the URL of the software update resource is encrypted based on an encryption algorithm to generate address information; the device uses a decryption algorithm corresponding to the encryption algorithm to decrypt the address information to obtain a download URL.
[0100] For example, the URL of a software update resource is encrypted using a preset encryption algorithm to generate encrypted address information, which is then sent to the device. The device then decrypts the address information using a preset decryption algorithm corresponding to the encryption algorithm to obtain a download URL. Based on the URL, the device sends a request to the server to download the software update resource. The encryption and decryption algorithms can be a variety of algorithms, such as the MD5 algorithm. Encrypting the URL of a software update resource using an encryption algorithm can effectively improve the security of the software update resource, protecting it from malicious modification and attacks.
[0101] The software update method in the above embodiment can accurately detect whether the software needs to be updated and determine the update scope and update version, which can ensure the accuracy of the software that needs to be updated and the target version after the update, and can improve the security and reliability of the software update; it can automatically and efficiently update the software, effectively reducing the workload and work intensity.
[0102] In some embodiments, as Figure 4 As shown, the present disclosure provides a software updating apparatus 40, comprising a version obtaining module 41, an update determining module 42, an update processing module 43, and an information updating module 44. The version obtaining module 41 determines the first target version information and the first current version information of the first software installed in the device based on the correspondence between the software version information and the device.
[0103] The update determination module 42 determines the first software that needs to be updated as the second software based on the first target version information and the first current version information of the first software. For example, if the update determination module 42 determines that the first target version information has passed review and is different from the first current version information, the corresponding first software needs to be updated.
[0104] The update processing module 43 updates the second software based on the second target version information of the second software. The information updating module 44 updates or marks the second current version information of the second target version information according to the update result of the second software.
[0105] For example, if the update result is successful, the information update module 44 replaces the second current version information with the second target version information; if the update result is failed, the information update module 44 marks the second current version information as failed.
[0106] like Figure 5 As shown, the update processing module 43 includes an update test unit 431, an information processing unit 432, and an encryption processing unit 433. The update test unit 431 performs an update test on the software update resource corresponding to the second target version information.
[0107] For example, the update test unit 431 sends an operating environment detection request to the device and obtains current operating environment information returned by the device; the update test unit 431 performs an update test on the software update resource based on the current operating environment information.
[0108] The update test unit 431 can generate configuration information based on the current operating environment information; the update test unit 431 constructs a test operating environment that is the same as the current operating environment of the device according to the configuration information, and performs update testing on the software update resources in the test operating environment.
[0109] When the software update resource passes the update test, the information processing unit 432 generates corresponding second software update information; based on the second software update information, the information processing unit 432 generates software update information and sends it to the device, so that the device performs update processing based on the software update information.
[0110] The software update information includes software update sequence information. When the information processing unit 432 determines that multiple second software items need to be updated, it determines the update sequence of the multiple second software items based on the software type information and update priority of the multiple second software items to generate the software update sequence information. The software update information includes software update method information, and the information processing unit 432 generates the software update method information.
[0111] Encryption processing unit 433 generates a download verification password based on the second target version information; encryption processing unit 433 sends the download verification password to the device; encryption processing unit 433 sends the device address information and the download verification password to the server corresponding to the download address. Encryption processing unit 433 encrypts the download uniform resource locator (URL) of the software update resource using an encryption algorithm to generate address information.
[0112] In some embodiments, as Figure 6 As shown, the software updating apparatus may include a memory 51, a processor 52, a communication interface 53 and a bus 54. The memory 51 is used to store instructions, the processor 52 is coupled to the memory 51, and is configured to execute the above software updating method based on the instructions stored in the memory 51.
[0113] Memory 51 can be high-speed RAM, non-volatile memory, or a memory array. Memory 51 can also be divided into blocks, and the blocks can be combined into virtual volumes according to certain rules. Processor 52 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the software update method of the present disclosure.
[0114] In some embodiments, the present disclosure provides a computer-readable storage medium storing computer instructions. When the instructions are executed by a processor, the method in any of the above embodiments is implemented.
[0115] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive enumeration) of readable storage media can include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0116] The embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0117] The software update method, device, storage medium and computer program product in the above embodiments can accurately detect whether the software needs to be updated and determine the update scope and update version, which can ensure the accuracy of the software that needs to be updated and the target version after the update, reduce the occurrence of software update errors, and improve the security and reliability of software updates; can automatically and efficiently update the software, effectively reduce the workload and work intensity, improve the software update efficiency, and enhance the user experience.
[0118] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this disclosure are merely illustrative and not restrictive, and should not be construed as necessarily possessed by each embodiment of the present disclosure. Furthermore, the specific details disclosed above are provided for illustrative purposes and to facilitate understanding, rather than as limitations. These details do not limit the present disclosure to necessarily being implemented using these specific details.
[0119] Each embodiment in this specification is described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. References to the same or similar parts between the various embodiments are sufficient. For system embodiments, since they largely correspond to method embodiments, their description is relatively simple. For relevant parts, references to the description of the method embodiments are sufficient.
[0120] The block diagrams of the devices, devices, equipment, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0121] It should also be noted that in the apparatus, device, and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0122] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0123] The above description has been provided for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, it will be understood by those skilled in the art that the above embodiments are merely illustrative and do not limit the scope of the present disclosure. It will be understood by those skilled in the art that the above embodiments may be combined, modified, or replaced without departing from the scope and essence of the present disclosure.
Claims
1. A software updating method, include: Determine, according to the correspondence between the software version information and the device, first target version information and first current version information of the first software installed in the device; Determine, according to the first target version information and the first current version information, first software that needs to be updated as the second software; Based on the second target version information of the second software, updating the second software; According to the update result of the second software, the second current version information of the second software is updated or marked.
2. The method according to claim 1, in, The updating process of the second software based on the second target version information of the second software includes: performing an update test on the software update resource corresponding to the second target version information; If the software update resource passes the update test, generating corresponding update information of the second software, wherein the update information of the second software includes second software identification information and a download address of the software update resource; Based on the update information of the second software, software update information is generated and sent to the device, so that the device performs update processing based on the software update information, wherein the software update information includes at least one update information of the second software.
3. The method according to claim 2, in, The software update information includes software update sequence information; Generating software update information includes: When it is determined that multiple second software need to be updated, the update sequence of the multiple second software is determined based on the software type information and update priority of the multiple second software to generate the software update sequence information.
4. The method according to claim 3, in, The software types include platform applications and business applications; The software update information includes software update method information, wherein the software update method information includes at least one of the following: When updating the plurality of second software, if the second software of which the software type is a platform application fails to be updated, stopping updating of the remaining second software; When updating the plurality of second software, if the second software of which the software type is a business application fails to be updated, continue to update the remaining second software.
5. The method according to claim 2, in, The performing update test on the software update resource corresponding to the second target version information includes: Sending an operating environment detection request to the device to obtain current operating environment information returned by the device; Based on the current operating environment information, an update test is performed on the software update resource.
6. The method according to claim 5, in, The updating test of the software update resource based on the current operating environment information includes: Based on the current operating environment information, generate configuration information; Constructing a test operation environment that is the same as the current operation environment of the device according to the configuration information; In the test running environment, an update test is performed on the software update resource.
7. The method according to claim 2, further comprising: include: Based on the second target version information, generating a download verification password; Sending the download verification password to the device; The address information of the device and the download verification password are sent to a server corresponding to the download address.
8. The method according to claim 2, further comprising: include: Based on an encryption algorithm, the download uniform resource locator URL of the software update resource is encrypted to generate the address information; wherein the device uses a decryption algorithm corresponding to the encryption algorithm to decrypt the address information to obtain the download URL.
9. The method of claim 1, in, The determining, according to the first target version information and the first current version information, the first software to be updated as the second software comprises: When it is determined that the first target version information has passed the review and is different from the first current version information, it is determined that the corresponding first software needs to be updated.
10. The method according to claim 9, in, The updating or marking of the second current version information of the second software according to the update result of the second software includes: When the update result is that the update is successful, the second current version information is replaced with the second target version information; When the update result is update failure, the second current version information is marked as update failure.
11. The method according to any one of claims 1 to 10, in, The device includes a device in a container cluster management system.
12. A software updating device, include: A version acquisition module, used to determine first target version information and first current version information of first software installed in the device according to the correspondence between the software version information and the device; An update determination module, used to determine the first software to be updated as the second software according to the first target version information and the first current version information of the first software; An update processing module, used for performing update processing on the second software based on the second target version information of the second software; An information updating module is used to update or mark the second current version information of the second target version information according to the update result of the second software.
13. A software updating device, include: Memory; and a processor coupled to the memory, wherein the processor is configured to execute the method according to any one of claims 1 to 11 based on instructions stored in the memory. 14 . A computer-readable storage medium storing computer instructions, wherein the instructions are executed by a processor to execute the method according to claim 1 .
15. A computer program product, wherein the computer program product stores computer instructions, wherein the instructions are executed by a processor to perform the method according to any one of claims 1 to 11.
