WO2021197214A1 - 云平台的升级方法、装置和服务器 - Google Patents

云平台的升级方法、装置和服务器 Download PDF

Info

Publication number
WO2021197214A1
WO2021197214A1 PCT/CN2021/083127 CN2021083127W WO2021197214A1 WO 2021197214 A1 WO2021197214 A1 WO 2021197214A1 CN 2021083127 W CN2021083127 W CN 2021083127W WO 2021197214 A1 WO2021197214 A1 WO 2021197214A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud platform
database
data
virtual machine
information
Prior art date
Application number
PCT/CN2021/083127
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 WO2021197214A1 publication Critical patent/WO2021197214A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present disclosure relates to the technical field of cloud platforms, and in particular to a method, device and server for upgrading a cloud platform.
  • cloud platforms can provide resources such as cloud hosts and cloud disks. After the user purchases the cloud platform, the cloud platform can be divided into multiple tenants according to specific business needs, and the resources between the tenants are usually isolated from each other. In order to make the cloud platform run more stable and have more complete functions, it is usually necessary to release a new version of the cloud platform regularly or from time to time. The new version has some new functions of the cloud platform, and the new version will also provide upgrade plans and upgrades for the previous version. Tool, so that users can update the version of the cloud platform through the upgrade program and upgrade tool.
  • a cloud platform with a low version not only has poor operating stability and high security risks, but also prevents users from enjoying the new functions of the new version of the cloud platform; in addition, for the management platform of the cloud platform, it can manage multiple different versions of the cloud platform at the same time The operation and maintenance cost is high, and the management complexity is also high.
  • the purpose of the embodiments of the present disclosure is to provide a cloud platform upgrade method, device, and server, so as to realize the upgrade of a cloud platform with a low version to a cloud platform with a new version.
  • the present disclosure provides a method for upgrading a cloud platform, the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is used to run target business data; the method includes: Acquire the database information of the first database corresponding to the target business data in the first cloud platform, and the database information of the second database corresponding to the target business data in the second cloud platform; the database information is used to: provide an access interface for the database , To obtain data from the database through the access interface, or import data into the database; according to the database information of the first database and the database information of the second database, the target business data is transferred from the second cloud The platform is migrated to the first cloud platform; wherein, the target business data includes one or more of platform data, tenant data, and virtual machine data.
  • the target business data is migrated from the second cloud platform to the first cloud platform according to the database information of the first database and the database information of the second database.
  • the steps include: when the target business data includes platform data, obtaining the platform data from the second database, and importing the platform data into the first database; the platform data includes: tenant account information , Operating system image file, and online information used for external network to access the second cloud platform.
  • the method further includes: creating an upload in the first cloud platform that matches the online information. networking.
  • the target business data is migrated from the second cloud platform to the first cloud platform according to the database information of the first database and the database information of the second database.
  • the steps include: when the target business data includes tenant data, for each tenant in the second cloud platform, acquiring tenant data corresponding to the current tenant from the second database, and importing the tenant data to The first database; the tenant data includes: tenant routing information, subnet information, and security group information.
  • the method further includes: in the first cloud platform, creating a connection with the child for the current tenant Create a security group matching the security group information for the current tenant with a subnet matching the network information.
  • the target business data is migrated from the second cloud platform to the first cloud platform according to the database information of the first database and the database information of the second database.
  • the step includes: when the target service data includes virtual machine data, for each virtual machine in the second cloud platform, acquiring the virtual machine data of the current virtual machine from the second database, and converting the virtual machine The machine data is imported into the first database; the virtual machine data includes: business data currently running on the virtual machine.
  • the method further includes: creating the current data on the first cloud platform based on the virtual machine data A newly created virtual machine corresponding to the virtual machine; in the first cloud platform, an IP address is assigned to the newly created virtual machine; wherein the IP address is used for external network access to the newly created virtual machine; and the second cloud is closed The current virtual machine in the platform starts the newly created virtual machine in the first cloud platform.
  • the method before starting the step of creating the new virtual machine in the first cloud platform, the method further includes: obtaining information associated with the current virtual machine in the second cloud platform Disk and snapshot information; associating the acquired disk and snapshot information with the newly created virtual machine in the first cloud platform.
  • the method further includes: hiding the current virtual machine used to access the second cloud platform Access interface.
  • the present disclosure provides a cloud platform upgrade device, the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is used to run target business data;
  • the device includes:
  • the obtaining module is configured to obtain the database information of the first database corresponding to the target business data in the first cloud platform, and the database information of the second database corresponding to the target business data in the second cloud platform;
  • the database information is used for: Provide a database access interface to obtain data from the database or import data into the database through the access interface;
  • the migration module is configured to transfer all the data according to the database information of the first database and the database information of the second database.
  • the target business data is migrated from the second cloud platform to the first cloud platform; wherein, the target business data includes one or more of platform data, tenant data, and virtual machine data.
  • a server provided by the present disclosure includes a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement any of the foregoing The described cloud platform upgrade method.
  • the present disclosure provides a machine-readable storage medium that stores machine-executable instructions.
  • the machine-executable instructions When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement any of the above The upgrade method of the cloud platform described in the item.
  • the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is used to run target business data; the methods are respectively Obtain the database information of the first database and the database information of the second database corresponding to the target business data from the first cloud platform and the second cloud platform; according to the acquired database information, migrate the target business data from the second cloud platform to the second cloud platform A cloud platform, which realizes the migration of target business data running on a lower version of the cloud platform to a higher version of the cloud platform, thereby realizing the upgrade of the cloud platform. It can be seen that this method of achieving cloud platform upgrade through target business data migration is easy to implement, and the upgrade method is safer and more stable, ensuring that the business can operate safely and stably during the upgrade period.
  • FIG. 1 is a flowchart of a method for upgrading a cloud platform provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of another cloud platform upgrade method provided by an embodiment of the disclosure.
  • FIG. 3 is a flowchart of another method for upgrading a cloud platform provided by an embodiment of the disclosure.
  • FIG. 4 is a flowchart of another method for upgrading a cloud platform provided by an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a cloud platform upgrade apparatus provided by an embodiment of the disclosure.
  • FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the disclosure.
  • cloud platforms can provide resources such as creating cloud hosts and cloud disks.
  • Cloud platforms can also be understood as cloud computing platforms, which can provide computing, network and storage capabilities based on hardware resources and software resources;
  • cloud hosts can be understood as The configured virtual machine server contains the desired hardware configuration, operating system, and network configuration; users can run their own services in the virtual machine.
  • the cloud platform usually iterates the version once every six months. Each version will release new features. Each version will also provide upgrade solutions and tools for the previous version. Users can upgrade the cloud platform to the latest version through the upgrade tool; for example, the current version is 1.1, the new version is 1.2, users can upgrade the current version 1.1 to version 1.2 through the upgrade tool provided by version 1.2. However, because some cloud platform users do not update the cloud platform every time a new version is released, the version of the cloud platform running in these online and external network areas is old, and the online environment and the latest version of the code are too different. For example, the current version The version is version 1.1 under the first major version, and the new version is version 2.1 under the second major version.
  • version 1.1 and version 2.1 there may be a difference between version 1.1 and version 2.1, such as version 1.2, version 1.3, and many other minor versions, so There are many differences in the code between version 1.1 and version 2.1.
  • version 1.1 and version 2.1 There is no way to directly update the cloud platform to the latest version by upgrading the code. You can only upgrade one by one version step by step. The operation is cumbersome, and after upgrading in this way The security risks are also relatively large, and the entire cloud platform may even be paralyzed due to the failure of the upgrade.
  • Too low version of the cloud platform prevents users from enjoying the new features of the new version of the cloud platform. Users want to not affect the current business virtual machine, and at the same time, there will be bottlenecks in the functions of the new version of the cloud platform; too low version of the cloud platform Poor operational stability and high security risks; in addition, the operation and maintenance costs of multiple cloud platforms of different versions are high, and the management complexity is also high.
  • the embodiments of the present disclosure provide a cloud platform upgrade method, device, and server.
  • the technology can be applied to the application scenario of upgrading the cloud platform, especially in the application scenario of upgrading the cloud platform. .
  • the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform.
  • the second cloud platform is used to run target business data; in actual implementation, this method is usually applied to the management node of the first cloud platform, which can be understood as a node that can uniformly manage various services of the cloud platform ;
  • the above-mentioned first cloud platform can be understood as a higher version of the cloud platform;
  • the above-mentioned second cloud platform can be understood as a lower version of the cloud platform;
  • the above-mentioned target business data can be understood as the business data in the cloud platform purchased by the user, such as One or more of platform data, tenant data, and virtual machine data; the user can be an enterprise or government, etc., and the user can own, manage, and run the purchased cloud platform; as shown in Figure 1, the method includes the following steps :
  • S102 Acquire database information of a first database corresponding to the target business data in the first cloud platform, and database information of a second database corresponding to the target business data in the second cloud platform; the database information is used to: provide an access interface for the database to Obtain data from the database through the access interface, or import data into the database.
  • the aforementioned access interface can be understood as the location of the interface that can access the database;
  • the database information of the aforementioned first database usually includes information such as the host on which the first database is running, and the port number for accessing the first database;
  • the port corresponding to the port number of you can obtain the required data from the first database, or import the data into the first database;
  • the database information of the second database usually includes the host on which the second database is running, and access to the first database. 2.
  • Information such as the port number of the database; through the port corresponding to the port number for accessing the second database, the required data can be obtained from the second database, or the data can be imported into the second database.
  • the host on which the first database runs and the host on which the second database runs are usually different; the port number for accessing the first database and the port number for accessing the second database are usually the same; the first database is provided by the first cloud platform Data; the second database provides data for the second cloud platform; the first cloud platform and the second cloud platform are usually run on a physical machine, such as running on a server, the corresponding first database can be deployed on the corresponding first On the same physical machine as the cloud platform, the second database can usually also be deployed on the same physical machine as the corresponding second cloud platform.
  • the database information of the first database corresponding to the target business data in the first cloud platform and the second database corresponding to the target business data in the second cloud platform can be obtained from the configuration file.
  • Database information of the database is usually entered and configured by engineers and other technicians in advance, and the configuration file usually also includes information such as the user name and password required to access the first database and the second database.
  • S104 Migrate the target business data from the second cloud platform to the first cloud platform according to the database information of the first database and the database information of the second database; wherein, the target business data includes platform data, tenant data, and virtual machine data. One or more.
  • the above platform data can be understood as related information such as operating system or network access in the cloud platform, such as tenant account information, operating system image files, and networking information used for external network access to the second cloud platform;
  • the above tenant data can be understood as The tenant's routing, subnet and other related data, such as the tenant's routing information, subnet information, and security group information;
  • the above virtual machine data can be understood as the related data running in the virtual machine, such as the running business data of the virtual machine, etc.;
  • the foregoing target service data may include one or more of platform data, tenant data, and virtual machine data.
  • the target business data can be migrated from the second cloud platform to the first cloud platform based on these information; in actual implementation, if the method is applied to the first cloud platform A management node of a cloud platform, the management node of the first cloud platform can migrate the target business data from the second cloud platform to the first cloud platform, so that the target business data is in the higher version of the first cloud platform run.
  • the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is used to run target business data;
  • the database information of the first database and the database information of the second database corresponding to the target business data are acquired from the platform and the second cloud platform; according to the acquired database information, the target business data is migrated from the second cloud platform to the first cloud platform, In this way, the target business data running on the lower version of the cloud platform is migrated to the higher version of the cloud platform, thereby realizing the upgrade of the cloud platform.
  • the embodiment of the present disclosure also provides another cloud platform upgrade method, which is implemented on the basis of the method in the above-mentioned embodiment; the method focuses on describing the database information of the first database and the database information of the second database, and the target business
  • the specific process of data migration from the second cloud platform to the first cloud platform specifically corresponds to the following S204 to S206. As shown in FIG. 2, the method includes the following steps:
  • S202 Obtain database information of a first database corresponding to the target business data in the first cloud platform, and database information of a second database corresponding to the target business data in the second cloud platform; the database information is used to: provide an access interface for the database to Obtain data from the database through the access interface, or import data into the database.
  • the target business data includes platform data, obtain the platform data from the second database, and import the platform data into the first database;
  • the platform data includes: tenant account information, operating system image files, and used in external networks Access the online information of the second cloud platform.
  • the above tenant account information usually includes the user name and password corresponding to the tenant, as well as the available resource information such as the number of virtual machines, disk size, or memory size;
  • the above operating system image file can be understood as the image file containing the operating system, which usually Stored on the cloud platform running the target business data, after the virtual machine is created, the virtual machine can be started directly according to the image file, which is equivalent to completing the installation of the operating system through the image file, so there is no need to install the operating system again, saving installation Operating system time;
  • the above-mentioned networking information usually includes IP (Internet Protocol) address information. After the IP address information is bound to the virtual machine in the cloud platform, the external network can directly access the virtual machine.
  • IP Internet Protocol
  • the management node of the first cloud platform can obtain information from the second database according to the database information of the second database. Obtain the above-mentioned platform data in the database, and then import the platform data into the first database according to the database information of the first database; for example, for tenant account information, you can use the ":$kscmigration-keystone generate_sql--tenant-id all" command OK, get the tenant account information output from the second database, and then import the tenant account information into the first database through the "$kscmigration-keystone migrate--tenant-id all" command line; for the operating system image file, you can Obtain the operating system image file output from the second database through the command line “$kscmigration-glance generate_sql--image-id all”, and then use the command line “$kscmigration-glance migration--image-i
  • S206 Create an online connection matching the foregoing online information in the first cloud platform.
  • the first database and the second database usually exist at the same time and run normally.
  • the virtual machine in the first cloud platform accesses the first database
  • the virtual machine in the second cloud platform Access the second database.
  • the database information of the first database and the database information of the second database are configured in the configuration file, as well as the above-mentioned operations of S204-S206, which can usually be performed only once, and execute The normal operation of the business will not be affected during the process.
  • Another cloud platform upgrade method obtaineds the database information of the first database and the database information of the second database corresponding to the target business data from the first cloud platform and the second cloud platform respectively;
  • the data includes platform data
  • the target business data on the version cloud platform is migrated to the higher version cloud platform to achieve the upgrade of the cloud platform. It can be seen that this method of achieving cloud platform upgrade through target business data migration is easy to implement, and the upgrade method is safer and more stable, ensuring that the business can operate safely and stably during the upgrade period.
  • the embodiment of the present disclosure also provides another cloud platform upgrade method, which is implemented on the basis of the method in the above-mentioned embodiment; the method focuses on describing the database information of the first database and the database information of the second database, and the target business
  • the specific process of data migration from the second cloud platform to the first cloud platform specifically corresponds to the following S304 to S306. As shown in FIG. 3, the method includes the following steps:
  • S302 Obtain database information of a first database corresponding to the target business data in the first cloud platform, and database information of a second database corresponding to the target business data in the second cloud platform; the database information is used to: provide an access interface for the database to Obtain data from the database through the access interface, or import data into the database.
  • the target business data includes tenant data
  • tenant data includes: tenant Routing information, subnet information, and security group information.
  • the tenant can be understood as a team or organization, which is a collection of resources that can be accessed in each service.
  • the resources between the tenants are isolated and invisible; the user purchases a cloud platform, for example, the government purchases a cloud platform ,
  • Tenant is equivalent to every small business department in the government, such as the personnel department, operation department, etc.
  • the cloud platform usually includes multiple tenants; the above routing can be used to determine the end-to-end path of the packet from the source to the destination
  • the above-mentioned routing information usually includes routing algorithm and other information; usually each route can include the following three functions: the first is the function of direct access within the same tenant, that is, each virtual machine within the same tenant can directly Mutual access without forwarding; the second is the cross-tenant forwarding function, that is, when a virtual machine in one tenant needs to access a virtual machine in another tenant, but does not know the information of the other tenant, through routing
  • the routing algorithm in can realize cross-tenant forwarding; the third is that if a virtual machine in a tenant needs to access the external network, the routing algorithm in the routing can also be used to realize the forwarding of the virtual machine in the tenant to the external network. So that the virtual machine can access the external network.
  • the internal network of each tenant can include multiple subnets.
  • the network can be understood as a collection of network card configuration IP when creating a virtual machine.
  • the internal virtual machines of the same tenant can access each other.
  • Cross-tenants usually cannot access each other.
  • the external network is usually
  • the above subnet information usually includes the relevant information of each subnet included in each tenant; the above security group information usually includes a set of security rules, which can be applied to the virtual machine network card to protect the access allowed by the corresponding virtual machine Permissions.
  • the management node of the first cloud platform can 2. Database information of the database, obtain the tenant data corresponding to the current tenant from the second database, and then import the tenant data corresponding to the current tenant into the first database according to the database information of the first database; for example, for each tenant You can use the “sh create-router.sh router-name” command line to find the corresponding route based on the route name, and then import the relevant routing algorithm in the corresponding route into the first database through the “sh create-router.sh router-name” command line.
  • S306 In the first cloud platform, create a subnet matching the subnet information for the current tenant, and create a security group matching the security group information for the current tenant.
  • UI User Interface
  • the UI creates the same subnet for each tenant as the corresponding tenant in the second cloud platform, and the network segment is usually To be consistent; for each tenant's security group, the UI creates the same security group for each tenant as the corresponding tenant in the second cloud platform, and the security group naming is usually consistent.
  • Another cloud platform upgrade method obtains the database information of the first database and the database information of the second database corresponding to the target business data from the first cloud platform and the second cloud platform respectively;
  • the data includes tenant data
  • for each tenant in the second cloud platform obtain the tenant data corresponding to the current tenant from the second database and import it into the first database; in the first cloud platform, create and subscribe for the current tenant
  • the subnet that matches the network information, and the security group that matches the security group information, so that the target business data running on the lower version of the cloud platform is migrated to the higher version of the cloud platform, thereby achieving the upgrade of the cloud platform. It can be seen that this method of achieving cloud platform upgrade through target business data migration is easy to implement, and the upgrade method is safer and more stable, ensuring that the business can operate safely and stably during the upgrade period.
  • the embodiment of the present disclosure also provides another cloud platform upgrade method, which is implemented on the basis of the method in the above-mentioned embodiment; the method focuses on describing the database information of the first database and the database information of the second database, and the target business
  • the specific process of data migration from the second cloud platform to the first cloud platform specifically corresponds to the following S404 to S406, as shown in FIG. 4, the method includes the following steps:
  • S402 Obtain database information of a first database corresponding to the target business data in the first cloud platform, and database information of a second database corresponding to the target business data in the second cloud platform; the database information is used to: provide an access interface for the database to Obtain data from the database through the access interface, or import data into the database.
  • S404 When the target business data includes virtual machine data, for each virtual machine in the second cloud platform, obtain the virtual machine data of the current virtual machine from the second database, and import the virtual machine data into the first database;
  • the data includes: business data currently running on the virtual machine.
  • the above-mentioned second cloud platform usually runs multiple virtual machines; the above-mentioned virtual machine data usually includes the business data that the current virtual machine is running, such as the memory size and disk size corresponding to the current virtual machine; in actual implementation, when the target
  • the business data includes the aforementioned virtual machine data
  • the management node of the first cloud platform obtains the current virtual machine from the second database.
  • import the virtual machine data into the first database through this step, the virtual machine data of each virtual machine in the second database can be imported into the first database.
  • the management node of the first cloud platform can create a new virtual machine corresponding to the current virtual machine on the first cloud platform to obtain a new virtual machine corresponding to the current virtual machine on the first cloud platform. Multiple virtual machines in the same multiple newly created virtual machines.
  • S408 In the first cloud platform, an IP address is allocated to the above-mentioned newly created virtual machine; wherein, the IP address is used for accessing the newly created virtual machine from an external network.
  • IP address is usually on the same network segment as the IP address of the corresponding current virtual machine in the second cloud platform Network to ensure that the service access IP remains unchanged; in actual implementation, you can use the "sh create_eip_ass_vm.sh new_instance_id EIP" command line to implement the process of assigning an IP address to the new virtual machine created in the first cloud platform.
  • S412 Acquire disk and snapshot information associated with the current virtual machine in the second cloud platform.
  • the above disk can be a cloud disk, which can be understood as a hard disk device that provides storage space for virtual machines; the above snapshot can be understood as a backup of disk data at a specified point in time, and the disk data can be restored to the specified point in time of the backup through the snapshot ; Obtain the disk and snapshot information associated with the current virtual machine in the second cloud platform; take the disk as an example, for example, the disk associated with the current virtual machine is the C drive, and the association relationship between the current virtual machine and the C drive can be saved in some In a specified file, the disk associated with the current virtual machine can be obtained from the specified file.
  • S414 Associate the acquired disk and snapshot information with the newly created virtual machine in the first cloud platform.
  • the data in the disk itself is not migrated.
  • Each disk may have a different name.
  • the name may be case-sensitive. Record these names and other information.
  • a cloud platform an association relationship is established between disks and snapshots and newly created virtual machines.
  • a storage description can usually be prepared in advance to indicate that the first cloud platform and the second cloud platform share a set of storage, which is equivalent to sharing the same disk. The disk method does not need to migrate the data in the disk, thus saving the time of disk data transmission.
  • S416 Start the newly created virtual machine in the above-mentioned first cloud platform.
  • the new virtual machine When a new virtual machine corresponding to the current virtual machine is created in the first cloud platform, the new virtual machine is started; in actual implementation, after the new virtual machine is started, the user is usually required to power on to confirm whether the business is normal; for example, the second
  • the IP address bound to the current virtual machine in the cloud platform is associated with the Taobao business.
  • the user can confirm whether the Taobao business is operating normally; considering the confidentiality of user information, usually the cloud platform provider does not have the right to turn on the user's machine, and the user can turn it on to confirm whether the business is operating normally.
  • Another cloud platform upgrade method obtains the database information of the first database and the database information of the second database corresponding to the target business data from the first cloud platform and the second cloud platform respectively;
  • the data includes virtual machine data
  • for each virtual machine in the second cloud platform obtain the virtual machine data of the current virtual machine from the second database and import it into the first database; create the current virtual machine corresponding to the first cloud platform Create a new virtual machine and assign an IP address to the new virtual machine; close the current virtual machine in the second cloud platform, associate the obtained disk and snapshot information associated with the current virtual machine to the new virtual machine, and start the new virtual machine .
  • This method realizes the migration of target business data running on a lower version cloud platform to a higher version cloud platform, thereby realizing the upgrade of the cloud platform. It can be seen that this method of achieving cloud platform upgrade through target business data migration is easy to implement, and the upgrade method is safer and more stable, ensuring that the business can operate safely and stably during the upgrade period.
  • the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is set to Run target business data;
  • the device includes: an acquisition module 50 configured to acquire database information of a first database corresponding to target business data in the first cloud platform, and database information of a second database corresponding to target business data in the second cloud platform ;
  • the database information is used to: provide an access interface for the database to obtain data from the database through the access interface, or import data into the database;
  • the migration module 51 is set to change the database information of the first database and the database information of the second database
  • the target business data is migrated from the second cloud platform to the first cloud platform;
  • the target business data includes one or more of platform data, tenant data, and virtual machine data.
  • the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is used to run target business data;
  • the database information of the first database and the database information of the second database corresponding to the target business data are acquired in the platform and the second cloud platform;
  • the target business data is migrated from the second cloud platform to the first cloud platform according to the acquired database information.
  • the device realizes the migration of target business data running on a lower version cloud platform to a higher version cloud platform, thereby realizing the upgrade of the cloud platform. It can be seen that this method of achieving cloud platform upgrade through target business data migration is easy to implement, and the upgrade method is safer and more stable, ensuring that the business can operate safely and stably during the upgrade period.
  • the migration module 51 is further configured to: when the target business data includes platform data, obtain the platform data from the second database and import the platform data into the first database; the platform data includes: tenant account information , Operating system image files, and online information for external network access to the second cloud platform.
  • the migration module 51 is further configured to: after importing the platform data into the first database, create an Internet connection matching the Internet information in the first cloud platform.
  • the migration module 51 is further configured to: when the target business data includes tenant data, for each tenant in the second cloud platform, obtain the tenant data corresponding to the current tenant from the second database, and set The tenant data is imported into the first database; the tenant data includes: tenant routing information, subnet information, and security group information.
  • the migration module 51 is further configured to: after importing the tenant data into the first database, in the first cloud platform, create a subnet that matches the subnet information for the current tenant, which is the current The tenant creates a security group that matches the security group information.
  • the migration module 51 is further configured to: when the target service data includes virtual machine data, for each virtual machine in the second cloud platform, obtain the virtual machine of the current virtual machine from the second database. Data, the virtual machine data is imported into the first database; the virtual machine data includes: business data currently running on the virtual machine.
  • the migration module 51 is further configured to: after importing the virtual machine data into the first database, based on the virtual machine data, create a new virtual machine corresponding to the current virtual machine on the first cloud platform; In a cloud platform, an IP address is assigned to a new virtual machine; among them, the IP address is used for external network access to the new virtual machine; the current virtual machine in the second cloud platform is closed, and the new virtual machine in the first cloud platform is started.
  • the migration module 51 is further configured to: before starting the newly created virtual machine in the first cloud platform, obtain the disk and snapshot information associated with the current virtual machine in the second cloud platform; The disk and snapshot information of is associated with the newly created virtual machine in the first cloud platform.
  • the migration module 51 is further configured to hide the access interface used to access the current virtual machine in the second cloud platform after starting the newly created virtual machine in the first cloud platform.
  • the implementation principles and technical effects of the cloud platform upgrade device provided by the embodiments of the present disclosure are the same as those of the aforementioned cloud platform upgrade method embodiment.
  • the part of the cloud platform upgrade device embodiment is not mentioned. You can refer to the corresponding content in the aforementioned cloud platform upgrade method embodiment.
  • the embodiment of the present disclosure also provides a server.
  • the server includes a processor 130 and a memory 131.
  • the memory 131 stores machine executable instructions that can be executed by the processor 130.
  • the processor 130 executes the machine The instructions can be executed to implement the above-mentioned cloud platform upgrade method.
  • the server shown in FIG. 6 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133, and the memory 131 are connected through the bus 132.
  • the memory 131 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the Internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
  • the bus 132 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of presentation, only one bidirectional arrow is used to indicate in FIG. 6, but it does not mean that there is only one bus or one type of bus.
  • the processor 130 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 130 or instructions in the form of software.
  • the aforementioned processor 130 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it may also be a Digital Signal Processor (DSP for short). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in combination with the embodiments of the present disclosure may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131, and completes the steps of the method of the foregoing embodiment in combination with its hardware.
  • the embodiment of the present disclosure also provides a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor.
  • a machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor.
  • the cloud platform upgrade method, device, and computer program product of the server provided by the embodiments of the present disclosure include a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the instructions described in the previous method embodiments
  • the instructions included in the program code can be used to execute the instructions described in the previous method embodiments
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including several
  • the instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • the platform version of the first cloud platform is higher than the preset platform version of the second cloud platform, and the second cloud platform is used to run target business data; this method Obtain the database information of the first database and the database information of the second database corresponding to the target business data from the first cloud platform and the second cloud platform respectively; according to the acquired database information, migrate the target business data from the second cloud platform to The first cloud platform.
  • the target business data running on the lower version cloud platform is migrated to the higher version cloud platform, thereby realizing the upgrade of the cloud platform; this method of realizing the cloud platform upgrade through the target business data migration is easy to implement,
  • the upgrade method is more secure and stable, ensuring that the business can operate safely and stably during the upgrade period.
  • users can enjoy the new functions of the new version of the cloud platform; and for the management platform of the cloud platform, there is no need to manage multiple cloud platforms of different versions at the same time, thereby reducing operation and maintenance costs and Management complexity.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开提供了一种云平台的升级方法、装置和服务器,该方法中第一云平台的平台版本高于预设的第二云平台的平台版本,第二云平台用于运行目标业务数据;该方法分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;根据获取到的数据库信息,将目标业务数据从第二云平台迁移至第一云平台。该方法中,将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级;这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。

Description

云平台的升级方法、装置和服务器
本公开要求于2020年03月30日提交中国国家知识产权局、申请号为CN202010240159.6、发明名称为“云平台的升级方法、装置和服务器”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及云平台技术领域,尤其是涉及一种云平台的升级方法、装置和服务器。
背景技术
在相关技术中,云平台可以提供云主机、云磁盘等资源。用户购买了云平台后,可以根据具体的业务需求,将云平台划分为多个租户,通常租户之间的资源相互隔离。为了使云平台运行更加稳定、功能更加完善,通常需要定时或不定时地发布云平台的新版本,新版本中具有一些云平台的新功能,新版本也会针对前一个版本提供升级方案和升级工具,使用户可以通过该升级方案和升级工具更新云平台的版本。
但是,由于部分云平台的用户没有在每次发布新版本时更新云平台,导致这些云平台版本过低,与最新版本的云平台差异太大,已经无法通过前述升级方案和升级工具更新云平台的版本。过低版本的云平台不仅运行稳定性差、且安全隐患大,还使得用户不能享受新版本的云平台具有的新功能;另外对于云平台的管理平台来说,同时管理多个不同版本的云平台的运维成本高、管理复杂度也高。
发明内容
本公开实施例的目的在于提供一种云平台的升级方法、装置和服务器,以实现过低版本的云平台升级至新版本的云平台。
本公开提供的一种云平台的升级方法,第一云平台的平台版本高于预设的第二云平台的平台版本,所述第二云平台用于运行目标业务数据;所 述方法包括:获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中所述目标业务数据对应的第二数据库的数据库信息;所述数据库信息用于:提供数据库的访问接口,以通过所述访问接口从数据库获取数据,或将数据导入至数据库;根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台;其中,所述目标业务数据包括平台数据、租户数据和虚拟机数据中的一种或多种。
在一种可能的实施方式中,根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台的步骤,包括:当所述目标业务数据包括平台数据时,从所述第二数据库中获取所述平台数据,将所述平台数据导入至所述第一数据库;所述平台数据包括:租户账户信息、操作系统镜像文件,以及用于外部网络访问所述第二云平台的上联网信息。
在一种可能的实施方式中,将所述平台数据导入至所述第一数据库的步骤之后,所述方法还包括:在所述第一云平台中创建与所述上联网信息相匹配的上联网。
在一种可能的实施方式中,根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台的步骤,包括:当所述目标业务数据包括租户数据时,针对所述第二云平台中的每个租户,从所述第二数据库中获取当前租户对应的租户数据,将所述租户数据导入至所述第一数据库;所述租户数据包括:租户的路由信息、子网信息和安全组信息。
在一种可能的实施方式中,将所述租户数据导入至所述第一数据库的步骤之后,所述方法还包括:在所述第一云平台中,为所述当前租户创建与所述子网信息相匹配的子网,为所述当前租户创建与所述安全组信息相匹配的安全组。
在一种可能的实施方式中,根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台的步骤,包括:当所述目标业务数据包括虚拟机数据时, 针对所述第二云平台中的每个虚拟机,从所述第二数据库中获取当前虚拟机的虚拟机数据,将所述虚拟机数据导入至所述第一数据库;所述虚拟机数据包括:所述当前虚拟机正在运行的业务数据。
在一种可能的实施方式中,将所述虚拟机数据导入至所述第一数据库的步骤之后,所述方法还包括:基于所述虚拟机数据,在所述第一云平台创建所述当前虚拟机对应的新建虚拟机;在所述第一云平台中,为所述新建虚拟机分配IP地址;其中,所述IP地址用于外部网络访问所述新建虚拟机;关闭所述第二云平台中的所述当前虚拟机,启动所述第一云平台中的所述新建虚拟机。
在一种可能的实施方式中,启动所述第一云平台中的所述新建虚拟机的步骤之前,所述方法还包括:获取所述第二云平台中的所述当前虚拟机所关联的磁盘和快照信息;将获取到的所述磁盘和快照信息关联至所述第一云平台中的所述新建虚拟机。
在一种可能的实施方式中,启动所述第一云平台中的所述新建虚拟机的步骤之后,所述方法还包括:隐藏用于访问所述第二云平台中的所述当前虚拟机的访问接口。
本公开提供的一种云平台的升级装置,第一云平台的平台版本高于预设的第二云平台的平台版本,所述第二云平台用于运行目标业务数据;所述装置包括:获取模块,设置为获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中所述目标业务数据对应的第二数据库的数据库信息;所述数据库信息用于:提供数据库的访问接口,以通过所述访问接口从数据库获取数据,或将数据导入至数据库;迁移模块,设置为根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台;其中,所述目标业务数据包括平台数据、租户数据和虚拟机数据中的一种或多种。
本公开提供的一种服务器,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现上述任一项所述的云平台的升级方法。
本公开提供的一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述任一项所述的云平台的升级方法。
本公开实施例提供的云平台的升级方法、装置和服务器,第一云平台的平台版本高于预设的第二云平台的平台版本,第二云平台用于运行目标业务数据;该方法分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;根据获取到的数据库信息,将目标业务数据从第二云平台迁移至第一云平台,如此实现将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级。可见,这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。
另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台,从而降低了运维成本和管理复杂度。
附图说明
为了更清楚地说明本公开具体实施方式或相关技术中的技术方案,下面将对具体实施方式或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的一种云平台的升级方法的流程图;
图2为本公开实施例提供的另一种云平台的升级方法的流程图;
图3为本公开实施例提供的另一种云平台的升级方法的流程图;
图4为本公开实施例提供的另一种云平台的升级方法的流程图;
图5为本公开实施例提供的一种云平台的升级装置的结构示意图;
图6为本公开实施例提供的一种服务器的结构示意图。
具体实施方式
下面将结合实施例对本公开的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
目前,云平台可以提供创建云主机、云磁盘等资源,云平台也可以理解为云计算平台,可以基于硬件资源和软件资源的服务,提供计算、网络和存储能力;云主机可以理解为是已配置好的虚拟机服务器,该虚拟机服务器包含了期望的硬件配置、操作系统和网络配置等;用户可以将自己业务运行在虚拟机中。
目前云平台通常半年迭代一次版本,每个版本会发布新功能,每个版本也会针对前一个版本提供升级方案及工具,用户可以通过升级工具将云平台升级为最新版本;比如,当前版本是1.1,新版本是1.2,用户可以通过1.2版本提供的升级工具将当前的1.1版本升级为1.2版本。但是,由于部分云平台的用户没有在每次发布新版本时更新云平台,导致这些线上外网区业务运行的云平台版本老旧,线上环境和最新版本代码差异太大,比如,当前版本是在第一大版本下的第1.1版,新版本是第二大版本下的第2.1版,第1.1版和第2.1版之间可能相差了1.2版、1.3版等多个小版本,因此第1.1版和第2.1版之间的代码相差较多,已经没办法通过升级代码方式将云平台直接更新为最新版本,只能一步步地逐个版本升级,操作繁琐,且按照该方式升级之后的安全隐患也比较大,甚至可能会因为升级失败,导致整个云平台瘫痪。
过低版本的云平台使用户不能享受新版本的云平台具有的新功能,用户想不影响当前业务虚拟机的同时,拥有新版本的云平台的功能就会出现瓶颈;过低版本的云平台运行稳定性差、安全隐患大;并且,多套不同版本云平台的运维成本高、管理复杂度也高。
基于此,本公开实施例提供了一种云平台的升级方法、装置和服务器,该技术可以应用于对云平台进行升级的应用场景中,尤其可以应用于对云平台进行版本升级的应用场景中。
为便于对本实施例进行理解,首先对本公开实施例所公开的一种云平台的升级方法进行详细介绍,该方法中,第一云平台的平台版本高于预设的第二云平台的平台版本,该第二云平台用于运行目标业务数据;在实际实现时,该方法通常应用于第一云平台的管理节点,该管理节点可以理解为可以对云平台的各项业务进行统一管理的节点;上述第一云平台可以理解为较高版本的云平台;上述第二云平台可以理解为较低版本的云平台;上述目标业务数据可以理解为用户所购买的云平台中的业务数据,如平台数据、租户数据和虚拟机数据中的一种或多种;该用户可以是企业或政府等,用户可以拥有、管理和运行所购买的云平台;如图1所示,该方法包括如下步骤:
S102,获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中目标业务数据对应的第二数据库的数据库信息;数据库信息用于:提供数据库的访问接口,以通过访问接口从数据库获取数据,或将数据导入至数据库。
上述访问接口可以理解为能对数据库进行访问的接口位置等;上述第一数据库的数据库信息通常包括第一数据库运行的主机,以及访问该第一数据库的端口号等信息;通过该访问第一数据库的端口号所对应的端口,可以从第一数据库中获取所需数据,或者将数据导入至该第一数据库中;上述第二数据库的数据库信息通常包括第二数据库运行的主机,以及访问该第二数据库的端口号等信息;通过该访问第二数据库的端口号所对应的端口,可以从第二数据库中获取所需数据,或者将数据导入至该第二数据库中。在实际实现时,第一数据库运行的主机和第二数据库运行的主机通常并不相同;访问第一数据库的端口号和访问第二数据库的端口号通常相同;第一数据库为第一云平台提供数据;第二数据库为第二云平台提供数据;第一云平台和第二云平台通常是在物理机上运行的,比如在服务器上运行,则对应的第一数据库可以部署在与对应的第一云平台相同的物理机上,第二数据库通常也可以部署在与对应的第二云平台相同的物理机上。
在实际实现时,如果需要对云平台进行升级,可以从配置文件中获取上述第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第 二云平台中目标业务数据对应的第二数据库的数据库信息;该配置文件中的信息通常是由工程师等技术人员预先输入配置完成,该配置文件中通常还包括访问第一数据库和第二数据库所需的用户名和密码等信息。
S104,根据第一数据库的数据库信息和第二数据库的数据库信息,将目标业务数据从第二云平台迁移至第一云平台;其中,目标业务数据包括平台数据、租户数据和虚拟机数据中的一种或多种。
上述平台数据可以理解为云平台中操作系统或网络访问等相关信息,如租户账户信息、操作系统镜像文件,以及用于外部网络访问第二云平台的上联网信息等;上述租户数据可以理解为租户的路由、子网等相关数据,如租户的路由信息、子网信息和安全组信息等;上述虚拟机数据可以理解为虚拟机中运行的相关数据,如虚拟机正在运行的业务数据等;上述目标业务数据可以包括平台数据、租户数据和虚拟机数据中的一种或多种。
当获取到上述第一数据库的数据库信息和第二数据库的数据库信息后,根据这些信息可以将目标业务数据从第二云平台迁移至第一云平台;在实际实现时,如果该方法应用于第一云平台的管理节点,则该第一云平台的管理节点可以将上述目标业务数据从第二云平台迁移至第一云平台,以使该目标业务数据在较高版本的第一云平台中运行。
本公开实施例提供的云平台的升级方法,第一云平台的平台版本高于预设的第二云平台的平台版本,第二云平台用于运行目标业务数据;该方法分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;根据获取到的数据库信息,将目标业务数据从第二云平台迁移至第一云平台,如此实现将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级。可见,这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。
另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台,从而降低了运维成本和管理复杂度。
本公开实施例还提供了另一种云平台的升级方法,该方法在上述实施例方法的基础上实现;该方法重点描述根据第一数据库的数据库信息和第二数据库的数据库信息,将目标业务数据从第二云平台迁移至第一云平台的具体过程,具体对应下述S204至S206,如图2所示,该方法包括如下步骤:
S202,获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中目标业务数据对应的第二数据库的数据库信息;数据库信息用于:提供数据库的访问接口,以通过访问接口从数据库获取数据,或将数据导入至数据库。
S204,当目标业务数据包括平台数据时,从第二数据库中获取该平台数据,将该平台数据导入至第一数据库;该平台数据包括:租户账户信息、操作系统镜像文件,以及用于外部网络访问第二云平台的上联网信息。
上述租户账户信息通常包括租户对应的用户名、密码,以及虚拟机数量、磁盘大小或内存大小等可使用的资源信息;上述操作系统镜像文件可以理解为包含操作系统的镜像文件,该镜像文件通常存储在运行目标业务数据的云平台,在创建虚拟机后,根据该镜像文件可以直接启动虚拟机,相当于通过该镜像文件完成了操作系统的安装,因而不需要再安装操作系统,节省了安装操作系统的时间;上述上联网信息通常包括IP(Internet Protocol,网际互连协议)地址信息,将该IP地址信息绑定到云平台内的虚拟机后,外部网络就可以直接访问该虚拟机。在实际实现时,当目标业务数据包括上述平台数据时,如果该方法应用于第一云平台的管理节点,则第一云平台的管理节点可以根据第二数据库的数据库信息,从该第二数据库中获取上述平台数据,然后根据第一数据库的数据库信息,将该平台数据导入至该第一数据库;比如,对于租户账户信息,可以通过“:$kscmigration-keystone generate_sql--tenant-id all”命令行,获取到从第二数据库输出的租户账户信息,然后通过“$kscmigration-keystone migrate--tenant-id all”命令行,将该租户账户信息导入到第一数据库;对于操作系统镜像文件,可以通过“$kscmigration-glance generate_sql--image-id all”命令行,获取到从第二数据库输出的操作系统镜像文件,然后通过 “$kscmigration-glance migrate--image-id all”命令行,将该操作系统镜像文件导入到第一数据库。
S206,在第一云平台中创建与上述上联网信息相匹配的上联网。
对于上联网信息,可以在第一云平台中创建与第二云平台为同一个网段的上联网,以保证应对业务访问IP信息不变;在实际实现时,在数据迁移过程中,为了保证第一云平台和第二云平台的正常运行,第一数据库和第二数据库通常会同时存在,并正常运行,第一云平台中的虚拟机访问第一数据库,第二云平台中的虚拟机访问第二数据库。
需要说明的是,在云平台的版本升级过程中,在配置文件中配置第一数据库的数据库信息和第二数据库的数据库信息,以及上述S204-S206的操作,通常可以只执行一次,并且,执行过程中不影响业务的正常运行。
本公开实施例提供的另一种云平台的升级方法,分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;当目标业务数据包括平台数据时,从第二数据库中获取平台数据,并导入至第一数据库;在第一云平台中创建与平台数据中的上联网信息相匹配的上联网,如此实现将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级。可见,这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。
另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台,从而降低了运维成本和管理复杂度。
本公开实施例还提供了另一种云平台的升级方法,该方法在上述实施例方法的基础上实现;该方法重点描述根据第一数据库的数据库信息和第二数据库的数据库信息,将目标业务数据从第二云平台迁移至第一云平台的具体过程,具体对应下述S304至S306,如图3所示,该方法包括如下步骤:
S302,获取第一云平台中目标业务数据对应的第一数据库的数据库信 息,以及第二云平台中目标业务数据对应的第二数据库的数据库信息;数据库信息用于:提供数据库的访问接口,以通过访问接口从数据库获取数据,或将数据导入至数据库。
S304,当目标业务数据包括租户数据时,针对第二云平台中的每个租户,从第二数据库中获取当前租户对应的租户数据,将租户数据导入至第一数据库;该租户数据包括:租户的路由信息、子网信息和安全组信息。
本实施例中,租户可以理解为一个团队或组织,是各个服务中的一些可以访问的资源集合,各个租户之间的资源是相互隔离不可见的;用户购买云平台,比如政府购买了云平台,租户相当于政府内的每个小的业务部门,比如人事部、运营部等,因此云平台中通常包括多个租户;上述路由可以用于分组从源到目的地时,决定端到端路径的网络范围的进程;上述路由信息通常包括路由算法等信息;通常每个路由可以包括以下三种功能:第一种是同一租户内部直接访问的功能,即,同一租户内部的各个虚拟机可以直接相互访问,不需要转发;第二种是跨租户之间的转发功能,即当一个租户内的虚拟机需要访问另一个租户内的虚拟机,但又不知道另一个租户的信息时,通过路由中的路由算法可以实现跨租户之间的转发;第三种是如果一个租户内的虚拟机需要访问外部网络,也可以通过路由中的路由算法实现该租户内的虚拟机向外部网络的转发,以使该虚拟机可以访问外部网络。
每个租户的内部网络可以包括多个子网,其中,网络可以理解为创建虚拟机时网卡配置IP的集合,同一个租户的内部的虚拟机可以相互访问,跨租户通常不能相互访问,外部网络通常也不可以访问,上述子网信息通常包括每个租户内部所包括的每个子网的相关信息;上述安全组信息通常包括安全规则集合,可以应用于虚拟机网卡,以保护对应虚拟机允许的访问权限。
在实际实现时,当目标业务数据包括上述租户数据时,如果该方法应用于第一云平台的管理节点,则针对第二云平台中的每个租户,第一云平台的管理节点可以根据第二数据库的数据库信息,从该第二数据库中获取当前租户对应的租户数据,然后根据第一数据库的数据库信息,将该当前 租户对应的租户数据导入至该第一数据库;比如,对于每个租户的路由信息,可以通过“sh create-router.sh router-name”命令行,实现根据路由名称查询到对应的路由,然后将对应路由中相关的路由算法导入第一数据库的过程。
S306,在第一云平台中,为当前租户创建与子网信息相匹配的子网,为当前租户创建与安全组信息相匹配的安全组。
在实际实现时,在第一云平台中,对于每个租户的子网,UI(User Interface,用户界面)通常为每个租户创建同第二云平台中对应租户相同的子网,网段通常要保持一致;对于每个租户的安全组,UI为每个租户创建同第二云平台中对应租户相同的安全组,安全组命名通常保持一致。
需要说明的是,上述S304-S306的操作,通常每个租户都需要执行一次,并且,执行过程中,不影响业务的正常运行。
本公开实施例提供的另一种云平台的升级方法,分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;当目标业务数据包括租户数据时,针对第二云平台中的每个租户,从第二数据库中获取当前租户对应的租户数据,并导入至第一数据库;在第一云平台中,为当前租户创建与子网信息相匹配的子网,以及与安全组信息相匹配的安全组,如此实现将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级。可见,这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。
另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台,从而降低了运维成本和管理复杂度。
本公开实施例还提供了另一种云平台的升级方法,该方法在上述实施例方法的基础上实现;该方法重点描述根据第一数据库的数据库信息和第二数据库的数据库信息,将目标业务数据从第二云平台迁移至第一云平台的具体过程,具体对应下述S404至S406,如图4所示,该方法包括如下 步骤:
S402,获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中目标业务数据对应的第二数据库的数据库信息;数据库信息用于:提供数据库的访问接口,以通过访问接口从数据库获取数据,或将数据导入至数据库。
S404,当目标业务数据包括虚拟机数据时,针对第二云平台中的每个虚拟机,从第二数据库中获取当前虚拟机的虚拟机数据,将虚拟机数据导入至第一数据库;虚拟机数据包括:当前虚拟机正在运行的业务数据。
上述第二云平台中通常运行有多个虚拟机;上述虚拟机数据通常包括当前虚拟机正在运行的业务数据,如当前虚拟机对应的内存大小、磁盘大小等信息;在实际实现时,当目标业务数据包括上述虚拟机数据时,如果该方法应用于第一云平台的管理节点,则针对第二云平台中的每个虚拟机,第一云平台的管理节点从第二数据库中获取当前虚拟机的虚拟机数据,并根据第一数据库的数据库信息,将该虚拟机数据导入至第一数据库;通过该步骤,可以将第二数据库中的每个虚拟机的虚拟机数据均导入到第一数据库中;在实际实现时,可以通过“sh prepare-migrate.sh old_instance_id old_fixed_ip”命令行,实现上述从第二数据库中获取与当前虚拟机的虚拟机数据的过程;通过“sh ksc_nova_generate_migrate.sh old_instance_id new_instance_id”命令行,实现上述将虚拟机数据导入至第一数据库的过程。
在实际实现时,在将虚拟机数据向第一数据库导入的过程中,有可能出现导入数据出错的问题,这时需要把导入出错的数据删除,以使第二云平台还可以基于第二数据库正常运行,删除之后,可以再重新从第二数据库中获取相关数据,并导入至第一数据库;如果导入数据出错,可以通过回滚命令“$kscmigration-nova rollback--old-instance-id<old-instance-id>--new-instance-id<new-instance-id>”,删除导入出错的数据。
S406,基于上述虚拟机数据,在第一云平台创建当前虚拟机对应的新建虚拟机。
如果该方法应用于第一云平台的管理节点,则基于上述虚拟机数据,第一云平台的管理节点可以在第一云平台创建当前虚拟机对应的新建虚拟机,以得到与第二云平台中的多个虚拟机相同的多个新建虚拟机。
S408,在第一云平台中,为上述新建虚拟机分配IP地址;其中,该IP地址用于外部网络访问该新建虚拟机。
为上述第一云平台中创建的新建虚拟机分配IP地址,并绑定该新建虚拟机,该IP地址通常是与对应的当前虚拟机在第二云平台中的IP地址是同一个网段的网络,以保证应对业务访问IP不变;在实际实现时,可以通过“sh create_eip_ass_vm.sh new_instance_id EIP”命令行,实现为上述第一云平台中创建的新建虚拟机分配IP地址的过程。
S410,关闭上述第二云平台中的当前虚拟机。
S412,获取第二云平台中的当前虚拟机所关联的磁盘和快照信息。
上述磁盘可以是云磁盘,可以理解为是为虚拟机提供存储空间的硬盘设备;上述快照可以理解为磁盘数据在指定时间点的一个备份,可以通过快照将磁盘数据恢复到备份的那个指定时间点;获取第二云平台中的当前虚拟机所关联的磁盘和快照信息;以磁盘为例,比如当前虚拟机所关联的磁盘是C盘,当前虚拟机和C盘的关联关系可以预先保存在某个指定文件中,从该指定文件中即可获得当前虚拟机所关联的磁盘。
S414,将获取到的上述磁盘和快照信息关联至第一云平台中的新建虚拟机。
将获取到的上述磁盘和快照信息关联至第一云平台中的新建虚拟机;比如,第二云平台中,当前虚拟机所关联的磁盘是C盘,则将第一云平台中与该当前虚拟机对应的新建虚拟机同样关联C盘;C盘中的数据是不变的,只是第一云平台中的新建虚拟机,需要关联这个C盘。
在实际实现时,磁盘中的数据本身是不迁移的,磁盘的数量可能有多个,每个磁盘可能有不同的名称,比如名称中可能会区分大小写等,记录这些名称等信息,在第一云平台中,将磁盘和快照与新建虚拟机之间建立关联关系。通常可以预先准备一个存储说明,以说明第一云平台和第二云平台共用一套存储,相当于共用同一个磁盘,比如,有1T的数据,如果迁 移传输需要较长时间,通过共用同一个磁盘的方式,就不需要迁移磁盘中的数据,从而节省了磁盘数据传输的时间。
S416,启动上述第一云平台中的新建虚拟机。
当在第一云平台中创建与当前虚拟机对应的新建虚拟机后,启动该新建虚拟机;在实际实现时,在启动新建虚拟机后,通常需要用户开机确认业务是否正常;比如,第二云平台中的当前虚拟机所绑定的IP地址是与淘宝业务相关联的,当在第一云平台中创建当前虚拟机对应的新建虚拟机后,需要验证当前虚拟机是否正常完成了迁移,通过所绑定的该IP地址,用户就可以确认淘宝业务是否正常运行;考虑到用户信息的保密性,通常云平台提供商无权开启用户的机器,由用户自行开机确认业务是否正常运行。
S418,隐藏用于访问上述第二云平台中的当前虚拟机的访问接口。
当用户确认业务正常运行后,考虑到第一云平台中的新建虚拟机已正常运行,这时需要隐藏用于访问上述第二云平台中的当前虚拟机的访问接口,以保证第一云平台中的新建虚拟机运行数据正常;在实际实现时,可以通过“sh post-migrate-vm.sh Old_Vm_UUID New_Vm_UUID”命令行,实现隐藏用于访问上述第二云平台中的当前虚拟机的访问接口的过程。
在针对每个虚拟机执行上述迁移过程之前,需要关闭将要迁移的虚拟机,在实际实现时,可以在完成一个虚拟机的迁移之后,再关闭下一个即将执行迁移过程的虚拟机;也可以同时执行一个租户内的所有虚拟机的迁移,比如,作为一个租户的一个业务部门,可以关闭该业务部门的所有虚拟机,然后对该业务部门的所有虚拟机统一执行上述迁移过程。
需要说明的是,上述S404-S418中的操作,通常需要针对每个虚拟机均执行一次,并且,执行前需要将第二云平台中的虚拟机关闭。
本公开实施例提供的另一种云平台的升级方法,分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;当目标业务数据包括虚拟机数据时,针对第二云平台中的每个虚拟机,从第二数据库中获取当前虚拟机的虚拟机数据,并导入至第一数据库;在第一云平台创建当前虚拟机对应的新建虚拟机,并为新建虚拟机分配IP地址;关闭第二云平台中的当前虚拟机,将获取到的当前 虚拟机所关联的磁盘和快照信息关联至新建虚拟机,并启动新建虚拟机。该方法实现了将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级。可见,这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。
另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台,从而降低了运维成本和管理复杂度。
对应于上述方法实施例,参见图5所示的一种云平台的升级装置的结构示意图,第一云平台的平台版本高于预设的第二云平台的平台版本,第二云平台设置为运行目标业务数据;该装置包括:获取模块50,设置为获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中目标业务数据对应的第二数据库的数据库信息;数据库信息用于:提供数据库的访问接口,以通过访问接口从数据库获取数据,或将数据导入至数据库;迁移模块51,设置为根据第一数据库的数据库信息和第二数据库的数据库信息,将目标业务数据从第二云平台迁移至第一云平台;其中,目标业务数据包括平台数据、租户数据和虚拟机数据中的一种或多种。
本公开实施例提供的云平台的升级装置,第一云平台的平台版本高于预设的第二云平台的平台版本,第二云平台用于运行目标业务数据;该装置分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;根据获取到的数据库信息,将目标业务数据从第二云平台迁移至第一云平台。该装置实现了将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级。可见,这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。
另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台, 从而降低了运维成本和管理复杂度。
在一种可能的实施方式中,迁移模块51还设置为:当目标业务数据包括平台数据时,从第二数据库中获取平台数据,将平台数据导入至第一数据库;平台数据包括:租户账户信息、操作系统镜像文件,以及用于外部网络访问第二云平台的上联网信息。
在一种可能的实施方式中,迁移模块51还设置为:在将平台数据导入至第一数据库之后,在第一云平台中创建与上联网信息相匹配的上联网。
在一种可能的实施方式中,迁移模块51还设置为:当目标业务数据包括租户数据时,针对第二云平台中的每个租户,从第二数据库中获取当前租户对应的租户数据,将租户数据导入至第一数据库;租户数据包括:租户的路由信息、子网信息和安全组信息。
在一种可能的实施方式中,迁移模块51还设置为:在将租户数据导入至第一数据库之后,在第一云平台中,为当前租户创建与子网信息相匹配的子网,为当前租户创建与安全组信息相匹配的安全组。
在一种可能的实施方式中,迁移模块51还设置为:当目标业务数据包括虚拟机数据时,针对第二云平台中的每个虚拟机,从第二数据库中获取当前虚拟机的虚拟机数据,将虚拟机数据导入至第一数据库;虚拟机数据包括:当前虚拟机正在运行的业务数据。
在一种可能的实施方式中,迁移模块51还设置为:在将虚拟机数据导入至第一数据库之后,基于虚拟机数据,在第一云平台创建当前虚拟机对应的新建虚拟机;在第一云平台中,为新建虚拟机分配IP地址;其中,IP地址用于外部网络访问新建虚拟机;关闭第二云平台中的当前虚拟机,启动第一云平台中的新建虚拟机。
在一种可能的实施方式中,迁移模块51还设置为:在启动第一云平台中的新建虚拟机之前,获取第二云平台中的当前虚拟机所关联的磁盘和快照信息;将获取到的磁盘和快照信息关联至第一云平台中的新建虚拟机。
在一种可能的实施方式中,迁移模块51还设置为:在启动第一云平台中的新建虚拟机之后,隐藏用于访问第二云平台中的当前虚拟机的访问接 口。
本公开实施例所提供的云平台的升级装置,其实现原理及产生的技术效果和前述云平台的升级方法实施例相同,为简要描述,云平台的升级装置实施例部分未提及之处,可参考前述云平台的升级方法实施例中相应内容。
本公开实施例还提供了一种服务器,参见图6所示,该服务器包括处理器130和存储器131,该存储器131存储有能够被处理器130执行的机器可执行指令,该处理器130执行机器可执行指令以实现上述云平台的升级方法。
在一种可能的实施方式中,图6所示的服务器还包括总线132和通信接口133,处理器130、通信接口133和存储器131通过总线132连接。
其中,存储器131可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口133(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线132可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
处理器130可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器130中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器130可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用 处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器131,处理器130读取存储器131中的信息,结合其硬件完成前述实施例的方法的步骤。
本公开实施例还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,该机器可执行指令促使处理器实现上述云平台的升级方法,具体实现可参见方法实施例,在此不再赘述。
本公开实施例所提供的云平台的升级方法、装置和服务器的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。
工业实用性
基于本公开实施例提供的云平台的升级方法、装置和服务器,第一云平台的平台版本高于预设的第二云平台的平台版本,第二云平台用于运行目标业务数据;该方法分别从第一云平台和第二云平台中获取目标业务数据对应的第一数据库的数据库信息和第二数据库的数据库信息;根据获取到的数据库信息,将目标业务数据从第二云平台迁移至第一云平台。该方法中,将运行在较低版本云平台上的目标业务数据迁移至较高版本云平台上,从而实现云平台的升级;这种通过目标业务数据迁移实现云平台升级的方式,易于实现,升级方式更加安全稳定,保证了业务在升级期间也能安全稳定运行。另外,在云平台升级后,用户可以享受新版本的云平台具有的新功能;而且对于云平台的管理平台来说,无需再同时管理多个不同版本的云平台,从而降低了运维成本和管理复杂度。

Claims (12)

  1. 一种云平台的升级方法,第一云平台的平台版本高于预设的第二云平台的平台版本,所述第二云平台用于运行目标业务数据;所述方法包括:
    获取第一云平台中目标业务数据对应的第一数据库的数据库信息,以及第二云平台中所述目标业务数据对应的第二数据库的数据库信息;所述数据库信息用于:提供数据库的访问接口,以通过所述访问接口从数据库获取数据,或将数据导入至数据库;
    根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台;其中,所述目标业务数据包括平台数据、租户数据和虚拟机数据中的一种或多种。
  2. 根据权利要求1所述的方法,其中,根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台的步骤,包括:
    当所述目标业务数据包括平台数据时,从所述第二数据库中获取所述平台数据,将所述平台数据导入至所述第一数据库;所述平台数据包括:租户账户信息、操作系统镜像文件,以及用于外部网络访问所述第二云平台的上联网信息。
  3. 根据权利要求2所述的方法,其中,将所述平台数据导入至所述第一数据库的步骤之后,所述方法还包括:在所述第一云平台中创建与所述上联网信息相匹配的上联网。
  4. 根据权利要求1至3任一项所述的方法,其中,根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台的步骤,包括:
    当所述目标业务数据包括租户数据时,针对所述第二云平台中的每个租户,从所述第二数据库中获取当前租户对应的租户数据,将所述租户数据导入至所述第一数据库;所述租户数据包括:租户的路由信息、子网信息和安全组信息。
  5. 根据权利要求4所述的方法,其中,将所述租户数据导入至所述第一数据库的步骤之后,所述方法还包括:
    在所述第一云平台中,为所述当前租户创建与所述子网信息相匹配的子网,为所述当前租户创建与所述安全组信息相匹配的安全组。
  6. 根据权利要求1至5任一项所述的方法,其中,根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台的步骤,包括:
    当所述目标业务数据包括虚拟机数据时,针对所述第二云平台中的每个虚拟机,从所述第二数据库中获取当前虚拟机的虚拟机数据,将所述虚拟机数据导入至所述第一数据库;所述虚拟机数据包括:所述当前虚拟机正在运行的业务数据。
  7. 根据权利要求6所述的方法,其中,将所述虚拟机数据导入至所述第一数据库的步骤之后,所述方法还包括:
    基于所述虚拟机数据,在所述第一云平台创建所述当前虚拟机对应的新建虚拟机;
    在所述第一云平台中,为所述新建虚拟机分配IP地址;其中,所述IP地址用于外部网络访问所述新建虚拟机;
    关闭所述第二云平台中的所述当前虚拟机,启动所述第一云平台中的所述新建虚拟机。
  8. 根据权利要求7所述的方法,其中,启动所述第一云平台中的所述新建虚拟机的步骤之前,所述方法还包括:
    获取所述第二云平台中的所述当前虚拟机所关联的磁盘和快照信息;
    将获取到的所述磁盘和快照信息关联至所述第一云平台中的所述新建虚拟机。
  9. 根据权利要求7或8所述的方法,其中,启动所述第一云平台中的所述新建虚拟机的步骤之后,所述方法还包括:隐藏用于访问所述第二云平台中的所述当前虚拟机的访问接口。
  10. 一种云平台的升级装置,第一云平台的平台版本高于预设的第二云平台的平台版本,所述第二云平台设置为运行目标业务数据;所述装置包括:
    获取模块,设置为获取第一云平台中目标业务数据对应的第一数据库 的数据库信息,以及第二云平台中所述目标业务数据对应的第二数据库的数据库信息;所述数据库信息用于:提供数据库的访问接口,以通过所述访问接口从数据库获取数据,或将数据导入至数据库;
    迁移模块,设置为根据所述第一数据库的数据库信息和所述第二数据库的数据库信息,将所述目标业务数据从所述第二云平台迁移至所述第一云平台;其中,所述目标业务数据包括平台数据、租户数据和虚拟机数据中的一种或多种。
  11. 一种服务器,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现权利要求1-9任一项所述的云平台的升级方法。
  12. 一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现权利要求1-9任一项所述的云平台的升级方法。
PCT/CN2021/083127 2020-03-30 2021-03-26 云平台的升级方法、装置和服务器 WO2021197214A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010240159.6A CN113468136A (zh) 2020-03-30 2020-03-30 云平台的升级方法、装置和服务器
CN202010240159.6 2020-03-30

Publications (1)

Publication Number Publication Date
WO2021197214A1 true WO2021197214A1 (zh) 2021-10-07

Family

ID=77865127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083127 WO2021197214A1 (zh) 2020-03-30 2021-03-26 云平台的升级方法、装置和服务器

Country Status (2)

Country Link
CN (1) CN113468136A (zh)
WO (1) WO2021197214A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115822A (zh) * 2022-01-25 2022-03-01 深圳市微克科技有限公司 一种基于云边结合的智能穿戴操作系统的生成方法及系统
CN115174382A (zh) * 2022-05-27 2022-10-11 青岛海尔科技有限公司 设备升级方法、存储介质及电子装置
CN116089517A (zh) * 2023-03-09 2023-05-09 钛信(上海)信息科技有限公司 一种用于云平台的api接口自动构建方法及系统
US20230327949A1 (en) * 2022-04-11 2023-10-12 Vmware, Inc. Endpoint performance monitoring migration between remote collectors
CN117155804A (zh) * 2023-10-27 2023-12-01 腾讯科技(深圳)有限公司 一种云服务器的部署方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302602A (zh) * 2015-10-27 2016-02-03 浪潮电子信息产业股份有限公司 一种云平台应用程序平滑在线升级方法
CN106293846A (zh) * 2016-08-16 2017-01-04 腾讯科技(深圳)有限公司 模拟处理器的升级方法及装置
WO2017105967A1 (en) * 2015-12-15 2017-06-22 Microsoft Technology Licensing, Llc End-to-end automated servicing model for cloud computing platforms
CN110286930A (zh) * 2019-06-27 2019-09-27 腾讯科技(深圳)有限公司 一种云平台升级方法、装置、终端及存储介质
CN110795118A (zh) * 2019-09-11 2020-02-14 烽火通信科技股份有限公司 一种云平台升级工具及升级方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239122B (zh) * 2014-09-04 2018-05-11 华为技术有限公司 一种虚拟机迁移方法和装置
CN105426243A (zh) * 2015-11-19 2016-03-23 国云科技股份有限公司 一种基于Openstack的物理机远程维护的方法
CN107870802B (zh) * 2016-09-27 2021-09-07 阿里巴巴集团控股有限公司 一种虚拟机迁移方法和装置
CN109756356B (zh) * 2017-11-07 2021-09-21 华为技术有限公司 设备升级方法及装置
CN109995816B (zh) * 2017-12-29 2022-04-08 中移(苏州)软件技术有限公司 基于云计算平台的信息导入方法、装置和通信设备
CN108345493A (zh) * 2018-03-13 2018-07-31 国云科技股份有限公司 一种基于多云统管系统Windows虚拟机跨云迁移的方法
CN110209465A (zh) * 2018-04-20 2019-09-06 腾讯科技(深圳)有限公司 虚拟机跨平台迁移方法、装置及电子设备
CN109739617A (zh) * 2018-12-07 2019-05-10 国云科技股份有限公司 一种基于多云统管系统的Linux虚拟机跨云迁移的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302602A (zh) * 2015-10-27 2016-02-03 浪潮电子信息产业股份有限公司 一种云平台应用程序平滑在线升级方法
WO2017105967A1 (en) * 2015-12-15 2017-06-22 Microsoft Technology Licensing, Llc End-to-end automated servicing model for cloud computing platforms
CN106293846A (zh) * 2016-08-16 2017-01-04 腾讯科技(深圳)有限公司 模拟处理器的升级方法及装置
CN110286930A (zh) * 2019-06-27 2019-09-27 腾讯科技(深圳)有限公司 一种云平台升级方法、装置、终端及存储介质
CN110795118A (zh) * 2019-09-11 2020-02-14 烽火通信科技股份有限公司 一种云平台升级工具及升级方法

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115822A (zh) * 2022-01-25 2022-03-01 深圳市微克科技有限公司 一种基于云边结合的智能穿戴操作系统的生成方法及系统
CN114115822B (zh) * 2022-01-25 2022-04-15 深圳市微克科技有限公司 一种基于云边结合的智能穿戴操作系统的生成方法及系统
US20230327949A1 (en) * 2022-04-11 2023-10-12 Vmware, Inc. Endpoint performance monitoring migration between remote collectors
CN115174382A (zh) * 2022-05-27 2022-10-11 青岛海尔科技有限公司 设备升级方法、存储介质及电子装置
CN115174382B (zh) * 2022-05-27 2024-01-26 青岛海尔科技有限公司 设备升级方法、存储介质及电子装置
CN116089517A (zh) * 2023-03-09 2023-05-09 钛信(上海)信息科技有限公司 一种用于云平台的api接口自动构建方法及系统
CN116089517B (zh) * 2023-03-09 2023-07-21 钛信(上海)信息科技有限公司 一种用于云平台的api接口自动构建方法及系统
CN117155804A (zh) * 2023-10-27 2023-12-01 腾讯科技(深圳)有限公司 一种云服务器的部署方法及相关装置
CN117155804B (zh) * 2023-10-27 2024-01-09 腾讯科技(深圳)有限公司 一种云服务器的部署方法及相关装置

Also Published As

Publication number Publication date
CN113468136A (zh) 2021-10-01

Similar Documents

Publication Publication Date Title
WO2021197214A1 (zh) 云平台的升级方法、装置和服务器
CN108549580B (zh) 自动部署Kubernetes从节点的方法及终端设备
US10158579B2 (en) Resource silos at network-accessible services
CN109274722B (zh) 数据共享方法、装置以及电子设备
US10659523B1 (en) Isolating compute clusters created for a customer
US8813225B1 (en) Provider-arbitrated mandatory access control policies in cloud computing environments
US10250512B2 (en) System and method for traffic director support in a multitenant application server environment
US11070541B2 (en) Certificate management method and apparatus in network functions virtualization architecture
US20130091183A1 (en) Volume Management
US20150113531A1 (en) System for migrating virtual machine and method thereof
CN110855777B (zh) 一种基于区块链的节点管理方法及装置
RU2425414C2 (ru) Автоматизированная миграция состояния при развертывании операционной системы
US10379894B1 (en) Lineage-based trust for virtual machine images
US10055311B1 (en) Reversion operations for virtual computing environments
CN112445570A (zh) 一种云平台资源迁移方法及其装置、存储介质
WO2018001023A1 (zh) 一种云终端登录虚拟桌面方法及装置
US10430166B2 (en) Resource injection for application wrapping
CN112948842A (zh) 一种鉴权方法及相关设备
US11838296B1 (en) Providing secure software project development environments
US20140041053A1 (en) Data block access control
WO2020063002A1 (zh) 一种数据管理方法、装置和服务器
CN115250234A (zh) 一种部署网络设备的方法、装置、设备、系统及存储介质
CN114244555B (zh) 一种安全策略的调整方法
US20220350629A1 (en) Update management for managed virtual machines
US10789179B1 (en) Decentralized access management in information processing system utilizing persistent memory

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: 21778840

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21778840

Country of ref document: EP

Kind code of ref document: A1