A multi-AZ support method for deploying OpenStack based on Helm containers
By setting node labels and configuring multi-AZ deployment scenarios in the Helm container, the problem of OpenStack-Helm's incomplete deployment of complex business scenarios is solved, the deployment of multi-AZ resources and the safe isolation of cloud resources are realized, and the security of the private cloud environment is improved. Storage and network performance.
Patent Information
- Application Number
- CN202010626754.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-07-02
AI Technical Summary
The native OpenStack-Helm method is not perfect for multi-AZ deployment in complex business scenarios, and it is difficult to support the support of back-end devices of different storage types and the fine management and security isolation of computing resources in a private cloud environment.
By setting node labels and configuring multi-AZ deployment scenarios in the Helm container, we can implement multi-AZ resource deployment of nova, cinder, and neutron, complete the configuration and initialization of different types of storage backends, and ensure the separation and isolation of computing, storage, and network. Adopt Label Init initial job and override mechanism perform automated setup and custom configuration.
It realizes the deployment of multi-AZ resource scenarios of nova, cinder, and neutron, supports a variety of different back-end storage and network data traffic separation, ensures the safe use of cloud resources, and improves the management of computing resources and the performance of network services.
Smart Images

Figure CN111782223B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of OpenStack-Helm, and in particular to a multi-AZ support method for deploying OpenStack based on a Helm container. Background Art
[0002] Kubernetes is an open source container orchestration engine for automating the deployment, scaling, and management of containerized applications.
[0003] Helm is a package management tool for Kubernetes, which is used to simplify the deployment and management of Kubernetes applications. Chart is an installation package managed by Helm, which contains the installation package resources that need to be deployed. Chart can be compared to the deb file used by the apt installation tool of the Ubuntu operating system. Helm consists of two parts, the client helm and the server tiller; tiller runs on the Kubernetes cluster and manages the release version of the chart installation; helm is a command line tool that can be run locally.
[0004] AZ (Availability Zone) is introduced based on security considerations. In a broad sense, AZ can be regarded as an independent computer room with independent ventilation, fire, water and electricity, and AZs are strictly isolated from each other. In a narrow sense, different areas of the same computer room can also be defined as AZs.
[0005] As a mainstream open source solution for the IaaS layer of cloud computing environments, OpenStack has been widely used in both private and public cloud environments. OpenStack has many components, each of which has numerous configuration items, and private cloud environments have diverse business scenarios. The efficiency of OpenStack can be significantly improved with the help of containerization (docker, kubernetes, helm), but the current native OpenStack-Helm method is not perfect for multi-AZ deployment in complex business scenarios. Summary of the invention
[0006] Aiming at the problem that the existing native OpenStack-Helm has limitations in deploying complex business scenarios, the present invention provides a multi-AZ support method for deploying OpenStack based on Helm containers.
[0007] The present invention provides a multi-AZ support method for deploying OpenStack based on a Helm container, and the technical solution adopted to solve the above technical problems is as follows:
[0008] A method for supporting multi-AZ deployment of OpenStack based on Helm containers, the implementation of which includes:
[0009] (A) Set labels based on the node information and AZ planning information of the OpenStack environment.
[0010] (B) Configure and initialize the storage volume backend, configure the compute node service, run the network DHCP / Metadata and L3 Agent in a specific AZ resource node, and implement the deployment of multi-AZ resource scenarios for nova, cinder and neutron.
[0011] In part (A), labels are set based on the node information and AZ planning information of the OpenStack environment. This process further includes:
[0012] Define the list name information of AZ,
[0013] Set node labels based on the planned AZ and node usage.
[0014] Specifically, the node labels that are set include:
[0015] The control plane API service needs labels to run the node.
[0016] The label required by the network DHCP service running node. This label should contain the DHCP total label and the sub-label containing AZ.
[0017] The label required by the network L3 service running node. This label should contain the L3 overall label and the sub-label containing AZ.
[0018] The label required by the node running the storage volume backend service. This label should contain the overall label of the volume and sub-labels containing different backend storage types: Ceph backend, FCSan backend, local LVM backend, NFS backend.
[0019] Furthermore, the specific operations to implement part (B) include:
[0020] (B1) Define multi-AZ deployment scenario information and use the label Init initialization job to automatically set labels based on the planned service running nodes.
[0021] (B2) Complete the personalized docking of the computing resource service to the backend storage under multiple AZs, and complete the customization of the libvirt backend storage configuration of the nova-compute service through the override mechanism.
[0022] (B3) Implement the operation requirements of different types of storage backends on specific nodes in the multi-AZ scenario of storage volume services, and generate different configmap and secrets resources through the override mechanism for the service to select matching resources for loading and use during runtime.
[0023] (B4) Complete the configuration and initialization of different types of backend storage through the storage volume service initial container and initialization program.
[0024] (B5) Network service multi-AZ support scenario, complete the configuration implementation of Neutron DHCP, Metadata, L3 Agent services in multiple AZs and the reasonable matching of running nodes,
[0025] (B6) Unified configuration distribution and execution: Control the template rendering generation and deployment sequence of environment deployment custom parameters to achieve automated installation and deployment.
[0026] Furthermore, the label Init initial job in step (B1) refers to a chart program that can complete the automatic label setting according to the planned service running nodes.
[0027] Furthermore, the step (B2) involved in completing the personalized connection of the computing resource service to the backend storage under multiple AZs is essentially to complete a specific backend storage resource used by libvirt to create a cloud host from an image under different AZ computing nodes.
[0028] Furthermore, during the execution of step (B4), the storage settings are implemented with the help of the kubctl client program and various storage interface tools built into the container in conjunction with the initialization program.
[0029] Furthermore, the storage settings can be implemented by: completing the creation and rule setting of the Ceph RBD backend storage pool, and the creation and setting of the LVM backend storage volume group.
[0030] Furthermore, during the execution of the step (B5), it is necessary to ensure the coupled binding operation of the DHCP service and the Metadata service in the DVR environment, and the anti-affinity operation of L3-Snat and L3-Dvr.
[0031] The multi-AZ support method for deploying OpenStack based on Helm container of the present invention has the following beneficial effects compared with the prior art:
[0032] 1) The present invention improves the processing logic of the helm chart of computing, storage, and network, and can realize the deployment of multi-AZ resource scenarios for nova, cinder, and neutron. It has the ability to ensure the safe use of cloud resources by supporting a variety of different backend storages, network data traffic separation, and fine-grained scheduling of computing resources through AZ division, solving the deployment limitations of existing native OpenStack-Helm for complex business scenarios;
[0033] 2) The present invention aims to meet the needs of supporting different types of back-end devices for storage and reusing old devices, fine management and secure isolation of computing resources, and traffic isolation and performance improvement of network services in a private cloud environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Attached Figure 1 It is a schematic diagram of deploying nova, cinder, and neutron components based on Helm in the present invention;
[0035] Attached Figure 2 This is a distribution diagram of containers after the present invention is deployed. DETAILED DESCRIPTION
[0036] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments. Embodiment 1
[0037] This embodiment proposes a multi-AZ support method for deploying OpenStack based on a Helm container, and its implementation includes two parts (A) and (B).
[0038] (A) Set labels based on the node information and AZ planning information of the OpenStack environment. This process includes:
[0039] Define the list name information of AZ,
[0040] Set node labels based on the planned AZ and node purpose. The node labels you set include:
[0041] The control plane API service needs labels to run the node.
[0042] The label required by the network DHCP service running node. This label should contain the DHCP total label and the sub-label containing AZ.
[0043] The label required by the network L3 service running node. This label should contain the L3 overall label and the sub-label containing AZ.
[0044] The label required by the node running the storage volume backend service. This label should contain the overall label of the volume and sub-labels containing different backend storage types: Ceph backend, FCSan backend, local LVM backend, NFS backend.
[0045] (B) Configure and initialize the storage volume backend, configure different AZ backend storage for computing node services, and run network DHCP / Metadata and L3 Agent in specific AZ resource nodes to implement the deployment of multi-AZ resource scenarios for nova, cinder, and neutron. Specific operations include:
[0046] (B1) Define multi-AZ deployment scenario information, and use the Label Init initial job to automatically set labels based on the planned service running nodes. The Label Init initial job refers to a chart program that can automatically set labels based on the planned service running nodes.
[0047] (B2) Complete the personalized docking of the backend storage under multiple AZs of the computing resource service, that is, complete the creation of a specific backend storage resource used by libvirt from the image to the cloud host under different AZ computing nodes, and complete the customization of the libvirt backend storage configuration of the nova-compute service through the override mechanism.
[0048] (B3) Implement the operating requirements of different types of storage backends on specific nodes in the multi-AZ scenario of storage volume services, and generate different configmap and secrets resources through the override mechanism for the service to select matching resources for loading and use when running.
[0049] (B4) Complete the configuration and initialization of different types of backend storage through the storage volume service initialization container and initialization program. With the help of the built-in kubctl client program and various storage interface tools in the container, cooperate with the initialization program to implement storage settings. The storage settings can be: complete the creation and rule setting of the Ceph RBD backend storage pool, and the creation and setting of the LVM backend storage volume group.
[0050] (B5) Network service multi-AZ support scenario, complete the configuration implementation of Neutron DHCP, Metadata, L3 Agent services in multiple AZs and the reasonable matching of running nodes. In this process, it is necessary to ensure the coupling and binding operation of DHCP service and Metadata service in the DVR environment, and the anti-affinity operation of L3-Snat and L3-Dvr.
[0051] (B6) Unified configuration distribution and execution: Control the template rendering generation and deployment sequence of environment deployment custom parameters to achieve automated installation and deployment.
[0052] Based on steps (B1)-(B6), refer to the attached Figure 1 , which is a flowchart for deploying nova, cinder, and neutron components based on Helm. LCM represents a configuration management tool, which can use SaltStack or ansible to define and issue global variables. According to the information issued by LCM, helm pulls the chart package of nova, cinder, and neutron components stored in Storage to render variable information. After that, helm configures related resources through the tiller component, generates the configured resources in the Kubernetes cluster, and starts running to implement deployment.
[0053] Based on step (B6), after the deployment is completed, in the Kubernetes cluster, Neutron DHCP, nova, and cinder are deployed in different AZs, and each AZ is deployed with at least one group of containers, and each group of containers contains multiple container units.
[0054] In summary, the multi-AZ support method for deploying OpenStack based on Helm container of the present invention can realize the deployment of multi-AZ resource scenarios of nova, cinder and neutron, and has the ability to ensure the safe use of cloud resources by supporting a variety of different backend storages, network data traffic separation and fine-grained scheduling of computing resources through AZ division, thus solving the problem of deployment limitations of existing native OpenStack-Helm for complex business scenarios.
[0055] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made to the present invention by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.
Claims
1. A multi-AZ support method for deploying OpenStack based on Helm containers, It is characterized in that Its implementation includes: (A) Set labels based on the node information and AZ planning information of the OpenStack environment, including: Define the list name information of AZ, Set node labels according to the planned AZ and node usage. The node labels to be set include: labels required by control plane API service running nodes; labels required by network DHCP service running nodes, which should include DHCP general label and sub-label including AZ; labels required by network L3 service running nodes, which should include L3 general label and sub-label including AZ; labels required by storage volume backend service running nodes, which should include volume general label and sub-label including different backend storage types: Ceph backend, FCSan backend, local LVM backend, NFS backend; (B) Configure and initialize the storage volume backend, configure different AZ backend storage for computing node services, and run network DHCP / Metadata and L3 Agent in specific AZ resource nodes to implement the deployment of multi-AZ resource scenarios for nova, cinder, and neutron. The specific operations include: (B1) Define multi-AZ deployment scenario information, and use the label Init initial job to automatically set labels according to the planned service running nodes. The label Init initial job refers to a chart program that can automatically set labels according to the planned service running nodes. (B2) Complete the personalized docking of the backend storage under multiple AZs of the computing resource service. In essence, it is to complete the creation of a specific backend storage resource used by the cloud host from the image by libvirt under different AZ computing nodes, and complete the customization of the libvirt backend storage configuration of the nova-compute service through the override mechanism. (B3) Implement the operation requirements of different types of storage backends on specific nodes in the multi-AZ scenario of storage volume services, and generate different configmap and secrets resources through the override mechanism for the service to select matching resources for loading and use during runtime. (B4) Complete the configuration and initialization of different types of backend storage through the storage volume service initial container and initialization program. (B5) Network service multi-AZ support scenario, complete the configuration implementation of Neutron DHCP, Metadata, L3 Agent services in multiple AZs and the reasonable matching of running nodes, (B6) Unified configuration distribution and execution: Control the template rendering generation and deployment sequence of environment deployment custom parameters to achieve automated installation and deployment.
2. According to claim 1, a multi-AZ support method for deploying OpenStack based on Helm containers, It is characterized in that During the execution of step (B4), the storage settings are implemented with the help of the kubctl client program and various storage interface tools built into the container in conjunction with the initialization program.
3. According to claim 2, a multi-AZ support method for deploying OpenStack based on Helm containers, It is characterized in that The storage settings can be implemented by: completing the creation and rule setting of the Ceph RBD backend storage pool, and the creation and setting of the LVM backend storage volume group.
4. According to the multi-AZ support method for deploying OpenStack based on Helm container according to claim 1, It is characterized in that During the execution of step (B5), it is necessary to ensure the coupled binding operation of the DHCP service and the Metadata service in the DVR environment, and the anti-affinity operation of L3-Snat and L3-Dvr.
