A cloud platform image management method and management system
By copying mirror files and updating metadata information on the cloud management platform, the problem of inability to share between cloud resource pools is solved, cross-pool sharing of resources is realized, the resource needs of multiple terminals are met and resource utilization is improved.
Patent Information
- Application Number
- CN202111602522.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-12-24
AI Technical Summary
Cloud resources cannot be shared between multiple cloud resource pools in the same region, resulting in limited resources and cannot meet the needs of multiple terminals.
Receive request instructions through the cloud management platform, copy the image file from one type of storage pool to another type of storage pool, and update the image entry and local metadata information, so that cloud resources are shared between the resource pools corresponding to multiple clusters.
It realizes cloud resource sharing between multiple resource pools in the same region, meets the resource needs of multiple terminals, saves storage space and improves resource utilization.
Smart Images

Figure CN114443216B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud technology, and in particular to a cloud platform image management method and management system. Background Art
[0002] With the development of cloud computing and virtualization technology, cloud, as a new model based on cloud computing and service-oriented, can provide local users with various cloud management services that are available at any time, on-demand, secure and reliable through the cloud platform, such as providing local users with cloud resources. Local users can be considered as the region where the terminal is located.
[0003] The cloud management platform can provide multiple resource pools, where one region can correspond to multiple resource pools. Currently, cloud resources cannot be shared between multiple resource pools in the same region. For example, if a user creates a private image on the first resource pool in a certain region, the image cannot be used on other resource pools in the same region. As the number of regions increases, cloud resources are limited and may not be able to meet the resource needs of multiple terminals. Summary of the invention
[0004] The present application provides a cloud platform image management method and management system, which can enable multiple resource pools in the same region to share, thereby meeting the resource needs of multiple terminals as much as possible.
[0005] In the first aspect, a cloud platform image management method is provided, which can be executed through a cloud management platform, and the method includes: receiving a first request instruction, the first request instruction is used to create a first image; according to the type of the first image, copying the file of the first image from the first type storage pool to the second type storage pool, and updating the image entry and local metadata information. Among them, the first type storage pool stores the file of the first image, the first type storage pool is used to store multiple resource pools of a cluster, and the second type storage pool is used to store resource pools corresponding to multiple clusters; or, the first type storage pool is used to store resource pools corresponding to multiple clusters, and the second type storage pool is used to store multiple resource pools of a cluster. The image entry is used to indicate the created image, and the local metadata information is used to indicate the resource pool stored in the second type storage pool, and the resource pool stored in the second type storage pool can be used by multiple clusters. The solution provided by this application can enable cloud resources to be shared between multiple resource pools corresponding to any cluster, so as to meet the terminal's resource usage requirements as much as possible.
[0006] In a possible design, the method further includes: receiving a second request instruction before receiving the first request instruction; according to the second request instruction, storing the image file indicated by the second request instruction in the image warehouse of the first type of storage pool. It is understandable that the created image file can be stored in the corresponding resource pool in advance, so that the image file can be obtained through the interface between the resource pool and the image service.
[0007] In a possible design, the first image is a private image, the first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters; or, the first image is a public image, the first type of storage pool is used to store resource pools corresponding to multiple clusters, and the second type of storage pool is used to store multiple resource pools of a cluster. In other words, private images are stored in a resource pool used by a cluster, which can also be considered an object storage pool. Public images are stored in a resource pool used by multiple clusters, which can also be considered a block storage pool.
[0008] In a possible design, the first image is a public image, and after storing the files of the first image in the image repository of the first type storage pool, the method further includes: synchronizing the files of the first image in the first type storage pool to other first type storage pools except the first type storage pool, that is, creating a private image from the virtual system disk.
[0009] In a possible design, the first image is a public image, and the method further includes: selecting the first image from the second type storage pool, creating a snapshot based on the first image, and then cloning the virtual system disk according to the snapshot, that is, creating a virtual system disk for the public image.
[0010] In a possible design, the method further includes: receiving a deletion instruction, the deletion instruction being used to delete the second image, and deleting the second image when it is determined that no virtual system disk is created based on the second image.
[0011] In a second aspect, an embodiment of the present application provides a cloud platform image management system, the system comprising a first type storage pool and a second type storage pool, and a management platform, wherein the first type storage pool stores files of a first image. The first type storage pool is used to store multiple resource pools of a cluster, and the second type storage pool is used to store resource pools corresponding to multiple clusters; or the first type storage pool is used to store resource pools corresponding to multiple clusters, and the second type storage pool is used to store multiple resource pools of a cluster.
[0012] The management platform is used to receive a first request instruction, the first request instruction is used to create a first image, copy the file of the first image from the first type storage pool to the second type storage pool according to the type of the first image, and update the image entry and local metadata information. The image entry is used to indicate the created image. The local metadata information is used to indicate the resource pool stored in the second type storage pool, and the resource pool stored in the second type storage pool can be used by multiple clusters.
[0013] In a possible design, the first image is a private image, the first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters; or, the first image is a public image, the first type of storage pool is used to store resource pools corresponding to multiple clusters, and the second type of storage pool is used to store multiple resource pools of a cluster.
[0014] In a possible design, the management platform includes a transceiver module and a processing module. The transceiver module is further used to receive a second request instruction before receiving the first request instruction. The processing module is used to store the image file indicated by the second request instruction in the image warehouse of the first type of storage pool according to the second request instruction.
[0015] In a possible design, the first image is a public image, and after the files of the first image are stored in the image repository of the first type storage pool, the processing module is further used to synchronize the files of the first image in the first type storage pool to other first type storage pools.
[0016] In a possible design, the first image is a public image, and the processing module is further used to select the first image from the second type of storage pool, create a snapshot based on the first image, and then clone the virtual system disk according to the snapshot.
[0017] In a possible design, the transceiver module is further used to receive a deletion instruction, which is used to delete the second image. The management platform also includes a deletion module, which is used to delete the second image when it is determined that no virtual system disk is created based on the second image.
[0018] In a third aspect, an embodiment of the present application provides a cloud platform image management system, the system comprising a first type storage pool and a second type storage pool, and a management platform, the first type storage pool storing files of a first image. The first type storage pool is used to store multiple resource pools of a cluster, and the second type storage pool is used to store resource pools corresponding to multiple clusters; or, the first type storage pool is used to store resource pools corresponding to multiple clusters, and the second type storage pool is used to store multiple resource pools of a cluster. The management platform comprises: at least one processor, and a memory connected to the at least one processor. The memory stores instructions executable by the at least one processor, and the at least one processor executes the method described in the first aspect by executing the instructions stored in the memory.
[0019] In a fourth aspect, an embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any one of the methods provided in the first aspect.
[0020] An embodiment of the present application provides a cloud platform image management system, which can enable cloud resources to be shared among multiple resource pools corresponding to any cluster, thereby satisfying the resource usage requirements of terminals as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 An architectural diagram of the cloud platform image management system provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a process for creating a private image provided in an embodiment of the present application;
[0023] Figure 3 Another schematic diagram of a process for creating a private image provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a process for creating a public image provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of the management platform provided in the embodiment of the present application;
[0026] Figure 6 Another structural diagram of the management platform provided in the embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0028] See also Figure 1 , is an architecture diagram of the cloud platform image management system provided in an embodiment of the present application. The system includes a management platform and a first type of storage pool and a second type of storage pool. The first type of storage pool and the second type of storage pool are relative. For example, the first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters. The first type of storage pool is used to store resource pools corresponding to multiple clusters, and the second type of storage pool is used to store multiple resource pools of a cluster. Among them, there can be multiple first type storage pools, for example Figure 1 For example, there are M first-type storage pools. Similarly, there can be multiple second-type storage pools, for example Figure 1 Take the case where K second-type storage pools are included as an example. Figure 1 The system shown also includes N clusters, from Figure 1 It can be seen that one cluster corresponds to one first-type storage pool and can correspond to multiple second-type storage pools.
[0029] It should be noted that multiple resource pools used to store a cluster can be considered to be for the cluster, also known as object storage pools. Multiple resource pools used to store multiple clusters can also be considered to be for multiple clusters, that is, these multiple clusters share the resource pool, also known as block resource pools. The resources stored in the resource pool can be physical resources or virtual resources (or cloud resources). A cluster can correspond to a region, and a region can be divided into multiple zones, each of which corresponds to a resource pool. Alternatively, it can also be considered that a cluster corresponds to multiple resource pools.
[0030] The management platform can be used to manage the first type of storage pool and the second type of storage pool. In other words, the management platform can be used to schedule resources in the first type of storage pool, and can also schedule resources in the second type of storage pool. Among them, the management platform schedules resource pools at the cluster level. For example, taking the first cluster (first region) as an example, the management platform can provide image management services for all resource pools under the first cluster. It can be understood that the image management service is connected to the first type of storage pool and the second type of storage pool.
[0031] The following is a specific example of how the management platform provides image management services for a resource pool under a cluster. In the following description, it is assumed that the cluster is the first cluster and the image providing the image management service is the first image.
[0032] Example 1: Create a private image.
[0033] See also Figure 2 , which is a flow chart of creating a private image provided in an embodiment of the present application. Figure 2 The process shown takes importing a private image from the page as an example.
[0034] S201. A management platform receives a second request instruction, where the second request instruction is used to store a prepared image.
[0035] The user can import the prepared image into the object storage pool. For example, the user inputs a second request instruction to the management platform, and the second request instruction may include the information of the first image and the path of the object storage pool. Thus, the management platform receives the second request instruction and stores the image indicated by the second request instruction in the corresponding object storage pool. This article takes the image indicated by the second request instruction as the first image as an example.
[0036] S202: The management platform receives a first request instruction, where the first request instruction is used to create a first image.
[0037] S203: The management platform copies the files of the first image from the object storage pool to the block storage pool according to the type of the first image.
[0038] When it is necessary to create a private image, the user can input a first request instruction to the management platform to request the management platform to create the first image. After receiving the first request instruction, the management platform calls the replication interface of the object storage pool to copy the file of the first image in the object storage pool to the block storage pool. Afterwards, the management platform calls the image service to create (update) the image entry and updates the local metadata information. It can be understood that the local metadata information is used to indicate the resource pool stored in the block storage pool. Creating an image entry can be considered as adding an entry for the first image to the original image entry. The embodiment of the present application does not limit the replication interface of the object storage pool. For example, the interface can be an S3 interface or a swift replication interface of the object storage pool.
[0039] In this example, private images are uniformly stored in the object storage pool, so that any private images in the object storage pool can be shared, thereby meeting resource requirements as much as possible. In addition, the storage space for storing private images can also be saved.
[0040] S204: The management platform receives a deletion instruction, where the deletion instruction is used to delete the second image.
[0041] S205: After determining that no virtual system disk is created based on the second image, the management platform deletes the second image.
[0042] It is understandable that when the user does not need the created image, such as the second image, in order to save storage space, the second image can be transmitted. Specifically, the user can input a deletion instruction to the management platform, and the deletion instruction can carry the information of the second image. When the management platform receives the deletion instruction, it first determines that none of the resource pools corresponding to the current cluster have a virtual system disk created based on the second image, and then deletes the second image. That is, the second image is deleted from the object storage pool or the block storage pool. On the contrary, if all the resource pools corresponding to the current cluster still have virtual system disks created based on the second image, the management platform can output a prompt message to indicate the reason why the second image cannot be deleted.
[0043] Example 2: Creating a private image. The difference from Example 1 is that Example 2 takes creating a private image from a virtual system disk as an example.
[0044] See also Figure 3 , is another flow chart of creating a private image provided in an embodiment of the present application. Figure 3 The process shown takes creating a private image from a virtual system disk as an example.
[0045] S301. A management platform receives a second request instruction, where the second request instruction is used to store a prepared image.
[0046] The user can import the prepared image, such as the first image, into the block storage pool. For example, the user inputs a second request instruction to the management platform, and the second request instruction may include information of the first image and a path to the block storage pool. Thus, the management platform receives the second request instruction and stores the first image in the corresponding block storage pool.
[0047] S302: The management platform receives a first request instruction, where the first request instruction is used to create a first image.
[0048] S303: The management platform copies the files of the first image from the block storage pool to the system disk according to the type of the first image.
[0049] The difference from S202 is that after receiving the first request instruction, the management platform calls the upload system disk interface of the block storage pool to copy the file of the first image in the block storage pool to the system disk. And the data of the system disk is copied to the block storage pool. After that, the management platform calls the image service to create an image entry and updates the local metadata information. It can be understood that the local metadata information is used to indicate the resource pool stored in the block storage pool. Creating an image entry can be considered as adding an entry for the first image to the original image entry.
[0050] It should be noted that in Example 2, the process of deleting the second image can also be performed by the user. For details, please refer to the description in Example 1, which will not be repeated here.
[0051] Example 3: Create a public image. The public image refers to a common template that can be used by all users, including but not limited to images of operating systems such as Ubuntu, Windows, and CentOS.
[0052] See also Figure 4 , which is a schematic diagram of the process of creating a public image provided in an embodiment of the present application.
[0053] S401: The management platform receives a second request instruction, where the second request instruction is used to store the prepared image.
[0054] The user may import the prepared first image into the block storage pool. For example, the user inputs a second request instruction to the management platform, and the second request instruction may include information about the first image and a path to the block storage pool. Thus, the management platform receives the second request instruction and stores the first image in a corresponding block storage pool, such as the first block storage pool. The first block storage pool may be any block storage pool.
[0055] S402: The management platform synchronizes the files of the first mirror in the first block storage pool to other block storage pools.
[0056] When the management platform stores the first image in the first block storage pool, it can perform a synchronization operation to synchronize the first image to other block storage pools, thereby achieving the creation of a public image.
[0057] In this example, the public image is stored in any block storage pool, and the virtual system disk can be cloned relatively quickly.
[0058] Example 4: Create a system disk for an image. It is understandable that there are private images and public images. The following describes how to create a system disk for private images and public images respectively.
[0059] For public images, it should be understood that public images are stored in each block storage pool. The performance of different fast storage pools may also be different. For example, a block storage pool with faster read and write speeds can be considered a high-performance storage pool. Relatively speaking, a block storage pool with slower read and write speeds can be considered an ordinary storage pool and a high-performance storage pool. When creating a system disk for a public image, a snapshot can be made from the first block storage pool that stores the first image, and a system disk can be cloned from the snapshot. Alternatively, the first image can be copied from the first block storage pool to the high-performance storage pool, a snapshot can be made from the high-performance storage pool, and a system disk can be cloned from the snapshot. Since the embodiment of the present application stores the public image in any block storage pool, the virtual system disk can be cloned relatively quickly.
[0060] For private images, the management platform can call the image service to download the file of the first image from the object storage pool to a local temporary directory of the node where the block storage service is located. Afterwards, the management platform can call the block storage import command to import the file of the first image into the block storage volume pool. It is understandable that if the image format is not raw, the management platform performs an image format conversion operation before importing. For example, the management platform can perform an image format conversion operation through the conversion tool qemu-img. In an embodiment of the present application, private images can be shared in multiple storage pools, and users can use private images to create virtual machine resources in any storage pool, that is, to build virtual machine resources more quickly.
[0061] It should be noted that the aforementioned examples 1 to 4 can be combined with each other, and the embodiments of the present application are not limited to this. It can be seen from the above examples 1 to 4 that the cloud platform image management system provided by the embodiments of the present application supports the unified management of images of multiple storage pools under the same cluster. For example, private images are uniformly stored in an object storage pool, and any private image in the object storage pool can be shared, so that resource requirements can be met as much as possible. In addition, storage space for storing private images can also be saved. And private images can be shared in multiple storage pools, and users can use private images to create virtual machine resources in any storage pool, that is, to build virtual machine resources more quickly. For another example, public images are stored in any block storage pool, and virtual system disks can be cloned more quickly.
[0062] See also Figure 5 Based on the same inventive concept, an embodiment of the present invention provides a cloud platform image management system, the system includes a first type storage pool and a second type storage pool, and a management platform, the first type storage pool stores files of a first image. Among them, the first type storage pool is used to store multiple resource pools of a cluster, and the second type storage pool is used to store resource pools corresponding to multiple clusters respectively; or, the first type storage pool is used to store resource pools corresponding to multiple clusters respectively, and the second type storage pool is used to store multiple resource pools of a cluster. The management platform is used to receive a first request instruction, the first request instruction is used to create a first image, copy the file of the first image from the first type storage pool to the second type storage pool according to the first request instruction, and update the image entry and local metadata information. Among them, the image entry is used to indicate the created image. The local metadata information is used to indicate the resource pool stored in the second type storage pool, and the resource pool stored in the second type storage pool can be used by multiple clusters.
[0063] In a possible design, the first image is a private image, the first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters; or, the first image is a public image, the first type of storage pool is used to store resource pools corresponding to multiple clusters, and the second type of storage pool is used to store multiple resource pools of a cluster.
[0064] In a possible design, the management platform includes a transceiver module 501 and a processing module 502. The transceiver module 501 is also used to receive a second request instruction before receiving the first request instruction. The processing module is used to store the image file indicated by the second request instruction in the image warehouse of the first type of storage pool according to the second request instruction.
[0065] In a possible design, the first image is a public image. After the files of the first image are stored in the image repository of the first type storage pool, the processing module 502 is further used to synchronize the files of the first image in the first type storage pool to other first type storage pools.
[0066] In a possible design, the first image is a public image, and the processing module 502 is further used to select the first image from the second type of storage pool, create a snapshot based on the first image, and then clone the virtual system disk according to the snapshot.
[0067] In a possible design, the transceiver module 501 is further used to receive a deletion instruction, which is used to delete the second image. The management platform also includes a deletion module 503, which is used to delete the second image when it is determined that no virtual system disk is created based on the second image.
[0068] The cloud platform image management system can be used to execute Figure 2-Figure 4 Therefore, for the functions that can be realized by each functional module of the drone, please refer to Figure 2-Figure 4 The description of the illustrated embodiment is not repeated in detail.
[0069] See also Figure 6 An embodiment of the present invention further provides a cloud platform image management system, the system includes a first type of storage pool and a second type of storage pool, and a management platform, the first type of storage pool stores files of a first image. The first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters; or the first type of storage pool is used to store resource pools corresponding to multiple clusters, and the second type of storage pool is used to store multiple resource pools of a cluster. The management platform includes at least one processor 601, and the processor 601 is used to implement the embodiment of the present invention when executing a computer program stored in the memory. Figure 2-Figure 4 The steps of the method are shown.
[0070] Optionally, the processor 601 may be a central processing unit, an application specific integrated circuit (ASIC), one or more integrated circuits for controlling program execution, a hardware circuit developed using a field programmable gate array (FPGA), or a baseband processor.
[0071] Optionally, the read-write lock operation device further includes a memory 602 connected to at least one processor 601, and the memory 602 may include a read-only memory (ROM), a random access memory (RAM), and a disk memory. The memory 602 is used to store data required by the processor 601 when it is running. The number of memories 602 is one or more. Figure 6 However, it should be noted that the memory 602 is not a mandatory functional module, so Figure 6 Shown by dotted lines.
[0072] Based on the same inventive concept, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the following Figure 2-Figure 4 The method shown.
[0073] In the specific implementation process, the computer-readable storage medium includes: Universal Serial Bus flash drive (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other storage media that can store program codes.
[0074] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0075] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0076] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0077] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0078] If the integrated unit 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. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a universal serial bus flash disk (Universal Serial Bus flash disk), a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a disk or an optical disk, and other media that can store program codes.
[0079] Those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A cloud platform image management method, characterized in that: include: Receiving a first request instruction, where the first request instruction is used to create a first image; According to the type of the first image, copy the file of the first image from the first type storage pool to the second type storage pool, where the file of the first image is stored in the first type storage pool, wherein the first type storage pool is used to store multiple resource pools of a cluster, and the second type storage pool is used to store resource pools corresponding to multiple clusters respectively; or, the first type storage pool is used to store resource pools corresponding to multiple clusters respectively, and the second type storage pool is used to store multiple resource pools of a cluster; Update the image entry and local metadata information, the image entry is used to indicate the created image, the local metadata information is used to indicate the resource pool stored in the second type of storage pool, and the resource pool stored in the second type of storage pool can be used by multiple clusters.
2. The method according to claim 1, characterized in that The method further comprises: Before receiving the first request instruction, receiving a second request instruction; According to the second request instruction, the image file indicated by the second request instruction is stored in the first type storage pool.
3. The method according to claim 1 or 2, characterized in that The first image is a private image, the first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters; or The first image is a public image, the first type of storage pool is used to store resource pools corresponding to multiple clusters respectively, and the second type of storage pool is used to store multiple resource pools of one cluster.
4. The method according to claim 2, characterized in that The first image is a public image. After storing the files of the first image in the first type of storage pool, the method further includes: Synchronize the files of the first mirror in the first-type storage pool to other first-type storage pools except the first-type storage pool.
5. The method according to claim 1, characterized in that The first image is a public image, and the method further includes: Selecting the first image from the second type storage pool, and creating a snapshot based on the first image; The virtual system disk is cloned according to the snapshot.
6. The method according to claim 1, characterized in that The method further comprises: Receiving a deletion instruction; wherein the deletion instruction is used to delete the second image; It is determined that no virtual system disk is created based on the second image, and the second image is deleted.
7. A cloud platform image management system, characterized in that: The system includes a first type storage pool and a second type storage pool, and a management platform, wherein the first type storage pool stores files of a first image, wherein the first type storage pool is used to store multiple resource pools of a cluster, and the second type storage pool is used to store resource pools corresponding to multiple clusters respectively; or, the first type storage pool is used to store resource pools corresponding to multiple clusters respectively, and the second type storage pool is used to store multiple resource pools of a cluster; The management platform is used to receive a first request instruction, which is used to create the first image, copy the files of the first image from the first type of storage pool to the second type of storage pool according to the type of the first image, and update the image entry and local metadata information; wherein the image entry is used to indicate the created image, and the local metadata information is used to indicate the resource pool stored in the second type of storage pool, and the resource pool stored in the second type of storage pool can be used by multiple clusters.
8. The management system according to claim 7, characterized in that: The first image is a private image, the first type of storage pool is used to store multiple resource pools of a cluster, and the second type of storage pool is used to store resource pools corresponding to multiple clusters; or The first image is a public image, the first type of storage pool is used to store resource pools corresponding to multiple clusters respectively, and the second type of storage pool is used to store multiple resource pools of one cluster.
9. A cloud platform image management system, characterized in that: The system includes a first storage pool and a second storage pool, and a management platform, wherein the first storage pool stores files of the first image, the first storage pool is used to store multiple resource pools of a cluster, and the second storage pool is used to store resource pools corresponding to multiple clusters; or, the first storage pool is used to store resource pools corresponding to multiple clusters, and the second storage pool is used to store multiple resource pools of a cluster; wherein the management platform includes: At least one processor, and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor executes the method according to any one of claims 1 to 6 by executing the instructions stored in the memory.
10. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for creating system disk in cloud computing system, equipment and storage medium
CN112181278A
