Method, device and equipment for mounting cloud disk to bare metal server

CN117827118BActive Publication Date: 2026-08-07CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2024-01-09
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0003]然而裸金属本质上就是物理服务器,在无外部硬件辅助的情况下,无法将云盘模拟为一块pcie硬盘,这个限制条件使裸金属在使用云盘时,要么安全性不可靠,要么性能很差

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117827118B_ABST
    Figure CN117827118B_ABST
Patent Text Reader

Abstract

The application provides a method, device and equipment for mounting a cloud disk on a bare metal server. The method comprises the following steps: receiving a first mounting cloud disk request; determining mounting cloud disk information according to the first mounting cloud disk request, and sending a second mounting cloud disk request to a cloud disk management service node; receiving cloud disk related information and a network proxy address sent by the cloud disk management service node; sending a third mounting cloud disk request to a corresponding bare metal server according to identification information of the bare metal server, so that the bare metal server sends information about successful mounting of the cloud disk to the computing service node according to the cloud disk related information and the network proxy address in the third mounting cloud disk request after successful mounting of the cloud disk. The method provided by the application can solve the demand of the bare metal for the cloud disk, and ensure high security and high performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and in particular to a method, apparatus and equipment for mounting cloud disks on a bare metal server. Background Technology

[0002] In the current cloud computing field, the use of cloud disks on virtual machines has become very common. More and more users, having experienced the advantages of cloud disks, also expect bare-metal servers to be able to use them. Due to the high reliability, rapid creation, dynamic expansion, data backup and rollback capabilities of cloud disks, and their ability to be emulated as PCIe disks for virtual machines by virtual operating system emulators (QuickEMUlator, QEMU), the use of cloud disks on virtual machines has become mainstream in the cloud.

[0003] However, bare metal is essentially a physical server. Without external hardware assistance, it cannot simulate a PCIe hard drive as a cloud disk. This limitation means that when bare metal is used in a cloud disk, either the security is unreliable or the performance is very poor.

[0004] Therefore, existing technologies cannot meet the demand for cloud storage on bare metal while ensuring high security and high performance. Summary of the Invention

[0005] This application provides a method, apparatus, and device for mounting cloud disks on bare metal servers, which can solve the need for bare metal servers to use cloud disks while ensuring high security and high performance.

[0006] Firstly, this application provides a method for mounting a cloud disk on a bare metal server, applied to a computing service node, the method comprising:

[0007] Receive the first cloud disk mount request, which includes the cloud disk's identity information and the bare metal server's identification information.

[0008] Based on the first cloud disk mounting request, determine the cloud disk mounting information and send a second cloud disk mounting request to the cloud disk management service node. The second cloud disk mounting request includes the cloud disk mounting information, which includes the connector ID and the subnet ID of the storage network.

[0009] The cloud disk management service node receives cloud disk-related information and network proxy addresses, wherein the cloud disk-related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0010] Based on the identification information of the bare metal server, a third cloud disk mount request is sent to the corresponding bare metal server, so that the bare metal server, based on the cloud disk related information and network proxy address in the third cloud disk mount request, sends a cloud disk mount success message to the computing service node after the cloud disk is successfully mounted.

[0011] In one possible design, determining the cloud disk information based on the first cloud disk mounting request includes:

[0012] Determine the connector ID based on the identification information of the bare metal server;

[0013] Based on the identity information of the cloud disk, query the subnet ID of the storage network used by the bare metal server to mount the cloud disk.

[0014] In one possible design, sending a third cloud disk mount request to the corresponding bare metal server based on the bare metal server's identification information includes:

[0015] Create a temporary interface on the computing network of the computing service node;

[0016] The temporary interface is bound to the IP address under the tenant's cloud disk network and labeled with the virtual LAN tag of the cloud disk network, so as to connect with the client that mounts the cloud disk on the corresponding bare metal server.

[0017] Send a third cloud disk mounting request to the client that has mounted the cloud disk.

[0018] In one possible design, after sending the third mount cloud disk request to the corresponding bare metal server, the method further includes:

[0019] The cloud disk mounting success message was received from the bare metal server.

[0020] A message indicating successful mounting of the cloud disk will be sent to the user console.

[0021] Secondly, this application provides a method for mounting a cloud disk on a bare metal server, applied to a cloud disk management service node, the method comprising:

[0022] Receive a cloud disk mount request sent by a computing service node. The cloud disk mount request includes cloud disk mount information, which includes a connector ID and a subnet ID of the storage network.

[0023] Based on the mounted cloud disk information, a request is sent to the cloud disk storage pool node to indicate an instruction to provide cloud disk information;

[0024] The cloud disk information sent by the cloud disk storage pool node is received. The cloud disk information includes cloud disk related information and network proxy address. The cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0025] The computing service node sends the cloud disk-related information and the network proxy address to the computing service node, so that the computing service node sends a third cloud disk mount request to the corresponding bare metal server according to the bare metal server's identification information. The bare metal server is used to send a cloud disk mount success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk-related information and network proxy address in the third cloud disk mount request.

[0026] In one possible design, sending a request to the cloud disk storage pool node, indicating an instruction to provide cloud disk information, based on the mounted cloud disk information, includes:

[0027] Based on the mounted cloud disk information, generate the cloud disk's username and password;

[0028] Send a request to the cloud disk storage pool node to indicate that cloud disk information is to be provided. The request to indicate that cloud disk information is to be provided includes the username, password and identification information of the bare metal server of the cloud disk.

[0029] In one possible design, the request indicating the provision of cloud disk information includes a request indicating the provision of cloud disk-related information and a request indicating the provision of a cloud disk network proxy. The request indicating the provision of cloud disk-related information includes the username, password, and bare metal server identification information for the cloud disk. The request indicating the provision of a cloud disk network proxy includes the subnet ID of the storage network. Sending the request indicating the provision of cloud disk information to the cloud disk storage pool node includes:

[0030] A request for providing cloud disk-related information is sent to the service sub-node in the cloud disk storage pool node, so that the service sub-node configuring the cloud disk according to the username, password and bare metal server identification information of the cloud disk, and feeding back the cloud disk-related information to the cloud disk management service node. The cloud disk-related information includes cloud disk connection information and cloud disk attributes. The cloud disk connection information includes the username, password and bare metal server identification information of the cloud disk, and the cloud disk attributes include cloud disk size and cloud disk type.

[0031] A request to provide a cloud disk network proxy is sent to the storage network proxy service sub-node in the cloud disk storage pool node, so that the storage network proxy service sub-node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

[0032] Thirdly, this application provides a method for mounting a cloud disk on a bare metal server, applied to a cloud disk storage pool node, the method comprising:

[0033] Receive a request from the cloud disk management service node indicating an instruction to provide cloud disk information;

[0034] The cloud disk information is determined based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information; the cloud disk information includes cloud disk related information and network proxy address;

[0035] The cloud disk information is sent to the cloud disk management service node, so that the cloud disk management service node sends the cloud disk information to the computing service node. The computing service node is used to execute the method as described in any of the first aspects, wherein the bare metal server is used to send a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk related information and network proxy address in the cloud disk mounting request.

[0036] In one possible design, the request indicating the provision of cloud disk information includes a request indicating the provision of cloud disk-related information and a request indicating the provision of a cloud disk network proxy. The request indicating the provision of cloud disk-related information includes the username, password, and bare metal server identification information for the cloud disk. The request indicating the provision of a cloud disk network proxy includes the subnet ID of the storage network. Determining the cloud disk information based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information includes:

[0037] The service sub-nodes in the cloud disk storage pool node that provide cloud disks configure the cloud disks according to the username, password and bare metal server identification information, and feed back cloud disk-related information to the cloud disk management service node.

[0038] The storage network proxy service sub-node in the cloud disk storage pool node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

[0039] Fourthly, this application provides a method for mounting a cloud disk on a bare metal server, applied to a bare metal server, the method comprising:

[0040] The system receives a cloud disk mounting request sent by a computing service node. The cloud disk mounting request includes cloud disk information, which includes cloud disk connection information and network proxy information. The cloud disk information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0041] According to the cloud disk connection information, the network agent of the cloud disk storage pool node is connected through a preset protocol. If the cloud disk is successfully mounted, the information of successful cloud disk mounting is sent to the computing service node, so that the computing service node sends the information of successful cloud disk mounting to the user console.

[0042] The cloud disk storage pool node is used to execute the method described in any of the third aspects.

[0043] Fifthly, this application provides a device for mounting a cloud disk on a bare metal server, applied to a computing service node; the device includes:

[0044] The receiving module is used to receive a first cloud disk mounting request, which includes the identity information of the cloud disk and the identification information of the bare metal server.

[0045] The processing module is used to determine the cloud disk information based on the first cloud disk mounting request, and send a second cloud disk mounting request to the cloud disk management service node. The second cloud disk mounting request includes cloud disk information, which includes connector ID and storage network subnet ID.

[0046] The receiving module is also used to receive cloud disk related information and network proxy address sent by the cloud disk management service node, wherein the cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0047] The sending module is used to send a third cloud disk mounting request to the corresponding bare metal server according to the identification information of the bare metal server, so that the bare metal server sends a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk related information and network proxy address in the third cloud disk mounting request.

[0048] Sixthly, this application provides an apparatus for mounting a cloud disk on a bare metal server, applied to a cloud disk management service node, the apparatus comprising:

[0049] The receiving module is used to receive a cloud disk mounting request sent by the computing service node. The cloud disk mounting request includes cloud disk mounting information, which includes a connector ID and a subnet ID of the storage network.

[0050] The sending module is used to send a request to the cloud disk storage pool node, indicating an instruction to provide cloud disk information, based on the mounted cloud disk information.

[0051] The receiving module is also used to receive cloud disk information sent by the cloud disk storage pool node. The cloud disk information includes cloud disk related information and network proxy address. The cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0052] The sending module is further configured to send the cloud disk-related information and the network proxy address to the computing service node, so that the computing service node sends a third cloud disk mounting request to the corresponding bare metal server according to the identification information of the bare metal server. The bare metal server is configured to send a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk-related information and network proxy address in the third cloud disk mounting request.

[0053] Seventhly, this application provides an apparatus for mounting cloud disks on a bare metal server, applied to a cloud disk storage pool node, the apparatus comprising:

[0054] The receiving module is used to receive requests sent by the cloud disk management service node that indicate an instruction to provide cloud disk information;

[0055] The processing module is used to determine cloud disk information based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information; the cloud disk information includes cloud disk related information and network proxy address;

[0056] A sending module is used to send the cloud disk information to the cloud disk management service node, so that the cloud disk management service node sends the cloud disk information to the computing service node. The computing service node is used to execute the method as described in any of the first aspects, wherein the bare metal server is used to send a message indicating successful cloud disk mounting to the computing service node after successful cloud disk mounting, based on the cloud disk-related information and network proxy address in the cloud disk mounting request.

[0057] Eighthly, this application provides an apparatus for mounting a cloud disk on a bare metal server, applied to a bare metal server, the apparatus comprising:

[0058] The receiving module is used to receive a cloud disk mounting request sent by the computing service node. The cloud disk mounting request includes cloud disk information, which includes cloud disk connection information and network proxy information. The cloud disk information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0059] The processing module is used to connect to the network agent of the cloud disk storage pool node through a preset protocol according to the cloud disk connection information. If the cloud disk is successfully mounted, the module sends the successful mounting information to the computing service node so that the computing service node sends the successful mounting information to the user console.

[0060] The cloud disk storage pool node is used to execute the method described in any of the third aspects.

[0061] Ninthly, this application provides an electronic device, comprising: at least one processor and a memory;

[0062] The memory stores computer-executed instructions;

[0063] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method of mounting a cloud disk on a bare metal server as described in any of the preceding claims.

[0064] In a tenth aspect, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method for mounting a cloud disk on a bare metal server as described in any of the preceding claims.

[0065] The method, apparatus, and device for mounting cloud disks on bare metal servers provided in this application first receive a first cloud disk mounting request, which includes the identity information of the cloud disk and the identification information of the bare metal server; then, based on the first cloud disk mounting request, determine the cloud disk information to be mounted and send a second cloud disk mounting request to the cloud disk management service node, which includes cloud disk information, including a connector ID and a subnet ID of the storage network; receive cloud disk-related information and a network proxy address sent by the cloud disk management service node, wherein the cloud disk-related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node; based on the identification information of the bare metal server, send a third cloud disk mounting request to the corresponding bare metal server, so that the bare metal server, based on the cloud disk-related information and network proxy address in the third cloud disk mounting request, sends a message indicating successful cloud disk mounting to the computing service node after successful cloud disk mounting. This application establishes a network proxy through computing service nodes, cloud disk management service nodes, and cloud disk storage pool nodes, and determines cloud disk-related information, enabling bare metal servers to directly access cloud disk storage pool nodes. This path is the shortest, avoiding network traffic bottlenecks, improving cloud disk data throughput performance, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, it ensures user data security and the security of the cloud platform management plane. Attached Figure Description

[0066] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0067] Figure 1 A schematic diagram illustrating a scenario for mounting a cloud disk on a bare metal server, as provided in an embodiment of this application.

[0068] Figure 2 A flowchart illustrating the method for mounting a cloud disk on a bare metal server according to an embodiment of this application;

[0069] Figure 3 A flowchart illustrating a method for mounting a cloud disk on a bare metal server, as provided in another embodiment of this application;

[0070] Figure 4 A schematic diagram of the structure of the device for mounting a cloud disk on a bare metal server provided in an embodiment of this application;

[0071] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0072] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0073] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0074] Bare metal is essentially a physical server. Without external hardware assistance, it's impossible to simulate a PCIe hard drive as a cloud disk. This limitation means that using cloud disks on bare metal is either prohibitively expensive, unreliable in terms of security, or has poor performance. Therefore, current technology cannot simultaneously meet the needs of bare metal using cloud disks while ensuring low cost, high security, and high performance.

[0075] To address the aforementioned issues, the technical concept of this application is as follows: By establishing a network proxy among the computing service node, cloud disk management service node, and cloud disk storage pool node, and determining cloud disk-related information, the bare metal server can directly access the cloud disk storage pool node. This path is the shortest, avoiding network traffic bottlenecks, improving the throughput performance of cloud disk data, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. Furthermore, by isolating the tenant network and the OpenStack cluster network through the network proxy, the security of user data and the security of the cloud platform management plane are guaranteed.

[0076] refer to Figure 1 , Figure 1This is a schematic diagram illustrating a scenario for mounting a cloud disk on a bare metal server according to an embodiment of this application. The scenario may include a management environment computing node, a management environment cloud disk storage pool node, and bare metal nodes. The management environment computing node may include computing service nodes (e.g., Nova service) and cloud disk management service nodes (e.g., Cinder volume management service). The computing service nodes and cloud disk management service nodes can be deployed on the same server or on different servers; no specific limitation is made here. The management environment cloud disk storage pool node may include storage network proxy service sub-nodes (e.g., bm-storage-agent service) and service sub-nodes for providing cloud disks (e.g., gateway service, i.e., gw service). The bare metal nodes include bare metal servers such as bare metal node 1 and bare metal node 2.

[0077] Specifically, for the computing nodes in the management environment:

[0078] a) Nova service

[0079] i. Receive the user's request to mount the cloud disk (referring to the first request to mount the cloud disk);

[0080] ii. Send a request to the cloud disk management node (referring to the cloud disk management service node) to prepare the cloud disk and the cloud disk attribute settings (referring to the second cloud disk mount request);

[0081] iii. Send the prepared cloud disk information to the bare metal (referring to the bare metal server) and request to mount the cloud disk (referring to the third cloud disk mount request);

[0082] iv. Notify the user that the cloud drive has been successfully mounted;

[0083] b) Cinder Volume Management Service

[0084] i. Receive cloud disk mounting requests from the Nova service (referring to the second cloud disk mounting request);

[0085] ii. Generate the cloud drive connection username (i.e., username) and password;

[0086] iii. Request the gateway service (used to provide cloud disk service sub-nodes) of the backend storage pool (referring to the cloud disk storage pool node) to prepare the iSCSI volume;

[0087] iv. Request the bm-storage-agent (storage network agent service sub-node) program of the backend storage pool to prepare the tenant's cloud disk network agent;

[0088] For the management environment cloud disk storage pool node.

[0089] a) bm-storage-agent service

[0090] Prepare a network proxy for the tenant's cloud disk based on the tenant's network information.

[0091] b) GW service

[0092] Create an iSCSI device (cloud disk), inject the initiator ID (bare metal characteristic identifier, which refers to the identification information of the bare metal server), and inject the username and password of the cloud disk.

[0093] c) Tenant cloud disk network proxy space

[0094] Network proxy space is a proxy space allocated on the storage pool nodes. Each cloud disk network corresponds to one proxy space (Linux network namespace), and its necessity and advantages are as follows:

[0095] i. Ensure tenant isolation. Different tenants use different proxy spaces, which are independent of each other and do not affect each other. Different tenants can use the same IP address range and IP address when mounting iSCSI cloud disks.

[0096] ii. Ensure data security.

[0097] Because the proxy spaces are independent of each other, it ensures that tenant A cannot access tenant B's cloud disk, thus preventing data snooping and network attacks.

[0098] iii. Ensure the security of the management cluster.

[0099] Tenants access cloud disks through a proxy, preventing users from directly accessing local resources on the storage pool server and thus avoiding attacks on the entire cloud platform by malicious users.

[0100] For bare metal nodes

[0101] The bm-guest-agent (client or user client that mounts the cloud disk) service on the bare metal node is used to receive cloud disk information from the Nova service, including the network proxy address, the target and portal of the iSCSI cloud disk's LUN device, and information such as username and password.

[0102] Regarding the internet

[0103] a) Management network. This is the management plane network of the OpenStack cloud platform, used for managing cloud resources. User bare-metal instances are not connected to this network.

[0104] b) Service Network / Tenant Network / Computing Network. These three terms all refer to the service network. It is the network used by users for normal internet access and production activities. Users only have the service network and can only access networks on the service network that are in the same isolated area as them.

[0105] Therefore, this application connects to the business network through storage nodes (referring to cloud disk storage pool nodes) and runs a network proxy management program, enabling bare metal servers to directly access the storage pool servers via a Layer 2 physical network link. This path is the shortest, avoiding network traffic bottlenecks and improving the throughput performance of cloud disk data; it avoids high load on network platform nodes; it avoids impacting virtual machine network bandwidth, improves cluster stability, solves the problem of poor performance, and ensures high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, it ensures the security of user data and the security of the cloud platform management plane.

[0106] The technical solutions of this application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0107] See Figure 2 As shown, Figure 2 This is a flowchart illustrating a method for mounting a cloud disk on a bare metal server, as provided in an embodiment of this application. The method is applied to a computing service node and includes:

[0108] S201. Receive a first cloud disk mounting request, wherein the first cloud disk mounting request includes the identity information of the cloud disk and the identification information of the bare metal server.

[0109] S202. Based on the first cloud disk mounting request, determine the cloud disk mounting information and send a second cloud disk mounting request to the cloud disk management service node. The second cloud disk mounting request includes cloud disk mounting information, which includes connector ID and storage network subnet ID.

[0110] S203. Receive cloud disk related information and network proxy address sent by the cloud disk management service node, wherein the cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0111] S204. Based on the identification information of the bare metal server, send a third cloud disk mounting request to the corresponding bare metal server, so that the bare metal server, based on the cloud disk related information and network proxy address in the third cloud disk mounting request, sends a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted.

[0112] In this embodiment, taking Nova-compute (or Nova Compute Service) as the computing service node and Cinder as the cloud disk management service node as an example, the user can send a cloud disk mounting request to Nova-compute through the user console (e.g., a webpage). Nova-compute receives the cloud disk mounting request from the user and determines the cloud disk mounting information based on the cloud disk's identity information (e.g., the cloud disk ID) and the bare metal server's identification information in the cloud disk mounting request. The cloud disk mounting information includes the connector ID and the subnet ID of the storage network (i.e., subnet_uuid). Nova-compute sends the cloud disk mounting information to Cinder, and Cinder prepares the cloud disk connection information based on the cloud disk mounting information. The cloud disk storage pool node then determines the cloud disk information, including cloud disk-related information and the network proxy address. Nova-compute sends a cloud disk mount request to the corresponding bare metal server based on the bare metal server's identification information. After the cloud disk is successfully mounted, the bare metal server sends a message to Nova-compute indicating that the cloud disk has been successfully mounted, based on the cloud disk information and network proxy address in the mount request.

[0113] The method for mounting cloud disks on bare metal servers provided in this embodiment enables bare metal servers to directly access cloud disk storage pool nodes by establishing a network proxy among computing service nodes, cloud disk management service nodes, and cloud disk storage pool nodes, and determining cloud disk-related information. This path is the shortest, avoiding network traffic bottlenecks, improving cloud disk data throughput performance, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, the security of user data and the security of the cloud platform management plane are guaranteed.

[0114] In one possible design, determining the cloud disk information based on the first cloud disk mounting request includes:

[0115] Determine the connector ID based on the identification information of the bare metal server;

[0116] Based on the identity information of the cloud disk, query the subnet ID of the storage network used by the bare metal server to mount the cloud disk.

[0117] In this embodiment, Nova-compute determines the connector id based on the bare metal server's identification information, and simultaneously queries the subnet_uuid of the cloud disk network used by the bare metal server.

[0118] In one possible design, sending a third cloud disk mount request to the corresponding bare metal server based on the bare metal server's identification information includes:

[0119] Create a temporary interface on the computing network of the computing service node;

[0120] The temporary interface is bound to the IP address under the tenant's cloud disk network and labeled with the virtual LAN tag of the cloud disk network, so as to connect with the client that mounts the cloud disk on the corresponding bare metal server.

[0121] Send a third cloud disk mounting request to the client that has mounted the cloud disk.

[0122] In this embodiment, nova (i.e., Nova-compute) sends cloud disk connection information to the bm-guest-agent in the bare metal system. Specifically, since the computing network of the management environment compute node is a trunk port, in order to ensure network connectivity with the bare metal system, a temporary interface needs to be created on this network port. This interface is bound to an IP address under the tenant cloud disk network, and the VLAN tag of this network is also added, so that the nova service can connect to the bm-guest-agent service of the bare metal node; the volume connection information (here referring to the cloud disk connection information) is sent to the bm-guest-agent of the bare metal node.

[0123] In one possible design, after sending the third mount cloud disk request to the corresponding bare metal server, the method further includes:

[0124] The cloud disk mounting success message was received from the bare metal server.

[0125] A message indicating successful mounting of the cloud disk will be sent to the user console.

[0126] In this embodiment, the agent within the bare-metal node connects to the agent on the storage node via the iSCSI protocol based on the volume connection information, thus establishing a cloud disk connection. Once the cloud disk connection is complete, Nova returns the result to the user.

[0127] For example, in combination Figure 3 As shown, the implementation process of the method for mounting a cloud disk on a bare metal server in this embodiment is as follows:

[0128] 1. User issues cloud disk mounting operation.

[0129] II. Preparation for Nova-compute to process cloud disks.

[0130] a) Received a user's request to mount the cloud disk. This request will contain information about the cloud disk (referring to the cloud disk's identity information, such as its ID) and the bare metal identification information;

[0131] b) Obtain the connector id based on the bare metal's identification information, and simultaneously query the subnet_uuid of the cloud disk network used by the bare metal;

[0132] c) Send the above information to Cinder, and Cinder will prepare the cloud drive connection information.

[0133] III. Cinder prepares cloud drive connection information.

[0134] a) Cinder receives the mounted cloud disk information from nova and creates a username and password based on the connector ID and the cloud disk ID;

[0135] b) Send a request to the GW service of the storage pool node (i.e., the cloud disk storage pool node) to inject the username, password and bare metal identity into the cloud disk, and at the same time get the cloud disk connection information (portal, target, lun) returned by the GW service.

[0136] c) Send the subnet_uuid information from nova to the bm-storage-agent service of the storage pool node to create a tenant cloud disk network agent.

[0137] IV. Creating a Network Proxy using Bm-storage-agent

[0138] a) Based on the subnet UUID, determine the user's network and IP address, and create a network proxy to ensure that the bare metal can access the network proxy;

[0139] b) Return the network proxy address to Cinder.

[0140] 5. Cinder returns cloud drive connection information, network proxy information, etc. to Nova.

[0141] 6. Nova sends cloud disk connection information to bm-guest-agent in the bare metal.

[0142] a) Since the compute network of the management environment compute node is a trunk port, to ensure network connectivity with the bare metal system, a temporary interface needs to be created on this interface. This interface is bound to an IP address from the tenant cloud disk network, and a VLAN tag for that network is added. This allows the Nova service to connect to the bm-guest-agent service on the bare metal node.

[0143] b) Send the volume connection information to the bm-guest-agent of the bare metal node.

[0144] 7. The agent within the bare metal node connects to the agent on the storage node via the iSCSI protocol based on the volume connection information, thereby enabling cloud disk connection.

[0145] 8. Once the cloud drive connection is complete, nova will return the results to the user.

[0146] Therefore, this application connects to the business network through storage nodes (referring to cloud disk storage pool nodes) and runs a network proxy management program, enabling bare metal servers to directly access the storage pool servers via a Layer 2 physical network link. This path is the shortest, avoiding network traffic bottlenecks and improving the throughput performance of cloud disk data; it avoids high load on network platform nodes; it avoids impacting virtual machine network bandwidth, improves cluster stability, solves the problem of poor performance, and ensures high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, it ensures the security of user data and the security of the cloud platform management plane.

[0147] Another embodiment of this application provides a method for mounting a cloud disk on a bare metal server, applied to a cloud disk management service node, the method comprising:

[0148] Receive a cloud disk mount request sent by a computing service node. The cloud disk mount request includes cloud disk mount information, which includes a connector ID and a subnet ID of the storage network.

[0149] Based on the mounted cloud disk information, a request is sent to the cloud disk storage pool node to indicate an instruction to provide cloud disk information;

[0150] The cloud disk information sent by the cloud disk storage pool node is received. The cloud disk information includes cloud disk related information and network proxy address. The cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0151] The computing service node sends the cloud disk-related information and the network proxy address to the computing service node, so that the computing service node sends a third cloud disk mount request to the corresponding bare metal server according to the bare metal server's identification information. The bare metal server is used to send a cloud disk mount success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk-related information and network proxy address in the third cloud disk mount request.

[0152] In this embodiment, the computing service node is used to execute the method described in any of the first aspects, which will not be repeated here. Cinder receives the mounted cloud disk information from nova and creates a username and password based on the connector ID and the cloud disk ID. It sends a request to the GW service of the storage pool node to inject the username, password, and bare metal identity into the cloud disk, while simultaneously obtaining the cloud disk connection information (portal, target, LUN) returned by the GW service. It sends the subnet_uuid information from nova to the bm-storage-agent service of the storage pool node to create a tenant cloud disk network proxy.

[0153] In one possible design, sending a request to the cloud disk storage pool node, indicating an instruction to provide cloud disk information, based on the mounted cloud disk information, includes:

[0154] Based on the mounted cloud disk information, generate the cloud disk's username and password;

[0155] Send a request to the cloud disk storage pool node to indicate that cloud disk information is to be provided. The request to indicate that cloud disk information is to be provided includes the username, password and identification information of the bare metal server of the cloud disk.

[0156] In one possible design, the request indicating the provision of cloud disk information includes a request indicating the provision of cloud disk-related information and a request indicating the provision of a cloud disk network proxy. The request indicating the provision of cloud disk-related information includes the username, password, and bare metal server identification information for the cloud disk. The request indicating the provision of a cloud disk network proxy includes the subnet ID of the storage network. Sending the request indicating the provision of cloud disk information to the cloud disk storage pool node includes:

[0157] A request for providing cloud disk-related information is sent to the service sub-node in the cloud disk storage pool node, so that the service sub-node configuring the cloud disk according to the username, password and bare metal server identification information of the cloud disk, and feeding back the cloud disk-related information to the cloud disk management service node. The cloud disk-related information includes cloud disk connection information and cloud disk attributes. The cloud disk connection information includes the username, password and bare metal server identification information of the cloud disk, and the cloud disk attributes include cloud disk size and cloud disk type.

[0158] A request to provide a cloud disk network proxy is sent to the storage network proxy service sub-node in the cloud disk storage pool node, so that the storage network proxy service sub-node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

[0159] This application connects to the business network via storage nodes (referring to cloud disk storage pool nodes) and runs a network proxy management program. This allows bare metal servers to directly access the storage pool servers through a Layer 2 physical network link. This path is the shortest, avoiding network traffic bottlenecks and improving the throughput performance of cloud disk data. It also avoids high load on network platform nodes, prevents impact on virtual machine network bandwidth, improves cluster stability, solves performance issues, and ensures high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, it ensures the security of user data and the security of the cloud platform management plane.

[0160] This application provides another method for mounting cloud disks on bare metal servers, applied to cloud disk storage pool nodes, the method comprising:

[0161] Receive a request from the cloud disk management service node indicating an instruction to provide cloud disk information;

[0162] The cloud disk information is determined based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information; the cloud disk information includes cloud disk related information and network proxy address;

[0163] The cloud disk information is sent to the cloud disk management service node, so that the cloud disk management service node sends the cloud disk information to the computing service node. The computing service node is used to execute the method as described in any one of claims 1-4, wherein the bare metal server is used to send a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk related information and network proxy address in the cloud disk mounting request.

[0164] In this embodiment, the GW service injects the username, password, and bare metal identifier into the cloud disk, and returns the prepared cloud disk connection information (portal, target, LUN), etc. Bm-storage-agent determines the user's network and IP address network based on the subnetuuid, creates a network proxy to ensure the bare metal can access the network proxy, and returns the network proxy address to Cinder. Cinder returns the cloud disk connection information and network proxy information to Nova. Nova sends the cloud disk connection information to bm-guest-agent in the bare metal. The agent in the bare metal node connects to the storage node's proxy via the iSCSI protocol based on the volume connection information, thus establishing the cloud disk connection. After the cloud disk connection is complete, Nova returns the result to the user.

[0165] In one possible design, the request indicating the provision of cloud disk information includes a request indicating the provision of cloud disk-related information and a request indicating the provision of a cloud disk network proxy. The request indicating the provision of cloud disk-related information includes the username, password, and bare metal server identification information for the cloud disk. The request indicating the provision of a cloud disk network proxy includes the subnet ID of the storage network. Determining the cloud disk information based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information includes:

[0166] The service sub-nodes in the cloud disk storage pool node that provide cloud disks configure the cloud disks according to the username, password and bare metal server identification information, and feed back cloud disk-related information to the cloud disk management service node.

[0167] The storage network proxy service sub-node in the cloud disk storage pool node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

[0168] In this embodiment, the network proxy for the storage pool node is as follows:

[0169] 1. Create a tenant network proxy space based on the network identifier sent by Cinder; this is a Linux namespace.

[0170] 2. Call the SDN controller to allocate a proxy VLAN interface for the tenant network of the storage pool node, and assign a tenant service network IP address to that interface, such as... Figure 1 Tenant A's cloud storage address is 192.168.0.200 / 24.

[0171] Third, place the proxy VLAN interface in the network proxy space. In this way, the traffic of users accessing the cloud disk will be directly imported into this namespace.

[0172] IV. Create vethpair device pairs (e.g.) Figure 1 The device pairs are phy-vlan100 / vlan100-phy and phy-vlan200 / vlan200-phy. One end of each device pair is located in the proxy space, and the other end is located locally on the storage pool server, used to connect the proxy space and the local storage pool.

[0173] 5. Within the proxy space, configure routing rules and set up network forwarding via iptables.

[0174] Therefore, this application connects to the business network through storage nodes (referring to cloud disk storage pool nodes) and runs a network proxy management program, enabling bare metal servers to directly access the storage pool servers via a Layer 2 physical network link. This path is the shortest, avoiding network traffic bottlenecks and improving the throughput performance of cloud disk data; it avoids high load on network platform nodes; it avoids impacting virtual machine network bandwidth, improves cluster stability, solves the problem of poor performance, and ensures high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, it ensures the security of user data and the security of the cloud platform management plane.

[0175] Another embodiment of this application provides a method for mounting a cloud disk on a bare metal server, applied to a bare metal server, the method comprising:

[0176] The system receives a cloud disk mounting request sent by a computing service node. The cloud disk mounting request includes cloud disk information, which includes cloud disk connection information and network proxy information. The cloud disk information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0177] According to the cloud disk connection information, the network agent of the cloud disk storage pool node is connected through a preset protocol. If the cloud disk is successfully mounted, the information of successful cloud disk mounting is sent to the computing service node, so that the computing service node sends the information of successful cloud disk mounting to the user console.

[0178] The cloud disk storage pool node is used to execute the method described in any of the third aspects.

[0179] In this embodiment, the agent within the bare metal node receives cloud disk information transmitted by the Nova service, including the agent address, the target and portal of the ISCSI cloud disk's LUN device, and the username and password, and connects to the agent of the storage node via the ISCSI protocol according to the volume connection information to realize the cloud disk connection.

[0180] Therefore, this application connects to the business network through storage nodes (referring to cloud disk storage pool nodes) and runs a network proxy management program, enabling bare metal servers to directly access the storage pool servers via a Layer 2 physical network link. This path is the shortest, avoiding network traffic bottlenecks and improving the throughput performance of cloud disk data; it avoids high load on network platform nodes; it avoids impacting virtual machine network bandwidth, improves cluster stability, solves the problem of poor performance, and ensures high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, it ensures the security of user data and the security of the cloud platform management plane.

[0181] To implement the method of mounting cloud disks on bare metal servers, this embodiment provides a device for mounting cloud disks on bare metal servers, applied to computing service nodes. See also... Figure 4 , Figure 4 This is a schematic diagram of the structure of the device for mounting a cloud disk on a bare metal server according to an embodiment of this application; the device for mounting a cloud disk on a bare metal server includes:

[0182] The receiving module 401 is used to receive a first cloud disk mounting request, wherein the first cloud disk mounting request includes the identity information of the cloud disk and the identification information of the bare metal server.

[0183] Processing module 402 is used to determine the cloud disk information based on the first cloud disk mounting request, and send a second cloud disk mounting request to the cloud disk management service node. The second cloud disk mounting request includes cloud disk information, which includes connector ID and storage network subnet ID.

[0184] The receiving module 401 is further configured to receive cloud disk related information and network proxy address sent by the cloud disk management service node, wherein the cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0185] The sending module 403 is used to send a third cloud disk mounting request to the corresponding bare metal server according to the identification information of the bare metal server, so that the bare metal server sends a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk related information and network proxy address in the third cloud disk mounting request.

[0186] This embodiment, by setting up a receiving module 401, a processing module 402, and a sending module 403, is used to establish a network proxy through the computing service node, cloud disk management service node, and cloud disk storage pool node, and to determine cloud disk-related information. This allows the bare metal server to directly access the cloud disk storage pool node, which is the shortest path, avoiding network traffic bottlenecks, improving the throughput performance of cloud disk data, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, the security of user data and the security of the cloud platform management plane are guaranteed.

[0187] The apparatus provided in this embodiment can be used to execute the technical solution of any of the method embodiments in the first aspect above. Its implementation principle and technical effect are similar, and will not be repeated here.

[0188] In one possible design, the processing module 402 is specifically used for:

[0189] Determine the connector ID based on the identification information of the bare metal server;

[0190] Based on the identity information of the cloud disk, query the subnet ID of the storage network used by the bare metal server to mount the cloud disk.

[0191] In one possible design, the sending module 403 is specifically used for:

[0192] Create a temporary interface on the computing network of the computing service node;

[0193] The temporary interface is bound to the IP address under the tenant's cloud disk network and labeled with the virtual LAN tag of the cloud disk network, so as to connect with the client that mounts the cloud disk on the corresponding bare metal server.

[0194] Send a third cloud disk mounting request to the client that has mounted the cloud disk.

[0195] In one possible design, the processing module 402 is further configured to:

[0196] After sending the third cloud disk mount request to the corresponding bare metal server, the cloud disk mount success message is received from the bare metal server.

[0197] A message indicating successful mounting of the cloud disk will be sent to the user console.

[0198] Another embodiment of this application provides a device for mounting a cloud disk on a bare metal server, applied to a cloud disk management service node, the device comprising:

[0199] The receiving module is used to receive a cloud disk mounting request sent by the computing service node. The cloud disk mounting request includes cloud disk mounting information, which includes a connector ID and a subnet ID of the storage network.

[0200] The sending module is used to send a request to the cloud disk storage pool node, indicating an instruction to provide cloud disk information, based on the mounted cloud disk information.

[0201] The receiving module is also used to receive cloud disk information sent by the cloud disk storage pool node. The cloud disk information includes cloud disk related information and network proxy address. The cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0202] The sending module is further configured to send the cloud disk-related information and the network proxy address to the computing service node, so that the computing service node sends a third cloud disk mounting request to the corresponding bare metal server according to the identification information of the bare metal server. The bare metal server is configured to send a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk-related information and network proxy address in the third cloud disk mounting request.

[0203] This embodiment sets up a receiving module and a sending module to establish a network proxy through the computing service node, cloud disk management service node, and cloud disk storage pool node, and to determine cloud disk-related information. This allows the bare metal server to directly access the cloud disk storage pool node, which is the shortest path, avoiding network traffic bottlenecks, improving the throughput performance of cloud disk data, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, the security of user data and the security of the cloud platform management plane are guaranteed.

[0204] The apparatus provided in this embodiment can be used to execute the technical solution of any of the method embodiments in the second aspect above. Its implementation principle and technical effect are similar, and will not be repeated here.

[0205] In one possible design, the sending module is specifically used for:

[0206] Based on the mounted cloud disk information, generate the cloud disk's username and password;

[0207] Send a request to the cloud disk storage pool node to indicate that cloud disk information is to be provided. The request to indicate that cloud disk information is to be provided includes the username, password and bare metal server identification information of the cloud disk.

[0208] In one possible design, the request indicating the provision of cloud disk information includes a request indicating the provision of cloud disk-related information and a request indicating the provision of a cloud disk network proxy. The request indicating the provision of cloud disk-related information includes the username, password, and bare metal server identification information of the cloud disk. The request indicating the provision of a cloud disk network proxy includes the subnet ID of the storage network. The sending module is specifically used for:

[0209] A request for providing cloud disk-related information is sent to the service sub-node in the cloud disk storage pool node, so that the service sub-node configuring the cloud disk according to the username, password and bare metal server identification information of the cloud disk, and feeding back the cloud disk-related information to the cloud disk management service node. The cloud disk-related information includes cloud disk connection information and cloud disk attributes. The cloud disk connection information includes the username, password and bare metal server identification information of the cloud disk, and the cloud disk attributes include cloud disk size and cloud disk type.

[0210] A request to provide a cloud disk network proxy is sent to the storage network proxy service sub-node in the cloud disk storage pool node, so that the storage network proxy service sub-node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

[0211] Another embodiment of this application provides a device for mounting a cloud disk on a bare metal server, applied to a cloud disk storage pool node, the device comprising:

[0212] The receiving module is used to receive requests sent by the cloud disk management service node that indicate an instruction to provide cloud disk information;

[0213] The processing module is used to determine cloud disk information based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information; the cloud disk information includes cloud disk related information and network proxy address;

[0214] A sending module is used to send the cloud disk information to the cloud disk management service node, so that the cloud disk management service node sends the cloud disk information to the computing service node. The computing service node is used to execute the method as described in any of the first aspects, wherein the bare metal server is used to send a message indicating successful cloud disk mounting to the computing service node after successful cloud disk mounting, based on the cloud disk-related information and network proxy address in the cloud disk mounting request.

[0215] This embodiment, by setting up a receiving module, a processing module, and a sending module, is used to establish a network proxy through the computing service node, cloud disk management service node, and cloud disk storage pool node, and to determine cloud disk-related information. This allows the bare metal server to directly access the cloud disk storage pool node, which is the shortest path, avoiding network traffic bottlenecks, improving the throughput performance of cloud disk data, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, the security of user data and the security of the cloud platform management plane are guaranteed.

[0216] The apparatus provided in this embodiment can be used to execute the technical solution of any of the method embodiments in the third aspect above. Its implementation principle and technical effect are similar, and will not be repeated here.

[0217] In one possible design, the request to indicate the provision of cloud disk information includes a request to indicate the provision of cloud disk-related information and a request to indicate the provision of a cloud disk network proxy. The request to indicate the provision of cloud disk-related information includes the username, password, and bare metal server identification information of the cloud disk. The request to indicate the provision of a cloud disk network proxy includes the subnet ID of the storage network. The processing module is specifically used for:

[0218] The service sub-nodes in the cloud disk storage pool node that provide cloud disks configure the cloud disks according to the username, password and bare metal server identification information, and feed back cloud disk-related information to the cloud disk management service node.

[0219] The storage network proxy service sub-node in the cloud disk storage pool node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

[0220] Another embodiment of this application provides a device for mounting a cloud disk on a bare metal server, applied to a bare metal server, the device comprising:

[0221] The receiving module is used to receive a cloud disk mounting request sent by the computing service node. The cloud disk mounting request includes cloud disk information, which includes cloud disk connection information and network proxy information. The cloud disk information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node.

[0222] The processing module is used to connect to the network agent of the cloud disk storage pool node through a preset protocol according to the cloud disk connection information. If the cloud disk is successfully mounted, the module sends the successful mounting information to the computing service node so that the computing service node sends the successful mounting information to the user console.

[0223] The cloud disk storage pool node is used to execute the method described in any of the third aspects.

[0224] This embodiment sets up a receiving module and a processing module to establish a network proxy through the computing service node, cloud disk management service node, and cloud disk storage pool node, and to determine cloud disk-related information. This allows the bare metal server to directly access the cloud disk storage pool node, which is the shortest path, avoiding network traffic bottlenecks, improving the throughput performance of cloud disk data, avoiding high load on network platform nodes, avoiding impact on virtual machine network bandwidth, improving cluster stability, and ensuring high performance. By isolating the tenant network and the OpenStack cluster network through the network proxy, the security of user data and the security of the cloud platform management plane are guaranteed.

[0225] The apparatus provided in this embodiment can be used to execute the technical solution of any of the method embodiments in the fourth aspect above. Its implementation principle and technical effect are similar, and will not be repeated here.

[0226] To implement the method of mounting cloud disks on bare metal servers, this embodiment provides an electronic device. Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 50 of this embodiment includes: at least one processor 501 and a memory 502; wherein, the memory 502 is used to store computer execution instructions; and the at least one processor 501 is used to execute the computer execution instructions stored in the memory to implement the various steps performed in the above embodiment. For details, please refer to the relevant descriptions in the foregoing method embodiments.

[0227] This application also provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements the method of mounting a cloud disk on a bare metal server as described above.

[0228] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms. Additionally, the functional modules in the various embodiments of this application may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned modular units can be implemented in hardware or in the form of hardware plus software functional units.

[0229] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. It should be understood that the processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0230] The memory may include high-speed RAM, and may also include non-volatile memory (NVM), such as at least one disk drive, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses in the accompanying drawings are not limited to a single bus or a single type of bus. The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk, or optical disc. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.

[0231] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0232] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0233] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for mounting a cloud disk on a bare metal server, characterized in that, Applied to computing service nodes, the method includes: Receive the first cloud disk mount request, which includes the cloud disk's identity information and the bare metal server's identification information. Based on the first cloud disk mounting request, determine the cloud disk mounting information and send a second cloud disk mounting request to the cloud disk management service node. The second cloud disk mounting request includes the cloud disk mounting information, which includes the connector ID and the subnet ID of the storage network. The cloud disk management service node receives cloud disk-related information and network proxy addresses, wherein the cloud disk-related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node. Based on the identification information of the bare metal server, a third cloud disk mount request is sent to the corresponding bare metal server, so that the bare metal server, based on the cloud disk related information and network proxy address in the third cloud disk mount request, sends a cloud disk mount success message to the computing service node after the cloud disk is successfully mounted.

2. The method according to claim 1, characterized in that, The step of determining the cloud disk information based on the first cloud disk mounting request includes: Determine the connector ID based on the identification information of the bare metal server; Based on the identity information of the cloud disk, query the subnet ID of the storage network used by the bare metal server to mount the cloud disk.

3. The method according to claim 1 or 2, characterized in that, The step of sending a third cloud disk mount request to the corresponding bare metal server based on the bare metal server's identification information includes: Create a temporary interface on the computing network of the computing service node; The temporary interface is bound to the IP address under the tenant's cloud disk network and labeled with the virtual LAN tag of the cloud disk network, so as to connect with the client that mounts the cloud disk on the corresponding bare metal server. Send a third cloud disk mounting request to the client that has mounted the cloud disk.

4. The method according to claim 1 or 2, characterized in that, After sending the third mount cloud disk request to the corresponding bare metal server, the method further includes: The cloud disk mounting success message was received from the bare metal server. A message indicating successful mounting of the cloud disk will be sent to the user console.

5. A method for mounting a cloud disk on a bare metal server, characterized in that, Applied to cloud disk management service nodes, the method includes: Receive a cloud disk mount request sent by a computing service node. The cloud disk mount request includes cloud disk mount information, which includes a connector ID and a subnet ID of the storage network. Based on the mounted cloud disk information, a request is sent to the cloud disk storage pool node to indicate an instruction to provide cloud disk information; The cloud disk information sent by the cloud disk storage pool node is received. The cloud disk information includes cloud disk related information and network proxy address. The cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node. The computing service node sends the cloud disk-related information and the network proxy address to the computing service node, so that the computing service node sends a third cloud disk mount request to the corresponding bare metal server according to the bare metal server's identification information. The bare metal server is used to send a cloud disk mount success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk-related information and network proxy address in the third cloud disk mount request.

6. The method according to claim 5, characterized in that, The step of sending a request to the cloud disk storage pool node, indicating an instruction to provide cloud disk information, based on the mounted cloud disk information, includes: Based on the mounted cloud disk information, generate the cloud disk's username and password; Send a request to the cloud disk storage pool node to indicate that cloud disk information is to be provided. The request to indicate that cloud disk information is to be provided includes the username, password and identification information of the bare metal server of the cloud disk.

7. The method according to claim 5 or 6, characterized in that, The request for indicating the provision of cloud disk information includes a request for providing cloud disk-related information and a request for providing a cloud disk network proxy. The request for providing cloud disk-related information includes the username, password, and bare metal server identification information of the cloud disk. The request for providing a cloud disk network proxy includes the subnet ID of the storage network. Sending a request to the cloud disk storage pool node to indicate an instruction to provide cloud disk information includes: A request for providing cloud disk-related information is sent to the service sub-node in the cloud disk storage pool node, so that the service sub-node configuring the cloud disk according to the username, password and bare metal server identification information of the cloud disk, and feeding back the cloud disk-related information to the cloud disk management service node. The cloud disk-related information includes cloud disk connection information and cloud disk attributes. The cloud disk connection information includes the username, password and bare metal server identification information of the cloud disk, and the cloud disk attributes include cloud disk size and cloud disk type. A request to provide a cloud disk network proxy is sent to the storage network proxy service sub-node in the cloud disk storage pool node, so that the storage network proxy service sub-node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

8. A method for mounting a cloud disk on a bare metal server, characterized in that, Applied to cloud disk storage pool nodes, the method includes: Receive a request from the cloud disk management service node indicating an instruction to provide cloud disk information; The cloud disk information is determined based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information; the cloud disk information includes cloud disk related information and network proxy address; The cloud disk information is sent to the cloud disk management service node, so that the cloud disk management service node sends the cloud disk information to the computing service node. The computing service node is used to execute the method as described in any one of claims 1-4, wherein the bare metal server is used to send a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk related information and network proxy address in the cloud disk mounting request.

9. The method according to claim 8, characterized in that, The request indicating the provision of cloud disk information includes a request indicating the provision of cloud disk-related information and a request indicating the provision of a cloud disk network proxy. The request indicating the provision of cloud disk-related information includes the cloud disk's username, password, and bare metal server identification information. The request indicating the provision of a cloud disk network proxy includes the storage network subnet ID. Determining the cloud disk information based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information includes: The service sub-nodes in the cloud disk storage pool node that provide cloud disks configure the cloud disks according to the username, password and bare metal server identification information, and feed back cloud disk-related information to the cloud disk management service node. The storage network proxy service sub-node in the cloud disk storage pool node determines the storage network to which the user belongs based on the subnet ID of the storage network, creates a network proxy based on the storage network to which the user belongs, and feeds back the network proxy address corresponding to the network proxy to the cloud disk management service node.

10. A method for mounting a cloud disk on a bare metal server, characterized in that, Applied to bare metal servers, the method includes: The system receives a cloud disk mounting request sent by a computing service node. The cloud disk mounting request includes cloud disk information, which includes cloud disk connection information and network proxy information. The cloud disk information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node. According to the cloud disk connection information, the network agent of the cloud disk storage pool node is connected through a preset protocol. If the cloud disk is successfully mounted, the information of successful cloud disk mounting is sent to the computing service node, so that the computing service node sends the information of successful cloud disk mounting to the user console. The cloud disk storage pool node is used to execute the method described in any one of claims 8-9.

11. A device for mounting a cloud disk on a bare metal server, characterized in that, Applied to computing service nodes; the device includes: The receiving module is used to receive a first cloud disk mounting request, which includes the identity information of the cloud disk and the identification information of the bare metal server. The processing module is used to determine the cloud disk information based on the first cloud disk mounting request, and send a second cloud disk mounting request to the cloud disk management service node. The second cloud disk mounting request includes cloud disk information, which includes connector ID and storage network subnet ID. The receiving module is also used to receive cloud disk related information and network proxy address sent by the cloud disk management service node, wherein the cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node. The sending module is used to send a third cloud disk mounting request to the corresponding bare metal server according to the identification information of the bare metal server, so that the bare metal server sends a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk related information and network proxy address in the third cloud disk mounting request.

12. A device for mounting a cloud disk on a bare metal server, characterized in that, The device, applied to a cloud disk management service node, includes: The receiving module is used to receive a cloud disk mounting request sent by the computing service node. The cloud disk mounting request includes cloud disk mounting information, which includes a connector ID and a subnet ID of the storage network. The sending module is used to send a request to the cloud disk storage pool node, indicating an instruction to provide cloud disk information, based on the mounted cloud disk information. The receiving module is also used to receive cloud disk information sent by the cloud disk storage pool node. The cloud disk information includes cloud disk related information and network proxy address. The cloud disk related information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node. The sending module is further configured to send the cloud disk-related information and the network proxy address to the computing service node, so that the computing service node sends a third cloud disk mounting request to the corresponding bare metal server according to the identification information of the bare metal server. The bare metal server is configured to send a cloud disk mounting success message to the computing service node after the cloud disk is successfully mounted, based on the cloud disk-related information and network proxy address in the third cloud disk mounting request.

13. A device for mounting a cloud disk on a bare metal server, characterized in that, The device, applied to cloud disk storage pool nodes, includes: The receiving module is used to receive requests sent by the cloud disk management service node that indicate an instruction to provide cloud disk information; The processing module is used to determine cloud disk information based on the username, password, bare metal server identification information, and storage network subnet ID in the request indicating the provision of cloud disk information; the cloud disk information includes cloud disk related information and network proxy address; A sending module is used to send the cloud disk information to the cloud disk management service node, so that the cloud disk management service node sends the cloud disk information to the computing service node. The computing service node is used to execute the method as described in any one of claims 1-4, wherein the bare metal server is used to send a message indicating successful cloud disk mounting to the computing service node after successful cloud disk mounting, based on the cloud disk-related information and network proxy address in the cloud disk mounting request.

14. A device for mounting a cloud disk on a bare metal server, characterized in that, The device, used in bare metal servers, includes: The receiving module is used to receive a cloud disk mounting request sent by the computing service node. The cloud disk mounting request includes cloud disk information, which includes cloud disk connection information and network proxy information. The cloud disk information is determined by the cloud disk storage pool node, and the network proxy corresponding to the network proxy address is created by the cloud disk storage pool node. The processing module is used to connect to the network agent of the cloud disk storage pool node through a preset protocol according to the cloud disk connection information. If the cloud disk is successfully mounted, the module sends the successful mounting information to the computing service node so that the computing service node sends the successful mounting information to the user console. The cloud disk storage pool node is used to execute the method described in any one of claims 8-9.

15. An electronic device, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method of mounting a cloud disk on a bare metal server as described in any one of claims 1-10.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by the processor, implement the method for mounting a cloud disk on a bare metal server as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Method for physical machine access in cloud computing system

    CN109120494A

  • Method and system for mounting cloud hard disk on bare metal server and server

    CN111694519A