集群固件组合升级方法、系统、终端及存储介质
By resolving and monitoring firmware version compatibility in the cluster server, the compatibility issues between BMC firmware and BIOS firmware were resolved, ensuring the normal operation and upgrade efficiency of the cluster server.
Patent Information
- Application Number
- CN202310833650.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-07
AI Technical Summary
In clustered servers, compatibility issues between BMC firmware and BIOS firmware lead to resource waste and upgrade failures, affecting the normal operation of the server.
By analyzing the firmware version compatibility requirements of the target node, the firmware version of the chip is determined and upgraded to ensure compatibility. An automatic installation script is used to install the firmware file, and compatibility monitoring and tagging management are performed during the upgrade process.
It enables compatibility checks for batch firmware upgrades in a cluster, ensuring all nodes operate normally, improving upgrade efficiency and reducing resource waste.
Smart Images

Figure CN116880872B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of server technology, specifically relating to a cluster firmware combination upgrade method, system, terminal, and storage medium. Background Technology
[0002] Currently, some server manufacturers may release firmware for different chips in combination. For example, when releasing BMC and BIOS firmware, one BMC firmware may be released for each corresponding BIOS firmware. This creates compatibility requirements between the firmware of these two types of chips; if the firmware versions are incompatible, the chip will not function properly.
[0003] In a cluster server scenario, upgrading the BMC firmware of multiple servers together can lead to resource waste. Furthermore, combining multiple different versions of the BMC and BIOS firmware may result in firmware upgrade failures or inability to function properly after the upgrade. Summary of the Invention
[0004] To address the problem of chip malfunctions in some servers caused by incompatibility after batch firmware upgrades in existing technologies, this invention provides a method, system, terminal, and storage medium for combined firmware upgrades to solve the aforementioned technical problems.
[0005] In a first aspect, the present invention provides a method for cluster firmware combination upgrade, comprising:
[0006] The target node address and the target firmware version of the first chip in the target node that needs firmware upgrade are parsed from the generated firmware upgrade task.
[0007] The firmware version of the second chip is obtained from the target node based on the target node address. The second chip and the first chip have firmware version compatibility requirements.
[0008] Determine whether the firmware version of the second chip is compatible with the target firmware version:
[0009] If so, upgrade the firmware of the first chip of the target node to the target firmware version;
[0010] If not, the firmware of the second chip of the target node is upgraded to a compatible version, which is compatible with the target firmware version.
[0011] In an optional implementation, before resolving the target node address and the target firmware version of the first chip in the target node that needs firmware upgrade from the generated firmware upgrade task, the method further includes:
[0012] Receive vulnerability remediation tasks and parse the vulnerability types;
[0013] Configure the first chip and the target firmware version of the first chip to fix the corresponding type of vulnerability;
[0014] Get the current firmware version of the first chip on all nodes in the cluster;
[0015] Nodes whose existing firmware version of the first chip is inconsistent with the target firmware version are selected as target nodes;
[0016] Generate a firmware upgrade task that upgrades the first chip firmware version of the target node to the target firmware version.
[0017] In one optional implementation, the firmware version of the second chip is obtained from the target node based on the target node address. The second chip and the first chip have firmware version compatibility requirements, including:
[0018] Pre-configure the chip combination based on the firmware version compatibility requirements between chips;
[0019] Based on the demand relationship, find the second chip that is in the same chip combination as the first chip;
[0020] A request to obtain the second chip firmware version is sent to the target node based on the target node address.
[0021] In an optional implementation, determining whether the firmware version of the second chip is compatible with the target firmware version includes:
[0022] Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions;
[0023] Determine whether the compatible version set includes the firmware version of the second chip:
[0024] If so, the firmware version of the second chip is determined to be compatible with the target firmware version, and a compatibility flag is generated for the first and second chips of the target node.
[0025] If not, the firmware version of the second chip is determined to be incompatible with the target firmware version, and an incompatibility flag is generated for the first and second chips of the target node.
[0026] In an optional implementation, upgrading the firmware of the first chip of the target node to the target firmware version includes:
[0027] Send the firmware file and automatic installation script for the target firmware version to the target node;
[0028] The automatic installation script installs the firmware file after the target node detects the compatibility flag.
[0029] In an optional implementation, the firmware of the second chip of the target node is upgraded to a compatible version, including:
[0030] Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions;
[0031] The latest firmware version is selected as the target version from the set of compatible versions;
[0032] The firmware file and automatic installation script of the target version are sent to the target node to upgrade the firmware version of the second object on the target node to the target version.
[0033] In an optional implementation, after upgrading the firmware of the first chip of the target node to the target firmware version, the method further includes:
[0034] Collect the system logs of the target node, and filter out the target logs that record the working status of the first chip from the system logs;
[0035] Using keyword search technology, error logs are retrieved from the target log. The error logs include records of first chip inactivation, multiple reboots, startup failures, and operational alarms.
[0036] If an error log is found in the target log, it is determined that the current firmware version of the first chip is incompatible with the current firmware version of the second chip, and the current firmware version of the second chip is upgraded to a version compatible with the current firmware version of the first chip.
[0037] If no error log is found in the target log, the current firmware version of the first chip and the current firmware version of the second chip are marked as compatible, and the marked content is saved to the compatibility database.
[0038] Secondly, the present invention provides a cluster firmware combination upgrade system, comprising:
[0039] The task parsing module is used to parse the target node address and the target firmware version of the first chip in the target node that needs to be upgraded from the generated firmware upgrade task.
[0040] The data acquisition module is used to obtain the firmware version of the second chip from the target node based on the target node address. The second chip and the first chip have firmware version compatibility requirements.
[0041] A compatibility determination module is used to determine whether the firmware version of the second chip is compatible with the target firmware version;
[0042] The first upgrade module is used to upgrade the firmware of the first chip of the target node to the target firmware version if the firmware version of the second chip is compatible with the target firmware version.
[0043] The second upgrade module is used to upgrade the firmware of the second chip of the target node to a compatible version if the firmware version of the second chip is incompatible with the target firmware version.
[0044] In an optional implementation, the system further includes:
[0045] The vulnerability parsing module is used to receive vulnerability remediation tasks and parse the vulnerability type.
[0046] The target configuration module is used to configure the first chip for fixing the corresponding type of vulnerability and the target firmware version of the first chip;
[0047] The version acquisition module is used to obtain the existing firmware version of the first chip on all nodes in the cluster;
[0048] The target filtering module is used to filter out nodes whose existing firmware version of the first chip is inconsistent with the target firmware version as target nodes;
[0049] The task generation module is used to generate firmware upgrade tasks that upgrade the first chip firmware version of the target node to the target firmware version.
[0050] In one optional implementation, the data acquisition module includes:
[0051] A combination setting unit is used to pre-set chip combinations based on the compatibility requirements of firmware versions between chips.
[0052] Based on the demand relationship, find the second chip that is in the same chip combination as the first chip;
[0053] A request to obtain the second chip firmware version is sent to the target node based on the target node address.
[0054] In one optional implementation, the compatibility determination module includes:
[0055] A compatibility query unit is used to retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions.
[0056] The version determination unit is used to determine whether the adaptation version set includes the firmware version of the second chip;
[0057] The first marking unit is used to determine that the firmware version of the second chip is compatible with the target firmware version if the adaptation version set includes the firmware version of the second chip, and to generate a compatibility mark for the first chip and the second chip of the target node.
[0058] The second marking unit is used to determine that the firmware version of the second chip is incompatible with the target firmware version if the adaptation version set does not include the firmware version of the second chip, and to generate an incompatibility mark for the first chip and the second chip of the target node.
[0059] In one optional implementation, the first upgrade module includes:
[0060] The file distribution unit is used to distribute the firmware file and automatic installation script of the target firmware version to the target node.
[0061] The file installation unit is used by the automatic installation script to install the firmware file after the target node detects the compatibility flag.
[0062] In one optional implementation, the second upgrade module includes:
[0063] Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions;
[0064] The latest firmware version is selected as the target version from the set of compatible versions;
[0065] The firmware file and automatic installation script of the target version are sent to the target node to upgrade the firmware version of the second object on the target node to the target version.
[0066] In an optional implementation, the system further includes:
[0067] The log collection module is used to collect the system logs of the target node and filter out the target logs that record the working status of the first chip from the system logs;
[0068] The error query module is used to query error logs from the target log using keyword query technology. The error logs include records of first chip inactivation, multiple restart records, startup failure records, and operation alarm records.
[0069] An error handling module is used to determine that the current firmware version of the first chip is incompatible with the current firmware version of the second chip if an error log exists in the target log, and to upgrade the current firmware version of the second chip to a version compatible with the current firmware version of the first chip.
[0070] The compatibility logging module is used to mark the current firmware version of the first chip and the current firmware version of the second chip as compatible if there is no error log in the target log, and save the marked content to the compatibility database.
[0071] Thirdly, a terminal is provided, including:
[0072] Processor, memory, among which,
[0073] This memory is used to store computer programs.
[0074] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.
[0075] Fourthly, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.
[0076] The beneficial effects of this invention are that the cluster firmware combination upgrade method, system, terminal, and storage medium provided by this invention perform firmware version compatibility judgment on the chips that need firmware upgrades. Specifically, for chips with firmware version compatibility requirements, it is necessary to pre-judge the compatibility between the target firmware version of the target chip and the firmware versions of related chips, and then adopt the corresponding upgrade strategy to perform the firmware upgrade based on the judgment result. This invention considers the firmware version compatibility between chips, ensuring that the upgrade process is not interrupted by compatibility issues during batch firmware upgrades in a cluster, and that all nodes operate normally after the upgrade.
[0077] This invention prioritizes searching for compatible firmware versions of the target firmware version of the upgrade object, and then uses the search results as a comparison standard to determine the compatibility of the firmware versions of the upgrade object's compatibility requirements. This allows for a quick prediction of whether the two are compatible. The entire process can be performed simultaneously on multiple nodes in the cluster, improving upgrade efficiency.
[0078] When the firmware version of the object requiring compatibility for the upgrade is found to be incompatible with the target firmware version of the object to be upgraded, the present invention searches for the latest compatible version for the object requiring compatibility in the compatibility database, upgrades it first, and then performs the firmware upgrade on the object to be upgraded, thereby ensuring the success of the entire upgrade process.
[0079] This invention performs a compatibility assessment and generates a corresponding marker based on the assessment result. The action of detecting the marker is then configured in the firmware's automatic installation script, thereby ensuring that upgrades are triggered only after the compatibility assessment has been passed.
[0080] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description
[0081] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0082] Figure 1 This is a schematic flowchart of a method according to an embodiment of the present invention.
[0083] Figure 2 This is a flowchart illustrating the construction process of a compatible database according to an embodiment of the present invention.
[0084] Figure 3 This is a schematic block diagram of a system according to an embodiment of the present invention.
[0085] Figure 4 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation
[0086] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0087] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0088] The key terms used in this invention will be explained below.
[0089] The Baseboard Controller (BMC) is a dedicated controller for monitoring and managing servers. The vast majority of servers deployed globally are equipped with a BMC chip for status monitoring and remote management. The BMC can communicate with the server, controlling operations such as power-on / off and host virtualization. Therefore, inherent security vulnerabilities within servers primarily stem from the BIOS and BMC. Different server manufacturers develop their own BMC firmware to provide customer service, create business opportunities, and generate economic benefits.
[0090] The BMC (Browser Control Center) can essentially be understood as an independent management system for the server. It can be remotely managed and monitored via a network connection, providing administrators with convenient management functions. The main function of the BIOS is to initialize and detect system hardware and boot the operating system. The BMC and BIOS are closely related in a server, and their synergy makes server hardware management more efficient, automated, and secure.
[0091] Servers have complex internal hardware structures, and some chip firmware versions have compatibility requirements. For example, server manufacturers often release BMC and BIOS firmware in combination, with one BMC firmware version corresponding to one BIOS firmware version. When upgrading server firmware, the appropriate BMC and BIOS firmware versions are often chosen based on the recommended BIOS combination version in the BMC firmware release notes, and the BMC firmware and BIOS firmware are upgraded separately. When users only want to upgrade the BMC firmware, such as the 2023 BMC firmware and the 2020 BIOS firmware, there may be issues with incompatible functions or malfunctions, leading to BMC firmware upgrade failure.
[0092] In cluster server scenarios, upgrading the BMC firmware of multiple servers together can lead to resource waste, as can the combination of multiple different versions of BMC and BIOS firmware, potentially resulting in firmware upgrade failures and compatibility issues. This invention proposes a method for server firmware combination upgrades. By recording the firmware flashing combination values within the cluster and refreshing the correspondence between BMC and BIOS firmware, the efficiency of batch BMC firmware upgrades in cluster scenarios can be improved.
[0093] The cluster firmware combination upgrade method provided in this embodiment of the invention is executed by a computer device, and correspondingly, the cluster firmware combination upgrade system runs on the computer device.
[0094] Figure 1 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 1 The executing entity can be a cluster firmware combination upgrade system. Depending on different requirements, the order of the steps in this flowchart can be changed, and some can be omitted.
[0095] like Figure 1 As shown, the method includes:
[0096] Step 110: Parse the target node address and the target firmware version of the first chip in the target node that needs firmware upgrade from the generated firmware upgrade task;
[0097] Step 120: Obtain the firmware version of the second chip from the target node based on the target node address. The second chip and the first chip have a firmware version compatibility requirement.
[0098] Step 130: Determine whether the firmware version of the second chip is compatible with the target firmware version.
[0099] Step 140: If yes, upgrade the firmware of the first chip of the target node to the target firmware version.
[0100] Step 150: If not, upgrade the firmware of the second chip of the target node to a compatible version, which is compatible with the target firmware version.
[0101] To facilitate understanding of the present invention, the following description further illustrates the cluster firmware combination upgrade method provided by the present invention, based on the principle of the cluster firmware combination upgrade method and the process of performing combination upgrades on the cluster firmware in the embodiments.
[0102] Specifically, taking the example of the first chip being a BMC chip and the second chip being a BIOS chip, the cluster firmware combination upgrade method includes:
[0103] S1. Parse the target node address and the target firmware version of the first chip in the target node that needs firmware upgrade from the generated firmware upgrade task.
[0104] Receive vulnerability remediation tasks and parse vulnerability types; configure the first chip and target firmware version of the first chip to remediate the corresponding vulnerability type; obtain the existing firmware versions of the first chips of all nodes in the cluster; filter out nodes whose existing firmware versions of the first chips are inconsistent with the target firmware version as target nodes; generate a firmware upgrade task to upgrade the firmware version of the first chip of the target nodes to the target firmware version.
[0105] For example, if a user wants to patch the CVE-2022-1111 security vulnerability, they log into the BMC firmware vulnerability management system and configure the patching of the BMC firmware for all servers in the cluster affected by CVE-2022-1111. Upon receiving this instruction, the system verifies all BMC devices managed by the system that are affected by the CVE-2022-1111 vulnerability and outputs the address sequence for which BMC firmware needs to be pushed. The system then pushes the CVE-2022-1111 vulnerability-affected BMC firmware version to the servers with the vulnerability to be patched according to the queue. The system firmware library and version rule library analyze the data to prove that version XX and above are not affected by this CVE vulnerability. Based on the system configuration, the system upgrades to version XX (upgrading to a specific version or the latest version can be selected as needed).
[0106] S2. Obtain the firmware version of the second chip from the target node based on the target node address. The second chip and the first chip have firmware version compatibility requirements.
[0107] Chip combinations are pre-configured based on the firmware version compatibility requirements between chips; a second chip in the same chip combination as the first chip is located based on the required relationship; and a request to obtain the firmware version of the second chip is sent to the target node based on the target node address.
[0108] One method for pre-setting chip combinations based on firmware version compatibility requirements between chips includes: collecting information on firmware versions released by manufacturers in combination; for example, if BMC and BIOS firmware versions are released in combination, then BMC and BIOS are considered to have compatibility requirements, and they are set as a chip combination. Subsequently, when updating the BMC firmware, the BIOS firmware information of the server sequence to be upgraded is first obtained using the IPMI protocol.
[0109] S3. Determine whether the firmware version of the second chip is compatible with the target firmware version.
[0110] Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions; determine whether the set of compatible versions includes the firmware version of the second chip: if yes, determine that the firmware version of the second chip is compatible with the target firmware version and generate a compatibility flag for the first chip and the second chip of the target node; if no, determine that the firmware version of the second chip is incompatible with the target firmware version and generate an incompatibility flag for the first chip and the second chip of the target node.
[0111] The compatibility database stores firmware version compatibility relationships between chipsets. For example, firmware version XXX.A of the BMC is compatible with firmware versions CCC.A and CCC.B of the BIOS, and firmware version XXX.B of the BMC is compatible with firmware version CCC.F of the BIOS. If the firmware version of the BMC needs to be upgraded to XXX.A, the database is consulted to find that the compatible versions of the BIOS are CCC.A and CCC.B. If the actual firmware version of the BIOS is CCC.F, then incompatibility is determined and an incompatibility flag is generated. If the actual firmware version of the BIOS is CCC.A, then compatibility is determined and a compatibility flag is generated on the target node to which the BMC belongs.
[0112] S4. If the two are compatible, upgrade the firmware of the first chip of the target node to the target firmware version.
[0113] The firmware file for the target firmware version and the automatic installation script are sent to the target node; the automatic installation script installs the firmware file after the target node detects the compatibility flag.
[0114] Specifically, the firmware file and automatic installation script are sent to the target node. The automatic installation script runs on the target node, reading the compatibility markers of the first and second chips according to the pre-configured marker path. If the reading is successful, the installation of the firmware file continues. If the reading fails, the firmware upgrade is exited, and a firmware upgrade failure message is reported.
[0115] S5. If the two are incompatible, upgrade the firmware of the second chip of the target node to a compatible version, wherein the compatible version is compatible with the target firmware version.
[0116] Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions; select the latest firmware version from the set of compatible versions as the target version; send the firmware file of the target version and the automatic installation script to the target node to upgrade the firmware version of the second object on the target node to the target version.
[0117] Specifically, if it is determined that the target server's BIOS firmware version is incompatible with version XX, the BIOS firmware update push function is triggered to perform a server combined firmware flash. The BIOS firmware update is performed first, and then the BMC firmware is pushed after the BIOS update is complete. If it cannot be determined whether the server can be upgraded successfully, the upgrade tracking mechanism is triggered to perform a BMC firmware upgrade, and the conclusion of whether the upgrade was successful or not is updated.
[0118] S6. Monitor compatibility during actual operation and feed the monitoring results back to the compatibility database, such as... Figure 2 As shown.
[0119] After upgrading the firmware of the first chip of the target node to the target firmware version, the system logs of the target node are collected, and the target logs recording the working status of the first chip are filtered out from the system logs. Error logs are queried from the target logs using keyword query technology. The error logs include records of the first chip becoming inactive, records of multiple restarts, records of startup failures, and records of running alarms. If error logs exist in the target logs, it is determined that the current firmware version of the first chip is incompatible with the current firmware version of the second chip, and the current firmware version of the second chip is upgraded to a version compatible with the current firmware version of the first chip. If no error logs exist in the target logs, the current firmware versions of the first chip and the current firmware versions of the second chip are marked as compatible, and the marked content is saved to the compatibility database.
[0120] Specifically, a marking mechanism is provided. When the system actively pushes and updates the firmware of a server's BMC within the local area network, it checks for abnormalities on the server within a certain period. If the BMC exhibits problems such as inactivity, continuous restarts, or inability to boot, or if alarm information is detected on the server via syslog, a BMC and BIOS combination value indicating abnormal server upgrade behavior is created within the system and marked as incompatible. A higher version of the target server's BIOS firmware is then pushed to the target server. After the BIOS firmware upgrade is successful, the target version of the BMC firmware is pushed. Conversely, if the system successfully pushes and flashes the BMC firmware, a compatibility flag is set for the BMC and the system's existing BIOS version information.
[0121] Before firmware upgrades, a compatibility check is performed. When firmware updates are triggered on other servers within the cluster, the flags for the BMC and BIOS combination values are checked beforehand. If a compatible flag is found, the update is performed directly. If an incompatible flag is found, a BIOS firmware with a compatible flag for the target BMC firmware version is searched for and upgraded. Then, the BMC firmware of that server is upgraded. If the BMC firmware and BIOS firmware combination is not flagged, a BMC upgrade is performed, triggering a flagging mechanism, and the target BMC firmware and BIOS firmware combination values are recorded. If a target BMC firmware version has a one-to-many BMC-BIOS relationship in the BMC firmware and BIOS firmware combination table, different strategies can be used to select whether to push an upgrade to a higher or lower version of the BIOS firmware.
[0122] With a sufficient number of clusters and an increasing number of upgrades, a combined BMC and BIOS upgrade library is developed. Based on this library, the combined BMC and BIOS upgrade mechanism for firmware pushes can be covered. That is, any target version of BMC firmware can be selected to flash the BMC firmware on the target server. If there is a conflict between BMC firmware and BIOS firmware, a solution for flashing BMC firmware and BIOS firmware in combination is provided.
[0123] In some embodiments, the cluster firmware combination upgrade system 300 may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the cluster firmware combination upgrade system 300 may be stored in the memory of a computer device and executed by at least one processor to perform (see details). Figure 1 (Description) Functionality of cluster firmware combination upgrade.
[0124] In this embodiment, the cluster firmware combination upgrade system 300 can be divided into multiple functional modules according to the functions it performs, such as... Figure 3As shown. The functional modules may include: a task parsing module 310, a data acquisition module 320, a compatibility judgment module 330, a first upgrade module 340, and a second upgrade module 350. The module referred to in this invention is a series of computer program segments that can be executed by at least one processor and perform a fixed function, and are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0125] The task parsing module 310 is used to parse the target node address and the target firmware version of the first chip in the target node that needs to be upgraded from the generated firmware upgrade task.
[0126] The data acquisition module 320 is used to obtain the firmware version of the second chip from the target node based on the target node address. The second chip and the first chip have firmware version compatibility requirements.
[0127] The compatibility determination module 330 is used to determine whether the firmware version of the second chip is compatible with the target firmware version;
[0128] The first upgrade module 340 is used to upgrade the firmware of the first chip of the target node to the target firmware version if the firmware version of the second chip is compatible with the target firmware version.
[0129] The second upgrade module 350 is used to upgrade the firmware of the second chip of the target node to a compatible version if the firmware version of the second chip is incompatible with the target firmware version.
[0130] Optionally, as an embodiment of the present invention, the system further includes:
[0131] The vulnerability parsing module is used to receive vulnerability remediation tasks and parse the vulnerability type.
[0132] The target configuration module is used to configure the first chip for fixing the corresponding type of vulnerability and the target firmware version of the first chip;
[0133] The version acquisition module is used to obtain the existing firmware version of the first chip on all nodes in the cluster;
[0134] The target filtering module is used to filter out nodes whose existing firmware version of the first chip is inconsistent with the target firmware version as target nodes;
[0135] The task generation module is used to generate firmware upgrade tasks that upgrade the first chip firmware version of the target node to the target firmware version.
[0136] Optionally, as an embodiment of the present invention, the data acquisition module includes:
[0137] A combination setting unit is used to pre-set chip combinations based on the compatibility requirements of firmware versions between chips.
[0138] Based on the demand relationship, find the second chip that is in the same chip combination as the first chip;
[0139] A request to obtain the second chip firmware version is sent to the target node based on the target node address.
[0140] Optionally, as an embodiment of the present invention, the compatibility determination module includes:
[0141] A compatibility query unit is used to retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions.
[0142] The version determination unit is used to determine whether the adaptation version set includes the firmware version of the second chip;
[0143] The first marking unit is used to determine that the firmware version of the second chip is compatible with the target firmware version if the adaptation version set includes the firmware version of the second chip, and to generate a compatibility mark for the first chip and the second chip of the target node.
[0144] The second marking unit is used to determine that the firmware version of the second chip is incompatible with the target firmware version if the adaptation version set does not include the firmware version of the second chip, and to generate an incompatibility mark for the first chip and the second chip of the target node.
[0145] Optionally, as an embodiment of the present invention, the first upgrade module includes:
[0146] The file distribution unit is used to distribute the firmware file and automatic installation script of the target firmware version to the target node.
[0147] The file installation unit is used by the automatic installation script to install the firmware file after the target node detects the compatibility flag.
[0148] Optionally, as an embodiment of the present invention, the second upgrade module includes:
[0149] Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions;
[0150] The latest firmware version is selected as the target version from the set of compatible versions;
[0151] The firmware file and automatic installation script of the target version are sent to the target node to upgrade the firmware version of the second object on the target node to the target version.
[0152] Optionally, as an embodiment of the present invention, the system further includes:
[0153] The log collection module is used to collect the system logs of the target node and filter out the target logs that record the working status of the first chip from the system logs;
[0154] The error query module is used to query error logs from the target log using keyword query technology. The error logs include records of first chip inactivation, multiple restart records, startup failure records, and operation alarm records.
[0155] An error handling module is used to determine that the current firmware version of the first chip is incompatible with the current firmware version of the second chip if an error log exists in the target log, and to upgrade the current firmware version of the second chip to a version compatible with the current firmware version of the first chip.
[0156] The compatibility logging module is used to mark the current firmware version of the first chip and the current firmware version of the second chip as compatible if there is no error log in the target log, and save the marked content to the compatibility database.
[0157] Figure 4 This is a schematic diagram of the structure of a terminal 400 provided in an embodiment of the present invention. The terminal 400 can be used to execute the cluster firmware combination upgrade method provided in the embodiment of the present invention.
[0158] The terminal 400 may include a processor 410, a memory 420, and a communication module 430. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figure does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0159] The memory 420 can be used to store the execution instructions of the processor 410. The memory 420 can be implemented by any type of volatile or non-volatile memory terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 420 are executed by the processor 410, the terminal 400 is able to perform some or all of the steps in the above method embodiments.
[0160] The processor 410 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 420, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 410 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.
[0161] The communication module 430 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It receives user data sent by other terminals or sends user data to other terminals.
[0162] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0163] Therefore, this invention performs firmware version compatibility checks on chips requiring firmware upgrades. Specifically, for chips with firmware version compatibility requirements, the compatibility of the target firmware version of the target chip with the firmware versions of associated chips is pre-judged. Then, based on the judgment result, a corresponding upgrade strategy is adopted for firmware upgrade. This invention considers firmware version compatibility between chips, ensuring that the upgrade process is not interrupted by compatibility issues during batch firmware upgrades in a cluster, and that all nodes operate normally after the upgrade. The technical effects achieved by this embodiment can be found in the description above, and will not be repeated here.
[0164] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0165] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
[0166] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or modules may be electrical, mechanical, or other forms.
[0167] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0168] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
[0169] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.
Claims
1. A method for cluster firmware combination upgrade, characterized in that, include: The target node address and the target firmware version of the first chip in the target node that needs firmware upgrade are parsed from the generated firmware upgrade task. The firmware version of the second chip is obtained from the target node based on the target node address. The second chip and the first chip have a firmware version compatibility requirement relationship. This includes: collecting information on the combined release of firmware versions by manufacturers, setting the combined release chips as the same chip combination to establish the compatibility requirement relationship, and sending an acquisition request to the target node through the IPMI protocol based on the target node address to obtain the firmware version of the second chip from the target node. Determining whether the firmware version of the second chip is compatible with the target firmware version includes: obtaining all firmware versions of the second chip that are compatible with the target firmware version from the compatibility database and saving them as a set of compatible versions; determining whether the set of compatible versions includes the firmware version of the second chip; if so, generating a compatibility flag for the first chip and the second chip of the target node; otherwise, generating an incompatibility flag. If so, the firmware of the first chip of the target node is upgraded to the target firmware version, including: sending the firmware file of the target firmware version and the automatic installation script to the target node, and the automatic installation script reads the compatibility mark on the target node according to the pre-configured mark path. If the reading is successful, the firmware file is installed. If not, the firmware of the second chip of the target node is upgraded to a compatible version, which is compatible with the target firmware version. This includes: selecting the latest firmware version from the set of compatible versions as the compatible version, and sending the firmware file of the compatible version and the automatic installation script to the target node to upgrade the second chip to the compatible version.
2. The method according to claim 1, characterized in that, Before resolving the target node address and the target firmware version of the first chip in the target node that needs firmware upgrade from the generated firmware upgrade task, the method further includes: Receive vulnerability remediation tasks and parse the vulnerability types; Configure the first chip and the target firmware version of the first chip to fix the corresponding type of vulnerability; Get the current firmware version of the first chip on all nodes in the cluster; Nodes whose existing firmware version of the first chip is inconsistent with the target firmware version are selected as target nodes; Generate a firmware upgrade task that upgrades the first chip firmware version of the target node to the target firmware version.
3. The method according to claim 1, characterized in that, The firmware version of the second chip is obtained from the target node based on the target node address. The second chip and the first chip have firmware version compatibility requirements, including: Pre-configure the chip combination based on the firmware version compatibility requirements between chips; Based on the demand relationship, find the second chip that is in the same chip combination as the first chip; A request to obtain the second chip firmware version is sent to the target node based on the target node address.
4. The method according to claim 1, characterized in that, Determining whether the firmware version of the second chip is compatible with the target firmware version includes: Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions; Determine whether the compatible version set includes the firmware version of the second chip: If so, the firmware version of the second chip is determined to be compatible with the target firmware version, and a compatibility flag is generated for the first and second chips of the target node. If not, the firmware version of the second chip is determined to be incompatible with the target firmware version, and an incompatibility flag is generated for the first and second chips of the target node.
5. The method according to claim 4, characterized in that, Upgrade the firmware of the first chip of the target node to the target firmware version, including: Send the firmware file and automatic installation script for the target firmware version to the target node; The automatic installation script installs the firmware file after the target node detects the compatibility flag.
6. The method according to claim 1, characterized in that, Upgrade the firmware of the second chip in the target node to a compatible version, including: Retrieve all firmware versions of the second object that are compatible with the target firmware version from the compatibility database and save them as a set of compatible versions; The latest firmware version is selected as the target version from the set of compatible versions; The firmware file and automatic installation script of the target version are sent to the target node to upgrade the firmware version of the second object on the target node to the target version.
7. The method according to claim 1 or 4, characterized in that, After upgrading the firmware of the first chip of the target node to the target firmware version, the method further includes: Collect the system logs of the target node, and filter out the target logs that record the working status of the first chip from the system logs; Using keyword search technology, error logs are retrieved from the target log. The error logs include records of first chip inactivation, multiple reboots, startup failures, and operational alarms. If an error log is found in the target log, it is determined that the current firmware version of the first chip is incompatible with the current firmware version of the second chip, and the current firmware version of the second chip is upgraded to a version compatible with the current firmware version of the first chip. If no error log is found in the target log, the current firmware version of the first chip and the current firmware version of the second chip are marked as compatible, and the marked content is saved to the compatibility database.
8. A cluster firmware combination upgrade system, characterized in that, include: The task parsing module is used to parse the target node address and the target firmware version of the first chip in the target node that needs to be upgraded from the generated firmware upgrade task. The data acquisition module is used to obtain the firmware version of the second chip from the target node based on the target node address. The second chip and the first chip have a firmware version compatibility requirement relationship. The module includes: collecting information on the combined release of firmware versions by manufacturers, setting the combined release chips as the same chip combination to establish the compatibility requirement relationship, and sending an acquisition request to the target node through the IPMI protocol based on the target node address to obtain the firmware version of the second chip from the target node. The compatibility determination module is used to determine whether the firmware version of the second chip is compatible with the target firmware version. The module includes: obtaining all firmware versions of the second chip that are compatible with the target firmware version from the compatibility database and saving them as a set of compatible versions; determining whether the set of compatible versions includes the firmware version of the second chip; if so, generating a compatibility flag for the first chip and the second chip of the target node; otherwise, generating an incompatibility flag. The first upgrade module is used to upgrade the firmware of the first chip of the target node to the target firmware version if the firmware version of the second chip is compatible with the target firmware version. The upgrade module includes: sending the firmware file of the target firmware version and the automatic installation script to the target node; the automatic installation script reads the compatibility mark on the target node according to the pre-configured mark path; if the reading is successful, the firmware file is installed. The second upgrade module is used to upgrade the firmware of the second chip on the target node to a compatible version if the firmware version of the second chip is incompatible with the target firmware version. The compatible version is compatible with the target firmware version. The upgrade module includes: selecting the latest firmware version from the set of compatible versions as the compatible version, and sending the firmware file of the compatible version and the automatic installation script to the target node to upgrade the second chip to the compatible version.
9. A terminal, characterized in that, include: Memory, used to store cluster firmware combination upgrade programs; A processor is configured to implement the cluster firmware combination upgrade method as described in any one of claims 1-7 when executing the cluster firmware combination upgrade program.
10. A computer-readable storage medium, characterized in that, The readable storage medium stores a cluster firmware combination upgrade program, which, when executed by a processor, implements the cluster firmware combination upgrade method as described in any one of claims 1-7.
Citation Information
Patent Citations
Firmware upgrading method and device, electronic equipment and storage medium
CN116126380A
Data transmission method and apparatus, terminal and storage medium
WO2019174307A1
