Cloud resource processing method and physical node
AssigneeHuawei Technologies Co., Ltd.
InventorNi Zhang
Life of this patent
Estimating the term…
Abstract
The present disclosure relate to a cloud resource processing method includes: determining a cloud resource; obtaining a dependent cloud resource of the cloud resource and a resource information group of the cloud resource, where the resource information group includes resource information of the dependent cloud resource; generating a resource topology template; and cloning or migrating the cloud resource based on the resource topology template. According to the cloud resource processing method and the physical node in the embodiments of the present disclosure, clone or migration processing of a plurality of cloud resources can be automatically completed, so as to improve replication efficiency.
Claims14
A cloud resource processing method, comprising:
- determining a cloud resource, the cloud resource comprising a network resource;
- obtaining a dependent cloud resource of the cloud resource and a resource information group of the cloud resource, wherein the dependent cloud resource of the network resource comprises a subnet resource of the network resource, and wherein the resource information group comprises resource information of the dependent cloud resource and information about the subnet resource;
- generating a resource topology template, wherein the resource topology template comprises the resource information group of the cloud resource and a dependency relationship between the cloud resource and the dependent cloud resource;
- cloning or migrating the cloud resource based on the resource topology template;
- determining, based on the information about the subnet resource, at least one router associated with the subnet resource;
- obtaining extranet information of each of the at least one router;
- and
- based on the extranet information of each router, determining a target router from the at least one router and obtaining information about the target router, wherein an extranet associated with the target router and a floating IP address of a port of a virtual machine resource are in a same network, the dependent cloud resource of the network resource comprises the target router, and the resource information group of the network resource comprises the information about the target router.
A physical node, comprising a memory and a processor, wherein the memory is configured to store an instruction, and the processor is configured to execute the instruction stored in the memory, so that the processor performs:
- determining a cloud resource, the cloud resource comprising a network resource;
- obtaining a dependent cloud resource of the cloud resource and a resource information group of the cloud resource, wherein the dependent cloud resource of the network resource comprises a subnet resource of the network resource, and wherein the resource information group comprises resource information of the dependent cloud resource and information about the subnet resource;
- generating a resource topology template, wherein the resource topology template comprises the resource information group of the cloud resource and a dependency relationship between the cloud resource and the dependent cloud resource;
- cloning or migrating the cloud resource based on the resource topology template;
- determining, based on the information about the subnet resource, at least one router associated with the subnet resource;
- obtaining extranet information of each of the at least one router;
- and
- based on the extranet information of each router, determining a target router from the at least one router and obtaining information about the target router, wherein an extranet associated with the target router and a floating IP address of a port of a virtual machine resource are in a same network, the dependent cloud resource of the network resource comprises the target router, and the resource information group of the network resource comprises the information about the target router.
A non-transitory computer readable storage medium having computer usable program code which, when executed by a computing device, causes the computing device to perform:
- determining a cloud resource, the cloud resource comprising a network resource;
- obtaining a dependent cloud resource of the cloud resource and a resource information group of the cloud resource, wherein the dependent cloud resource of the network resource comprises a subnet resource of the network resource, and wherein the resource information group comprises resource information of the dependent cloud resource and information about the subnet resource;
- generating a resource topology template, wherein the resource topology template comprises the resource information group of the cloud resource and a dependency relationship between the cloud resource and the dependent cloud resource;
- cloning or migrating the cloud resource based on the resource topology template;
- determining, based on the information about the subnet resource, at least one router associated with the subnet resource;
- obtaining extranet information of each of the at least one router;
- and
- based on the extranet information of each router, determining a target router from the at least one router and obtaining information about the target router, wherein an extranet associated with the target router and a floating IP address of a port of a virtual machine resource are in a same network, the dependent cloud resource of the network resource comprises the target router, and the resource information group of the network resource comprises the information about the target router.
Dependencies are inferred from the claim text.