Cloud computing platform automatic deployment method, electronic equipment and storage medium

Through the automated deployment method, the environment detection and template-driven mechanism are used to solve the problems of human error and inefficiency in cloud platform deployment, and the efficient and accurate automatic deployment of cloud computing platforms is achieved.

CN119835150APending Publication Date: 2025-04-15华润数字科技有限公司
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411982975.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The existing cloud platform deployment methods mainly rely on manual operations, which can easily lead to service configuration errors, component version inconsistent, and inefficient deployment, especially in large-scale cluster environments.

Method used

An automated deployment method for cloud computing platform is proposed. By obtaining information about the deployment host and the target host, filling in preset deployment environment detection instruction templates, generating deployment environment detection scripts, performing environment detection, and generating automated deployment scripts based on the detection results to realize the automated deployment of the cloud computing platform.

Benefits of technology

It improves the deployment efficiency of the cloud computing platform, reduces human errors, ensures the accuracy of component deployment and the satisfaction of dependencies, and realizes the automated deployment of the cloud computing platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835150A_ABST
    Figure CN119835150A_ABST
Patent Text Reader

Abstract

The invention provides a cloud computing platform automatic deployment method, electronic equipment and a storage medium, and belongs to the technical field of cloud platforms. The method comprises the following steps: acquiring deployment host information corresponding to a deployment host, target host information corresponding to a target host and component configuration information; filling a preset deployment environment detection instruction template according to the deployment host information and the target host information, and generating a deployment environment detection script; performing environment detection on the deployment host and the target host based on the deployment environment detection script to obtain a deployment environment detection result; in response to the environment detection result, indicating that the deployment host and the target host meet a preset deployment condition, filling a preset component deployment instruction template according to the component configuration information, and generating an automatic deployment script; and executing the automatic deployment script to enable the deployment host to deploy the target cloud computing platform at the target host. According to the invention, automatic deployment of the cloud computing platform can be realized, and the deployment efficiency of the cloud computing platform is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cloud platforms, and in particular to a method for automatic deployment of a cloud computing platform, an electronic device, and a storage medium. Background Art

[0002] The cloud computing platform is a core component of modern IT infrastructure. The openstack components it contains are used to provide cloud resource services and management capabilities. These components work together to build a complete cloud computing service system. At the same time, there are complex dependencies between the openstack components of the cloud platform, and the deployment process involves a large amount of software configuration and network settings. The correctness and consistency of its deployment directly affect the stable operation of the entire platform.

[0003] In the related technology, the existing cloud platform deployment usually adopts manual operation, where the administrator installs and configures various components on each node in turn and manually integrates services. However, this traditional deployment solution often leads to service configuration errors, inconsistent component versions, and low deployment efficiency in large-scale cluster environments due to human operation errors. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a cloud computing platform automatic deployment method, electronic device and storage medium, which can realize the automatic deployment of the cloud computing platform and improve the deployment efficiency of the cloud computing platform.

[0005] To achieve the above objectives, a first aspect of an embodiment of the present application proposes a method for automatic deployment of a cloud computing platform, the method comprising:

[0006] Obtain the deployment host information corresponding to the deployment host, the target host information corresponding to the target host, and the component configuration information;

[0007] Fill in a preset deployment environment detection instruction template according to the deployment host information and the target host information to generate a deployment environment detection script;

[0008] Performing environment detection on the deployment host and the target host based on the deployment environment detection script to obtain a deployment environment detection result;

[0009] In response to the environmental detection result indicating that the deployment host and the target host meet the preset deployment conditions, fill in the preset component deployment instruction template according to the component configuration information to generate an automated deployment script;

[0010] The automated deployment script is executed to enable the deployment host to deploy the target cloud computing platform on the target host.

[0011] In some embodiments, the deployment environment detection script includes an operating system detection script, a compilation environment detection script, and a password-free connection detection script, and the deployment environment detection is performed on the deployment host and the target host based on the deployment environment detection script to obtain a deployment environment detection result, including:

[0012] Execute the operating system detection script to detect the operating systems of the deployment host and the target host, and obtain the operating system detection result;

[0013] Execute the compilation environment detection script to detect the compilation environment of the deployment host and the target host, and obtain the compilation environment detection result;

[0014] Execute the password-free connection detection script to verify the password-free connection function between the deployment host and the target host, and obtain a password-free connection detection result;

[0015] The deployment environment detection result is obtained according to the operating system detection result, the compilation environment detection result and the password-free detection result.

[0016] In some embodiments, the automated deployment script includes an infrastructure deployment script, a core service deployment script, and a cloud platform portal deployment script, and executing the automated deployment script includes:

[0017] Executing the infrastructure deployment script to deploy infrastructure components on the target host;

[0018] Execute the core service deployment script to deploy the core service components on the target host;

[0019] Execute the cloud platform portal deployment script to deploy the cloud platform portal components on the target host.

[0020] In some embodiments, executing the core service deployment script to deploy the core service components on the target host further includes:

[0021] Parsing the core service deployment script to obtain bare metal service deployment instructions and bare metal network configuration instructions;

[0022] Execute the bare metal service deployment instruction to complete the deployment of the bare metal service on the target host;

[0023] Execute the bare metal network configuration instruction to achieve network interconnection between the bare metal node and the target cloud platform.

[0024] In some embodiments, executing the infrastructure deployment script to deploy infrastructure components on the target host includes:

[0025] Parsing the infrastructure deployment script to obtain DNS resolver deployment instructions, load balancing deployment instructions, database cluster deployment instructions, message queue deployment instructions, and cache service deployment instructions;

[0026] Execute the DNS resolver deployment instruction to complete the deployment of the DNS resolution service for the target host;

[0027] Execute the load balancing deployment instruction to complete the deployment of the load balancing service for the target host;

[0028] Execute the database cluster deployment instruction to complete the deployment of the database cluster on the target host;

[0029] Execute the message queue deployment instruction to complete the deployment of the message queue cluster on the target host;

[0030] The cache service deployment instruction is executed to complete the deployment of the cache service on the target host.

[0031] In some embodiments, executing the core service deployment script to deploy the core service components on the target host includes:

[0032] Parsing the core service deployment script to obtain identity authentication service deployment instructions, image service deployment instructions, storage service deployment instructions, computing service deployment instructions, and network service deployment instructions;

[0033] Execute the identity authentication service deployment instruction to complete the deployment of the identity authentication service on the target host;

[0034] Execute the image service deployment instruction to complete the deployment of the image service on the target host;

[0035] Execute the storage service deployment instruction to complete the deployment of the storage service on the target host;

[0036] Execute the computing service deployment instruction to complete the deployment of the computing service on the target host;

[0037] The network service deployment instruction is executed to complete the deployment of the network service on the target host.

[0038] In some embodiments, executing the cloud platform portal deployment script to deploy cloud platform portal components on the target host includes:

[0039] Parsing the cloud platform portal deployment script to obtain container cluster deployment instructions, database deployment instructions, front-end service deployment instructions, and back-end service deployment instructions;

[0040] Execute the container cluster deployment instruction to complete the deployment of the container cluster on the target host;

[0041] Execute the database deployment instruction to complete the deployment of the portal database on the target host;

[0042] The front-end service deployment instruction is executed to complete the deployment of the front-end service on the target host.

[0043] In some embodiments, the method further comprises:

[0044] In the process of executing the automated deployment script, detecting the component deployment status and obtaining a deployment status detection result;

[0045] In response to the deployment status detection result indicating that the deployment is abnormal, a preset rollback script is executed.

[0046] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the embodiment of the first aspect is implemented.

[0047] To achieve the above-mentioned purpose, the third aspect of the embodiments of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, the method described in the first aspect of the embodiments is implemented.

[0048] The present application first establishes complete deployment data by acquiring the deployment host information, target host information and component configuration information corresponding to the deployment host. Then, based on the deployment host information and the target host information, the preset deployment environment detection instruction template is filled to generate a deployment environment detection script, which can perform a comprehensive detection on the deployment environment and realize the environmental adaptation of the deployment process. Next, by performing environmental detection on the deployment host and the target host based on the deployment environment detection script, the deployment environment detection result is obtained, and when the environmental detection result meets the preset deployment conditions, the preset component deployment instruction template is filled according to the component configuration information, and the automatic deployment script can be generated while ensuring that the environment meets the requirements. Finally, based on the generated automatic deployment script, the deployment host completes the deployment of the target cloud computing platform on the target host, which not only ensures the accuracy of the deployment process, but also ensures that the component deployment order meets the dependency requirements, thereby achieving the automatic deployment of the cloud computing platform. Compared with the prior art that deploys the cloud platform by manual operation, the method provided in the embodiment of the present application is based on the automation mechanism of template drive and environmental detection, which can realize the automatic deployment of the cloud computing platform and help improve the deployment efficiency of the cloud computing platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by an embodiment of the present application;

[0050] Figure 2 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0051] Figure 3 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0052] Figure 4 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0053] Figure 5 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0054] Figure 6 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0055] Figure 7 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0056] Figure 8 It is a flowchart of a method for automatic deployment of a cloud computing platform provided by another embodiment of the present application;

[0057] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0060] In the field of cloud computing, cloud computing platforms are becoming increasingly important as a core component of modern IT infrastructure. Typical cloud computing platforms, such as OpenStack, are complex systems composed of multiple components that work together, including: Keystone services for identity authentication and access control, Glance services for virtual machine image management, Nova services for computing resource management, Neutron services for network function virtualization, Cinder services for processing block storage, etc. These components work together to build a complete cloud computing service system.

[0061] However, due to the complex dependencies between cloud computing platform components, its deployment process faces many challenges. First, the dependencies between components require that the deployment order must strictly follow specific rules. For example, before deploying computing services, the authentication service and image service must be ensured to operate normally. Second, the deployment of each component involves a large amount of software configuration and network settings, including database configuration, message queue settings, network parameter adjustments, etc. The correctness of these configurations directly affects the stable operation of the entire platform.

[0062] In the prior art, the deployment of cloud platforms is usually carried out manually. System administrators need to manually install and configure various components on each node and integrate services. This traditional deployment solution has multiple problems: First, due to human operational errors, it is easy to cause service configuration errors, such as incorrect configuration parameters, missing dependent components, etc.; second, in the multi-node deployment process, it is easy to have inconsistent component versions, affecting the overall stability of the system; at the same time, in a large-scale cluster environment, manual deployment is inefficient and often requires a lot of time and manpower costs. Therefore, how to realize the automated deployment of cloud computing platforms, improve deployment efficiency, and reduce human errors has become a technical problem that needs to be solved urgently.

[0063] Based on this, the embodiments of the present application provide a method for automatic deployment of a cloud computing platform, an electronic device, and a storage medium, which can realize automatic deployment of a cloud computing platform and improve the deployment efficiency of the cloud computing platform.

[0064] The cloud computing platform automatic deployment method, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the cloud computing platform automatic deployment method in the embodiments of the present application is described.

[0065] The cloud computing platform automatic deployment method in the embodiments of the present application can be illustrated by the following embodiments.

[0066] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first. For example, when obtaining user stored data and the user's cached data access request, the user's permission or consent will be obtained first. Moreover, the collection, use and processing of these data will comply with the relevant laws, regulations and standards of the relevant countries and regions. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or separate consent will be obtained by means of a pop-up window or jumping to a confirmation page. After clearly obtaining the user's separate permission or separate consent, the necessary user-related data used to enable the normal operation of the embodiment of the present application will be obtained.

[0067] Exemplarily, the cloud computing platform automatic deployment method in the embodiment of the present application is applicable to a variety of specific application scenarios, such as large-scale cloud data center deployment, hybrid cloud environment construction, edge computing node deployment, disaster recovery center construction and development test environment construction. Among them, when applied to large-scale cloud data center deployment, the method can realize the rapid batch deployment of hundreds or even thousands of nodes, ensure the consistency of configuration and the accuracy of deployment, and significantly reduce the operation and maintenance costs; when applied to the construction of hybrid cloud environment, through a unified deployment process, private cloud and public cloud resources can be seamlessly integrated to achieve unified management and resource scheduling across cloud environments; when applied to edge computing node deployment, it can adapt to the characteristics of large differences in edge node hardware configuration and complex network conditions, and quickly complete the cloud platform deployment and configuration of edge nodes; when applied to the construction of disaster recovery center, it can ensure the configuration consistency of the main and standby environments, support the rapid deployment and switching of disaster recovery environments, and improve the reliability of the system; when applied to the construction of development test environment, it can quickly build an independent test environment according to different test requirements, support multiple versions of parallel testing, and speed up product iteration and verification. Through the application in these scenarios, this solution not only improves the efficiency and accuracy of cloud platform deployment, but also provides strong support for the digital transformation of enterprises. At the same time, the solution's automation features and error handling mechanisms also provide reliable technical support for operation and maintenance personnel, making the deployment and management of the cloud platform simpler and more reliable.

[0068] Figure 1 is an optional flowchart of the cloud computing platform automatic deployment method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps 101 to 105. It can also be understood that this embodiment Figure 1 The order of step 101 to step 105 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0069] Step 101, obtaining deployment host information corresponding to the deployment host, target host information corresponding to the target host, and component configuration information.

[0070] Step 102: fill in a preset deployment environment detection instruction template according to the deployment host information and the target host information, and generate a deployment environment detection script.

[0071] Step 103: Perform environment detection on the deployment host and the target host based on the deployment environment detection script to obtain a deployment environment detection result.

[0072] Step 104 , in response to the environmental detection result indicating that the deployment host and the target host meet the preset deployment conditions, a preset component deployment instruction template is filled according to the component configuration information to generate an automated deployment script.

[0073] Step 105 , executing the automated deployment script to enable the deployment host to deploy the target cloud computing platform on the target host.

[0074] The embodiment of the present application first establishes complete deployment data by acquiring the deployment host information, target host information and component configuration information corresponding to the deployment host. Then, based on the deployment host information and the target host information, the preset deployment environment detection instruction template is filled to generate a deployment environment detection script, which can be used to perform a comprehensive detection of the deployment environment, thereby realizing the environmental adaptation of the deployment process. Next, by performing environmental detection on the deployment host and the target host based on the deployment environment detection script, the deployment environment detection result is obtained, and when the environmental detection result meets the preset deployment condition, the preset component deployment instruction template is filled according to the component configuration information, so that the automatic deployment script can be generated while ensuring that the environment meets the requirements. Finally, based on the generated automatic deployment script, the deployment host completes the deployment of the target cloud computing platform on the target host, which not only ensures the accuracy of the deployment process, but also ensures that the component deployment order meets the dependency requirements, thereby achieving the automatic deployment of the cloud computing platform. Compared with the prior art that deploys the cloud platform by manual operation, the method provided in the embodiment of the present application is based on the automation mechanism of template drive and environmental detection, which can realize the automatic deployment of the cloud computing platform, and help improve the deployment efficiency of the cloud computing platform.

[0075] In step 101 of some embodiments, it is necessary to obtain the basic information required for the automated deployment of the cloud computing platform, including the deployment host information, target host information, and component configuration information corresponding to the deployment host. The deployment host refers to the server that performs the deployment operation. The deployment host can use a Linux distribution operating system, and it is necessary to pre-install tools for automated deployment, such as the Ansible toolset and the Python environment. The deployment host information includes the IP address of the deployment host, access credentials, operating system information, deployment tool installation status, and SSH key configuration information, etc. This information can be used to ensure that the deployment host has the basic conditions for performing automated deployment.

[0076] The target host refers to the server cluster where the cloud platform needs to be deployed, which is divided into OpenStack control node group, computing node group and storage node group according to function. The control node group is used to deploy the management components of the cloud platform, the computing node group is used to deploy computing resources, and the storage node group is used to deploy storage services. The target host information includes the IP address list of each node, hardware configuration information, network configuration information, and operating system information.

[0077] The component configuration information mainly includes two parts: the OpenStack configuration module and the cloud portal configuration module. The OpenStack configuration module contains information such as the deployment environment type, system architecture, clock source configuration, and network configuration. The deployment environment type can be hyper-converged deployment or hybrid deployment, and the system architecture supports ARM architecture and x86 architecture. The network configuration information includes physical network cards, bond configuration, and network segment planning.

[0078] In the physical network card bond configuration, bond0 of the control host is used for management traffic transmission, bond1 is used for external traffic transmission, bond2 is used for host metadata traffic transmission, and bond3 is used for ironic DHCP traffic transmission; bond0 of the computing host is used for management traffic transmission, and bond2 is used for business traffic transmission.

[0079] The network segment planning includes: container-management network for management traffic, pub-intranet for internal communication, storage-storage network for ipsan storage, ironicdhcp-bare metal initialization network for hard SDN scenarios, tunnel-east-west business network for soft SDN scenarios, ex-north-south business network for hard SDN scenarios. In addition, it is necessary to configure the virtual IP of the internal network and the external network. These two virtual IPs serve as the internal network traffic entrance and the external network traffic entrance respectively, for actual business access and cloud platform access.

[0080] The cloud portal configuration module contains information such as service image version, database configuration, domain name configuration, and docker warehouse address. Among them, the service image version is used to specify the image version required for the self-developed cloud portal service; the database configuration contains the IP address and access credentials of the portal database; the domain name configuration contains the portal access domain name address and k8s namespace; the docker warehouse address is used to store and obtain the container images required for the portal service. The portal VNC connection virtual machine service configuration is used to provide virtual machine remote console access services for the cloud platform; the shared file storage NFS address that the portal service depends on is used to provide the shared storage space required for the portal service. For self-developed services, it is necessary to configure the octavia service reserved for the RDS self-developed service and the SLB self-developed service to ensure the reasonable allocation of network resources; at the same time, it is necessary to configure the control node IP and management node IP of the RDS self-developed service to achieve unified management and control of the service. These configuration information determines the specific deployment parameters of each component.

[0081] In actual applications, this information is usually provided in the form of configuration files, which are pre-configured by operation and maintenance personnel according to the actual environment. By obtaining this complete deployment information, the necessary data support is provided for the subsequent automated deployment process, so that the deployment process can proceed according to the expected configuration. At the same time, the completeness and accuracy of this information also directly affects the success rate of the subsequent deployment process.

[0082] In step 102 of some embodiments, the deployment environment detection instruction template is a predefined set of standardized instructions for detecting the deployment environment, including an operating system detection instruction template, a compilation environment detection instruction template, and a password-free connection detection instruction template, etc. These templates are designed in a standardized format to facilitate automated information filling and script generation.

[0083] The operating system detection instruction template mainly contains instructions for detecting information such as the operating system version, kernel version, system time, and system resources. By filling the specific information of the deployment host and the target host into the template, a detection script for verifying the operating system environment can be generated. Among them, the operating system version detection is used to ensure that the system version is within the range supported by the cloud platform, the system time detection is used to ensure the time synchronization of each node, and the system resource detection is used to verify whether the hardware resources such as CPU, memory, and disk meet the deployment requirements.

[0084] The compilation environment detection instruction template contains instructions for detecting the Python environment, compilation tool chain, and related dependent libraries. By filling in specific version information and path information, a detection script for verifying the compilation environment is generated. The Python environment detection includes the Python interpreter version and necessary Python packages, the compilation tool chain detection includes basic compilation tools such as gcc and make, and the dependent library detection includes system libraries required by components such as openssl and mysql.

[0085] The password-free connection detection instruction template contains instructions for detecting the SSH service status, key configuration, and network connectivity. By filling in specific host information and authentication information, a detection script for verifying inter-node communication is generated. The SSH service detection is used to ensure that the remote deployment function is available, the key configuration detection is used to verify the correctness of the password-free login, and the network connectivity detection is used to ensure that the network between nodes is unobstructed.

[0086] During the filling process, specific parameters in the deployment host information and target host information, such as IP address, user name, path, etc., can be replaced in the corresponding template position to generate complete detection instructions. This template-based script generation method not only ensures the integrity and standardization of the detection content, but also improves the efficiency and accuracy of script generation. The generated deployment environment detection script adopts the Shell script format and can be directly executed in the Linux environment, which is convenient for the subsequent automated detection process.

[0087] Through this templated detection script generation mechanism, the embodiment of the present application can flexibly generate corresponding environment detection scripts according to different deployment environment requirements, providing a reliable execution tool for the subsequent environment detection process. At the same time, this method also reduces the error risk that may be caused by manually writing detection scripts and improves the reliability of the deployment process.

[0088] In step 103 of some embodiments, the deployment environment is automatically tested and verified by executing the detection script generated in step 102 to ensure that all environmental requirements for cloud platform deployment are met. The deployment environment test is first performed on the deployment host. By executing the detection script, the software and hardware environment of the deployment host is fully tested to verify whether it meets the basic requirements for performing automated deployment. The detection content includes multiple aspects such as the operating system environment, software environment, and system resources. During the detection process, the execution status of each test is recorded in real time, and for abnormal situations found in the detection, the specific error information will be recorded in detail.

[0089] At the same time, the target host group will also be tested for the environment. By deploying the host to remotely execute the test script, each target host node will be tested for environment to verify whether it meets the environmental requirements for cloud platform deployment. The test scope includes multiple dimensions such as basic software environment, system configuration, and network environment. For multiple nodes, the test tasks can be executed in parallel to improve the test efficiency. During the test process, the test status and result information of each node are recorded.

[0090] After completing the environment test of the deployment host and the target host, the test results will be comprehensively analyzed to generate the final deployment environment test results. The test results not only include the status information of whether the environment test has passed, but also include a detailed test report that records the specific situation of each test item. For items that have not passed the test, clear error prompts and repair suggestions can be given to facilitate operation and maintenance personnel to locate and solve problems.

[0091] Through this automated environment detection mechanism, the embodiment of the present application can timely discover environmental problems before deployment begins, avoiding deployment failures due to the environment not meeting requirements. At the same time, this script-based detection method also improves the efficiency and accuracy of environment detection, laying a good foundation for the subsequent automated deployment process.

[0092] See also Figure 2 In some embodiments, the deployment environment detection script includes an operating system detection script, a compilation environment detection script, and a password-free connection detection script. Step 103 may include but is not limited to steps 201 to 204:

[0093] Step 201, execute the operating system detection script to detect the operating systems of the deployment host and the target host, and obtain the operating system detection result.

[0094] Step 202, execute the compilation environment detection script to detect the compilation environment of the deployment host and the target host, and obtain the compilation environment detection result.

[0095] Step 203, executing the password-free connection detection script to verify the password-free connection function between the deployment host and the target host, and obtaining the password-free connection detection result.

[0096] Step 204, obtaining a deployment environment detection result according to the operating system detection result, the compilation environment detection result and the password-free detection result.

[0097] In step 201 of some embodiments, the operating system detection script is executed, and the operating system of the deployment host can be first detected, including verifying whether the operating system type, version number, and kernel version meet the cloud platform deployment requirements. Subsequently, the operating system detection can be performed on the target host remotely to verify the operating system environment of each target host. During the detection process, the system time configuration, system resource status, etc. of the host can also be verified, and various detection information can be recorded in the operating system detection result.

[0098] In step 202 of some embodiments, the compilation environment detection script is executed to first detect the integrity of the compilation tool chain on the deployment host, including whether the basic compilation tools, development environment, and operating environment meet the deployment requirements. Then, the compilation environment of the target host can be detected to verify whether the compilation tools and operating environment required for cloud platform deployment have been correctly installed and configured. During the detection process, the execution status of each detection can be recorded in detail, and the detection information can be recorded in the compilation environment detection result.

[0099] In step 203 of some embodiments, the password-free connection detection script is executed to first verify the network connectivity between the deployment host and each target host. Subsequently, the SSH service running status of each host can be detected to verify the password-free login function of the deployment host to the target host. During the detection process, each connection channel can be tested to ensure that the deployment host can access all target hosts through the SSH key method, and the verification information is recorded in the password-free connection detection result.

[0100] In step 204 of some embodiments, the aforementioned test results may be comprehensively analyzed. First, the operating system test results may be checked to confirm whether the operating system environment of all hosts meets the deployment requirements. Next, the compilation environment test results may be checked to confirm whether the compilation tools and operating environment required for deployment are available. Then, the password-free connection test results may be checked to confirm whether the remote deployment channel is ready. Finally, these test results may be comprehensively analyzed to obtain the final deployment environment test results.

[0101] Through the above steps 201 to 204, a comprehensive and automated detection of the deployment environment can be achieved. On the one hand, by executing different types of detection scripts respectively, a multi-dimensional verification of the deployment environment is achieved. On the other hand, through a comprehensive analysis of the detection results, it is ensured that the deployment environment meets all necessary conditions. This automated detection mechanism not only reduces the omissions and errors that may be caused by manual inspection, but also improves the accuracy and efficiency of environmental detection, providing a reliable environmental guarantee for subsequent automated deployment.

[0102] In step 104 of some embodiments, the environment detection result is first judged. When the detection result shows that the operating system environment, compilation environment, and password-free connection environment of the deployment host and the target host all meet the preset deployment conditions, the script generation phase will be entered. This judgment mechanism based on the detection result can ensure that the deployment environment has the basic conditions for executing automated deployment, avoid continuing to execute the deployment operation when the environment does not meet the requirements, and thus reduce the risk of deployment failure.

[0103] In the script generation phase, you can first obtain the preset component deployment instruction templates. These templates include infrastructure deployment instruction templates, core service deployment instruction templates, and cloud platform portal deployment instruction templates. Each template presets the standardized instruction structure required for the deployment of the corresponding component, including the component's installation commands, configuration parameters, dependencies, and deployment order, providing a basic framework for subsequent information filling. This templated design approach can ensure the integrity and standardization of deployment instructions.

[0104] Subsequently, these templates can be filled in according to the component configuration information. The component configuration information includes the OpenStack configuration module and the cloud portal configuration module. The OpenStack configuration module contains information such as the deployment environment type, system architecture type, clock source configuration, and network configuration; the cloud portal configuration module contains information such as the service image version, database configuration, domain name configuration, and docker warehouse address. During the filling process, the configuration parameters can be verified for legitimacy, including parameter format checking, value range verification, and dependency checking, to ensure that the filled instructions can be executed correctly. Through template filling, a complete automated deployment script can be generated in the end. The generated script adopts a standard script format and contains a complete deployment process and configuration information. This template-based script generation method not only unifies the format specifications of the deployment instructions, but also ensures the integrity of the deployment steps through the preset template structure, which can effectively avoid omissions or errors that may occur when manually writing scripts. At the same time, the generated script can also include error handling and logging mechanisms to facilitate problem location and fault handling.

[0105] Through this automated script generation mechanism, the embodiment of the present application can quickly generate an adaptive deployment script according to the actual deployment requirements and environmental characteristics. This method not only improves the efficiency of generating deployment scripts, but also ensures the standardization and reliability of the deployment process through standardized template structures and parameter verification mechanisms. At the same time, the templated design method is also convenient for later maintenance and updates, which facilitates the continuous deployment and upgrade of the cloud platform.

[0106] In step 105 of some embodiments, the basic configuration of the deployment host can be performed first. This may include initializing the environment of the deployment host, configuring variables, and managing software packages. In terms of software package management, specific configuration tasks can be applied according to different package managers to ensure that the required software packages can be correctly installed. At the same time, the global environment variables used in the deployment process can be configured to provide necessary environmental support for the subsequent deployment process. During the execution of the deployment process, the installation and configuration of each component can be completed in sequence according to the predefined deployment order. Before each component is deployed, a port occupancy check can be performed to ensure that the required port is not occupied by other services. During the deployment process, each component can be correctly configured according to the specific parameters in the component configuration information. At the same time, the deployment of each component needs to strictly follow the dependency relationship to ensure that the basic components are deployed first and provide necessary support for the dependent components.

[0107] Through this orderly deployment process, the embodiments of the present application can ensure the correct installation and configuration of each component of the cloud platform. This automated deployment method not only improves the deployment efficiency, but also ensures that the dependencies between components are satisfied through the preset deployment sequence, thereby realizing the reliable deployment of the cloud computing platform.

[0108] See also Figure 3 In some embodiments, the automated deployment script includes an infrastructure deployment script, a core service deployment script, and a cloud platform portal deployment script. Step 105 may include but is not limited to steps 301 to 303:

[0109] Step 301, execute the infrastructure deployment script to deploy infrastructure components on the target host.

[0110] Step 302, execute the core service deployment script to deploy the core service components on the target host.

[0111] Step 303: execute the cloud platform portal deployment script to deploy the cloud platform portal components on the target host.

[0112] In step 301 of some embodiments, the infrastructure deployment script is executed, and the basic configuration of the deployment host can be performed first, including environment initialization, variable configuration, and software package management. In terms of software package management, specific configuration tasks can be applied according to different package managers (such as apt, yum, etc.) to ensure that the required software packages can be installed correctly. Then, the infrastructure components can be deployed on the target host, including: the deployment of DNS resolution services to provide domain name resolution functions for the OpenStack cluster; the deployment of load balancing services to provide guarantees for the high availability of the cloud platform; the deployment of database cluster services to provide data storage services for the cloud platform; the deployment of message queue services for message transmission between components; and the deployment of cache services to improve the access performance of the cloud platform.

[0113] See also Figure 4 In some embodiments, step 301 may include but is not limited to steps 401 to 406:

[0114] Step 401, parse the infrastructure deployment script to obtain DNS resolver deployment instructions, load balancing deployment instructions, database cluster deployment instructions, message queue deployment instructions and cache service deployment instructions.

[0115] Step 402, execute the DNS resolver deployment instruction to complete the deployment of the DNS resolution service for the target host.

[0116] Step 403, execute the load balancing deployment instruction to complete the deployment of the load balancing service on the target host.

[0117] Step 404: execute the database cluster deployment instruction to complete the deployment of the database cluster on the target host.

[0118] Step 405: execute the message queue deployment instruction to complete the deployment of the message queue cluster on the target host.

[0119] Step 406: execute the cache service deployment instruction to complete the deployment of the cache service on the target host.

[0120] In step 401 of some embodiments, the infrastructure deployment script is parsed to obtain specific deployment instructions for each basic component. First, the DNS resolver deployment instructions can be parsed, including server and client configuration parameters; then the load balancing deployment instructions can be parsed, including high availability configuration and service monitoring parameters; then the database cluster deployment instructions can be parsed, including cluster node configuration and data synchronization parameters; then the message queue deployment instructions can be parsed, including cluster configuration and message delivery parameters; finally, the cache service deployment instructions can be parsed, including cache strategy and service configuration parameters. During the parsing process, the configuration parameters can be verified for legitimacy to ensure that subsequent deployment can be executed normally.

[0121] In step 402 of some embodiments, the DNS resolver deployment instruction is executed to complete the deployment of the DNS resolution service for the target host. First, the Unbound DNS resolver server can be installed on the specified node to provide the domain name resolution function for the OpenStack cluster; then the resolution rules of the DNS server can be configured, including domain name mapping, caching strategy, etc.; then the DNS resolver client can be installed on other nodes to ensure that all nodes in the cluster can correctly use the DNS service.

[0122] In step 403 of some embodiments, the load balancing deployment instruction is executed to complete the deployment of the load balancing service on the target host. First, the HAProxy service can be installed on the designated node to provide high availability for the cloud platform; then the load balancing strategy can be configured, including service discovery, health check and other mechanisms; then the listening port and forwarding rules of the load balancer can be set to ensure that the service request can be correctly distributed.

[0123] In step 404 of some embodiments, the database cluster deployment instruction is executed to complete the deployment of the database cluster on the target host. First, the Galera database cluster can be installed to provide a highly available data storage service for the cloud platform; then the data synchronization mechanism can be configured to ensure data consistency between cluster nodes; and then the database access control can be set to ensure the security of data access.

[0124] In step 405 of some embodiments, the message queue deployment instruction is executed to complete the deployment of the message queue cluster on the target host. First, the RabbitMQ cluster service can be installed to provide message transmission function between cloud platform components; then the cluster nodes can be configured to ensure reliable message transmission; then the access rights of the message queue can be set to ensure the security of message transmission.

[0125] In step 406 of some embodiments, the cache service deployment instruction is executed to complete the deployment of the cache service on the target host. First, the Memcached service can be installed to provide a cache function for the cloud platform; then the cache policy can be configured, including parameters such as cache size and expiration time; then the access control of the cache service can be set to ensure the security of the cached data.

[0126] Through step 401 to step 406, the embodiment of the present application first standardizes the installation and configuration process of infrastructure components through a scripted deployment method in terms of deployment complexity and human risks. The preset deployment order ensures that the dependencies between components are met, and the automated parameter verification mechanism avoids configuration errors. Secondly, in terms of deployment efficiency and consistency, the parallel deployment of basic components is realized, and the standardized deployment process ensures consistency in different environments. The overall reliability of the system is improved by deploying components based on a high-availability architecture, and a unified logging mechanism facilitates problem location. In terms of resource utilization and performance, resource utilization is improved through a reasonable component distribution solution, and system performance is improved through an optimized caching strategy and a flexible load balancing mechanism.

[0127] In step 302 of some embodiments, the core service deployment script is executed to deploy the OpenStack core service components on the target host. First, the identity authentication service can be deployed to manage user authentication and permission control; then the image service can be deployed to manage virtual machine images; then the storage service can be deployed to provide block storage functions; then the computing service can be deployed to manage the life cycle of the virtual machine; finally, the network service can be deployed to implement the network functions of the cloud platform. Before each service is deployed, a port occupancy check can be performed to ensure that the required port is not occupied by other services. At the same time, the deployment of each component needs to strictly follow the dependency relationship to ensure that the basic components are deployed first.

[0128] See also Figure 5 In some embodiments, step 302 may include but is not limited to steps 501 to 503:

[0129] Step 501, parse the core service deployment script to obtain bare metal service deployment instructions and bare metal network configuration instructions.

[0130] Step 502, execute the bare metal service deployment instruction to complete the deployment of the bare metal service on the target host.

[0131] Step 503, execute the bare metal network configuration instructions to achieve network interconnection between the bare metal node and the target cloud platform.

[0132] In step 501 of some embodiments, the core service deployment script is first parsed to obtain bare metal service (Ironic) deployment instructions and network configuration instructions. Among them, bare metal service deployment instructions include service component installation, driver configuration, and management interface settings; bare metal network configuration instructions mainly include DHCP service configuration, PXE boot environment configuration, and network connection parameters. Through script parsing, it can be ensured that the subsequent deployment process is carried out in a predefined order and configuration.

[0133] In step 502 of some embodiments, the bare metal service deployment instruction is executed to complete the deployment of the bare metal service on the target host. First, the kernel version of the bare metal node can be checked to confirm that it meets the deployment requirements; then the bare metal image cache can be configured to avoid performance problems caused by repeated downloads; then the bare metal service package matching the OpenStack version can be installed; then the system modules required for the bare metal service can be configured to ensure support for hardware device management; finally, the startup configuration of the bare metal service can be completed, including setting the log directory, temporary storage directory, etc. During the deployment process, the preset deployment process is used to ensure that the bare metal service can run stably.

[0134] In step 503 of some embodiments, the bare metal network configuration instructions are executed to realize the network interconnection between the bare metal node and the cloud platform. First, the network boot environment of the bare metal node can be configured, including configuring the DHCP server and deploying the PXE boot service; then the network parameters of the bare metal node can be set, including physical network card bond configuration, network segment planning, etc.; then the integration with the OpenStack network service (Neutron) can be configured to realize the management of the network resources of the bare metal node; finally, the network connectivity can be verified to ensure that the bare metal node can normally access the cloud platform network.

[0135] Through step 501 to step 503, the embodiment of the present application realizes the automatic deployment and configuration of the bare metal service. Compared with the open source version of OpenStack, this solution has the following advantages:

[0136] It realizes the automated deployment of bare metal services and reduces the deployment complexity. Through the preset deployment instructions and configuration templates, the installation and configuration process of bare metal services is simplified, avoiding the errors that may be caused by manual deployment. It also provides a complete network configuration mechanism. Through customized network configuration instructions, it supports flexible network architecture deployment, and can support both soft SDN and hard SDN scenarios to meet the network needs of different customers. At the same time, it enhances the management capabilities of bare metal resources. Through deep integration with the cloud platform, unified management of bare metal resources is achieved. Users can easily create and manage bare metal servers through the cloud platform portal, which improves resource management efficiency. This automated deployment method not only improves the deployment efficiency of bare metal services, but also ensures the deployment quality through standardized configuration processes, providing users with more reliable and easy-to-use bare metal service management capabilities.

[0137] See also Figure 6 In some embodiments, step 302 may include but is not limited to steps 601 to 606:

[0138] Step 601, parse the core service deployment script to obtain identity authentication service deployment instructions, image service deployment instructions, storage service deployment instructions, computing service deployment instructions and network service deployment instructions.

[0139] Step 602: Execute the identity authentication service deployment instruction to complete the deployment of the identity authentication service on the target host.

[0140] Step 603: execute the image service deployment instruction to complete the deployment of the image service on the target host.

[0141] Step 604: execute the storage service deployment instruction to complete the deployment of the storage service to the target host.

[0142] Step 605: execute the computing service deployment instruction to complete the deployment of the computing service on the target host.

[0143] Step 606, execute the network service deployment instruction to complete the deployment of the network service on the target host.

[0144] In step 601 of some embodiments, the core service deployment script is parsed to obtain specific deployment instructions for each core service component. Among them, the identity authentication service (Keystone) deployment instructions include authentication policies and service configuration parameters; the image service (Glance) deployment instructions include image storage and format configuration parameters; the storage service (Cinder) deployment instructions include storage backend and driver configuration parameters; the computing service (Nova) deployment instructions include virtualization configuration and resource management parameters; the network service (Neutron) deployment instructions include network type and isolation configuration parameters. During the parsing process, the configuration parameters can also be verified for legitimacy to ensure that subsequent deployment can be executed normally.

[0145] In step 602 of some embodiments, the identity authentication service deployment instruction is executed to complete the deployment of the identity authentication service on the target host. First, the Keystone service can be installed to provide unified identity authentication and access control for the cloud platform; then the authentication policy can be configured, including user management, role management and permission control; then the service catalog can be set to manage the access of various services of the cloud platform.

[0146] In step 603 of some embodiments, the image service deployment instruction is executed to complete the deployment of the image service on the target host. First, the Glance service can be installed to provide the cloud platform with virtual machine image management functions; then the image storage backend can be configured to support multiple storage methods; then the image format and conversion strategy can be set to ensure the compatibility of the image.

[0147] In step 604 of some embodiments, the storage service deployment instruction is executed to complete the deployment of the storage service on the target host. First, the Cinder service can be installed to provide block storage services for the cloud platform; then the storage backend driver can be configured to support different storage devices; then the storage policy can be set to achieve reasonable allocation of storage resources.

[0148] In step 605 of some embodiments, the computing service deployment instruction is executed to complete the deployment of the computing service on the target host. First, the Nova service can be installed to provide computing resource management functions for the cloud platform; then the virtualization environment can be configured, including CPU virtualization, memory management, etc.; then the computing resource scheduling strategy can be set to achieve efficient use of resources.

[0149] In step 606 of some embodiments, the network service deployment instruction is executed to complete the deployment of the network service on the target host. First, the Neutron service can be installed to provide network management functions for the cloud platform; then the network plug-in can be configured to support multiple network models; then the network isolation policy can be set to ensure the safe isolation of network resources.

[0150] Through step 601 to step 606, the embodiment of the present application realizes the automated deployment of core service components. This script-based deployment method not only ensures the orderly deployment of service components, but also optimizes service performance through reasonable configuration parameters, provides stable and reliable basic services for cloud platform users, and also improves the overall service quality and operation and maintenance efficiency of the cloud platform.

[0151] In step 303 of some embodiments, the cloud platform portal deployment script is executed to complete the deployment of the cloud platform portal component on the target host. First, the container cluster environment can be deployed according to the cloud portal configuration content to provide an operating environment for the cloud platform portal; then the configuration variables in the cloud portal service deployment file can be replaced, including variables such as namespace, image version, database connection, and portal domain name; then the portal data script can be executed according to the configured database address to complete the initialization of the cloud portal database; finally, the service command to start the portal can be traversed and executed to complete the deployment of the portal service. During the deployment process, the deployment status can be monitored in real time and the deployment log can be recorded to facilitate problem location and troubleshooting.

[0152] Through step 301 to step 303, the embodiment of the present application realizes the orderly deployment of each component of the cloud platform. This script-based automated deployment method not only improves the deployment efficiency, but also ensures that the dependencies between components are satisfied through the preset deployment sequence, and at the same time ensures the reliability of the deployment process through real-time monitoring and logging mechanisms.

[0153] See also Figure 7 In some embodiments, step 303 may include but is not limited to steps 701 to 704:

[0154] Step 701, parse the cloud platform portal deployment script to obtain container cluster deployment instructions, database deployment instructions, front-end service deployment instructions, and back-end service deployment instructions.

[0155] Step 702: Execute the container cluster deployment instruction to complete the deployment of the container cluster on the target host.

[0156] Step 703: execute the database deployment instruction to complete the deployment of the portal database on the target host.

[0157] Step 704, execute the front-end service deployment instruction to complete the deployment of the front-end service on the target host.

[0158] Among them, the cloud platform portal is the user interaction interface of the entire cloud platform, providing users with a unified cloud resource management entrance, including virtual machine management, storage management, network configuration, user authentication and other functions, enabling users to easily create, use and manage cloud resources.

[0159] In step 701 of some embodiments, the cloud platform portal deployment script is parsed to obtain specific deployment instructions required for portal deployment. First, the container cluster deployment instructions can be parsed, including k8s cluster configuration parameters; then the database deployment instructions can be parsed, including database connection and initialization parameters; then the front-end service deployment instructions can be parsed, including Web service configuration and routing parameters; finally, the back-end service deployment instructions can be parsed, including business logic and interface parameters. During the parsing process, the configuration parameters can be verified for legitimacy to ensure that subsequent deployment can be executed normally.

[0160] In step 702 of some embodiments, the container cluster deployment instruction is executed to complete the deployment of the container cluster on the target host. First, the k8s cluster environment can be deployed to provide a containerized operating environment for the cloud platform portal; then the cluster network can be configured to ensure normal communication between containers; then resource restrictions and scheduling policies can be set to achieve efficient operation of the container; finally, cluster monitoring and log collection can be configured to facilitate operation and maintenance management.

[0161] In step 703 of some embodiments, the database deployment instruction is executed to complete the deployment of the portal database on the target host. First, the database environment can be initialized according to the configured database address; then the database initialization script can be executed to create the required data tables and indexes; then the database connection parameters can be configured, including the connection pool, timeout settings, etc.; finally, the database backup strategy can be set to ensure data security.

[0162] In step 704 of some embodiments, the front-end service deployment instruction is executed to complete the deployment of the front-end service on the target host. First, the Web service component can be deployed to provide user interface access capabilities; then the front-end routing can be configured to achieve navigation between pages; then the static resource cache can be set to optimize access performance; finally, the security policy can be configured to prevent unauthorized access.

[0163] Through steps 701 to 704, the embodiment of the present application can improve the degree of automation of portal deployment, and reduce the complexity and error risk of manual operations through scripted deployment. At the same time, the performance of portal services is optimized, and the response speed and stability of the portal are improved through reasonable configuration parameters and resource allocation strategies. In addition, through containerized deployment and a unified monitoring mechanism, operation and maintenance management work is simplified and the maintainability of the system is enhanced.

[0164] See also Figure 8 In some embodiments, the cloud computing platform automatic deployment method provided by the present application may also include but is not limited to steps 801 to 802:

[0165] Step 801, in the process of executing the automated deployment script, the component deployment status is detected to obtain a deployment status detection result.

[0166] Step 802: In response to the deployment status detection result indicating that the deployment is abnormal, a preset rollback script is executed.

[0167] In step 801 of some embodiments, during the execution of the automated deployment script, the deployment status of the component can be detected in real time. First, the execution of the key steps in the component installation process can be monitored; then the effectiveness of the component configuration parameters can be checked; then the running status of the component service can be verified; and finally, whether the dependency relationship between components is normal can be detected. Through these detections, abnormal situations in the deployment process can be discovered in a timely manner.

[0168] In step 802 of some embodiments, when a deployment state abnormality is detected, a preset rollback script can be triggered for execution. First, a rollback strategy corresponding to the currently deployed component can be loaded; then the environment parameters required for the rollback can be prepared; and then it can be checked whether the rollback conditions are met. This rollback mechanism based on preset strategies can ensure that a controllable recovery operation can be performed when a deployment abnormality occurs.

[0169] The regression script execution specifically includes:

[0170] Stop the deployment operation of the currently deployed component. When a deployment exception is detected, the deployment task being executed is terminated first to prevent the error status from spreading further.

[0171] Record deployment progress information. Save the deployment status and configuration information of components, including completed configuration items, environmental parameters, and the location and cause of abnormalities. This information is crucial for subsequent fault analysis and recovery.

[0172] Restore component configuration to the state before deployment based on the saved configuration snapshot, including restoring modified configuration files, environment variables, and system parameters.

[0173] Delete temporary files generated during the deployment process to release occupied system resources and ensure a clean system environment.

[0174] Analyze the dependency chain of the current component, determine the scope of other components affected, and restart the affected services in reverse order of the dependencies to ensure normal operation of the services.

[0175] Check the running status of the component after rollback to ensure that the system is restored to a stable state.

[0176] Through the execution of step 801 to step 802, the reliability of the deployment process is effectively ensured through the real-time deployment status detection mechanism and the preset rollback strategy. When an abnormality is detected, the deployment operation can be terminated in time and a controllable rollback can be performed to avoid the further spread of the error state. At the same time, with the help of detailed deployment progress records and configuration information management, not only accurate deployment status tracking is achieved, but also reliable data support is provided for subsequent problem analysis and fault handling. In terms of fault handling, the preset rollback strategy and standardized recovery process significantly reduce the time and resource consumption required for fault recovery, ensuring that the system can quickly recover to the last stable state. In addition, the complete logging mechanism enhances the traceability of the deployment process, which helps the operation and maintenance team to make continuous optimization and improvement. This comprehensive exception handling mechanism not only improves the overall reliability of cloud platform deployment, but also minimizes the impact of deployment failures on business systems by ensuring data consistency and system stability, providing a strong guarantee for the smooth deployment and stable operation of the cloud platform.

[0177] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned cloud computing platform automatic deployment method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0178] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0179] The processor 901 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0180] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the cloud computing platform automatic deployment method of the embodiment of this application;

[0181] Input / output interface 903, used to implement information input and output;

[0182] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0183] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0184] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0185] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned cloud computing platform automatic deployment method is implemented.

[0186] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0187] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0188] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0189] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0190] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0191] It should be understood that in the present application, "at least one (item)" and "several" refer to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0192] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0193] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0194] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0195] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0196] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for automatic deployment of a cloud computing platform, characterized in that: The method comprises: Obtain the deployment host information corresponding to the deployment host, the target host information corresponding to the target host, and the component configuration information; Fill in a preset deployment environment detection instruction template according to the deployment host information and the target host information to generate a deployment environment detection script; Performing environment detection on the deployment host and the target host based on the deployment environment detection script to obtain a deployment environment detection result; In response to the environmental detection result indicating that the deployment host and the target host meet the preset deployment conditions, fill in the preset component deployment instruction template according to the component configuration information to generate an automated deployment script; The automated deployment script is executed to enable the deployment host to deploy the target cloud computing platform on the target host.

2. The method for automatic deployment of a cloud computing platform according to claim 1, characterized in that: The deployment environment detection script includes an operating system detection script, a compilation environment detection script, and a password-free connection detection script. The deployment environment detection is performed on the deployment host and the target host based on the deployment environment detection script to obtain a deployment environment detection result, including: Execute the operating system detection script to detect the operating systems of the deployment host and the target host, and obtain the operating system detection result; Execute the compilation environment detection script to detect the compilation environment of the deployment host and the target host, and obtain the compilation environment detection result; Execute the password-free connection detection script to verify the password-free connection function between the deployment host and the target host, and obtain a password-free connection detection result; The deployment environment detection result is obtained according to the operating system detection result, the compilation environment detection result and the password-free detection result.

3. The method for automatic deployment of a cloud computing platform according to claim 1, characterized in that: The automated deployment script includes an infrastructure deployment script, a core service deployment script, and a cloud platform portal deployment script. The executing the automated deployment script includes: Executing the infrastructure deployment script to deploy infrastructure components on the target host; Execute the core service deployment script to deploy the core service components on the target host; Execute the cloud platform portal deployment script to deploy the cloud platform portal components on the target host.

4. The method for automatic deployment of a cloud computing platform according to claim 3, characterized in that: The executing the core service deployment script to deploy the core service components on the target host also includes: Parsing the core service deployment script to obtain bare metal service deployment instructions and bare metal network configuration instructions; Execute the bare metal service deployment instruction to complete the deployment of the bare metal service on the target host; Execute the bare metal network configuration instruction to achieve network interconnection between the bare metal node and the target cloud platform.

5. The method for automatic deployment of a cloud computing platform according to claim 3, characterized in that: The executing the infrastructure deployment script to deploy infrastructure components on the target host includes: Parsing the infrastructure deployment script to obtain DNS resolver deployment instructions, load balancing deployment instructions, database cluster deployment instructions, message queue deployment instructions, and cache service deployment instructions; Execute the DNS resolver deployment instruction to complete the deployment of the DNS resolution service for the target host; Execute the load balancing deployment instruction to complete the deployment of the load balancing service for the target host; Execute the database cluster deployment instruction to complete the deployment of the database cluster on the target host; Execute the message queue deployment instruction to complete the deployment of the message queue cluster on the target host; The cache service deployment instruction is executed to complete the deployment of the cache service on the target host.

6. The method for automatic deployment of a cloud computing platform according to claim 3, characterized in that: The executing the core service deployment script to deploy the core service components on the target host includes: Parsing the core service deployment script to obtain identity authentication service deployment instructions, image service deployment instructions, storage service deployment instructions, computing service deployment instructions, and network service deployment instructions; Execute the identity authentication service deployment instruction to complete the deployment of the identity authentication service on the target host; Execute the image service deployment instruction to complete the deployment of the image service on the target host; Execute the storage service deployment instruction to complete the deployment of the storage service on the target host; Execute the computing service deployment instruction to complete the deployment of the computing service on the target host; The network service deployment instruction is executed to complete the deployment of the network service on the target host.

7. The method for automatic deployment of a cloud computing platform according to claim 3, characterized in that: The executing the cloud platform portal deployment script to deploy the cloud platform portal component on the target host includes: Parsing the cloud platform portal deployment script to obtain container cluster deployment instructions, database deployment instructions, front-end service deployment instructions, and back-end service deployment instructions; Execute the container cluster deployment instruction to complete the deployment of the container cluster on the target host; Execute the database deployment instruction to complete the deployment of the portal database on the target host; The front-end service deployment instruction is executed to complete the deployment of the front-end service on the target host.

8. The method for automatic deployment of a cloud computing platform according to claim 1, characterized in that: The method further comprises: In the process of executing the automated deployment script, detecting the component deployment status and obtaining a deployment status detection result; In response to the deployment status detection result indicating that the deployment is abnormal, a preset rollback script is executed.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the cloud computing platform automatic deployment method according to any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for automatic deployment of a cloud computing platform according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Automatic deployment method, system and tool of robot control system and medium

    CN120085894A

  • An Automatic Deployment Method, System, Tool and Medium for a Robot Control System

    CN120085894B

  • Control method of computing power unit management service and electronic equipment

    CN122120127A