WO2023143542A1 - 分布式系统软件版本升级方法及装置 - Google Patents

分布式系统软件版本升级方法及装置 Download PDF

Info

Publication number
WO2023143542A1
WO2023143542A1 PCT/CN2023/073624 CN2023073624W WO2023143542A1 WO 2023143542 A1 WO2023143542 A1 WO 2023143542A1 CN 2023073624 W CN2023073624 W CN 2023073624W WO 2023143542 A1 WO2023143542 A1 WO 2023143542A1
Authority
WO
WIPO (PCT)
Prior art keywords
installation package
upgraded
upgrade
distributed system
path
Prior art date
Application number
PCT/CN2023/073624
Other languages
English (en)
French (fr)
Inventor
王开义
Original Assignee
锐捷网络股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 锐捷网络股份有限公司 filed Critical 锐捷网络股份有限公司
Publication of WO2023143542A1 publication Critical patent/WO2023143542A1/zh
Priority to US18/502,213 priority Critical patent/US20240078106A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the present application relates to the technical field of communications, and in particular to a method and device for upgrading a distributed system software version.
  • the management server is used to provide the upgrade installation package required for the distributed base station to upgrade the software version.
  • the management server manages multiple distributed base stations in a certain area or even a certain city.
  • the management server and each distributed base station are connected through the public network. connect.
  • each device contained in each distributed base station managed by the management server is usually deployed as a device with the same or similar hardware type.
  • a general version upgrade installation package can be configured on the management server.
  • the package includes the upgrade installation package required for the upgrade of all distributed base stations managed by the management server.
  • the management server sends a download task to each distributed base station managed by the management server. After receiving the download task, each distributed base station downloads the general version upgrade installation package. upgrade.
  • the distributed base station managed by the management server no longer contains the same or similar hardware types. If the above general Version upgrade installation package, since the above version upgrade installation package includes all upgrade installation packages that are deployed in the management server and are used to upgrade the software version of multiple distributed base stations, then the upgrade installation package contained in the version upgrade installation package The number may be significantly more than the number of upgrade installation packages required by some distributed base stations, which will lead to distributed The data volume of the above version upgrade installation package downloaded by the base station is too large, and the storage space required by the distributed base station to store the above version upgrade installation package is too large.
  • the distributed base station usually saves the version upgrade installation package corresponding to each download task. In this way, if an upgrade abnormality occurs during the software version upgrade based on this download task or a certain device runs abnormally after the upgrade, the distributed base station Usually, the base station version rollback operation needs to be performed based on the version upgrade installation package corresponding to the previous download task adjacent to the current download task. Since the version upgrade installation package corresponding to each download task includes the upgrade installation package required for all distributed base station upgrades managed by the management server, the data volume of each version upgrade installation package is very large, which causes the distributed base station to store The version upgrade installation package corresponding to the task requires more storage space, which seriously affects the normal operation of the distributed base station.
  • the purpose of this application is to provide a distributed system software version upgrade method and device, which are used to solve the problem of too much data in the version upgrade installation package downloaded by the distributed base station in the prior art.
  • a method for upgrading a distributed system is applied to a master control device included in a distributed system to be upgraded, and the distributed system to be upgraded further includes at least one controlled device, and the method includes:
  • the download task includes a download path of the upgrade installation package of the distributed system to be upgraded, and the download task is obtained based on the system version description information of the distributed system to be upgraded;
  • the management server downloading a first upgrade installation package corresponding to the download path from the management server, the first upgrade installation package including upgrade installation files required by the device to be upgraded in the distributed system to be upgraded;
  • each upgrade installation package includes all the upgrade installation files required by the equipment to be upgraded in the adapted distributed system to be upgraded, and all the upgrade installation files are adapted to the device to be upgraded All the upgrade installation files required by the level equipment. Therefore, the upgrade installation package used by any device to be upgraded contained in the distributed system to be upgraded does not contain other redundant installation files.
  • any included device that does not need to be upgraded does not need to download any installation package from the management server, nor will it obtain any installation files associated with the device from the downloaded upgrade installation package;
  • the storage space required for each upgrade installation package can also greatly reduce the amount of data corresponding to each upgrade installation package downloaded from the management server by the main control device included in the distributed system to be upgraded, and the storage space of the management server is certain.
  • the concurrency of downloading each upgrade installation package of the distributed system to be upgraded can also be improved, thereby increasing the download speed and shortening the time-consuming preparation for the upgrade before the upgrade of the distributed system to be upgraded.
  • the download task obtained based on the system version description information of the distributed system to be upgraded includes:
  • each upgrade installation package in the upgrade installation package set corresponds to an adapted Devices to be upgraded in a distributed system.
  • the method before receiving the download task sent by the management server, the method further includes:
  • each upgrade installation package contained in the upgrade installation package set of the management server also has the characteristics of the upgrade installation package corresponding to the above download path, and each download path carried by the download task corresponds to one of the upgrade installation package sets.
  • the storage path of the upgrade installation package in this way, the management server does not need to perform secondary compression and packaging based on the system version description information of at least two distributed systems, which saves the management server’s storage of customized version upgrade installation packages suitable for multiple distributed systems
  • the space also makes the provision of upgrade installation packages more free, making the types of upgrade installation packages provided for different combinations of distributed systems to be upgraded less, making the operation and maintenance work easier and more convenient; further, reducing management
  • the resource consumption of the central processing unit of the server improves the service life of the disk, so that the management server can significantly improve its service performance without increasing hardware storage.
  • the method before upgrading the corresponding device to be upgraded in the distributed system to be upgraded based on the first upgrade installation package, the method further includes:
  • Deletable installation packages in all installation packages corresponding to the second path list file are determined;
  • the latest system installation package version information of the distributed system to be upgraded is generated based on the third path list file.
  • the main control device in the distributed system to be upgraded accurately obtains the deletable installation package based on the upgrade installation package corresponding to the download task, and then, removes the storage path corresponding to the deletable installation package from the second path list file delete, so as to obtain the third path list file, so that the installation packages corresponding to the remaining storage paths in the third path list file will be used; then, based on the third path list file, the distribution to be upgraded can be generated In this way, by storing a third path list file similar to a directory, the latest system installation package version information including the hardware type that each installation package of the distributed system to be upgraded is adapted to is generated , the upgrade operation is performed based on the version information of the latest system installation package, and the upgrade work of the device to be upgraded can be quickly completed.
  • the determining all the security devices corresponding to the second path list file The detachable installation package in the package, including:
  • Candidate installation packages that do not meet the preset conditions are acquired as deletable installation packages.
  • each installation package also includes a configuration file
  • the configuration file describes the installation file contained in the installation package, version information, and the hardware type of the device to which it is adapted. Therefore, based on the second path list file, obtain and By parsing all the corresponding installation packages, you can get the installation package information and the adapted hardware type of each installation package, so as to obtain the deletable installation package.
  • the deletable installation package is another hardware type after upgrading based on the download task. And/or, after the upgrade based on the download task, if it is necessary to perform the system version rollback operation, the installation package is not used by other hardware types.
  • the storage path corresponding to each deletable installation package is deleted from the backup first path list file, which can greatly save the occupation of the main control device included in the distributed system to be upgraded by useless installation packages. storage space.
  • the fourth path list file is stored instead of repeatedly storing the installation package corresponding to the fourth path list file.
  • the storage space occupied by the installation package and the minutes to be upgraded The waste of storage space caused by storing copies of corresponding installation packages on each device in the distributed system; this way, the installation packages that may be used are retained, and the installation packages that will not be used are deleted, which can release useless installation packages on the master device The storage space occupied by the device, thereby improving the utilization rate of the device.
  • the third path list file after obtaining the third path list file, it further includes:
  • deleting the deletable installation package in the storage space of the installation package of the master control device included in the distributed system to be upgraded can release the storage space occupied by useless installation packages in the master control device, thereby improving the utilization rate of the device.
  • the upgrading corresponding devices to be upgraded in the distributed system to be upgraded based on the first upgrade installation package includes:
  • determining whether the device to be upgraded to which the first upgrade installation package is adapted is the main control device based on the version information of the latest system installation package;
  • the upgrade is performed based on the third upgrade installation package in which the device to be upgraded adapted in the first upgrade installation package is the master device.
  • the upgrade operation is usually the behavior of the device itself. Therefore, based on the latest system installation package version information, when it is determined that the device to be upgraded is not the master device, the corresponding upgrade installation package is sent to the corresponding controlled device to complete the software upgrade. Correspondingly, when it is determined that the device to be upgraded is the main control device, the upgrade installation package is used to upgrade itself.
  • the method further includes:
  • the upgrade installation package corresponding to the storage path that is added to the storage path of the second path list file at the latest among the storage paths of the corresponding at least two upgrade installation packages is used as the corresponding upgrade installation package
  • the upgrade installation package for the device is used as the corresponding upgrade installation package.
  • the latest added to the second path list file that is, the latest downloaded upgrade installation package is used as The upgrade installation package used by the device to be upgraded enables the main control device included in the distributed system to be upgraded to accurately complete the work of upgrading the corresponding device to be upgraded.
  • the method further includes:
  • the distributed system to be upgraded is generated based on the fourth path list file. Return the version information of the system installation package;
  • a system version rollback operation is performed on the distributed system to be upgraded based on the rollback system installation package version information.
  • the rollback system installation package version information can be generated based on the obtained fourth path list file, so as to realize fast rollback and reduce the service abnormalities caused by the upgrade process. Loss. Further, by storing the fourth path list file, the waste of storage space caused by repeated storage of installation package copies is also avoided.
  • a method for upgrading a distributed system is applied to a management server connected to at least two distributed systems, the at least two distributed systems respectively include a master device and at least one controlled device, the Methods include:
  • the download task is based on the system
  • the system version description information is obtained including:
  • each upgrade installation package in the upgrade installation package set corresponds to an adapted Devices to be upgraded in a distributed system.
  • the determining the distributed system to be upgraded and the download task based on the system version description information and the upgrade installation package set of the distributed system to be upgraded includes:
  • a download task carrying the download path of each upgrade installation package is generated.
  • an upgrade device for a distributed system is applied to a master control device included in a distributed system to be upgraded, and the distributed system to be upgraded further includes at least one controlled device, and the device includes:
  • the receiving module is configured to receive the download task sent by the management server, the download task includes the download path of the upgrade installation package of the distributed system to be upgraded, and the download task is based on the system version description of the distributed system to be upgraded information obtained;
  • a download module configured to download from the management server a first upgrade installation package corresponding to the download path, where the first upgrade installation package includes upgrade installation files required by the device to be upgraded in the distributed system to be upgraded;
  • An upgrade module configured to upgrade corresponding devices to be upgraded in the distributed system to be upgraded based on the first upgrade installation package.
  • the receiving module before receiving the download task sent by the management server, the receiving module is further configured to:
  • the upgrade module before upgrading the corresponding device to be upgraded in the distributed system to be upgraded based on the first upgrade installation package, is further configured to:
  • Deletable installation packages in all installation packages corresponding to the second path list file are determined;
  • the latest system installation package version information of the distributed system to be upgraded is generated based on the third path list file.
  • the upgrading module is used for:
  • Candidate installation packages that do not meet the preset conditions are acquired as deletable installation packages.
  • the Upgrade modules are also used to:
  • the upgrade module is further used for:
  • the upgrade module is further configured to:
  • the upgrade module is also used for:
  • the corresponding device to be upgraded in the distributed system to be upgraded is upgraded based on the first upgrade installation package, and the upgrade module is used for:
  • determining whether the device to be upgraded to which the first upgrade installation package is adapted is the main control device based on the version information of the latest system installation package;
  • the upgrade is performed based on the third upgrade installation package in which the device to be upgraded adapted in the first upgrade installation package is the master device.
  • the upgrade module is further configured to:
  • the upgrade installation package corresponding to the storage path that is added to the storage path of the second path list file at the latest among the storage paths of the corresponding at least two upgrade installation packages is used as the corresponding upgrade installation package
  • the upgrade installation package for the device is used as the corresponding upgrade installation package.
  • the upgrade module is further configured to:
  • the distributed system to be upgraded is generated based on the fourth path list file. Return the version information of the system installation package;
  • a system version rollback operation is performed on the distributed system to be upgraded based on the rollback system installation package version information.
  • an upgrade device for a distributed system is applied to a management server connected to at least two distributed systems, and the at least two distributed systems respectively include a master device and at least one controlled device, and the Devices include:
  • a sending module configured to send the download task to the main control device included in the distributed system to be upgraded, the download task is obtained based on the system version description information of the distributed system to be upgraded, so that the main control device Downloading a first upgrade installation package corresponding to the download path from the management server, and upgrading a corresponding device to be upgraded in the distributed system to be upgraded based on the downloaded first upgrade installation package.
  • it also includes:
  • the first determination module is used to compare the system version description information of the at least two distributed systems with the upgrade installation package set, and determine the distributed system to be upgraded;
  • the second determination module is used to determine the download task corresponding to the distributed system to be upgraded and carry the download path of each upgrade installation package of the distributed system to be upgraded, each upgrade installation package includes the adapted All upgrade installation files needed to upgrade the devices to be upgraded in the distributed system;
  • the first determining module before comparing the system version description information of the at least two distributed systems with the upgrade installation package set, is further configured to:
  • the second determination module is used for:
  • a download task carrying the download path of each upgrade installation package is generated.
  • an embodiment of the present application provides a network device, where the network device includes a memory and a processor,
  • said memory for storing computer programs or instructions
  • the processor is configured to execute computer programs or instructions in the memory, so that the method described in any one of the above first aspects is performed.
  • an embodiment of the present application provides a server, where the server includes a processor and a memory,
  • said memory for storing computer programs or instructions
  • the processor is configured to execute computer programs or instructions in the memory, so that the method as described in any one of the above second aspects is performed.
  • the embodiments of the present application provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned first aspect and any one of the above-mentioned second aspects can be implemented. steps of the method described above.
  • FIG. 1 is a schematic diagram of a system architecture of an upgrade system of a distributed system in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an interactive process for an upgrade method of a distributed system in an embodiment of the present application
  • 3A and 3B are schematic diagrams of an application scenario in the embodiment of the present application.
  • Fig. 4 is a schematic flow diagram of generating the latest system installation package version information in the embodiment of the present application.
  • FIG. 5 is a schematic flow diagram of obtaining a deletable installation package in an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a method for upgrading a distributed system in an embodiment of the present application
  • FIG. 7 is a schematic diagram of obtaining a new first path list file and a fourth path list file by a distributed system to be upgraded in an embodiment of the present application;
  • FIG. 8 is a schematic diagram of a logic architecture of an upgrade device for a distributed system in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a logic architecture of an upgrade device for a distributed system in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the physical architecture of the network device in the embodiment of the present application.
  • FIG. 11 is a schematic diagram of the physical architecture of the server in the embodiment of the present application.
  • the management server is used to provide the upgrade installation package required for the distributed base station to upgrade the software version.
  • the management server usually manages multiple distributed base stations in a certain region or even a certain city, and the management server is connected to each distributed base station through a public network.
  • the management server deploys the version upgrade installation package
  • the management server is first triggered to send acquisition requests to the connected multiple distributed base stations respectively.
  • Hardware type and current software version information when the management server receives the hardware type and current software version information of its own different devices returned by multiple distributed base stations, it first decompresses the above-mentioned version upgrade installation package, and then respectively downloads the received
  • the hardware type and current software version information of different devices in each distributed base station are compared with each upgraded installation package obtained by decompression, so as to customize the customized version upgraded installation package adapted to each distributed base station, and store
  • Each customized version upgrades the installation package determines the download task, and sends the download task to the corresponding distributed base station, so that each distributed base station downloads the corresponding customized version upgrade installation package from the management server based on its own download task.
  • the management server usually manages multiple distributed base stations in a certain area or even a certain city, so if the upgrade installation packages used by each distributed base station are different, the management The server needs to customize a large number of different combinations of customized version upgrade installation packages, and store each customized version upgrade installation package customized.
  • each customized version upgrade installation package also only contains the upgrade installation package used for the upgrade of the corresponding distributed base station, but the management server needs to frequently decompress the version upgrade installation package based on the hardware type and current software version information of different devices of each distributed base station , and comparing and compressing each upgrade installation package used for each distributed base station upgrade, which not only increases the resource consumption of the central processing unit of the management server, but also reduces the disk service life of the disk of the management server.
  • the customized upgrade installation packages of each customized version also increase the storage space required by the management server to store the above-mentioned upgrade installation packages of each customized version. Since the storage space of the management server is certain, the bandwidth that the network can support at the same time is certain, which leads to low concurrency for the distributed base station to download the corresponding customized version upgrade installation package, which in turn causes the distributed base station to upgrade. The download time for downloading the customized version upgrade installation package for preparation work increases, etc.
  • the main control device included in the distributed system to be upgraded receives the download task of the download path of each upgrade installation package of the distributed system to be upgraded sent by the management server, and downloads the upgrade installation package corresponding to each download path carried by the download task from the management server, and each upgrade installation package based on the download respectively.
  • the package upgrades the corresponding device to be upgraded; wherein, the download task is sent by the management server after comparing the system version description information of at least two distributed systems connected to the upgrade installation package set to determine the distributed system to be upgraded.
  • An upgrade installation package includes all the upgrade installation files required by the equipment to be upgraded in the adapted distributed system to be upgraded; in this way, the storage space required by the main control device for storing each upgrade installation package can be greatly saved, and the Reduce the amount of data that the main control device in the distributed system to be upgraded downloads each upgrade installation package from the management server, and in the case of a certain amount of storage space on the management server, it can also increase the speed of downloading each upgrade installation package by the distributed system to be upgraded. Concurrency, so as to improve the download speed and shorten the time-consuming preparation work for the upgrade of the distributed system to be upgraded.
  • each upgrade installation package includes all upgrade installation files required by the adapted devices in the distributed system to be upgraded, and all upgrade installation files are adapted All upgrade installation files required for the device to be upgraded, therefore, for any device to be upgraded included in each distributed system to be upgraded, the upgrade installation package used does not contain other redundant installation files, and at the same time , for any device that does not need to be upgraded included in the distributed system to be upgraded, there is no need to download any installation package from the management server, nor will any installation file associated with the device be obtained from the downloaded upgrade installation package.
  • Each upgrade installation package included in the upgrade installation package set deployed on the management server also has the characteristics of the upgrade installation package corresponding to the above download path, and each download path carried by the download task corresponds to an upgrade package in the upgrade installation package set.
  • the storage path of the installation package in this way, the management server does not need to perform secondary compression and packaging based on the system version description information of at least two distributed systems, saving the storage space for the management server to store customized version upgrade installation packages suitable for multiple distributed systems , which also makes the provision of upgrade installation packages more free, making the types of upgrade installation packages provided for different combinations of distributed systems less, making the operation and maintenance work simpler and more convenient; at the same time, it also reduces the central
  • the resource consumption of the processor improves the service life of the disk, so that the management server can significantly improve its service performance without increasing hardware storage.
  • FIG. 1 shows a schematic diagram of a system architecture of an upgrade system in an embodiment of the present application.
  • the system includes a management server 100 and a distributed system 200 connected to the management server 100; the distributed system 200 is connected to the management server 100 through a public network; wherein,
  • the management server 100 is configured to send requests for acquiring system version description information to at least two distributed systems 200, respectively receive system version description information sent by at least two distributed systems 200, and is also used to link at least two distributed systems
  • the system version description information of 200 is compared with the upgrade installation package set respectively to determine the distributed system to be upgraded; and determine the download task of the download path of each upgrade installation package of the distributed system to be upgraded corresponding to the distributed system to be upgraded, And send the download task to the main control device included in the distributed system to be upgraded.
  • the distributed system 200 includes a master device 2001 and at least one controlled device 2002 , and the distributed system 200 interacts with the management server 100 through the master device 2001 .
  • the main control device 2001 is used to receive the download task carrying the download path of each upgrade installation package of the distributed system 200 sent by the management server 100; it is also used to download from the management server 100 the corresponding upgrade installation packages, and upgrade corresponding devices to be upgraded based on the downloaded upgrade installation packages respectively; wherein, the download task is to collect the system version description information of at least two distributed systems 200 connected by the management server 100 with the upgrade installation packages respectively After comparing and determining the distributed system to be upgraded, each upgrade installation package includes all the upgrade installation files required by the equipment to be upgraded in the adapted distributed system to be upgraded.
  • the distributed system 200 in FIG. 1 is only a general term for distributed systems, and is not limited to distributed systems with identical topological structures, and details will not be described later.
  • Step 200 The management server sends a system version description information acquisition request to the main control devices included in the connected at least two distributed systems, wherein the system version description information acquisition request is used to obtain Respective system version description information of at least two distributed systems is obtained.
  • the user deploys in the management server a set of upgrade installation packages used to upgrade the software of multiple distributed systems under management, wherein, all the upgrade installation files contained in each upgrade installation package are the corresponding upgrade installation packages.
  • Each upgrade installation package also contains a configuration file, which describes the installation files included in the upgrade installation package, version information, and the hardware type of the adapted device, etc. information.
  • the management server is triggered to send the above-mentioned system version description information acquisition request to the master control devices included in the connected at least two distributed systems, so as to obtain at least two The system version description information of each distributed system.
  • the management server is triggered to send the system version description information acquisition request to the main control devices included in the connected at least two distributed systems, Simultaneously process the interaction processes with the main control devices included in the at least two distributed systems in parallel.
  • Step 201 After receiving the system version description information acquisition request sent by the management server, the master control devices included in the at least two distributed systems respectively acquire the device version description information of the master control device and at least one controlled device.
  • the master control device included in any one of the at least two distributed systems acquires the device information of each device included in the distributed system. Version description information, that is, to obtain the hardware type and current software version information of each device.
  • Step 202 The main control devices included in the at least two distributed systems combine the obtained device version description information according to the hardware type to obtain the system version description information of the distributed systems.
  • any one of the at least two distributed systems includes The main control device merges the obtained device version description information according to the hardware type, that is, merges the device version description information with the same hardware type, so as to obtain the device version description information of the merged distributed system, and merges the above
  • the subsequent device version description information is determined as the system version description information of the distributed system, wherein the system version description information includes the respective device version description information of different devices contained in the distributed system, and each device version description information includes the corresponding device version description information. hardware type and current software version information.
  • FIG. 3A take the distributed system as an example of a 5G extended small base station.
  • the 5G extended small base station includes a baseband processing unit (Baseband Unit, BBU), a switch (HUB) and a remote radio frequency processing unit (Remote Radio Unit, RRU), where the HUB is connected to the BBU and the RRU, and the HUB also Cascading can be performed,
  • BBU baseband processing unit
  • HUB Remote Radio Unit
  • the BBU corresponds to the master control device in the embodiment of the present application
  • the HUB and RRU correspond to the controlled devices in the embodiment of the present application.
  • the 5G extended small base station includes a BBU, denoted as BBU1A type; 3 HUBs, respectively denoted as HUB1B type, HUB2C type, HUB3B type, Among them, HUB2 and HUB3 are cascaded; 4 RRUs are respectively recorded as RRU1D type, RRU2E type, RRU3D type, and RRU4E type. Among them, RRU1 and RRU2 are connected to HUB1, RRU3 is connected to HUB2, and RRU4 is connected to HUB3.
  • BBU1A type BBU1A type
  • HUBs respectively denoted as HUB1B type, HUB2C type, HUB3B type
  • HUB2 and HUB3 are cascaded
  • 4 RRUs are respectively recorded as RRU1D type, RRU2E type, RRU3D type, and RRU4E type.
  • RRU1 and RRU2 are connected to HUB1
  • RRU3 is connected to HUB2
  • RRU4
  • the management server is triggered to send requests for acquiring system version description information to at least two managed 5G extended small base stations respectively.
  • the system version description information obtaining request is used to obtain the respective system version description information of at least two 5G extended small base stations.
  • the main control device included in the 5G extended small base station obtains the respective device version description information of the main control device contained in itself and at least one controlled device, that is, the hardware type and Current software version information.
  • the main control device included in the 5G extended small base station combines the acquired version description information of each device according to the hardware type.
  • the device version description information of HUB1 and HUB3 in Table 1 is merged, the device version description information of RRU1 and RRU3 is merged, and the device version description information of RRU1 and RRU3 is merged to obtain the HUB combination (B Type - installation package 4), RRU in 1 (D type - installation package 2), RRU in 2 (E type - installation package 2).
  • the combined device version description information is determined as the system version description information of the 5G extended small base station, as shown in the following table:
  • the current software version information in Table 2 refers to the currently running software version information of different devices included in the distributed system when the management server obtains the system version description information of the distributed system.
  • the device version description information includes the hardware type and software version information of the corresponding device as an example. In practical applications, the device version description information also includes the upgrade time of the corresponding device, and will not be described in detail later.
  • the software version information is only described by taking "installation package+(Arabic numerals)" in Table 2 as an example.
  • the software version information includes the installation package version of the corresponding installation package, the file name of the installation file included in the corresponding installation package, the respective file versions of each included installation file, the construction time of the corresponding installation package, the manufacturer, etc.
  • the descriptive information uniquely identifying the upgraded software version is formed by the common packaging of information.
  • the hardware type is only introduced as "(capital letter) + type" as an example.
  • the hardware type includes the hardware product number, manufacturer, product type, etc. Upgrade the description information with unique identification.
  • Step 203 The main control devices included in the at least two distributed systems send the above-mentioned system version description information to the management server.
  • step 203 when step 203 is executed, the master control device included in any one of the at least two distributed systems sends the system version description information obtained after executing step 202 to the management server, so that the management server The system version description information is compared with the upgrade installation package set to determine whether the distributed system is a distributed system to be upgraded.
  • Step 204 The management server compares the system version description information of the at least two distributed systems with the upgrade installation package set, and judges whether there is a distributed system to be upgraded in the above-mentioned at least two distributed systems, and if so, executes step 205 , otherwise, go to step 206.
  • the management server parses each upgrade installation package contained in the pre-deployed upgrade installation package set, and based on The parsing results are compared with the version description information of at least two distributed systems, and it is judged whether there is a distributed system to be upgraded in at least two distributed systems. If yes, the system executes step 206; otherwise, executes step 205.
  • Step 205 End the process.
  • Step 206 Determine the distributed system to be upgraded, and determine the download task corresponding to the distributed system to be upgraded that carries the download path of each upgrade installation package of the distributed system to be upgraded.
  • Each upgrade installation package includes the adapted distributed system to be upgraded. All upgrade installation files required by the device to be upgraded in the system.
  • step 204 when step 204 is executed, it is determined based on the comparison results that there are distributed systems to be upgraded in at least two distributed systems, then when step 206 is executed, the distributed system to be upgraded is determined, and by performing the following operations , determine the download task corresponding to the distributed system to be upgraded that carries the download path of each upgrade installation package of the distributed system to be upgraded, wherein each upgrade installation package includes the adapted distributed system to be upgraded. All required upgrade installation files:
  • Operation 1 determine each upgrade installation package of the distributed system to be upgraded.
  • Operation 2 obtain the download path of each upgrade installation package.
  • Operation 3 generating a download task carrying the download path of each upgrade installation package.
  • the distributed system is a 5G extended small base station.
  • the system version description information sent by the main control device included in the 5G extended small base station to the management server is ⁇ (Type A—installation package 3), (Type B—installation package 4), (Type C—installation package 2), (D type - installation package 2), (E type - installation package 2) ⁇ .
  • each upgrade installation package also contains a configuration file
  • the configuration file describes the installation files contained in the upgrade installation package, version information, and the hardware type of the adapted device; therefore, the management server receives the system After the version description information, compare the system version description information with the configuration file of each upgrade installation package contained in the above upgrade installation package set, and then, based on the comparison result, determine that the 5G extended small base station is a distributed system to be upgraded, Determine the download task that carries the download path of each upgrade installation package.
  • the download path of each upgrade installation package of the 5G extended small base station carried by the download task is ⁇ download path 1 (type A—upgrade installation package 5), download path 2 (B Type/C-upgrade installation package 6) ⁇ .
  • any download path carried by the download task determined by the management server corresponds to the storage path of an upgrade installation package in the above-mentioned upgrade installation package collection. Then, the management server only needs to store each upgrade installation package. Yes, it is not necessary to further compress and package the above-identified upgrade installation packages after determining each upgrade installation package adapted to the distributed system based on the system version description information of each distributed system as in the prior art. Therefore, this solution not only saves the storage capacity of the management server for storing customized version upgrade installation packages applicable to multiple distributed systems, but also reduces the complexity of operation and maintenance.
  • Step 207 The management server sends a download task to the main control device included in the distributed system to be upgraded.
  • step 207 when step 207 is executed, the download task determined after step 206 is executed is sent to the main control device included in the distributed system to be upgraded, so that the main control device included in the distributed system to be upgraded can download from the management server Download the download path of each upgrade installation package carried in the above download task to download the corresponding upgrade installation package, and upgrade the corresponding device to be upgraded based on each downloaded upgrade installation package.
  • Step 208 The main control device included in the distributed system to be upgraded receives the download task sent by the management server and carries the download path of each upgrade installation package of the distributed system to be upgraded.
  • Step 209 Download the upgrade installation package corresponding to each download path carried in the above download task from the management server.
  • step 209 when step 209 is executed, the main control device included in the distributed system to be upgraded downloads the upgrade installation package corresponding to each download path from the management server based on each download path carried by the download task; then, refer to FIG. 4 Shown, after step 209 is executed, before step 210 is executed, the following steps are specifically executed:
  • Step 400 Store all downloaded upgrade installation packages.
  • step 400 when step 400 is executed, the downloaded upgrade installation packages are sequentially stored in the installation package storage space according to the order of downloading, and the respective first storage paths corresponding to each upgrade installation package are obtained, wherein each The first storage path is used to uniquely record the storage path of the upgrade installation package in the master control device included in the distributed system to be upgraded.
  • Step 410 After obtaining the first path list file, back up the first path list file.
  • the first path list file is obtained and the first path list file is backed up, wherein the first path list file includes the download tasks of the main control device included in the distributed system to be upgraded.
  • the storage path of all running installation packages and all rollback installation packages stored before downloading.
  • the backed up first path list file is used to construct the fourth path list file of the distributed system to be upgraded, and the fourth path list file is used to generate the rollback system installation package version information, and the rollback system installation package version information is used for It is used when the distributed system to be upgraded needs to roll back the system version.
  • Step 420 Add the first storage path of each upgrade installation package to the last second storage path of the first path list file stored in the main control device in sequence according to the download sequence of each upgrade installation package, to obtain a second path list file.
  • Step 430 Determine the deletable installation packages in all the installation packages corresponding to the second path list file.
  • step 430 when step 430 is executed, the above-mentioned deletable installation package is determined by performing the following steps:
  • Step 4301 Obtain each installation package corresponding to the second path list file.
  • the main control device included in the distributed system to be upgraded can acquire all the installation packages at once from the installation package storage space based on all the storage paths contained in the second path list file;
  • the sorting order of each storage path contained in the second path list file is the order from the earliest added (earliest downloaded) installation package to the latest added (latest downloaded) installation package, and the corresponding ones are obtained one by one from the installation package storage space. Installation package.
  • Step 4302 Analyze each installation package, and determine the type of hardware that each installation package is compatible with.
  • step 4301 the main control device included in the distributed system to be upgraded obtains all installation packages from the installation package storage space at one time, then when step 4302 is executed, according to the second path list file
  • the sorting order of each storage path is the order from the earliest added (earliest downloaded) installation package to the latest added (latest downloaded) installation package, and the installation packages are analyzed in turn to determine the hardware type that each installation package is adapted to.
  • step 4301 the master control device included in the distributed system to be upgraded is stored from the installation package In the space, from the earliest added (earliest downloaded) installation package to the latest added (latest downloaded) installation package, the installation packages obtained one by one, then when step 4302 is executed, the obtained installation package is analyzed to determine The hardware type that the installation package is adapted to, until the last upgrade installation package corresponding to the first storage path is analyzed to determine the hardware type that the upgrade installation package is adapted to.
  • Step 4303 Determine whether each hardware type corresponds to at least three installation packages.
  • the main control device included in the distributed system to be upgraded determines whether each hardware type corresponds to at least three installation packages from the determined hardware types to which each installation package is adapted.
  • Step 4304 Determine the hardware type corresponding to at least three installation packages as the target hardware type.
  • step 4304 when step 4304 is executed, the hardware type corresponding to at least three installation packages determined in step 4303 is determined as the target hardware type.
  • Step 4305 Obtain the installation package corresponding to the storage path first added to the second path list file among the storage paths of at least three installation packages corresponding to each target hardware type, to obtain candidate installation packages.
  • step 4305 when step 4305 is executed, among the storage paths of at least three installation packages corresponding to each target hardware type, the installation package corresponding to the storage path first added to the second path list file indicates that the installation package is the main
  • the control device is downloaded first from the management server. It should be noted that the earliest download is not the earliest download in this download task, but is the earliest download for all installation packages corresponding to all storage paths included in the second path list file.
  • Step 4306 Obtain candidate installation packages that do not meet the preset conditions as deletable installation packages.
  • step 4305 is executed and each candidate installation package is obtained
  • step 4306 it is necessary to determine whether each candidate installation package meets the preset conditions, wherein the preset conditions include but are not limited to the following conditions:
  • the candidate installation package is determined as a deletable installation package.
  • the above-mentioned deletable installation package may or may not exist, the specific implementation In this case, a specific judgment is made based on the actual situation.
  • only one method for determining a deletable installation package is provided, but it is not limited to the above-mentioned one method for determining, and will not be repeated here.
  • installation package 1 (second storage path 1)
  • installation package 2 ( Second storage path 2)
  • installation package 3 (second storage path 3)
  • installation package 4 (second storage path 4).
  • the main control device included in the 5G extended small base station downloads the upgrade installation packages corresponding to each download path carried by the above download task from the management server, it stores all the above upgrade installation packages, and obtains the storage paths corresponding to each upgrade installation package, such as upgrading
  • the storage path corresponding to the installation package 5 is the first storage path 1
  • the storage path corresponding to the upgrade installation package 6 is the first storage path 2 .
  • the main control device included in the 5G extended small base station obtains the first path list file, and backs up the first path list file; and then adds the first storage path of each upgrade installation package to the After the last second storage path of the first path list file, a second path list file is obtained.
  • Table 3 shows the first path list file and the obtained second path list file obtained by the main control device included in the 5G extended small base station:
  • Second storage path 1 (installation package 1) Second storage path 1 (installation package 1) Second storage path 2 (installation package 2) Second storage path 2 (installation package 2) Second storage path 3 (installation package 3) Second storage path 3 (installation package 3) Second storage path 4 (installation package 4) Second storage path 4 (installation package 4) the The first storage path 1 (upgrade installation package 5) the The first storage path 2 (upgrade installation package 6)
  • the main control device included in the 5G extended small base station determines all the paths corresponding to the second path list file.
  • the main control device acquires each installation package corresponding to the second path list file, and parses each installation package to determine the type of hardware to which each installation package is adapted.
  • Table 4 List of hardware types adapted to each installation package determined based on the second path list file Note: "Y" in Table 4 indicates that the installation package is suitable for this hardware type.
  • each installation package information includes the storage path of the corresponding installation package in the master device, the version information of the corresponding installation package, the decompression path information of each installation file included in the corresponding installation package, and the storage path of the corresponding installation package Path sorting information in the second path list file.
  • the main control device included in the 5G extended small base station determines whether each hardware type corresponds to at least three installation packages, and determines the hardware type corresponding to at least three installation packages as the target hardware type; for example, the target hardware type It is type A and type B.
  • the main control device included in the 5G extended small base station After determining the target hardware type, the main control device included in the 5G extended small base station obtains the installation package corresponding to the storage path that is first added to the second path list file among the storage paths of at least three installation packages corresponding to each target hardware type, Get the candidate installation package.
  • the main control device included in the 5G extended small base station is aimed at the type A of the target hardware, and from the storage paths of at least three installation packages corresponding to type A, obtains the storage path corresponding to the earliest added to the second path list file.
  • the installation package that is, from installation package 1, installation package 3 and upgrade installation package 5,
  • the obtained installation package corresponding to the storage path first added to the second path list file is installation package 1, and the obtained candidate installation package is installation package 1.
  • the installation package corresponding to the storage path first added to the second path list file is obtained to obtain the candidate installation package, that is, from Among installation package 1, installation package 4 and upgrade installation package 6, if the obtained installation package corresponding to the storage path first added to the second path list file is installation package 1, then the obtained candidate installation package is also installation package 1.
  • the main control device included in the 5G extended small base station acquires candidate installation packages that do not meet the preset conditions as deletable installation packages.
  • the main control device included in the 5G extended small base station judges whether each candidate installation package is suitable for use by other hardware types after the 5G extended small base station is upgraded based on the download task based on each candidate installation package, and , to determine whether each candidate installation package is suitable for use by other hardware types after the 5G extended small base station is upgraded based on the download task, if a system version rollback operation is required.
  • the deletable installation package Since the upgrade of the distributed system based on this download task needs to use the upgrade installation package corresponding to each download path carried by this download task, the deletable installation package will not be the upgrade installation package corresponding to this download task, that is, The deletable installation package must be among the installation packages stored by the 5G extended small base station before this download task.
  • Type A - upgrade installation package 5 (after upgrade) - installation package 3 (after rollback); type B - upgrade installation package 6 (after upgrade) - installation package 4 (after rollback); Type C—upgrade installation package 6 (after upgrade)—installation package 2 (after rollback); Type D—installation package 2 (after upgrade)—installation package 2 (after rollback ); Type E—installation package 2 (after upgrade)——installation package 2 (after rollback).
  • the main control device included in the 5G extended small base station determines that the candidate installation package (that is, installation package 1) will not be blocked by other hardware types after the upgrade based on this download task and after the system version rollback operation is required. If used, the main control device included in the 5G extended small base station determines that the candidate installation package (that is, installation package 1) is a deletable installation package, that is, the candidate installation package (that is, installation package 1) is useless installation package, so it can be deleted.
  • Table 5 List of hardware types adapted to each installation package determined based on the second path list file Note: "Y" in Table 5 indicates that the installation package is suitable for this hardware type.
  • each installation package information includes the storage path of the corresponding installation package in the master device, the version information of the corresponding installation package, the decompression path information of each installation file included in the corresponding installation package, and the storage path of the corresponding installation package Path sorting information in the second path list file.
  • the main control equipment included in the 5G extended small base station is based on Table 5, and the determined target hardware types are still Type A and Type B, and based on Type A and Type B, obtain at least three installation packages corresponding to each target hardware type.
  • the obtained candidate installation package is still installation package 1.
  • the main control device included in the 5G extended small base station obtains a candidate installation package that does not meet the preset conditions as a deletable installation package, it determines that the installation package 1 is upgraded based on this download task and if it needs to perform a system version restore. If they are all used by the H-type after the retreat operation, the main control equipment included in the 5G extended small base station will not be able to obtain the deletable installation package, that is, there is no useless installation package in this application scenario.
  • Step 440 Delete the storage paths of each deletable installation package from the second path list file to obtain to the third path list file.
  • step 430 after the deletable installation package is determined, then, when step 440 is performed, the storage path corresponding to each determined deletable installation package is deleted from the second path list file, thereby A third path list file is obtained; the third path list file is used to generate the latest system installation package version information of the distributed system, which is used for upgrading based on this download task.
  • Step 450 Delete the storage paths corresponding to each deletable installation package from the backed up first path list file to obtain a fourth path list file.
  • step 450 is performed to delete the storage path corresponding to each deletable installation package from the backup first path list file, thereby obtaining the fourth path list file, Among them, the fourth path list file includes the second storage path corresponding to all the running installation packages required for the operation of the distributed system before the main control device downloads based on the above download task, and the fourth path list file is used to generate the distributed system to be upgraded.
  • the rollback system installation package version information is if the distributed system to be upgraded determines that at least one device to be upgraded is abnormal or at least one of the distributed systems to be upgraded after each device to be upgraded is completed When the device is running abnormally, the system version rollback operation is performed based on the rollback system installation package version information.
  • step 440 and step 450 in this embodiment of the present application is not limited, step 440 may be executed first, or step 450 may be executed first, or step 440 and step 450 may be executed simultaneously.
  • Step 460 Delete each deletable installation package from the installation package storage space.
  • each deletable installation package determined above is deleted from the installation package storage space. In this way, useless installation packages are cleaned up in time, which can save the main control system included in the distributed system.
  • Step 470 Replace the first path list file with the third path list file.
  • Step 480 Generate the latest system installation package version information of the distributed system to be upgraded based on the third path list file.
  • the master control device included in the distributed system to be upgraded when step 480 is executed, the master control device included in the distributed system to be upgraded generates the latest system installation package version information of the distributed system to be upgraded based on the third path list file, wherein the latest system The version information of the installation package is jointly constructed based on the configuration files contained in all the installation packages corresponding to the third path list file, including the information of each installation package and the type of hardware it is adapted to, and the information of each installation package includes the corresponding installation package in the master The storage path in the device, the version information of the corresponding installation package, the decompression path information of each installation file contained in the corresponding installation package, and the sorting information of the storage path of the corresponding installation package in the third path list file.
  • Step 210 Upgrade corresponding devices to be upgraded based on the downloaded upgrade installation packages.
  • step 210 when step 210 is executed, the device to be upgraded is upgraded based on the latest system installation package version information generated in step 480 and each downloaded upgrade installation package.
  • Step 600 Based on the latest system installation package version information, determine whether the device to be upgraded to which each upgrade installation package is adapted is a master control device, and if so, perform step 620; otherwise, perform step 610.
  • the upgrade installation package for the device to be upgraded is determined by performing the following operations:
  • Operation 1 determine whether each device to be upgraded corresponds to at least two upgrade installation packages.
  • Operation 2 For the device to be upgraded corresponding to at least two upgrade installation packages, the upgrade installation package corresponding to the storage path that is added to the second path list file at the latest among the storage paths of the corresponding at least two upgrade installation packages is used as the corresponding upgrade installation package.
  • the upgrade installation package for the upgrade device is used as the corresponding upgrade installation package.
  • Step 610 Deliver the upgrade installation package of which the adapted device to be upgraded is not the master device to the corresponding controlled device, so that the controlled device receiving the upgrade installation package is upgraded based on the received upgrade installation package.
  • the main control device included in the distributed system to be upgraded determines that the device to be upgraded that is adapted by each upgrade installation package is not the main control device, then the upgrade installation of the adapted device to be upgraded is not the main control device.
  • the package is sent to the corresponding controlled device, so that the controlled device can upgrade its own software version.
  • Step 620 Perform an upgrade based on the upgrade installation package in which the adapted device to be upgraded is the master control device.
  • the master control device included in the distributed system to be upgraded determines that the device to be upgraded to which each upgrade installation package is adapted is the master control device, and then performs software upgrade for itself based on the upgrade installation package.
  • step 210 if the main control device included in the distributed system to be upgraded determines that at least one device to be upgraded is abnormal or at least one device in the distributed system to be upgraded is running If it is abnormal, the version information of the rollback system installation package of the distributed system to be upgraded is generated based on the fourth path list file, and then the system version rollback operation is performed on the distributed system to be upgraded based on the version information of the rollback system installation package.
  • Special case 1 if the main control device included in the distributed system to be upgraded determines that all upgrade installation packages corresponding to all download paths carried by the download task are suitable for all hardware types included in the distributed system to be upgraded, then the download task corresponds to Download tasks for the site-wide version upgrade of the distributed system to be upgraded.
  • the distributed system to be upgraded is a 5G extended small base station.
  • the main control device included in the 5G extended small base station deletes the second storage path corresponding to the installation package 1 from the second path list file to obtain the third path list file, and replaces the first path list file with the third path list file .
  • the obtained third path list file (that is, the new first path list file) is shown in Table 6:
  • Second storage path 2 (installation package 2)
  • Second storage path 3 (installation package 3)
  • Second storage path 4 (installation package 4)
  • the first storage path 1 (upgrade installation package 5)
  • the first storage path 2 (upgrade installation package 6)
  • Second storage path 2 (installation package 2)
  • Second storage path 3 (installation package 3)
  • Second storage path 4 (installation package 4)
  • the main control device determines that the upgrade of at least one device to be upgraded is abnormal or at least one device in the distributed system to be upgraded is running abnormally after each device to be upgraded is completed, the main control device (that is, BBU1A type) included in the 5G extended small base station determines A device (such as HUB2C) has an abnormal upgrade, or a device (such as BBU1) included in the upgraded distributed system has an abnormal operation.
  • the system rolls back the installation package version information based on the fourth path list file, and performs a system version rollback operation on the 5G extended small base station based on the system rollback installation package version information.
  • an upgrade device for a distributed system is provided in an embodiment of the present application, which is applied to the main control device included in the distributed system to be upgraded, and the distributed system to be upgraded also includes at least A controlled device, said device comprising:
  • the receiving module 801 is configured to receive a download task carrying the download path of each upgrade installation package of the distributed system to be upgraded sent by the management server, and the download task is at least two distributed systems to be connected by the management server
  • the system version description information is compared with the upgrade installation package set to determine the distributed system to be upgraded and then sent.
  • Each upgrade installation package includes the adapted All upgrade installation files of
  • a download module 802 configured to download from the management server the upgrade installation package corresponding to each download path carried by the download task;
  • the upgrade module 803 is configured to upgrade corresponding devices to be upgraded based on the downloaded upgrade installation packages.
  • the receiving module 801 before receiving the download task sent by the management server and carrying the download path of each upgrade installation package of the distributed system to be upgraded, the receiving module 801 is further configured to:
  • the upgrade module 803 before upgrading corresponding devices to be upgraded based on downloaded upgrade installation packages, the upgrade module 803 is further configured to:
  • Deletable installation packages in all installation packages corresponding to the second path list file are determined;
  • the latest system installation package version information of the distributed system to be upgraded is generated based on the third path list file.
  • the upgrading module 803 is used for:
  • Candidate installation packages that do not meet the preset conditions are acquired as deletable installation packages.
  • the upgrade module 803 is further configured to:
  • the upgrade module 803 is further configured to:
  • the upgrade module 803 is further configured to:
  • the upgrade module 803 is also used for:
  • the corresponding device to be upgraded is upgraded based on each downloaded upgrade installation package, and the upgrade module 803 is used for:
  • the upgrade is performed based on the upgrade installation package in which the adapted device to be upgraded is the master control device.
  • the upgrade module 803 is further configured to:
  • the upgrade installation package corresponding to the storage path that is added to the storage path of the second path list file at the latest among the storage paths of the corresponding at least two upgrade installation packages is used as the corresponding upgrade installation package
  • the upgrade installation package for the device is used as the corresponding upgrade installation package.
  • the upgrade module 803 is further configured to:
  • the distributed system to be upgraded is generated based on the fourth path list file. Return the version information of the system installation package;
  • a system version rollback operation is performed on the distributed system to be upgraded based on the rollback system installation package version information.
  • an upgrade device for a distributed system is provided in an embodiment of the present application, which is applied to a management server connected to at least two distributed systems, and the at least two distributed systems are respectively Including a master control device and at least one controlled device, the device includes:
  • the first determination module 901 is configured to describe the system versions of the at least two distributed systems Compare with the upgrade installation package set respectively to determine the distributed system to be upgraded;
  • the second determination module 902 is configured to determine a download task corresponding to the distributed system to be upgraded that carries the download path of each upgrade installation package of the distributed system to be upgraded, each upgrade installation package includes the adapted All upgrade installation files required by the devices to be upgraded in the distributed system to be upgraded;
  • the sending module 903 is configured to send the download task to the main control device included in the distributed system to be upgraded, so that the main control device downloads the download of each upgrade installation package carried by the download task from the management server
  • the path downloads the corresponding upgrade installation package, and upgrades the corresponding device to be upgraded based on each downloaded upgrade installation package.
  • the first determining module 901 before comparing the system version description information of the at least two distributed systems with the upgrade installation package set, is further configured to:
  • the second determination module 902 is used for:
  • a download task carrying the download path of each upgrade installation package is generated.
  • an embodiment of the present application provides a network device, including a memory 1001 and a processor 1002, specifically:
  • the memory 1001 is used for storing computer programs or instructions.
  • the processor 1002 is configured to execute computer programs or instructions in the memory, so that the upgrading device of the distributed system (eg, the master control device in the distributed system) in each of the above embodiments executes any one of the methods.
  • the upgrading device of the distributed system eg, the master control device in the distributed system
  • the embodiment of the present application does not limit the specific connection between the memory 1001 and the processor 1002. quality.
  • the memory 1001 and the processor 1002 are connected through the bus 1000.
  • the bus 1000 is represented by a thick line in FIG. As far as possible.
  • the bus 1000 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 10 , but it does not mean that there is only one bus or one type of bus.
  • the memory 1001 can be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 1001 can also be a non-volatile memory (non-volatile memory), such as a read-only memory, flash memory A memory (flash memory), a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD), or the memory 1001 can be used to carry or store desired program codes in the form of instructions or data structures and can be controlled by Any other medium accessed by a computer, but not limited to.
  • the memory 1001 may be a combination of the above-mentioned memories.
  • an embodiment of the present application provides a server, including a memory 1101 and a processor 1102, specifically:
  • the memory 1101 is used for storing computer programs or instructions.
  • the processor 1102 is configured to execute computer programs or instructions in the memory, so that the upgrade device (for example, the management server) of the distributed system in each of the above embodiments executes any one of the methods.
  • the upgrade device for example, the management server
  • the specific connection medium between the memory 1101 and the processor 1102 is not limited in this embodiment of the present application.
  • the memory 1101 and the processor 1102 are connected through the bus 1100.
  • the bus 1100 is represented by a thick line in FIG. As far as possible.
  • the bus 1100 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 11 , but it does not mean that there is only one bus or one type of bus.
  • the memory 1101 can be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 1101 can also be a non-volatile memory (non-volatile memory), such as a read-only memory, flash memory memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD), or storage
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • hard disk hard disk drive, HDD
  • solid-state drive solid-state drive
  • SSD solid-state drive
  • the device 1101 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
  • the memory 1101 may be a combination of the above-mentioned memories.
  • an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored.
  • the computer program instructions are executed by a processor, any of the functions performed by the upgrading device of the distributed system in the above-mentioned embodiments can be realized. a way.
  • An embodiment of the present application also provides a method for upgrading a distributed system, which is applied to the master control device included in the distributed system to be upgraded, and the distributed system to be upgraded also includes at least one controlled device, the method include:
  • the download task is the system version description information of at least two distributed systems to be connected by the management server and the The upgrade installation package set is compared and sent after the distributed system to be upgraded is determined, and each upgrade installation package includes all upgrade installation files required by the adapted device to be upgraded in the distributed system to be upgraded;
  • the corresponding devices to be upgraded are respectively upgraded based on the downloaded upgrade installation packages.
  • the method before receiving the download task sent by the management server and carrying the download path of each upgrade installation package of the distributed system to be upgraded, the method further includes:
  • the method before upgrading corresponding devices to be upgraded based on downloaded upgrade installation packages, the method further includes:
  • the first storage path of each upgrade installation package is sequentially added to the last second storage path of the first path list file stored in the master control device to obtain the second path list file, so
  • the first path list file includes the storage paths of all running installation packages and all rollback installation packages stored by the master control device before downloading based on the download task;
  • Deletable installation packages in all installation packages corresponding to the second path list file are determined;
  • the latest system installation package version information of the distributed system to be upgraded is generated based on the third path list file.
  • the determining the deletable installation packages in all the installation packages corresponding to the second path list file includes:
  • Candidate installation packages that do not meet the preset conditions are acquired as deletable installation packages.
  • the method further includes:
  • the method further includes:
  • the upgrading of corresponding devices to be upgraded based on downloaded upgrade installation packages respectively includes:
  • the upgrade is performed based on the upgrade installation package in which the adapted device to be upgraded is the master control device.
  • the method further includes:
  • the upgrade installation package corresponding to the storage path that is added to the storage path of the second path list file at the latest among the storage paths of the corresponding at least two upgrade installation packages is used as the corresponding upgrade installation package
  • the upgrade installation package for the device is used as the corresponding upgrade installation package.
  • the method further includes:
  • the distributed system to be upgraded is generated based on the fourth path list file Return the version information of the system installation package;
  • a system version rollback operation is performed on the distributed system to be upgraded based on the rollback system installation package version information.
  • Another embodiment of the present application also provides a method for upgrading a distributed system, which is applied to a management server connected to at least two distributed systems, and the at least two distributed systems respectively include a main control device and at least A controlled device, the method comprising:
  • each upgrade installation package includes the adapted All upgrade installation files needed to upgrade the device;
  • the method before comparing the system version description information of the at least two distributed systems with the upgrade installation package set, the method further includes:
  • the determination of the download task corresponding to the distributed system to be upgraded that carries the download path of each upgrade installation package includes:
  • a download task carrying the download path of each upgrade installation package is generated.
  • Another embodiment of the present application also provides an upgrade device for a distributed system, which is applied to the master control device included in the distributed system to be upgraded, and the distributed system to be upgraded also includes at least one controlled device, so Said devices include:
  • the receiving module is configured to receive a download task carrying the download path of each upgrade installation package of the distributed system to be upgraded sent by the management server, and the download task is a system of at least two distributed systems to be connected by the management server
  • the version description information is compared with the upgrade installation package set to determine the distributed system to be upgraded and then sent, and each upgrade installation package includes the adapted All upgrade installation files;
  • a download module configured to download each download path carried by the download task from the management server The upgrade installation package corresponding to the path;
  • the upgrade module is configured to upgrade corresponding devices to be upgraded based on downloaded upgrade installation packages.
  • Another embodiment of the present application also provides an upgrade device for a distributed system, which is applied to a management server connected to at least two distributed systems, and the at least two distributed systems respectively include a main control device and at least A controlled device, said device comprising:
  • the first determination module is used to compare the system version description information of the at least two distributed systems with the upgrade installation package set, and determine the distributed system to be upgraded;
  • the second determination module is used to determine the download task corresponding to the distributed system to be upgraded and carry the download path of each upgrade installation package of the distributed system to be upgraded, each upgrade installation package includes the adapted All upgrade installation files needed to upgrade the devices to be upgraded in the distributed system;
  • a sending module configured to send the download task to the main control device included in the distributed system to be upgraded, so that the main control device downloads the download path of each upgrade installation package carried by the download task from the management server Download corresponding upgrade installation packages, and upgrade corresponding devices to be upgraded based on the downloaded upgrade installation packages.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures in the flowcharts and/or one or more blocks in the block diagrams.

Abstract

本申请涉及通信技术领域,尤其涉及分布式系统软件版本升级方法及装置。用于解决已有技术下分布式基站下载的版本升级安装包的数据量太大的问题,该方法为:待升级分布式系统包括的主控设备接收管理服务器发送的携带待升级分布式系统的各个升级安装包的下载路径的下载任务,并从管理服务器下载该下载任务携带的各个下载路径对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备,该下载任务是管理服务器将连接的至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对确定出待升级分布式系统后发送的;这样,可以大大减少下载的各个升级安装包的数据量,不仅提高了下载速度,也节省了相应的存储空间。

Description

分布式系统软件版本升级方法及装置
相关申请的交叉引用
本申请要求在2022年1月28日提交中国专利局、申请号为202210108469.1、申请名称为“分布式系统软件版本升级方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及分布式系统软件版本升级方法及装置。
背景技术
管理服务器用于提供分布式基站进行软件版本升级所需的升级安装包,通常管理服务器管理某一区域甚至某一城市的多个分布式基站,管理服务器与每个分布式基站之间通过公网连接。
为了便于后续维护,通常将管理服务器管理的各个分布式基站包含的各个设备部署为具有相同或相似硬件类型的设备,这样,可以在管理服务器中配置一个通用的版本升级安装包,该版本升级安装包包括管理服务器管理的所有分布式基站升级所需的升级安装包,管理服务器向管理的每个分布式基站下发下载任务,各个分布式基站接收下载任务后下载该通用的版本升级安装包进行升级。
随着无线通信技术的快速发展、实际环境的要求、以及构成分布式基站的设备不断推陈出新,管理服务器管理的分布式基站包含的不再是硬件类型相同或相似的设备,若仍采用上述通用的版本升级安装包,由于上述版本升级安装包包括部署在管理服务器中,用于对多个分布式基站进行软件版本升级所需的全部升级安装包,那么,该版本升级安装包包含的升级安装包个数,可能明显多于部分分布式基站所需要的升级安装包的个数,就会导致分布式 基站下载的上述版本升级安装包的数据量太大,以及分布式基站存储上述版本升级安装包所需占用的存储空间过大的问题。
分布式基站通常会保存每次下载任务对应的版本升级安装包,这样,若在基于本次下载任务进行软件版本升级的过程中出现升级异常或升级后出现某个设备运行异常时,分布式基站通常需要基于与本次下载任务相邻的前一次下载任务所对应的版本升级安装包执行基站版本回退操作。由于每次下载任务对应的版本升级安装包均包含管理服务器管理的所有分布式基站升级所需的升级安装包,每个版本升级安装包数据量非常大,这就导致分布式基站存储每次下载任务对应的版本升级安装包所需的存储空间更大,严重影响分布式基站的正常运行。
发明内容
本申请的目的是提供分布式系统软件版本升级方法及装置,用于解决已有技术下分布式基站下载的版本升级安装包的数据量太大的问题。
本申请实施例提供的具体技术方案如下:
第一方面,一种分布式系统的升级方法,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述方法包括:
接收管理服务器发送的下载任务,所述下载任务中包括所述待升级分布式系统的升级安装包的下载路径,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到;
从所述管理服务器下载所述下载路径对应的第一升级安装包,所述第一升级安装包中包括所述待升级分布式系统中待升级设备所需的升级安装文件;
基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
上述方法,由于每个升级安装包包括所适配的待升级分布式系统中的待升级设备所需的全部升级安装文件,且该全部升级安装文件是适配于该待升 级设备所需的全部升级安装文件,因此,对于待升级分布式系统包含的任意一个待升级设备其所使用的升级安装包均不包含其他冗余的安装文件,同时,对于待升级分布式系统包含的任意一个无需升级的设备,均无需从管理服务器下载任何安装包,也不会从下载的升级安装包中获得与该设备关联的任何安装文件;这样,可以大大节省了主控设备存储上述各个升级安装包所需的存储空间,也可以大大减小了待升级分布式系统包括的主控设备从管理服务器下载各个升级安装包各自对应的数据量,且在管理服务器的存储空间一定的情况下,同样可以提高待升级分布式系统下载各个升级安装包的并发度,从而提高下载速度,缩短待升级分布式系统进行升级前进行升级准备工作的耗时。
在一些可能的实施例中,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到包括:
基于所述待升级分布式系统的系统版本描述信息与升级安装包集合确定所述待升级分布式系统和所述下载任务,所述升级安装包集合中的每个升级安装包对应一个适配的分布式系统中的待升级设备。
在一些可能的实施例中,在所述接收管理服务器发送的下载任务之前,还包括:
接收所述管理服务器发送的系统版本描述信息获取请求后,分别获取所述主控设备和所述至少一个受控设备的设备版本描述信息;
根据硬件类型合并获取到的各个设备版本描述信息,得到所述待升级分布式系统的系统版本描述信息;
向所述管理服务器发送所述待升级分布式系统的系统版本描述信息。
上述方法,管理服务器的升级安装包集合包含的每个升级安装包,同样具有上述下载路径对应的升级安装包所具备的特征,且下载任务携带的每个下载路径即对应升级安装包集合中一个升级安装包的存储路径;这样,管理服务器不必基于至少两个分布式系统的系统版本描述信息进行二次压缩打包,节省了管理服务器存储适用于多个分布式系统的定制版本升级安装包的存储 空间,也使得升级安装包的提供更具自由度,使得面对不同组合的待升级分布式系统所提供的升级安装包的类型更少,使运维工作更简单便捷;进一步地,降低了管理服务器的中央处理器的资源耗费,提高了磁盘使用寿命,使得管理服务器即不需增加硬件存储,也能显著提高其服务性能。
在一些可能的实施例中,在基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备之前,还包括:
存储所述第一升级安装包;
按照所述第一升级安装包中各个升级安装包的下载顺序将各个升级安装包的第二存储路径依次添加到所述主控设备存储的第一路径列表文件的最后一个第一存储路径之后,得到第二路径列表文件,所述第一路径列表文件包括所述主控设备在基于所述下载任务进行下载之前存储的所有运行安装包和所有回退安装包的存储路径;
确定所述第二路径列表文件对应的所有安装包中的可删除安装包;
从所述第二路径列表文件中删除各个可删除安装包的存储路径,得到第三路径列表文件;
基于所述第三路径列表文件生成所述待升级分布式系统的最新系统安装包版本信息。
上述方法,待升级分布式系统中的主控设备基于下载任务对应的升级安装包,准确地获取到可删除安装包,然后,将该可删除安装包对应的存储路径从第二路径列表文件中删除,从而得到第三路径列表文件,这样,第三路径列表文件中剩下的各个存储路径对应的安装包均是会被使用到的;然后,基于该第三路径列表文件可以生成待升级分布式系统的最新系统安装包版本信息,这样,通过存储的一个类似目录的第三路径列表文件,生成包含待升级分布式系统的每个安装包所适配的硬件类型的最新系统安装包版本信息,基于该最新系统安装包版本信息进行升级操作,可以快速完成对待升级设备的升级工作。
在一些可能的实施例中,所述确定所述第二路径列表文件对应的所有安 装包中的可删除安装包,包括:
获取所述第二路径列表文件对应的各个安装包;
解析各个安装包,确定各个安装包所适配的硬件类型;
确定各个硬件类型是否对应至少三个安装包;
将对应至少三个安装包的硬件类型确定为目标硬件类型;
获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到所述第二路径列表文件的存储路径对应的安装包,得到候选安装包;
获取不符合预设条件的候选安装包作为可删除安装包。
上述方法,由于每个安装包还包含一个配置文件,该配置文件描述了安装包所包含的安装文件、版本信息以及所适配的设备的硬件类型,因此,基于第二路径列表文件,获取并解析对应的所有安装包,可以得到每个安装包的安装包信息以及所适配的硬件类型,从而获取到可删除安装包,该可删除安装包是基于下载任务进行升级后的其他硬件类型,和/或,基于下载任务进行升级后,如需进行系统版本回退操作后的其他硬件类型均不使用的安装包。
在一些可能的实施例中,在所述存储下载的所有升级安装包之后,还包括:
获取所述第一路径列表文件后,备份所述第一路径列表文件;
在所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包之后,还包括:
从备份的所述第一路径列表文件中删除各个可删除安装包对应的存储路径,得到第四路径列表文件。
上述方法,在确定可删除安装包后,从备份的第一路径列表文件中删除每个可删除安装包对应的存储路径,可以大大节省无用安装包在待升级分布式系统包括的主控设备占用的存储空间。
进一步地,本申请实施例中,存储第四路径列表文件,而不是将第四路径列表文件对应的安装包进行重复存储,这样,可以大大节省在待升级分布式系统包括的主控设备中重复存储安装包所占用的存储空间,以及待升级分 布式系统内各个设备存储相应的安装包副本带来的存储空间浪费;这种将可能被使用的安装包保留,并将不会被使用的安装包删除,可以释放无用安装包在主控设备中占用的存储空间,从而提升设备使用率。
在一些可能的实施例中,在所述得到所述第三路径列表文件之后,还包括:
将所述第三路径列表文件替换所述第一路径列表文件;
在所述得到第四路径列表文件之后,还包括:
从安装包存储空间中删除各个可删除安装包。
上述方法,将待升级分布式系统包括的主控设备的安装包存储空间的可删除安装包删除,可以释放无用安装包在主控设备中占用的存储空间,从而提升设备使用率。
在一些可能的实施例中,所述基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备,包括:
基于所述最新系统安装包版本信息确定所述第一升级安装包所适配的待升级设备是否是所述主控设备;
将所述第一升级安装包中所适配的待升级设备不是所述主控设备的第二升级安装包下发至对应的受控设备,以使接收到所述第二升级安装包的受控设备基于所述第二升级安装包升级;
基于第一升级安装包中所适配的待升级设备是所述主控设备的第三升级安装包进行升级。
上述方法,通常升级操作是设备自身行为,因此,基于最新系统安装包版本信息,确定待升级设备不是主控设备时,将相应的升级安装包下发至对应的受控设备,从而完成软件升级,相应的,在确定待升级设备是主控设备时,采用该升级安装包对自身进行升级。
在一些可能的实施例中,在所述基于所述最新系统安装包版本信息确定所述第一升级安装包所适配的待升级设备是否是所述主控设备之后,还包括:
确定所述待升级设备是否对应至少两个升级安装包;
针对对应至少两个升级安装包的待升级设备,将对应的至少两个升级安装包的存储路径中最晚添加到所述第二路径列表文件的存储路径对应的升级安装包作为对应的待升级设备的升级安装包。
上述方法,在基于最新系统安装包版本信息进行软件升级过程中,若确定待升级设备对应多个安装包,则将最晚添加到第二路径列表文件中的,即最新下载的升级安装包作为该待升级设备所使用的升级安装包,从而使待升级分布式系统包括的主控设备准确完成升级相应的待升级设备的工作。
在一些可能的实施例中,在基于下载的所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备之后,还包括:
若确定至少一个待升级设备升级异常或者各个待升级设备完成升级后所述待升级分布式系统中的至少一个设备运行异常,则基于所述第四路径列表文件生成所述待升级分布式系统的回退系统安装包版本信息;
基于所述回退系统安装包版本信息对所述待升级分布式系统执行系统版本回退操作。
上述方法,在升级出现异常,需要进行系统版本回退操作时,可以基于得到的第四路径列表文件生成回退系统安装包版本信息,从而实现快速回退,进而降低升级过程服务不正常带来的损失。进一步地,通过存储第四路径列表文件,也免去了重复存储安装包副本造成的存储空间浪费。
第二方面,一种分布式系统的升级方法,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述方法包括:
向待升级分布式系统包括的主控设备发送所述下载任务,所述待升级分布式系统的升级安装包的下载路径,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到,以使所述主控设备从所述管理服务器下载所述下载路径对应的第一升级安装包,以及基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
在一些可能的实施例中,所述下载任务基于所述待升级分布式系统的系 统版本描述信息得到包括:
基于所述待升级分布式系统的系统版本描述信息与升级安装包集合确定所述待升级分布式系统和所述下载任务,所述升级安装包集合中的每个升级安装包对应一个适配的分布式系统中的待升级设备。
在一些可能的实施例中,所述基于所述待升级分布式系统的系统版本描述信息与升级安装包集合确定所述待升级分布式系统和所述下载任务包括:
向所述至少两个分布式系统分别发送系统版本描述信息获取请求,以使接收到所述系统版本描述信息获取请求的分布式系统获取自身的系统版本描述信息并返回;
分别接收所述至少两个分布式系统发送的系统版本描述信息;
确定所述待升级分布式系统的各个升级安装包;
获取各个升级安装包的下载路径;
生成携带各个升级安装包的下载路径的下载任务。
第三方面,一种分布式系统的升级装置,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述装置包括:
接收模块,用于接收管理服务器发送的下载任务,所述下载任务中包括所述待升级分布式系统的升级安装包的下载路径,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到;
下载模块,用于从所述管理服务器下载所述下载路径对应的第一升级安装包,所述第一升级安装包中包括所述待升级分布式系统中待升级设备所需的升级安装文件;
升级模块,用于基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
在一些可能的实施例中,在所述接收管理服务器发送的下载任务之前,所述接收模块还用于:
接收所述管理服务器发送的系统版本描述信息获取请求后,分别获取所 述主控设备和所述至少一个受控设备的设备版本描述信息;
根据硬件类型合并获取到的各个设备版本描述信息,得到所述待升级分布式系统的系统版本描述信息;
向所述管理服务器发送所述系统版本描述信息。
在一些可能的实施例中,在所述基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备之前,所述升级模块还用于:
存储所述第一升级安装包;
按照所述第一升级安装包中各个升级安装包的下载顺序将各个升级安装包的第二存储路径依次添加到所述主控设备存储的第一路径列表文件的最后一个第一存储路径之后,得到第二路径列表文件,所述第一路径列表文件包括所述主控设备在基于所述下载任务进行下载之前存储的所有运行安装包和所有回退安装包的存储路径;
确定所述第二路径列表文件对应的所有安装包中的可删除安装包;
从所述第二路径列表文件中删除各个可删除安装包的存储路径,得到第三路径列表文件;
基于所述第三路径列表文件生成所述待升级分布式系统的最新系统安装包版本信息。
在一些可能的实施例中,所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包,所述升级模块用于:
获取所述第二路径列表文件对应的各个安装包;
解析各个安装包,确定各个安装包所适配的硬件类型;
确定各个硬件类型是否对应至少三个安装包;
将对应至少三个安装包的硬件类型确定为目标硬件类型;
获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到所述第二路径列表文件的存储路径对应的安装包,得到候选安装包;
获取不符合预设条件的候选安装包作为可删除安装包。
在一些可能的实施例中,在所述存储下载的所有升级安装包之后,所述 升级模块还用于:
获取所述第一路径列表文件后,备份所述第一路径列表文件;
在所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包之后,所述升级模块还用于:
从备份的所述第一路径列表文件中删除各个可删除安装包对应的存储路径,得到第四路径列表文件。
在一些可能的实施例中,在所述得到所述第三路径列表文件之后,所述升级模块还用于:
将所述第三路径列表文件替换所述第一路径列表文件;
在所述得到第四路径列表文件之后,所述升级模块还用于:
从安装包存储空间中删除各个可删除安装包。
在一些可能的实施例中,基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备,所述升级模块用于:
基于所述最新系统安装包版本信息确定所述第一升级安装包所适配的待升级设备是否是所述主控设备;
将所述第一升级安装包中所适配的待升级设备不是所述主控设备的第二升级安装包下发至对应的受控设备,以使接收到所述第二升级安装包的受控设备基于所述第二升级安装包升级;
基于第一升级安装包中所适配的待升级设备是所述主控设备的第三升级安装包进行升级。
在一些可能的实施例中,在所述基于所述最新系统安装包版本信息确定各个升级安装包所适配的待升级设备是否是所述主控设备之后,所述升级模块还用于:
确定所述待升级设备是否对应至少两个升级安装包;
针对对应至少两个升级安装包的待升级设备,将对应的至少两个升级安装包的存储路径中最晚添加到所述第二路径列表文件的存储路径对应的升级安装包作为对应的待升级设备的升级安装包。
在一些可能的实施例中,在基于下载的所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备之后,所述升级模块还用于:
若确定至少一个待升级设备升级异常或者各个待升级设备完成升级后所述待升级分布式系统中的至少一个设备运行异常,则基于所述第四路径列表文件生成所述待升级分布式系统的回退系统安装包版本信息;
基于所述回退系统安装包版本信息对所述待升级分布式系统执行系统版本回退操作。
第四方面,一种分布式系统的升级装置,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述装置包括:
发送模块,用于向所述待升级分布式系统包括的主控设备发送所述下载任务,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到,以使所述主控设备从所述管理服务器下载所述下载路径对应的第一升级安装包,以及基于下载的所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
在一些可能的实施例中,还包括:
第一确定模块,用于将所述至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对,确定待升级分布式系统;
第二确定模块,用于确定所述待升级分布式系统对应的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
在一些可能的实施例中,在所述将所述至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对之前,所述第一确定模块还用于:
向所述至少两个分布式系统分别发送系统版本描述信息获取请求,以使接收到所述系统版本描述信息获取请求的分布式系统获取自身的系统版本描述信息并返回;
分别接收所述至少两个分布式系统发送的系统版本描述信息;
所述确定所述待升级分布式系统对应的携带各个升级安装包的下载路径的下载任务,所述第二确定模块用于:
确定所述待升级分布式系统的各个升级安装包;
获取各个升级安装包的下载路径;
生成携带各个升级安装包的下载路径的下载任务。
第五方面,本申请实施例中提供一种网络设备,所述网络设备包括存储器和处理器,
所述存储器,用于存储计算机程序或指令;
所述处理器,用于执行存储器中的计算机程序或指令,使得如上述第一方面中任一项所述的方法被执行。
第六方面,本申请实施例中提供一种服务器,所述服务器包括处理器和存储器,
所述存储器,用于存储计算机程序或指令;
所述处理器,用于执行存储器中的计算机程序或指令,使得如上述第二方面中任一项所述的方法被执行。
第七方面,本申请实施例中提供一种计算机可读存储介质,其上存储有计算机程序指令,该计算机程序指令被处理器执行时实现上述第一方面和上述第二方面中任一项所述方法的步骤。
另外,第二方面至第七方面中任一一种实现方式所带来的技术效果可参见第一方面中不同实现方式所带来的技术效果,此处不再赘述。
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部 分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本申请实施例中一种分布式系统的升级系统的系统架构示意图;
图2为本申请实施例中一种分布式系统的升级方法交互流程示意图;
图3A、图3B为本申请实施例中一种应用场景的示意图;
图4为本申请实施例中一种生成最新系统安装包版本信息的流程示意图;
图5为本申请实施例中一种获取可删除安装包的流程示意图;
图6为本申请实施例中一种分布式系统的升级方法的流程示意图;
图7为本申请实施例中一种待升级分布式系统得到新的第一路径列表文件和第四路径列表文件的示意图;
图8为本申请实施例中一种分布式系统的升级装置的逻辑架构示意图;
图9为本申请实施例中一种分布式系统的升级装置的逻辑架构示意图;
图10为本申请实施例中网络设备的实体架构示意图;
图11为本申请实施例中服务器的实体架构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,并不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够在除了这里图示或描述的那些以外的顺序实施。
已有技术下,管理服务器用于提供分布式基站进行软件版本升级所需的升级安装包。该管理服务器通常管理某一区域甚至某一城市的多个分布式基站,管理服务器与每个分布式基站之间通过公网相连接。
已有技术下,还存在另一种分布式基站进行软件升级和回退的方法。实际应用中,在管理服务器部署版本升级安装包之后,先触发管理服务器向连接的多个分布式基站分别发送获取请求,该获取请求用于分别获取连接的多个分布式基站各自的不同设备的硬件类型和当前软件版本信息;在管理服务器接收到多个分布式基站返回的自身的不同设备的硬件类型和当前软件版本信息,先对上述版本升级安装包进行解压,然后,分别将接收到的每个分布式基站的不同设备的硬件类型和当前软件版本信息,与解压得到的各个升级安装包进行比对,从而定制出分别适配于每个分布式基站的定制版本升级安装包,并存储各个定制版本升级安装包,确定下载任务,以及将下载任务发送至相应的分布式基站,以使每个分布式基站基于各自的下载任务,从管理服务器中下载对应的定制版本升级安装包。
然而,采用上述方法仍存在如下问题:管理服务器通常管理某一区域甚至某一城市的多个分布式基站,那么,若每个分布式基站进行升级所使用的升级安装包各不相同,则管理服务器需定制出大量不同组合的定制版本升级安装包,并将定制出的各个定制版本升级安装包进行存储,这样,虽然使每个定制版本升级安装包的数据量均不太大,且每个定制版本升级安装包也仅包含对应分布式基站升级所使用的升级安装包,但管理服务器需频繁基于每个分布式基站的不同设备的硬件类型和当前软件版本信息,对版本升级安装包进行解压,以及对比对出的每个分布式基站升级所使用的各个升级安装包进行压缩,从而不仅增加了管理服务器的中央处理器的资源耗费,也降低了管理服务器的磁盘的磁盘使用寿命。
进一步地,定制出的各个定制版本升级安装包,也增加了管理服务器存储上述各个定制版本升级安装包所需的存储空间。由于在管理服务器的存储空间一定的情况下,同一时间网络可支持的带宽是一定的,这样,又导致分布式基站下载相应的定制版本升级安装包的并发度低,进而造成分布式基站升级前用于下载定制版本升级安装包进行准备工作的下载耗时增长等。
为了解决上述问题,本申请实施例中,待升级分布式系统包括的主控设 备接收管理服务器发送的携带待升级分布式系统的各个升级安装包的下载路径的下载任务,并从管理服务器下载下载任务携带的各个下载路径对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备;其中,下载任务是管理服务器将连接的至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对确定出待升级分布式系统后发送的,每个升级安装包包括所适配的待升级分布式系统中的待升级设备所需的全部升级安装文件;这样,可以大大节省了主控设备存储各个升级安装包所需的存储空间,也可以大大减小待升级分布式系统中的主控设备从管理服务器下载各个升级安装包的数据量,且在管理服务器的存储空间一定的情况下,同样可以提高待升级分布式系统下载各个升级安装包的并发度,从而提高下载速度,缩短待升级分布式系统进行升级前进行升级准备工作的耗时。
需要说明的是,本申请实施例中,每个升级安装包所包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件,且该全部升级安装文件是适配于该待升级设备所需的全部升级安装文件,因此,对于每个待升级分布式系统包含的任意一个待升级设备其所使用的升级安装包中均不包含其他冗余的安装文件,同时,对于待升级分布式系统包含的任意一个无需升级的设备,均无需从管理服务器下载任何安装包,也不会从下载的升级安装包中获得与该设备关联的任何安装文件。
针对管理服务器部署的升级安装包集合包含的每个升级安装包,同样具有上述下载路径对应的升级安装包所具备的特征,且下载任务携带的每个下载路径即对应升级安装包集合中一个升级安装包的存储路径;这样,管理服务器不必基于至少两个分布式系统的系统版本描述信息进行二次压缩打包,节省了管理服务器存储适用于多个分布式系统的定制版本升级安装包的存储空间,也使得升级安装包的提供更具自由度,使得面对不同组合的分布式系统所提供的升级安装包的类型更少,使运维工作更简单便捷;同时,也降低了管理服务器的中央处理器的资源耗费,提高了磁盘使用寿命,使得管理服务器即不需增加硬件存储,也能显著提高其服务性能。
下面结合附图对本申请优选的实施方式做出进一步详细说明,应当理解,此处所描述的优选实施例仅用于说明和解释本申请,并不用于限定本申请,并且在不冲突的情况下,本申请实施例及实施例中的特征可以相互组合。
图1示出了本申请实施例中一种升级系统的系统架构示意图。参阅图1所示,该系统包括管理服务器100和与管理服务器100连接的分布式系统200;分布式系统200通过公共网络与管理服务器100相连接;其中,
管理服务器100,用于向至少两个分布式系统200分别发送系统版本描述信息获取请求,并分别接收至少两个分布式系统200发送的系统版本描述信息,还用于将至少两个分布式系统200的系统版本描述信息分别与升级安装包集合进行比对,确定待升级分布式系统;并确定待升级分布式系统对应的携带待升级分布式系统的各个升级安装包的下载路径的下载任务,以及向待升级分布式系统包括的主控设备发送下载任务。
分布式系统200包括主控设备2001和至少一个受控设备2002,分布式系统200通过主控设备2001与管理服务器100进行交互。
具体实施中,主控设备2001用于接收管理服务器100发送的携带分布式系统200的各个升级安装包的下载路径的下载任务;还用于从管理服务器100下载上述下载任务携带的各个下载路径对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备;其中,下载任务是管理服务器100将连接的至少两个分布式系统200的系统版本描述信息分别与升级安装包集合进行比对确定出待升级分布式系统后发送的,每个升级安装包包括所适配的待升级分布式系统中的待升级设备所需的全部升级安装文件。
需要说明的是,图1中分布式系统200仅为分布式系统的统称,并不仅限于拓扑结构完全相同的分布式系统,后续不再赘述。
参阅图2所示,本申请实施例中,提供的一种分布式系统的升级方法,具体流程如下:
步骤200:管理服务器向连接的至少两个分布式系统包括的主控设备分别发送系统版本描述信息获取请求,其中,系统版本描述信息获取请求用于获 取至少两个分布式系统各自的系统版本描述信息。
具体实施中,用户在管理服务器中部署用于对管理的多个分布式系统进行软件升级的升级安装包集合,其中,每个升级安装包所包含的全部升级安装文件是对应升级安装包所适配的待升级设备所需的全部升级安装文件,每个升级安装包还包含一个配置文件,该配置文件描述了升级安装包所包含的安装文件、版本信息以及所适配的设备的硬件类型等信息。
然后,当用户在管理服务器中完成上述升级安装包集合的部署后,触发管理服务器向连接的至少两个分布式系统包括的主控设备发送上述系统版本描述信息获取请求,以获取到至少两个分布式系统各自的系统版本描述信息。
需要说明的是,实际应用中,用户在管理服务器中部署完成上述升级安装包集合后,触发管理服务器分别向连接的至少两个分布式系统包括的主控设备发送该系统版本描述信息获取请求,同时并行处理与至少两个分布式系统包括的主控设备进行的交互流程。
本申请实施例中,为了便于介绍提供的一种分布式系统的升级方法,仅以一个分布式系统包括的主控设备接收到系统版本描述信息获取请求为例进行介绍,其他分布式系统包括的主控设备接收到上述系统版本描述信息获取请求后执行的步骤与此类似,在此不再赘述。
步骤201:至少两个分布式系统包括的主控设备接收管理服务器发送的系统版本描述信息获取请求后,分别获取主控设备和至少一个受控设备的设备版本描述信息。
具体实施中,至少两个分布式系统中的任意一个分布式系统包括的主控设备在接收到管理服务器发送的系统版本描述信息获取请求后,获取该分布式系统内部包含的每个设备的设备版本描述信息,即获取每个设备的硬件类型和当前软件版本信息。
步骤202:至少两个分布式系统包括的主控设备根据硬件类型合并获取到的各个设备版本描述信息,得到分布式系统的系统版本描述信息。
本申请实施例中,至少两个分布式系统中的任意一个分布式系统包括的 主控设备对获取到的各个设备版本描述信息,按照硬件类型进行合并,即合并具有相同硬件类型的设备版本描述信息,从而得到合并后的分布式系统的各个设备版本描述信息,并将上述合并后的各个设备版本描述信息,确定为分布式系统的系统版本描述信息,其中,该系统版本描述信息包括分布式系统包含的不同设备各自的设备版本描述信息,每个设备版本描述信息包括对应设备的硬件类型和当前软件版本信息。
例如,参阅图3A所示,以分布式系统为5G扩展型小基站为例。
参阅图3A所示,5G扩展型小基站包括基带处理单元(Baseband Unit,BBU)、交换机(HUB)及远端射频处理单元(Remote Radio Unit,RRU),其中,HUB连接BBU和RRU,HUB还可以进行级联,BBU对应本申请实施例中的主控设备,HUB、RRU对应本申请实施例中的受控设备。
假设上述5G扩展型小基站的基站内部拓扑结构如图3A所示,即该5G扩展型小基站包含一个BBU,记为BBU1A型;3个HUB,分别记为HUB1B型、HUB2C型、HUB3B型,其中,HUB2与HUB3级联;4个RRU,分别记为RRU1D型、RRU2E型、RRU3D型、RRU4E型,其中,RRU1和RRU2与HUB1相连接,RRU3与HUB2相连接,RRU4与HUB3相连接。
又假设用户在管理服务器中部署了升级安装包集合,以及在用户部署完成上述升级安装包集合后,触发管理服务器对管理的至少两个5G扩展型小基站分别发送系统版本描述信息获取请求,该系统版本描述信息获取请求用于获取至少两个5G扩展型小基站各自的系统版本描述信息。
那么,5G扩展型小基站包括的主控设备基于该系统版本描述信息获取请求,分别获取自身包含的主控设备和至少一个受控设备各自的设备版本描述信息,即每个设备的硬件类型及当前软件版本信息。
假设上述至少两个5G扩展型小基站中的一个5G扩展型小基站包含的各个设备版本描述信息如下表所示:
表1 5G扩展型小基站的设备版本描述信息
那么,5G扩展型小基站包括的主控设备根据硬件类型合并获取到的各个设备版本描述信息。
具体实施中,将表1中HUB1和HUB3的设备版本描述信息进行合并,将RRU1和RRU3的设备版本描述信息进行合并,以及将RRU1和RRU3的设备版本描述信息进行合并,分别得到HUB(B型——安装包4)、RRU合1(D型——安装包2)、RRU合2(E型——安装包2)。
再将合并后的各个设备版本描述信息,确定为5G扩展型小基站的系统版本描述信息,如下表所示:
表2 5G扩展型小基站的系统版本描述信息

需要说明的是,本申请实施例中,表2中当前软件版本信息是指管理服务器获取分布式系统的系统版本描述信息时,该分布式系统包含的不同设备的当前运行的软件版本信息。为了便于描述,仅以设备版本描述信息包括对应设备的硬件类型和软件版本信息为例进行介绍,实际应用中,设备版本描述信息还包括对应设备的升级时长等,后续不再赘述。
本申请实施例中,为了便于描述,软件版本信息仅以表2中的“安装包+(阿拉伯数字)”为例进行举例说明。实际应用中,软件版本信息包含对应安装包的安装包版本,对应安装包所包含的安装文件的文件名称,所包含的各个安装文件各自的文件版本,对应安装包的构建时间,构建厂商等等信息共同封装形成的对升级的软件版本具有唯一性辨识的描述信息。
本申请实例中,为了便于描述,硬件类型仅以“(大写字母)+型”为例进行介绍,实际应用中,硬件类型包含硬件产品编号,生产厂商,产品类型等等信息共同封装形成的对升级具备唯一性辨识的描述信息。
步骤203:至少两个分布式系统包括的主控设备向管理服务器发送上述系统版本描述信息。
本申请实施例中,在执行步骤203时,至少两个分布式系统中的任意一个分布式系统包括的主控设备将执行步骤202之后得到的系统版本描述信息发送给管理服务器,以使管理服务器将该系统版本描述信息与升级安装包集合进行比对,以确定该分布式系统是否为待升级分布式系统。
步骤204:管理服务器将至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对,判断上述至少两个分布式系统中是否存在待升级分布式系统,若是,则执行步骤205,否则,执行步骤206。
本申请实施例中,管理服务器在接收到至少两个分布式系统包括的主控设备发送的系统版本描述信息之后,对预先部署的升级安装包集合包含的每个升级安装包进行解析,并基于解析结果分别与至少两个分布式系统各自的版本描述信息进行比对,判断至少两个分布式系统中是否存在待升级分布式 系统,若是,则执行步骤206,否则,执行步骤205。
步骤205:结束流程。
步骤206:确定待升级分布式系统,确定待升级分布式系统对应的携带待升级分布式系统的各个升级安装包的下载路径的下载任务,每个升级安装包包括所适配的待升级分布式系统中的待升级设备所需的全部升级安装文件。
本申请实施例中,在执行步骤204时,基于比对结果判定至少两个分布式系统中存在待升级分布式系统,则在执行步骤206时,确定待升级分布式系统,并通过执行如下操作,确定待升级分布式系统对应的携带待升级分布式系统的各个升级安装包的下载路径的下载任务,其中,每个升级安装包包括所适配的待升级分布式系统中的待升级设备所需的全部升级安装文件:
操作一,确定待升级分布式系统的各个升级安装包。
操作二,获取各个升级安装包的下载路径。
操作三,生成携带各个升级安装包的下载路径的下载任务。
例如,参阅图3B所示,仍以分布式系统为5G扩展型小基站为例。
假设用户在管理服务器中部署的升级安装包集合为{A型——升级安装包5、B型/C型——升级安装包6、F型——升级安装包3、G型——升级安装包7}。
又假设5G扩展型小基站包括的主控设备向管理服务器发送的系统版本描述信息为{(A型——安装包3),(B型——安装包4),(C型——安装包2),(D型——安装包2),(E型——安装包2)}。
由于每个升级安装包还包含一个配置文件,该配置文件描述了升级安装包所包含的安装文件、版本信息以及所适配的设备的硬件类型;因此,管理服务器接收到该分布式系统的系统版本描述信息后,将该系统版本描述信息与上述升级安装包集合包含的每个升级安装包的配置文件进行比对,然后,基于比对结果确定5G扩展型小基站是待升级分布式系统,确定携带各个升级安装包的下载路径的下载任务,如下载任务携带的5G扩展型小基站的各个升级安装包的下载路径为{下载路径1(A型——升级安装包5)、下载路径2(B 型/C型——升级安装包6)}。
需要说明的是,管理服务器确定的下载任务携带的任意一个下载路径,即对应存储的上述升级安装包集合中的一个升级安装包的存储路径,那么,管理服务器仅需存储每个升级安装包即可,不必如已有技术下,在基于每个分布式系统的系统版本描述信息确定适配于该分布式系统的各个升级安装包后,再将上述确定的各个升级安装包进行进一步压缩打包,因此,本方案不仅节省了管理服务器存储适用于多个分布式系统的定制版本升级安装包的存储容量,也降低了运维复杂度。
步骤207:管理服务器向待升级分布式系统包括的主控设备发送下载任务。
本申请实施例中,在执行步骤207时,将执行步骤206之后确定的下载任务发送给待升级分布式系统包括的主控设备,以使该待升级分布式系统包括的主控设备从管理服务器下载上述下载任务携带的各个升级安装包的下载路径下载对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备。
步骤208:待升级分布式系统包括的主控设备接收管理服务器发送的携带待升级分布式系统的各个升级安装包的下载路径的下载任务。
步骤209:从管理服务器下载上述下载任务携带的各个下载路径对应的升级安装包。
本申请实施中,在执行步骤209时,待升级分布式系统包括的主控设备基于下载任务携带的各个下载路径,从管理服务器下载各个下载路径各自对应的升级安装包;然后,参阅图4所示,在执行步骤209之后,在执行步骤210之前,还具体执行如下步骤:
步骤400:存储下载的所有升级安装包。
本申请实施例中,在执行步骤400时,将下载到的各个升级安装包按照下载顺序,依次存储在安装包存储空间内,得到各个升级安装包各自对应的第一存储路径,其中,每个第一存储路径用于唯一记录该升级安装包在待升级分布式系统包括的主控设备内的存储路径。
步骤410:获取第一路径列表文件后,备份第一路径列表文件。
本申请实施例中,在执行步骤400之后,获取第一路径列表文件,并备份该第一路径列表文件,其中,第一路径列表文件包括待升级分布式系统包括的主控设备在基于下载任务进行下载之前存储的所有运行安装包和所有回退安装包的存储路径。备份的第一路径列表文件用于构建该待升级分布式系统的第四路径列表文件,该第四路径列表文件用于生成回退系统安装包版本信息,该回退系统安装包版本信息用于在待升级分布式系统需要进行系统版本回退操作时使用。
步骤420:按照各个升级安装包的下载顺序将各个升级安装包的第一存储路径依次添加到主控设备存储的第一路径列表文件的最后一个第二存储路径之后,得到第二路径列表文件。
步骤430:确定第二路径列表文件对应的所有安装包中的可删除安装包。
本申请实施例中,参阅图5所示,在执行步骤430时,通过执行如下步骤,确定出上述可删除安装包:
步骤4301:获取第二路径列表文件对应的各个安装包。
本申请实施例中,执行步骤4301时,待升级分布式系统包括的主控设备可以基于第二路径列表文件包含的所有存储路径,从安装包存储空间中一次获取到所有安装包;也可以按照第二路径列表文件包含的各个存储路径的排序顺序,即自最早添加(最早下载)的安装包到最晚添加(最晚下载)的安装包的顺序,从安装包存储空间中逐个获取对应的安装包。
步骤4302:解析各个安装包,确定各个安装包所适配的硬件类型。
本申请实施例中,若执行步骤4301时,待升级分布式系统包括的主控设备是从安装包存储空间中一次获取到所有安装包,则在执行步骤4302时,按照第二路径列表文件中各个存储路径的排序顺序,即自最早添加(最早下载)的安装包到最晚添加(最晚下载)的安装包的顺序,依次解析安装包,确定各个安装包所适配的硬件类型。
若执行步骤4301时,待升级分布式系统包括的主控设备是从安装包存储 空间中,自最早添加(最早下载)的安装包到最晚添加(最晚下载)的安装包的顺序,逐个获取的安装包,则在执行步骤4302时,解析该获取到的安装包,确定该安装包所适配的硬件类型,直至解析最后一个第一存储路径对应的升级安装包,确定该升级安装包所适配的硬件类型。
步骤4303:确定各个硬件类型是否对应至少三个安装包。
本申请实施例中,待升级分布式系统包括的主控设备从确定的各个安装包所适配的硬件类型中,确定各个硬件类型是否对应至少三个安装包。
步骤4304:将对应至少三个安装包的硬件类型确定为目标硬件类型。
本申请实施例中,在执行步骤4304时,将在执行步骤4303,确定的对应至少三个安装包的硬件类型确定为目标硬件类型。
步骤4305:获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到第二路径列表文件的存储路径对应的安装包,得到候选安装包。
本申请实施例中,在执行步骤4305时,各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到第二路径列表文件中的存储路径对应的安装包,表征该安装包是主控设备从管理服务器中最早下载的。需要说明的是,该最早下载不是本次下载任务中的最早下载,而是针对第二路径列表文件包含的所有存储路径对应的所有安装包来说,该安装包是最早下载的。
步骤4306:获取不符合预设条件的候选安装包作为可删除安装包。
本申请实施例中,在执行步骤4305,得到各个候选安装包后,在执行步骤4306时,需判断每个候选安装包是否符合预设条件,其中,预设条件包含但不限于如下条件:
条件一,基于下载任务进行升级后的其他硬件类型所使用;
条件二,基于下载任务进行升级后,如需进行系统版本回退操作后的其他硬件类型所使用。
若判定该候选安装包不符合预设条件,则将该候选安装包确定为可删除安装包。
需要说明的是,上述可删除安装包可能存在,也可能不存在,具体实施 中,基于实际情况进行具体判断,本申请实施例中,仅提供一种确定可删除安装包的方式,但不仅限于上述一种确定方式,再此不在赘述。
例如,以待升级分布式系统为5G扩展型小基站为例。
假设5G扩展型小基站包括的主控设备的安装包存储空间中,在进行上述下载任务之前,已存储有4个安装包,分别为安装包1(第二存储路径1)、安装包2(第二存储路径2)、安装包3(第二存储路径3)、安装包4(第二存储路径4)。
那么,5G扩展型小基站包括的主控设备从管理服务器下载上述下载任务携带的各个下载路径对应的升级安装包后,存储上述所有升级安装包,得到各个升级安装包对应的存储路径,如升级安装包5对应的存储路径为第一存储路径1、升级安装包6对应的存储路径为第一存储路径2。
然后,5G扩展型小基站包括的主控设备获取第一路径列表文件,并备份第一路径列表文件;再按照各个升级安装包的下载顺序将各个升级安装包的第一存储路径,依次添加到第一路径列表文件的最后一个第二存储路径之后,得到第二路径列表文件。
表3示出了5G扩展型小基站包括的主控设备获取到的第一路径列表文件和得到的第二路径列表文件:
表3 第一路径列表文件和第二路径列表文件
获取的第一路径列表文件 得到的第二路径列表文件
第二存储路径1(安装包1) 第二存储路径1(安装包1)
第二存储路径2(安装包2) 第二存储路径2(安装包2)
第二存储路径3(安装包3) 第二存储路径3(安装包3)
第二存储路径4(安装包4) 第二存储路径4(安装包4)
  第一存储路径1(升级安装包5)
  第一存储路径2(升级安装包6)
再次,5G扩展型小基站包括的主控设备确定第二路径列表文件对应的所 有安装包中的可删除安装包。
具体实施中,主控设备获取第二路径列表文件对应的各个安装包,并解析各个安装包,确定各个安装包所适配的硬件类型。
假设确定的各个安装包所适配的硬件类型如下表所示:
表4 基于第二路径列表文件确定的各个安装包所适配的硬件类型一览表

注:表4中“Y”表征该安装包适配于该硬件类型。
需要说明的是,为了便于描述,表4中仅列出了第二路径列表文件中所有安装包所适配的硬件类型,实际应用中,上表还包括各个安装包的安装包信息所适配的硬件类型,其中,每个安装包信息包括对应安装包在主控设备的存储路径、对应安装包的版本信息、对应安装包包含的每个安装文件的解压路径信息,以及对应安装包的存储路径在第二路径列表文件的排序信息。
然后,5G扩展型小基站包括的主控设备基于表4,确定各个硬件类型是否对应至少三个安装包,并将对应至少三个安装包的硬件类型确定为目标硬件类型;如,目标硬件类型为A型、B型。
5G扩展型小基站包括的主控设备在确定目标硬件类型后,获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到第二路径列表文件的存储路径对应的安装包,得到候选安装包。
具体实施中,5G扩展型小基站包括的主控设备针对目标硬件类型为A型,从A型对应的至少三个安装包的存储路径中,获取最早添加到第二路径列表文件的存储路径对应的安装包,即从安装包1、安装包3和升级安装包5中, 获取到的最早添加到第二路径列表文件的存储路径对应的安装包是安装包1,则得到的候选安装包是安装包1。
相应地,针对目标硬件类型为B型,从B型对应的至少三个安装包的存储路径中,获取最早添加到第二路径列表文件的存储路径对应的安装包,得到候选安装包,即从安装包1、安装包4和升级安装包6中,获取到的最早添加到第二路径列表文件的存储路径对应的安装包是安装包1,则得到的候选安装包也为安装包1。
再次,5G扩展型小基站包括的主控设备获取不符合预设条件的候选安装包作为可删除安装包。
具体实施中,5G扩展型小基站包括的主控设备基于每个候选安装包,判断每个候选安装包是否适配于5G扩展型小基站基于下载任务进行升级后的其他硬件类型所使用,以及,判断每个候选安装包是否适配于5G扩展型小基站基于下载任务进行升级后,如需进行系统版本回退操作后的其他硬件类型所使用。
由于基于该下载任务对分布式系统进行升级均需采用本次下载任务携带的各个下载路径对应的升级安装包进行,因此,可删除安装包不会是本次下载任务对应的升级安装包,即可删除安装包一定为5G扩展型小基站在本次下载任务之前已存储的安装包之中。
具体实施中,5G扩展型小基站中,A型——升级安装包5(升级后)——安装包3(回退后);B型——升级安装包6(升级后)——安装包4(回退后);C型——升级安装包6(升级后)——安装包2(回退后);D型——安装包2(升级后)——安装包2(回退后);E型——安装包2(升级后)——安装包2(回退后)。
那么,5G扩展型小基站包括的主控设备确定该候选安装包(即,安装包1)在基于本次下载任务进行升级后和如需进行系统版本回退操作后均不被其他硬件类型所使用,则5G扩展型小基站包括的主控设备确定该候选安装包(即,安装包1)为可删除安装包,即该候选安装包(即,安装包1)是无用 的安装包,故可以删除。
若假设确定的各个安装包所适配的硬件类型如下表所示:
表5 基于第二路径列表文件确定的各个安装包所适配的硬件类型一览表

注:表5中“Y”表征该安装包适配于该硬件类型。
需要说明的是,为了便于描述,表5中仅列出了第二路径列表文件中所有安装包所适配的硬件类型,实际应用中,上表还包括各个安装包的安装包信息所适配的硬件类型,其中,每个安装包信息包括对应安装包在主控设备的存储路径、对应安装包的版本信息、对应安装包包含的每个安装文件的解压路径信息,以及对应安装包的存储路径在第二路径列表文件的排序信息。
那么,5G扩展型小基站包括的主控设备基于表5,确定的目标硬件类型仍为A型、B型,且基于A型和B型分别获取各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到第二路径列表文件的存储路径对应的安装包,得到的候选安装包仍为安装包1。
然而,5G扩展型小基站包括的主控设备获取不符合预设条件的候选安装包作为可删除安装包时,确定该安装包1在基于本次下载任务进行升级后和如需进行系统版本回退操作后均被H型所使用,则5G扩展型小基站包括的主控设备将获取不到可删除安装包,即该应用场景下,不存在无用的安装包。
步骤440:从第二路径列表文件中删除各个可删除安装包的存储路径,得 到第三路径列表文件。
本申请实施例中,在执行步骤430后,确定了可删除安装包后,那么,在执行步骤440时,将确定的各个可删除安装包对应的存储路径从第二路径列表文件中删除,从而得到第三路径列表文件;该第三路径列表文件用于生成分布式系统的最新系统安装包版本信息,以为基于本次下载任务进行升级所使用。
步骤450:从备份的第一路径列表文件中删除各个可删除安装包对应的存储路径,得到第四路径列表文件。
本申请实施例中,在确定出可删除安装包之后,执行步骤450,将每个可删除安装包对应的存储路径,从备份的第一路径列表文件中删除,从而得到第四路径列表文件,其中,第四路径列表文件包括在主控设备基于上述下载任务进行下载之前,分布式系统运行所需的所有运行安装包对应的第二存储路径,第四路径列表文件用于生成待升级分布式系统的回退系统安装包版本信息,该回退系统安装包版本信息是若待升级分布式系统确定至少一个待升级设备升级异常或者各个待升级设备完成升级后待升级分布式系统中的至少一个设备运行异常时,基于该回退系统安装包版本信息执行系统版本回退操作。
需要说明的是,本申请实施例中的步骤440与步骤450执行的先后顺序不作限定,可以先执行步骤440,或先执行步骤450,或同时执行步骤440和步骤450。
步骤460:从安装包存储空间中删除各个可删除安装包。
本申请实施例中,在执行步骤440和步骤450之后,从安装包存储空间中删除上述确定的各个可删除安装包,这样,把无用的安装包及时清理,可以节省分布式系统包括的主控设备中存储安装包所需的内存空间。
步骤470:将第三路径列表文件替换第一路径列表文件。
步骤480:基于第三路径列表文件生成待升级分布式系统的最新系统安装包版本信息。
本申请实施例中,在执行步骤480时,待升级分布式系统包括的主控设备基于该第三路径列表文件,生成该待升级分布式系统的最新系统安装包版本信息,其中,该最新系统安装包版本信息是基于第三路径列表文件对应的所有安装包包含的配置文件共同构建的,包含每个安装包信息与所适配的硬件类型,每个安装包信息包括对应安装包在主控设备中的存储路径、对应安装包的版本信息、对应安装包包含的每个安装文件的解压路径信息,以及对应安装包的存储路径在第三路径列表文件的排序信息。
步骤210:分别基于下载的各个升级安装包升级相应的待升级设备。
本申请实施例中,在执行步骤210时,基于步骤480生成的最新系统安装包版本信息,以及下载的各个升级安装包,升级待升级设备。
具体实施中,参阅图6所示,在执行步骤210时,通过执行如下步骤,实现上述功能:
步骤600:基于最新系统安装包版本信息确定各个升级安装包所适配的待升级设备是否是主控设备,若是,则执行步骤620,否则,则执行步骤610。
本申请实施例中,在执行步骤600之后,还通过执行如下操作,确定针对待升级设备的升级安装包:
操作一,确定各个待升级设备是否对应至少两个升级安装包。
操作二,针对对应至少两个升级安装包的待升级设备,将对应的至少两个升级安装包的存储路径中最晚添加到第二路径列表文件的存储路径对应的升级安装包作为对应的待升级设备的升级安装包。
步骤610:将所适配的待升级设备不是主控设备的升级安装包下发至对应的受控设备,以使接收到升级安装包的受控设备基于接收到的升级安装包升级。
本申请实施例中,在待升级分布式系统包括的主控设备确定各个升级安装包所适配的待升级设备不是主控设备,则将所适配的待升级设备不是主控设备的升级安装包下发至相应的受控设备,以使受控设备升级自身软件版本。
步骤620:基于所适配的待升级设备是主控设备的升级安装包进行升级。
本申请实施例中,在待升级分布式系统包括的主控设备确定各个升级安装包所适配的待升级设备是主控设备,则基于该升级安装包对自身进行软件升级。
本申请实施例中,在执行步骤210之后,若待升级分布式系统包括的主控设备确定至少一个待升级设备升级异常或者各个待升级设备完成升级后待升级分布式系统中的至少一个设备运行异常,则基于第四路径列表文件生成待升级分布式系统的回退系统安装包版本信息,再基于回退系统安装包版本信息对待升级分布式系统执行系统版本回退操作。
需要说明的是,本申请实施例中,存在如下两种特例:
特例一,若待升级分布式系统包括的主控设备确定下载任务携带的所有下载路径对应的所有升级安装包,适配于待升级分布式系统包含的所有硬件类型,则该下载任务对应的是待升级分布式系统的整站版本升级下载任务。
特例二,若待升级分布式系统包括的主控设备确定下载任务携带的所有下载路径对应的所有升级安装包,仅适配于待升级分布式系统包含的部分硬件类型,则该下载任务对应的是待升级分布式系统的增量版本升级下载任务。
例如,参阅图7所示,仍以待升级分布式系统为5G扩展型小基站为例。
假设5G扩展型小基站包括的主控设备确定的可删除安装包是安装包1。
则5G扩展型小基站包括的主控设备将安装包1对应的第二存储路径从第二路径列表文件中删除,得到第三路径列表文件,并将第三路径列表文件替换第一路径列表文件。本申请实施例中,得到的第三路径列表文件(即,新的第一路径列表文件)如表6所示:
表6 第三路径列表文件(即,新的第一路径列表文件)
第三路径列表文件(新的第一路径列表文件)
第二存储路径2(安装包2)
第二存储路径3(安装包3)
第二存储路径4(安装包4)
第一存储路径1(升级安装包5)
第一存储路径2(升级安装包6)
然后,从备份的第一路径列表文件中删除安装包1对应的第二存储路径,得到第四路径列表文件。本申请实施例中,得到的第四路径列表文件如表7所示:
表7 第四路径列表文件
第四路径列表文件
第二存储路径2(安装包2)
第二存储路径3(安装包3)
第二存储路径4(安装包4)
再次,将安装包1从安装包存储空间中删除,从而释放存储空间;此时,安装包存储空间保存的安装包列表如表8所示:
表8 安装包存储空间中存储的安装包的前后对比一览表
若主控设备确定至少一个待升级设备升级异常或者各个待升级设备完成升级后待升级分布式系统中的至少一个设备运行异常,5G扩展型小基站包括的主控设备(即,BBU1A型)确定一个设备(如,HUB2C型)出现升级异常,或者完成升级后的分布式系统包含的一个设备(如,BBU1)出现运行异常, 则基于第四路径列表文件生成的系统回退安装包版本信息,并基于该系统回退安装包版本信息对5G扩展型小基站执行系统版本回退操作。
基于同一发明构思,参阅图8所示,本申请实施例中提供一种分布式系统的升级装置,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述装置包括:
接收模块801,用于接收管理服务器发送的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,所述下载任务是所述管理服务器将连接的至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对确定出所述待升级分布式系统后发送的,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
下载模块802,用于从所述管理服务器下载所述下载任务携带的各个下载路径对应的升级安装包;
升级模块803,用于分别基于下载的各个升级安装包升级相应的待升级设备。
在一些可能的实施例中,在所述接收管理服务器发送的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务之前,所述接收模块801还用于:
接收所述管理服务器发送的系统版本描述信息获取请求后,分别获取所述主控设备和所述至少一个受控设备的设备版本描述信息;
根据硬件类型合并获取到的各个设备版本描述信息,得到所述待升级分布式系统的系统版本描述信息;
向所述管理服务器发送所述系统版本描述信息。
在一些可能的实施例中,在所述分别基于下载的各个升级安装包升级相应的待升级设备之前,所述升级模块803还用于:
存储下载的所有升级安装包;
按照各个升级安装包的下载顺序将各个升级安装包的第一存储路径依次添加到所述主控设备存储的第一路径列表文件的最后一个第二存储路径之后, 得到第二路径列表文件,所述第一路径列表文件包括所述主控设备在基于所述下载任务进行下载之前存储的所有运行安装包和所有回退安装包的存储路径;
确定所述第二路径列表文件对应的所有安装包中的可删除安装包;
从所述第二路径列表文件中删除各个可删除安装包的存储路径,得到第三路径列表文件;
基于所述第三路径列表文件生成所述待升级分布式系统的最新系统安装包版本信息。
在一些可能的实施例中,所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包,所述升级模块803用于:
获取所述第二路径列表文件对应的各个安装包;
解析各个安装包,确定各个安装包所适配的硬件类型;
确定各个硬件类型是否对应至少三个安装包;
将对应至少三个安装包的硬件类型确定为目标硬件类型;
获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到所述第二路径列表文件的存储路径对应的安装包,得到候选安装包;
获取不符合预设条件的候选安装包作为可删除安装包。
在一些可能的实施例中,在所述存储下载的所有升级安装包之后,所述升级模块803还用于:
获取所述第一路径列表文件后,备份所述第一路径列表文件;
在所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包之后,所述升级模块803还用于:
从备份的所述第一路径列表文件中删除各个可删除安装包对应的存储路径,得到第四路径列表文件。
在一些可能的实施例中,在所述得到所述第三路径列表文件之后,所述升级模块803还用于:
将所述第三路径列表文件替换所述第一路径列表文件;
在所述得到第四路径列表文件之后,所述升级模块803还用于:
从安装包存储空间中删除各个可删除安装包。
在一些可能的实施例中,所述分别基于下载的各个升级安装包升级相应的待升级设备,所述升级模块803用于:
基于所述最新系统安装包版本信息确定各个升级安装包所适配的待升级设备是否是所述主控设备;
将所适配的待升级设备不是所述主控设备的升级安装包下发至对应的受控设备,以使接收到升级安装包的受控设备基于接收到的升级安装包升级;
基于所适配的待升级设备是所述主控设备的升级安装包进行升级。
在一些可能的实施例中,在所述基于所述最新系统安装包版本信息确定各个升级安装包所适配的待升级设备是否是所述主控设备之后,所述升级模块803还用于:
确定各个待升级设备是否对应至少两个升级安装包;
针对对应至少两个升级安装包的待升级设备,将对应的至少两个升级安装包的存储路径中最晚添加到所述第二路径列表文件的存储路径对应的升级安装包作为对应的待升级设备的升级安装包。
在一些可能的实施例中,在分别基于下载的各个升级安装包升级相应的待升级设备之后,所述升级模块803还用于:
若确定至少一个待升级设备升级异常或者各个待升级设备完成升级后所述待升级分布式系统中的至少一个设备运行异常,则基于所述第四路径列表文件生成所述待升级分布式系统的回退系统安装包版本信息;
基于所述回退系统安装包版本信息对所述待升级分布式系统执行系统版本回退操作。
基于同一发明构思,参阅图9所示,本申请实施例中提供一种分布式系统的升级装置,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述装置包括:
第一确定模块901,用于将所述至少两个分布式系统的系统版本描述信息 分别与升级安装包集合进行比对,确定待升级分布式系统;
第二确定模块902,用于确定所述待升级分布式系统对应的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
发送模块903,用于向所述待升级分布式系统包括的主控设备发送所述下载任务,以使所述主控设备从所述管理服务器下载所述下载任务携带的各个升级安装包的下载路径下载对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备。
在一些可能的实施例中,在所述将所述至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对之前,所述第一确定模块901还用于:
向所述至少两个分布式系统分别发送系统版本描述信息获取请求,以使接收到所述系统版本描述信息获取请求的分布式系统获取自身的系统版本描述信息并返回;
分别接收所述至少两个分布式系统发送的系统版本描述信息;
所述确定所述待升级分布式系统对应的携带各个升级安装包的下载路径的下载任务,所述第二确定模块902用于:
确定所述待升级分布式系统的各个升级安装包;
获取各个升级安装包的下载路径;
生成携带各个升级安装包的下载路径的下载任务。
参阅图10所示,本申请实施例中提供一种网络设备,包括存储器1001和处理器1002,具体的:
存储器1001,用于存储计算机程序或指令。
处理器1002,用于执行存储器中的计算机程序或指令,使得如上述各个实施例中分布式系统的升级装置(如,分布式系统中的主控设备)执行的任意一种方法。
本申请实施例中不限定上述存储器1001、处理器1002之间的具体连接介 质。本申请实施例在图10中以存储器1001、处理器1002之间通过总线1000连接,总线1000在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线1000可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器1001可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1001也可以是非易失性存储器(non-volatile memory),例如只读存储器,快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)、或者存储器1001是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1001可以是上述存储器的组合。
参阅图11所示,本申请实施例中提供一种服务器,包括存储器1101和处理器1102,具体的:
存储器1101,用于存储计算机程序或指令。
处理器1102,用于执行存储器中的计算机程序或指令,使得如上述各个实施例中分布式系统的升级装置(如,管理服务器)执行的任意一种方法。
本申请实施例中不限定上述存储器1101、处理器1102之间的具体连接介质。本申请实施例在图11中以存储器1101、处理器1102之间通过总线1100连接,总线1100在图11中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线1100可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器1101可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1101也可以是非易失性存储器(non-volatile memory),例如只读存储器,快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)、或者存储 器1101是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1101可以是上述存储器的组合。
基于同一发明构思,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序指令,该计算机程序指令被处理器执行时实现上述各个实施例中分布式系统的升级装置执行的任意一种方法。
本申请的一个实施例,还提供一种分布式系统的升级方法,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述方法包括:
接收管理服务器发送的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,所述下载任务是所述管理服务器将连接的至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对确定出所述待升级分布式系统后发送的,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
从所述管理服务器下载所述下载任务携带的各个下载路径对应的升级安装包;
分别基于下载的各个升级安装包升级相应的待升级设备。
一种可能的实现中,在所述接收管理服务器发送的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务之前,还包括:
接收所述管理服务器发送的系统版本描述信息获取请求后,分别获取所述主控设备和所述至少一个受控设备的设备版本描述信息;
根据硬件类型合并获取到的各个设备版本描述信息,得到所述待升级分布式系统的系统版本描述信息;
向所述管理服务器发送所述系统版本描述信息。
一种可能的实现中,在所述分别基于下载的各个升级安装包升级相应的待升级设备之前,还包括:
存储下载的所有升级安装包;
按照各个升级安装包的下载顺序将各个升级安装包的第一存储路径依次添加到所述主控设备存储的第一路径列表文件的最后一个第二存储路径之后,得到第二路径列表文件,所述第一路径列表文件包括所述主控设备在基于所述下载任务进行下载之前存储的所有运行安装包和所有回退安装包的存储路径;
确定所述第二路径列表文件对应的所有安装包中的可删除安装包;
从所述第二路径列表文件中删除各个可删除安装包的存储路径,得到第三路径列表文件;
基于所述第三路径列表文件生成所述待升级分布式系统的最新系统安装包版本信息。
一种可能的实现中,所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包,包括:
获取所述第二路径列表文件对应的各个安装包;
解析各个安装包,确定各个安装包所适配的硬件类型;
确定各个硬件类型是否对应至少三个安装包;
将对应至少三个安装包的硬件类型确定为目标硬件类型;
获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到所述第二路径列表文件的存储路径对应的安装包,得到候选安装包;
获取不符合预设条件的候选安装包作为可删除安装包。
一种可能的实现中,在所述存储下载的所有升级安装包之后,还包括:
获取所述第一路径列表文件后,备份所述第一路径列表文件;
在所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包之后,还包括:
从备份的所述第一路径列表文件中删除各个可删除安装包对应的存储路径,得到第四路径列表文件。
一种可能的实现中,在所述得到所述第三路径列表文件之后,还包括:
将所述第三路径列表文件替换所述第一路径列表文件;
在所述得到第四路径列表文件之后,还包括:
从安装包存储空间中删除各个可删除安装包。
一种可能的实现中,所述分别基于下载的各个升级安装包升级相应的待升级设备,包括:
基于所述最新系统安装包版本信息确定各个升级安装包所适配的待升级设备是否是所述主控设备;
将所适配的待升级设备不是所述主控设备的升级安装包下发至对应的受控设备,以使接收到升级安装包的受控设备基于接收到的升级安装包升级;
基于所适配的待升级设备是所述主控设备的升级安装包进行升级。
一种可能的实现中,在所述基于所述最新系统安装包版本信息确定各个升级安装包所适配的待升级设备是否是所述主控设备之后,还包括:
确定各个待升级设备是否对应至少两个升级安装包;
针对对应至少两个升级安装包的待升级设备,将对应的至少两个升级安装包的存储路径中最晚添加到所述第二路径列表文件的存储路径对应的升级安装包作为对应的待升级设备的升级安装包。
一种可能的实现中,在分别基于下载的各个升级安装包升级相应的待升级设备之后,还包括:
若确定至少一个待升级设备升级异常或者各个待升级设备完成升级后所述待升级分布式系统中的至少一个设备运行异常,则基于所述第四路径列表文件生成所述待升级分布式系统的回退系统安装包版本信息;
基于所述回退系统安装包版本信息对所述待升级分布式系统执行系统版本回退操作。
本申请的另一实施例,还提供了一种分布式系统的升级方法,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述方法包括:
将所述至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对,确定待升级分布式系统;
确定所述待升级分布式系统对应的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
向所述待升级分布式系统包括的主控设备发送所述下载任务,以使所述主控设备从所述管理服务器下载所述下载任务携带的各个升级安装包的下载路径下载对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备。
一种可能的实现中,在所述将所述至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对之前,还包括:
向所述至少两个分布式系统分别发送系统版本描述信息获取请求,以使接收到所述系统版本描述信息获取请求的分布式系统获取自身的系统版本描述信息并返回;
分别接收所述至少两个分布式系统发送的系统版本描述信息;
所述确定所述待升级分布式系统对应的携带各个升级安装包的下载路径的下载任务,包括:
确定所述待升级分布式系统的各个升级安装包;
获取各个升级安装包的下载路径;
生成携带各个升级安装包的下载路径的下载任务。
本申请的又一实施例,还提供了一种分布式系统的升级装置,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述装置包括:
接收模块,用于接收管理服务器发送的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,所述下载任务是所述管理服务器将连接的至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对确定出所述待升级分布式系统后发送的,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
下载模块,用于从所述管理服务器下载所述下载任务携带的各个下载路 径对应的升级安装包;
升级模块,用于分别基于下载的各个升级安装包升级相应的待升级设备。
本申请的又一实施例,还提供了一种分布式系统的升级装置,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述装置包括:
第一确定模块,用于将所述至少两个分布式系统的系统版本描述信息分别与升级安装包集合进行比对,确定待升级分布式系统;
第二确定模块,用于确定所述待升级分布式系统对应的携带所述待升级分布式系统的各个升级安装包的下载路径的下载任务,每个升级安装包包括所适配的所述待升级分布式系统中的待升级设备所需的全部升级安装文件;
发送模块,用于向所述待升级分布式系统包括的主控设备发送所述下载任务,以使所述主控设备从所述管理服务器下载所述下载任务携带的各个升级安装包的下载路径下载对应的升级安装包,以及分别基于下载的各个升级安装包升级相应的待升级设备。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图中的一个流程或多个流程和/或方框图中的一个方框或多个方框中指定的功 能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图中的一个流程或多个流程和/或方框图中的一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图中的一个流程或多个流程和/或方框图中的一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (17)

  1. 一种分布式系统的升级方法,其特征在于,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述方法包括:
    接收管理服务器发送的下载任务,所述下载任务中包括所述待升级分布式系统的升级安装包的下载路径,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到;
    从所述管理服务器下载所述下载路径对应的第一升级安装包,所述第一升级安装包中包括所述待升级分布式系统中待升级设备所需的升级安装文件;
    基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
  2. 如权利要求1所述的方法,其特征在于,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到包括:
    基于所述待升级分布式系统的系统版本描述信息与升级安装包集合确定所述待升级分布式系统和所述下载任务,所述升级安装包集合中的每个升级安装包对应一个适配的分布式系统中的待升级设备。
  3. 如权利要求1或2所述的方法,其特征在于,在所述接收管理服务器发送的下载任务之前,还包括:
    接收所述管理服务器发送的系统版本描述信息获取请求后,分别获取所述主控设备和所述至少一个受控设备的设备版本描述信息;
    根据硬件类型合并获取到的各个设备版本描述信息,得到所述待升级分布式系统的系统版本描述信息;
    向所述管理服务器发送所述待升级分布式系统的系统版本描述信息。
  4. 如权利要求1所述的方法,其特征在于,在基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备之前,还包括:
    存储所述第一升级安装包;
    按照所述第一升级安装包中各个升级安装包的下载顺序将各个升级安装包的第二存储路径依次添加到所述主控设备存储的第一路径列表文件的最后一个第一存储路径之后,得到第二路径列表文件,所述第一路径列表文件包括所述主控设备在基于所述下载任务进行下载之前存储的所有运行安装包和所有回退安装包的存储路径;
    确定所述第二路径列表文件对应的所有安装包中的可删除安装包;
    从所述第二路径列表文件中删除各个可删除安装包的存储路径,得到第三路径列表文件;
    基于所述第三路径列表文件生成所述待升级分布式系统的最新系统安装包版本信息。
  5. 如权利要求4所述的方法,其特征在于,所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包,包括:
    获取所述第二路径列表文件对应的各个安装包;
    解析各个安装包,确定各个安装包所适配的硬件类型;
    确定各个硬件类型是否对应至少三个安装包;
    将对应至少三个安装包的硬件类型确定为目标硬件类型;
    获取在各个目标硬件类型对应的至少三个安装包的存储路径中最早添加到所述第二路径列表文件的存储路径对应的安装包,得到候选安装包;
    获取不符合预设条件的候选安装包作为可删除安装包。
  6. 如权利要求4所述的方法,其特征在于,在所述存储下载的所有升级安装包之后,还包括:
    获取所述第一路径列表文件后,备份所述第一路径列表文件;
    在所述确定所述第二路径列表文件对应的所有安装包中的可删除安装包之后,还包括:
    从备份的所述第一路径列表文件中删除各个可删除安装包对应的存储路径,得到第四路径列表文件。
  7. 如权利要求6所述的方法,其特征在于,在所述得到所述第三路径列 表文件之后,还包括:
    将所述第三路径列表文件替换所述第一路径列表文件;
    在所述得到第四路径列表文件之后,还包括:
    从安装包存储空间中删除各个可删除安装包。
  8. 如权利要求4-7任一项所述的方法,其特征在于,所述基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备,包括:
    基于所述最新系统安装包版本信息确定所述第一升级安装包所适配的待升级设备是否是所述主控设备;
    将所述第一升级安装包中所适配的待升级设备不是所述主控设备的第二升级安装包下发至对应的受控设备,以使接收到所述第二升级安装包的受控设备基于所述第二升级安装包升级;
    基于第一升级安装包中所适配的待升级设备是所述主控设备的第三升级安装包进行升级。
  9. 如权利要求8所述的方法,其特征在于,在所述基于所述最新系统安装包版本信息确定所述第一升级安装包所适配的待升级设备是否是所述主控设备之后,还包括:
    确定所述待升级设备是否对应至少两个升级安装包;
    针对对应至少两个升级安装包的待升级设备,将对应的至少两个升级安装包的存储路径中最晚添加到所述第二路径列表文件的存储路径对应的升级安装包作为对应的待升级设备的升级安装包。
  10. 如权利要求6所述的方法,其特征在于,在基于下载的所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备之后,还包括:
    若确定至少一个待升级设备升级异常或者各个待升级设备完成升级后所述待升级分布式系统中的至少一个设备运行异常,则基于所述第四路径列表文件生成所述待升级分布式系统的回退系统安装包版本信息;
    基于所述回退系统安装包版本信息对所述待升级分布式系统执行系统版本回退操作。
  11. 一种分布式系统的升级方法,其特征在于,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述方法包括:
    向待升级分布式系统包括的主控设备发送所述下载任务,所述下载任务中包括所述待升级分布式系统的升级安装包的下载路径,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到,以使所述主控设备从所述管理服务器下载所述下载路径对应的第一升级安装包,以及基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
  12. 如权利要求11所述的方法,其特征在于,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到包括:
    基于所述待升级分布式系统的系统版本描述信息与升级安装包集合确定所述待升级分布式系统和所述下载任务,所述升级安装包集合中的每个升级安装包对应一个适配的分布式系统中的待升级设备。
  13. 如权利要求12所述的方法,其特征在于,所述基于所述待升级分布式系统的系统版本描述信息与升级安装包集合确定所述待升级分布式系统和所述下载任务包括:
    向所述至少两个分布式系统分别发送系统版本描述信息获取请求,以使接收到所述系统版本描述信息获取请求的分布式系统获取自身的系统版本描述信息并返回;
    分别接收所述至少两个分布式系统发送的系统版本描述信息;
    确定所述待升级分布式系统的各个升级安装包;
    获取各个升级安装包的下载路径;
    生成携带各个升级安装包的下载路径的下载任务。
  14. 一种分布式系统的升级装置,其特征在于,应用于待升级分布式系统包括的主控设备中,所述待升级分布式系统还包括至少一个受控设备,所述装置包括:
    接收模块,用于接收管理服务器发送的下载任务,所述下载任务中包括 所述待升级分布式系统的升级安装包的下载路径,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到;
    下载模块,用于从所述管理服务器下载所述下载路径对应的第一升级安装包,所述第一升级安装包中包括所述待升级分布式系统中待升级设备所需的升级安装文件;
    升级模块,用于基于所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
  15. 一种分布式系统的升级装置,其特征在于,应用于与至少两个分布式系统连接的管理服务器中,所述至少两个分布式系统分别包括主控设备和至少一个受控设备,所述装置包括:
    发送模块,用于向所述待升级分布式系统包括的主控设备发送所述下载任务,所述下载任务基于所述待升级分布式系统的系统版本描述信息得到,以使所述主控设备从所述管理服务器下载所述下载路径对应的第一升级安装包,以及基于下载的所述第一升级安装包升级所述待升级分布式系统中相应的待升级设备。
  16. 一种网络设备,其特征在于,所述网络设备包括处理器和存储器,
    所述存储器,用于存储计算机程序或指令;
    所述处理器,用于执行存储器中的计算机程序或指令,使得权利要求1-10中任一项所述的方法被执行。
  17. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,该计算机程序指令被处理器执行时实现权利要求1-10、权利要求11-13中任一项所述方法的步骤。
PCT/CN2023/073624 2022-01-28 2023-01-28 分布式系统软件版本升级方法及装置 WO2023143542A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/502,213 US20240078106A1 (en) 2022-01-28 2023-11-06 Method and device for updating software version of distributed system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210108469.1 2022-01-28
CN202210108469.1A CN114710407A (zh) 2022-01-28 2022-01-28 分布式系统软件版本升级方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/502,213 Continuation US20240078106A1 (en) 2022-01-28 2023-11-06 Method and device for updating software version of distributed system

Publications (1)

Publication Number Publication Date
WO2023143542A1 true WO2023143542A1 (zh) 2023-08-03

Family

ID=82167545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073624 WO2023143542A1 (zh) 2022-01-28 2023-01-28 分布式系统软件版本升级方法及装置

Country Status (3)

Country Link
US (1) US20240078106A1 (zh)
CN (1) CN114710407A (zh)
WO (1) WO2023143542A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710407A (zh) * 2022-01-28 2022-07-05 锐捷网络股份有限公司 分布式系统软件版本升级方法及装置
CN116521325B (zh) * 2023-07-05 2023-09-29 中国人寿保险股份有限公司上海数据中心 一种分布式容器的集中管理系统和方法

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697133A (zh) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 软件升级方法、软件升级系统以及客户端
CN102075918A (zh) * 2011-01-13 2011-05-25 大唐移动通信设备有限公司 一种基站射频单元系统更新方法及其装置
JP2019071005A (ja) * 2017-10-11 2019-05-09 Necディスプレイソリューションズ株式会社 管理端末、制御装置、制御システム、ファームウェア更新方法およびプログラム
CN110096302A (zh) * 2018-01-31 2019-08-06 阿里巴巴集团控股有限公司 软件数据储存、升级方法、装置、设备和存储介质
CN110532012A (zh) * 2019-09-03 2019-12-03 武汉虹信通信技术有限责任公司 一种分布式系统软件升级方法及装置
CN112286565A (zh) * 2020-10-30 2021-01-29 浙江正泰中自控制工程有限公司 一种基于存储容器的嵌入式系统差分升级方法
CN112640500A (zh) * 2020-09-27 2021-04-09 华为技术有限公司 一种车辆升级方法及装置
CN113574839A (zh) * 2020-02-28 2021-10-29 华为技术有限公司 一种软件版本回滚方法、装置及系统
CN114710407A (zh) * 2022-01-28 2022-07-05 锐捷网络股份有限公司 分布式系统软件版本升级方法及装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697133A (zh) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 软件升级方法、软件升级系统以及客户端
CN102075918A (zh) * 2011-01-13 2011-05-25 大唐移动通信设备有限公司 一种基站射频单元系统更新方法及其装置
JP2019071005A (ja) * 2017-10-11 2019-05-09 Necディスプレイソリューションズ株式会社 管理端末、制御装置、制御システム、ファームウェア更新方法およびプログラム
CN110096302A (zh) * 2018-01-31 2019-08-06 阿里巴巴集团控股有限公司 软件数据储存、升级方法、装置、设备和存储介质
CN110532012A (zh) * 2019-09-03 2019-12-03 武汉虹信通信技术有限责任公司 一种分布式系统软件升级方法及装置
CN113574839A (zh) * 2020-02-28 2021-10-29 华为技术有限公司 一种软件版本回滚方法、装置及系统
CN112640500A (zh) * 2020-09-27 2021-04-09 华为技术有限公司 一种车辆升级方法及装置
CN112286565A (zh) * 2020-10-30 2021-01-29 浙江正泰中自控制工程有限公司 一种基于存储容器的嵌入式系统差分升级方法
CN114710407A (zh) * 2022-01-28 2022-07-05 锐捷网络股份有限公司 分布式系统软件版本升级方法及装置

Also Published As

Publication number Publication date
CN114710407A (zh) 2022-07-05
US20240078106A1 (en) 2024-03-07

Similar Documents

Publication Publication Date Title
WO2023143542A1 (zh) 分布式系统软件版本升级方法及装置
CN107391629B (zh) 集群间数据迁移方法、系统、服务器及计算机存储介质
JP6236533B2 (ja) 差分アップデートパッケージの作成方法及び装置、システム差分アップデート方法及び装置
CN110865842B (zh) 一种ota升级方法和设备
CN111273871B (zh) 容器平台上动态分配存储资源的方法及装置
US10795688B2 (en) System and method for performing an image-based update
US20130111458A1 (en) Method and system for on-demand patch generation and management
WO2018024204A1 (zh) 虚拟网元的管理方法及装置
WO2013040906A1 (zh) 一种基站软件版本管理的方法和系统
CN107391303B (zh) 数据处理方法、装置、系统、服务器及计算机存储介质
CN114003569A (zh) 一种qcow2镜像文件增量更新方法及装置
US8914324B1 (en) De-duplication storage system with improved reference update efficiency
CN103812945A (zh) 一种数据升级的方法和中心服务器
WO2023093323A1 (zh) 一种版本升级方法及装置
CN115604271A (zh) 一种基于微服务的软硬件互补的负载均衡方法
CN112199104B (zh) 一种软件升级方法、装置、电子设备和存储介质
CN114756527A (zh) Redis集群的扩容方法、装置、电子设备和存储介质
CN111431951B (zh) 一种数据处理方法、节点设备、系统及存储介质
CN112527760A (zh) 数据存储方法、装置、服务器及介质
CN109558205B (zh) 磁盘访问方法及装置
CN116112499B (zh) 数据采集系统的构建方法及数据采集方法
EP2590073A1 (en) Method and system for on-demand patch generation and management
CN111666338B (zh) 数据复制方法、控制节点及电子设备
US20090055515A1 (en) Facilitating distributed and redundant statistics collection
CN113726541B (zh) 一种网元配置的方法、装置、电子设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23746419

Country of ref document: EP

Kind code of ref document: A1