[go: up one dir, main page]

CN106648771B - An Openstack cloud platform custom deployment system and deployment method - Google Patents

An Openstack cloud platform custom deployment system and deployment method Download PDF

Info

Publication number
CN106648771B
CN106648771B CN201611140276.5A CN201611140276A CN106648771B CN 106648771 B CN106648771 B CN 106648771B CN 201611140276 A CN201611140276 A CN 201611140276A CN 106648771 B CN106648771 B CN 106648771B
Authority
CN
China
Prior art keywords
cloud platform
openstack
installation
unit
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201611140276.5A
Other languages
Chinese (zh)
Other versions
CN106648771A (en
Inventor
喻明飞
田松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN FIBERHOME INTERGRATION TECHNOLOGIES Co Ltd
Original Assignee
WUHAN FIBERHOME INTERGRATION TECHNOLOGIES Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUHAN FIBERHOME INTERGRATION TECHNOLOGIES Co Ltd filed Critical WUHAN FIBERHOME INTERGRATION TECHNOLOGIES Co Ltd
Priority to CN201611140276.5A priority Critical patent/CN106648771B/en
Publication of CN106648771A publication Critical patent/CN106648771A/en
Application granted granted Critical
Publication of CN106648771B publication Critical patent/CN106648771B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种Openstack云平台自定义部署系统,涉及Openstack云平台技术领域,包括组件安装执行模块,用于创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;控制模块,用于获取用户指定的Openstack云平台部署模式;根据用户指定的Openstack云平台部署模式设置安装模式,通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点上需要安装的Openstack组件的协作安装;配置模板分发模块,用于将各Openstack组件的配置模板发送到各云平台节点上。本发明可根据用户需求设置Openstack云平台部署结构。本发明还公开了一种Openstack云平台自定义部署方法。

Figure 201611140276

The invention discloses a custom deployment system for an Openstack cloud platform, which relates to the technical field of the Openstack cloud platform. It is an independent function; the control module is used to obtain the deployment mode of the Openstack cloud platform specified by the user; the installation mode is set according to the deployment mode of the Openstack cloud platform specified by the user, and the installation execution module of the control component is executed by multiple execution units through the set installation mode. Collaborative installation of Openstack components that need to be installed on each cloud platform node; a configuration template distribution module for sending the configuration templates of each Openstack component to each cloud platform node. The present invention can set the deployment structure of the Openstack cloud platform according to user requirements. The invention also discloses a self-defined deployment method of the Openstack cloud platform.

Figure 201611140276

Description

一种Openstack云平台自定义部署系统及部署方法An Openstack cloud platform custom deployment system and deployment method

技术领域technical field

本发明涉及Openstack云平台技术领域,具体涉及一种Openstack云平台自定义部署系统及部署方法。The invention relates to the technical field of Openstack cloud platforms, in particular to an Openstack cloud platform custom deployment system and deployment method.

背景技术Background technique

随着云技术方案的成熟,Openstack组件的模块化极大提高了云技术的灵活性,Openstack云平台也越来越广泛应用到各种领域。而目前市场上拥有的Openstack云平台基本上都是需要按照固有的方案部署,在企业云计算转型时,由于只能采用固有的Openstack云平台部署方案,基本无法利用现有的设备资源,而需购买大量的新机器才能够完成云平台的部署,造成对现有设备资源极大浪费。With the maturity of cloud technology solutions, the modularization of Openstack components greatly improves the flexibility of cloud technology, and the Openstack cloud platform is more and more widely used in various fields. However, the Openstack cloud platforms currently on the market basically need to be deployed in accordance with the inherent scheme. During the transformation of enterprise cloud computing, since only the inherent Openstack cloud platform deployment scheme can be used, the existing equipment resources cannot be basically used, and the need for The deployment of the cloud platform can only be completed by purchasing a large number of new machines, resulting in a great waste of existing equipment resources.

因此,亟需一种适用于根据用户自定义的部署方案进行Openstack云平台部署的技术方案。Therefore, there is an urgent need for a technical solution suitable for deploying the Openstack cloud platform according to a user-defined deployment solution.

发明内容SUMMARY OF THE INVENTION

针对现有技术中存在的缺陷,本发明的目的在于提供一种Openstack云平台自定义部署系统及部署方法,根据用户需求设置Openstack云平台部署结构。In view of the defects existing in the prior art, the purpose of the present invention is to provide an Openstack cloud platform custom deployment system and a deployment method, and to set the Openstack cloud platform deployment structure according to user requirements.

为达到以上目的,本发明采取的技术方案是:一种Openstack云平台自定义部署系统,所述Openstack云平台包括多个Openstack组件,包括:In order to achieve the above purpose, the technical solution adopted in the present invention is: a self-defined deployment system of an Openstack cloud platform, wherein the Openstack cloud platform includes a plurality of Openstack components, including:

组件安装执行模块,用于创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;多个执行单元共同实现各Openstack组件的协作安装;The component installation execution module is used to create a plurality of independent execution units, each execution unit is used to execute an independent function in the independent installation of each Openstack component; the plurality of execution units jointly realize the cooperative installation of each Openstack component;

控制模块,用于获取用户指定的Openstack云平台部署模式;根据用户指定的Openstack云平台部署模式设置安装模式,所述安装模式包括待安装的Openstack云平台的结构和各云平台节点需要安装的组件;通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点上需要安装的Openstack组件的协作安装;The control module is used to obtain the Openstack cloud platform deployment mode specified by the user; the installation mode is set according to the Openstack cloud platform deployment mode specified by the user, and the installation mode includes the structure of the Openstack cloud platform to be installed and the components that each cloud platform node needs to install ; Control the component installation execution module through the set installation mode and use multiple execution units to execute the collaborative installation of the Openstack components that need to be installed on each cloud platform node;

配置模板分发模块,用于将各Openstack组件的配置模板发送到Openstack云平台的各云平台节点上。The configuration template distribution module is used to send the configuration templates of each Openstack component to each cloud platform node of the Openstack cloud platform.

在上述技术方案的基础上,所述Openstack云平台自定义部署系统还包括用户接口定义模块,用于根据用户指定的Openstack云平台部署模式添加和部署Openstack云平台的用户接口。Based on the above technical solutions, the Openstack cloud platform custom deployment system further includes a user interface definition module for adding and deploying the user interface of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user.

在上述技术方案的基础上,所述用户接口定义模块包括:On the basis of the above technical solution, the user interface definition module includes:

用户接口单元,用于添加和部署Openstack云平台的用户接口;User interface unit for adding and deploying the user interface of the Openstack cloud platform;

平台数据收集单元,用于收集Openstack云平台数据;The platform data collection unit is used to collect Openstack cloud platform data;

平台数据管理单元,用于使用统一格式管理Openstack云平台数据。Platform data management unit for managing Openstack cloud platform data using a unified format.

在上述技术方案的基础上,创建多个独立的执行单元通过Ansible Playbook的role模块实现。On the basis of the above technical solutions, the creation of multiple independent execution units is implemented through the role module of Ansible Playbook.

在上述技术方案的基础上,所述执行单元包括数据库建立单元,Keystone安装单元和组件独立安装单元,其中:On the basis of the above technical solution, the execution unit includes a database establishment unit, a Keystone installation unit and an independent component installation unit, wherein:

数据库建立单元用于执行Openstack云平台Mysql数据库集群的建立;The database establishment unit is used to execute the establishment of the Mysql database cluster of the Openstack cloud platform;

Keystone安装单元用于执行Openstack云平台的keystone模块的安装与配置;The Keystone installation unit is used to perform the installation and configuration of the keystone module of the Openstack cloud platform;

组件独立安装单元用于执行各Openstack组件的独立安装。The component independent installation unit is used to perform independent installation of each Openstack component.

在上述技术方案的基础上,所述配置模板分发模块包括:On the basis of the above technical solution, the configuration template distribution module includes:

模板存储单元,用于创建一个仓库,所述仓库用于存储各Openstack组件的配置模板;A template storage unit, used to create a warehouse, the warehouse is used to store the configuration templates of each Openstack component;

翻译转发单元,用于将仓库中各Openstack组件的配置模板翻译成对应的配置信息并发送至各云平台节点上。The translation forwarding unit is used to translate the configuration template of each Openstack component in the warehouse into corresponding configuration information and send it to each cloud platform node.

在上述技术方案的基础上,将仓库中各Openstack组件的配置模板翻译成对应的配置信息通过playbook中的template模块实现。On the basis of the above technical solution, the configuration template of each Openstack component in the warehouse is translated into corresponding configuration information through the template module in the playbook.

本发明还公开了一种Openstack云平台自定义部署系统的部署方法,组件安装执行模块创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;然后控制模块根据用户指定的Openstack云平台部署模式设置待安装的Openstack云平台的安装模式,所述安装模式包括Openstack云平台的结构和各云平台节点需要安装的组件;配置模板分发模块根据控制模块设置的安装模式将各Openstack组件的配置模板发送到Openstack云平台各云平台节点上;最后控制模块通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点上需要安装的Openstack组件的协作安装。The invention also discloses a deployment method for a custom deployment system of an Openstack cloud platform. The component installation execution module creates a plurality of independent execution units, and each execution unit is used to execute an independent function in the independent installation of each Openstack component; then The control module sets the installation mode of the Openstack cloud platform to be installed according to the Openstack cloud platform deployment mode specified by the user, and the installation mode includes the structure of the Openstack cloud platform and the components that each cloud platform node needs to install; the configuration template distribution module is set according to the control module. The installation mode sends the configuration template of each Openstack component to each cloud platform node of the Openstack cloud platform; finally, the control module controls the component installation execution module through the set installation mode and uses multiple execution units to execute the Openstack components that need to be installed on each cloud platform node collaborative installation.

组件安装执行模块使用多个执行单元执行各云平台节点需要安装的Openstack组件的独立安装之后,用户接口定义模块根据用户指定的Openstack云平台部署模式添加和部署Openstack云平台的用户接口。After the component installation execution module uses multiple execution units to perform independent installation of the Openstack components that need to be installed on each cloud platform node, the user interface definition module adds and deploys the user interface of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user.

在上述技术方案的基础上,包括以下步骤:On the basis of the above technical solution, the following steps are included:

S1,组件安装执行模块创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;S1, the component installation execution module creates a plurality of independent execution units, and each execution unit is used to execute an independent function in the independent installation of each Openstack component;

S2,控制模块获取用户指定的Openstack云平台部署模式;S2, the control module obtains the Openstack cloud platform deployment mode specified by the user;

S3,控制模块根据用户指定的Openstack云平台部署模式设置Openstack云平台的安装模式,所述安装模式包括待安装的Openstack云平台的结构和各云平台节点需要安装的Openstack组件;S3, the control module sets the installation mode of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user, and the installation mode includes the structure of the Openstack cloud platform to be installed and the Openstack components that each cloud platform node needs to install;

S4,配置模板分发模块根据控制模块设置的安装模式将各Openstack组件的配置模板发送到各云平台节点上;S4, the configuration template distribution module sends the configuration templates of each Openstack component to each cloud platform node according to the installation mode set by the control module;

S5,控制模块通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点需要安装的Openstack组件的协作安装;S5, the control module controls the component installation execution module through the set installation mode and uses multiple execution units to execute the collaborative installation of the Openstack components that need to be installed by each cloud platform node;

S6,用户接口定义模块根据用户指定的Openstack云平台部署模式添加和部署Openstack云平台的用户接口。S6, the user interface definition module adds and deploys the user interface of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user.

与现有技术相比,本发明的优点在于:Compared with the prior art, the advantages of the present invention are:

本发明先创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;根据用户指定的Openstack云平台部署模式设置待安装的Openstack云平台的安装模式,再通过设置的安装模式控制多个执行单元执行各云平台节点上需要安装的Openstack组件的独立安装,实现根据用户需求设置Openstack云平台部署结构,可以根据企业需求灵活制定方案并且可以极大利用现有服务器。The present invention first creates a plurality of independent execution units, each execution unit is used to execute an independent function in the independent installation of each Openstack component; the installation mode of the Openstack cloud platform to be installed is set according to the Openstack cloud platform deployment mode specified by the user, Then, through the set installation mode, multiple execution units are controlled to perform the independent installation of the Openstack components that need to be installed on each cloud platform node, so as to set the Openstack cloud platform deployment structure according to user needs, flexibly formulate solutions according to enterprise needs, and can make great use of existing There are servers.

附图说明Description of drawings

图1为本发明实施例中Openstack云平台自定义部署系统的结构示意图;1 is a schematic structural diagram of an Openstack cloud platform custom deployment system in an embodiment of the present invention;

图2为本发明实施例中Openstack云平台自定义部署方法的流程示意图。FIG. 2 is a schematic flowchart of a custom deployment method for an Openstack cloud platform in an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图及实施例对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

参见图1所示,本发明实施例提供一种Openstack云平台自定义部署系统,Openstack云平台包括多个Openstack组件,包括:Referring to FIG. 1, an embodiment of the present invention provides an Openstack cloud platform custom deployment system, and the Openstack cloud platform includes a plurality of Openstack components, including:

组件安装执行模块,用于创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能,多个执行单元共同实现各Openstack组件的独立安装。创建多个独立的执行单元通过Ansible Playbook的role模块实现。创建多个独立的执行单元还可通过puppet,saltstack等集群管理工具实现。The component installation execution module is used to create a plurality of independent execution units, each execution unit is used to execute an independent function in the independent installation of each Openstack component, and the plurality of execution units jointly realize the independent installation of each Openstack component. Creating multiple independent execution units is achieved through the role module of Ansible Playbook. Creating multiple independent execution units can also be achieved through cluster management tools such as puppet and saltstack.

控制模块,用于获取用户指定的Openstack云平台部署模式;根据用户指定的Openstack云平台部署模式设置安装模式,安装模式包括待安装的Openstack云平台的结构和各云平台节点需要安装的组件;通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点上需要安装的Openstack组件的协作安装。The control module is used to obtain the Openstack cloud platform deployment mode specified by the user; the installation mode is set according to the Openstack cloud platform deployment mode specified by the user, and the installation mode includes the structure of the Openstack cloud platform to be installed and the components that need to be installed on each cloud platform node; The set installation mode controls the component installation execution module to execute the collaborative installation of the Openstack components that need to be installed on each cloud platform node by using multiple execution units.

例如:E.g:

1)获取用户选择的Openstack云平台部署模式,配置模式文件,用户选择合适的配置文件:3_node.cfg;7_node.cfg。用户选择合适的模式安装:#python deploy.py-m mode。1) Obtain the Openstack cloud platform deployment mode and configuration mode file selected by the user, and the user selects the appropriate configuration file: 3_node.cfg; 7_node.cfg. The user chooses the appropriate mode to install: #python deploy.py-m mode.

2)控制模块将用户的输入信息整理待安装的Openstack云平台的结构:2) The control module organizes the user's input information into the structure of the Openstack cloud platform to be installed:

init_3_ctl(render_only=False)init_3_ctl(render_only=False)

3控制节点模块,采用默认网络模式,即vxlan。3 Control the node module, using the default network mode, namely vxlan.

init_7_ctl(render_only=False,mode=vlan)init_7_ctl(render_only=False,mode=vlan)

7控制节点模块,采用vlan网络模式。7. Control node module, adopt vlan network mode.

init_7_ctl(render_only=False,mode=vxlan)init_7_ctl(render_only=False,mode=vxlan)

7控制节点模块,采用vxlan网络模式。7 Control node module, adopt vxlan network mode.

init_add_ctl(render_only=False)init_add_ctl(render_only=False)

添加控制节点到运行中的平台中。Add a control node to a running platform.

init_add_ceph(render_only=False)init_add_ceph(render_only=False)

添加存储节点到运行中的平台中。Add storage nodes to a running platform.

3)控制模块将各云平台节点需要安装的组件、需要执行的命令封装起来并发送至各云平台节点上。通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点上需要安装的Openstack组件的协作安装。3) The control module encapsulates the components that need to be installed on each cloud platform node and the commands that need to be executed, and sends them to each cloud platform node. Through the set installation mode, the component installation execution module uses multiple execution units to execute the collaborative installation of the Openstack components that need to be installed on each cloud platform node.

配置模板分发模块,用于将各Openstack组件的配置模板发送到各云平台节点上。配置模板为playbook中设置的Openstack组件的配置,配置模板分发模块将各Openstack组件的配置模板发送到各云平台节点后,各云平台节点上Openstack组件均采用配置模板中设置的组件的配置。The configuration template distribution module is used to send the configuration templates of each Openstack component to each cloud platform node. The configuration template is the configuration of the Openstack component set in the playbook. After the configuration template distribution module sends the configuration template of each Openstack component to each cloud platform node, the Openstack components on each cloud platform node use the configuration of the components set in the configuration template.

Openstack云平台自定义部署系统还包括用户接口定义模块,用于根据用户指定的Openstack云平台部署模式添加和部署Openstack云平台的用户接口。The Openstack cloud platform custom deployment system further includes a user interface definition module for adding and deploying a user interface of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user.

本发明先创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;根据用户指定的Openstack云平台部署模式设置待安装的Openstack云平台的安装模式,再通过设置的安装模式控制多个执行单元执行各云平台节点上需要安装的Openstack组件的独立安装,实现根据用户需求设置Openstack云平台部署结构,可以根据企业需求灵活制定方案并且可以极大利用现有服务器。The present invention first creates a plurality of independent execution units, each execution unit is used to execute an independent function in the independent installation of each Openstack component; the installation mode of the Openstack cloud platform to be installed is set according to the Openstack cloud platform deployment mode specified by the user, Then, through the set installation mode, multiple execution units are controlled to perform the independent installation of the Openstack components that need to be installed on each cloud platform node, so as to set the Openstack cloud platform deployment structure according to user needs, flexibly formulate solutions according to enterprise needs, and can make great use of existing There are servers.

用户接口定义模块包括:User interface definition modules include:

用户接口单元,用于添加和部署Openstack云平台的用户接口;例如,deploy_ceph.py:部署ceph用户接口模块。User interface unit for adding and deploying the user interface of the Openstack cloud platform; for example, deploy_ceph.py: deploys the ceph user interface module.

deploy_openstack.py:部署Openstack用户接口模块。deploy_openstack.py: Deploys the Openstack user interface module.

new_ceph_node.py:添加ceph节点用户接口模块。new_ceph_node.py: Add the ceph node user interface module.

new_openstack_node.py:添加openstack组件用户接口模块。new_openstack_node.py: Add openstack component user interface module.

平台数据收集单元,用于收集Openstack云平台数据;例如,Platform data collection unit for collecting Openstack cloud platform data; for example,

utils_ceph.py:收集存储资料信息。utils_ceph.py: Collect storage data information.

utils_openstack.py:收集openstack组件信息。utils_openstack.py: collects openstack component information.

平台数据管理单元,用于使用统一格式管理Openstack云平台数据。例如,admin_db.yml:使用Yaml格式统一管理数据资料。admin_yml.py:yaml文件读写模块。Platform data management unit for managing Openstack cloud platform data using a unified format. For example, admin_db.yml: use Yaml format to manage data in a unified manner. admin_yml.py: yaml file read and write module.

执行单元包括数据库建立单元,Keystone安装单元和组件独立安装单元,其中:The execution unit includes the database establishment unit, the Keystone installation unit and the component independent installation unit, among which:

数据库建立单元用于执行Openstack云平台Mysql数据库集群的建立;实现数据库的集群自动化部署,只负责建立起一个可以正常工作的Mysql数据库集群,而不需要考虑Openstack组件如何使用。The database establishment unit is used to execute the establishment of the Mysql database cluster of the Openstack cloud platform; to realize the automatic deployment of the database cluster, it is only responsible for establishing a working Mysql database cluster, and does not need to consider how the Openstack components are used.

Keystone安装单元用于执行Openstack云平台的Keystone模块的安装与配置。保证能够使用Openstack客户端登录和访问。The Keystone installation unit is used to perform the installation and configuration of the Keystone module of the Openstack cloud platform. Guaranteed to be able to log in and access using the Openstack client.

组件独立安装单元用于执行各Openstack组件的独立安装。包括Glance/Cinder/Nova/Neutron,保证服务正常启动。The component independent installation unit is used to perform independent installation of each Openstack component. Including Glance/Cinder/Nova/Neutron, to ensure that the service starts normally.

配置模板分发模块包括:The configuration template distribution module includes:

模板存储单元,用于创建一个仓库,仓库用于存储各Openstack组件的配置模板;仓库为Playbook中的configuration仓库。The template storage unit is used to create a warehouse, and the warehouse is used to store the configuration templates of each Openstack component; the warehouse is the configuration warehouse in the Playbook.

翻译转发单元,用于将仓库中各Openstack组件的配置模板翻译成对应的配置信息并发送至各云平台节点上。The translation forwarding unit is used to translate the configuration template of each Openstack component in the warehouse into corresponding configuration information and send it to each cloud platform node.

将仓库中各Openstack组件的配置模板翻译成对应的配置信息通过Playbook中的template模块实现。template模块将configuration仓库中的jiaja2模板翻译成需要的配置信息,比如用户输入的磁盘信息,地址信息等等,可以在template拷贝模板到目标机器的过程中自动替换预先设计好的参数信息,达到每台机器独立配置信息的目的。The configuration template of each Openstack component in the warehouse is translated into the corresponding configuration information through the template module in the Playbook. The template module translates the jiaja2 template in the configuration repository into the required configuration information, such as disk information, address information entered by the user, etc., and can automatically replace the pre-designed parameter information in the process of copying the template from the template to the target machine. The purpose of independent configuration information for each machine.

参见图2所示,本发明还公开了一种Openstack云平台自定义部署系统的部署方法,包括:组件安装执行模块创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;然后控制模块根据用户指定的Openstack云平台部署模式设置安装模式,安装模式包括Openstack云平台的结构和各云平台节点需要安装的组件;配置模板分发模块根据控制模块设置的安装模式将各Openstack组件的配置模板发送到Openstack云平台的各云平台节点上;最后控制模块通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点上需要安装的Openstack组件的协作安装。Referring to FIG. 2 , the present invention also discloses a deployment method of the Openstack cloud platform custom deployment system, including: the component installation execution module creates a plurality of independent execution units, and each execution unit is used to execute the independent installation of each Openstack component An independent function in ; then the control module sets the installation mode according to the Openstack cloud platform deployment mode specified by the user, the installation mode includes the structure of the Openstack cloud platform and the components that need to be installed on each cloud platform node; the configuration template distribution module is set according to the control module. The installation mode sends the configuration templates of each Openstack component to each cloud platform node of the Openstack cloud platform; finally, the control module controls the component installation execution module through the set installation mode and uses multiple execution units to execute the Openstack components that need to be installed on each cloud platform node collaborative installation.

组件安装执行模块使用多个执行单元执行各云平台节点需要安装的Openstack组件的独立安装之后,用户接口定义模块根据用户指定的Openstack云平台部署模式添加和部署Openstack云平台的用户接口。After the component installation execution module uses multiple execution units to perform independent installation of the Openstack components that need to be installed on each cloud platform node, the user interface definition module adds and deploys the user interface of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user.

包括以下步骤:Include the following steps:

S1,组件安装执行模块创建多个独立的执行单元,每个执行单元用于执行各Openstack组件独立安装中的一项独立功能;S1, the component installation execution module creates a plurality of independent execution units, and each execution unit is used to execute an independent function in the independent installation of each Openstack component;

S2,控制模块获取用户指定的Openstack云平台部署模式;S2, the control module obtains the Openstack cloud platform deployment mode specified by the user;

S3,控制模块根据用户指定的Openstack云平台部署模式设置Openstack云平台的安装模式,安装模式包括待安装的Openstack云平台的结构和各云平台节点需要安装的Openstack组件;S3, the control module sets the installation mode of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user, and the installation mode includes the structure of the Openstack cloud platform to be installed and the Openstack components that need to be installed on each cloud platform node;

S4,配置模板分发模块根据控制模块设置的安装模式将各Openstack组件的配置模板发送到各云平台节点上;S4, the configuration template distribution module sends the configuration templates of each Openstack component to each cloud platform node according to the installation mode set by the control module;

S5,控制模块通过设置的安装模式控制组件安装执行模块使用多个执行单元执行各云平台节点需要安装的Openstack组件的协作安装;S5, the control module controls the component installation execution module through the set installation mode and uses multiple execution units to execute the collaborative installation of the Openstack components that need to be installed by each cloud platform node;

S6,用户接口定义模块根据用户指定的Openstack云平台部署模式添加和部署Openstack云平台的用户接口。S6, the user interface definition module adds and deploys the user interface of the Openstack cloud platform according to the Openstack cloud platform deployment mode specified by the user.

本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。The present invention is not limited to the above-mentioned embodiments. For those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection of the present invention. within the range. Contents not described in detail in this specification belong to the prior art known to those skilled in the art.

Claims (7)

1. An Openstack cloud platform custom deployment system, the Openstack cloud platform including a plurality of Openstack components, comprising:
the component installation execution module is used for creating a plurality of independent execution units, and each execution unit is used for executing an independent function in the independent installation of each Openstack component; the multiple execution units jointly realize the cooperative installation of each Openstack component;
the control module is used for acquiring an Openstack cloud platform deployment mode specified by a user; setting an installation mode according to an Openstack cloud platform deployment mode specified by a user, wherein the installation mode comprises a structure of an Openstack cloud platform to be installed and components required to be installed by each cloud platform node; controlling an assembly installation execution module to use a plurality of execution units to execute the cooperative installation of Openstack assemblies required to be installed on each cloud platform node through a set installation mode;
the configuration template distribution module is used for sending the configuration templates of the Openstack components to the cloud platform nodes of the Openstack cloud platform;
the execution unit comprises a database establishing unit, a Keystone installation unit and an assembly independent installation unit, wherein:
the database establishing unit is used for establishing an Openstack cloud platform Mysql database cluster;
the Keystone installation unit is used for executing installation and configuration of a Keystone module of the Openstack cloud platform;
the component independent installation unit is used for executing independent installation of each Openstack component;
the Openstack cloud platform custom deployment system further comprises a user interface definition module, and the user interface definition module is used for adding and deploying a user interface of the Openstack cloud platform according to an Openstack cloud platform deployment mode specified by a user.
2. The Openstack cloud platform custom deployment system of claim 1, wherein: the user interface definition module includes:
the system comprises a user interface unit, a configuration unit and a configuration unit, wherein the user interface unit is used for adding and deploying a user interface of an Openstack cloud platform;
the platform data collection unit is used for collecting Openstack cloud platform data;
and the platform data management unit is used for managing Openstack cloud platform data by using a uniform format.
3. The Openstack cloud platform custom deployment system of claim 1, wherein: the creation of multiple independent execution units is realized by the role module of the infrastructure Playbook.
4. The Openstack cloud platform custom deployment system of claim 1, wherein: the configuration template distribution module comprises:
the template storage unit is used for creating a warehouse, and the warehouse is used for storing the configuration templates of the Openstack components;
and the translation forwarding unit is used for translating the configuration templates of the Openstack components in the warehouse into corresponding configuration information and sending the configuration information to the cloud platform nodes.
5. The Openstack cloud platform custom deployment system of claim 4, wherein: and translating the configuration template of each Openstack component in the warehouse into corresponding configuration information through a template module in the playbook.
6. An Openstack cloud platform custom deployment method is characterized by comprising the following steps: the component installation execution module creates a plurality of independent execution units, and each execution unit is used for executing an independent function in the independent installation of each Openstack component; then the control module sets an installation mode of an Openstack cloud platform to be installed according to an Openstack cloud platform deployment mode specified by a user, wherein the installation mode comprises the structure of the Openstack cloud platform and components required to be installed by each cloud platform node; the configuration template distribution module sends the configuration templates of the Openstack components to the cloud platform nodes of the Openstack cloud platform according to the installation mode set by the control module; finally, the control module controls the component installation execution module to use a plurality of execution units to execute the cooperative installation of Openstack components needing to be installed on each cloud platform node through the set installation mode;
the user interface definition module adds and deploys a user interface of the Openstack cloud platform according to an Openstack cloud platform deployment mode specified by a user;
the execution unit comprises a database establishing unit, a Keystone installation unit and an assembly independent installation unit:
the database establishing unit is used for establishing an Openstack cloud platform Mysql database cluster;
the Keystone installation unit is used for executing installation and configuration of a Keystone module of the Openstack cloud platform;
the component independent installation unit is used for executing independent installation of each Openstack component.
7. The Openstack cloud platform custom deployment method of claim 6, comprising the steps of:
s1, the component installation execution module creates a plurality of independent execution units, and each execution unit is used for executing an independent function in the independent installation of each Openstack component;
s2, the control module obtains an Openstack cloud platform deployment mode specified by a user;
s3, the control module sets an installation mode of the Openstack cloud platform according to an Openstack cloud platform deployment mode specified by a user, wherein the installation mode comprises a structure of the Openstack cloud platform to be installed and Openstack components required to be installed by each cloud platform node;
s4, the configuration template distribution module sends the configuration templates of the Openstack components to the cloud platform nodes according to the installation mode set by the control module;
s5, the control module controls the component installation execution module to use a plurality of execution units to execute the cooperative installation of Openstack components required to be installed by each cloud platform node through the set installation mode;
and S6, adding and deploying the user interface of the Openstack cloud platform by the user interface definition module according to the Openstack cloud platform deployment mode specified by the user.
CN201611140276.5A 2016-12-12 2016-12-12 An Openstack cloud platform custom deployment system and deployment method Expired - Fee Related CN106648771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611140276.5A CN106648771B (en) 2016-12-12 2016-12-12 An Openstack cloud platform custom deployment system and deployment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611140276.5A CN106648771B (en) 2016-12-12 2016-12-12 An Openstack cloud platform custom deployment system and deployment method

Publications (2)

Publication Number Publication Date
CN106648771A CN106648771A (en) 2017-05-10
CN106648771B true CN106648771B (en) 2020-02-21

Family

ID=58824353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611140276.5A Expired - Fee Related CN106648771B (en) 2016-12-12 2016-12-12 An Openstack cloud platform custom deployment system and deployment method

Country Status (1)

Country Link
CN (1) CN106648771B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795420A (en) * 2019-10-30 2020-02-14 浪潮云信息技术有限公司 Automatic MySQL database backup method based on infrastructure
CN111258719A (en) * 2020-01-19 2020-06-09 山东汇贸电子口岸有限公司 Method and system for rapidly deploying multi-node Ceph cluster under single-machine KVM virtualization
CN113708971A (en) * 2021-08-30 2021-11-26 济南浪潮数据技术有限公司 Openstack cloud platform deployment method and related device
CN116049136B (en) * 2022-12-21 2023-07-28 广东天耘科技有限公司 Cloud computing platform-based MySQL cluster deployment method and system
CN116208498A (en) * 2023-05-04 2023-06-02 苏州浪潮智能科技有限公司 A method, device, equipment and medium for differential configuration of OpenStack cloud platform nodes

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9363190B2 (en) * 2013-07-31 2016-06-07 Manjrasoft Pty. Ltd. System, method and computer program product for energy-efficient and service level agreement (SLA)-based management of data centers for cloud computing
CN104796469B (en) * 2015-04-15 2018-04-03 北京中油瑞飞信息技术有限责任公司 The collocation method and device of cloud computing platform
CN104967664A (en) * 2015-05-13 2015-10-07 西安三星电子研究有限公司 Cloud automated deployment system and method
CN105227344B (en) * 2015-08-21 2019-03-22 烽火通信科技股份有限公司 Software defined network simulation system and method based on OpenStack
CN105426208A (en) * 2015-11-16 2016-03-23 山东超越数控电子有限公司 OpenStack offline automatic installation method of cloud computing system
CN105607903A (en) * 2015-12-15 2016-05-25 国云科技股份有限公司 A method of deploying openstack components

Also Published As

Publication number Publication date
CN106648771A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106648771B (en) An Openstack cloud platform custom deployment system and deployment method
CN108924217B (en) A method for automatic deployment of distributed cloud system
CN112000741B (en) Internal and external network data exchange system, method, device, computer equipment and medium
WO2021017301A1 (en) Management method and apparatus based on kubernetes cluster, and computer-readable storage medium
CN110058856A (en) Page configuration method and device
CN111736994B (en) Resource arranging method, system, storage medium and electronic equipment
CN106548288B (en) The polymorphic instance management system and method for the more scenes of electric power
CN113312145B (en) Container scheduling method, device, electronic device and medium
CN104281484B (en) A kind of virtual machine migration method and device
CN108600282A (en) Micro services dissemination method, device, storage medium and computer equipment
CN114385126B (en) K8 s-based multi-tenant deep learning model research and development system and method
CN111274223A (en) A one-click deployment of big data and deep learning container cloud platform and its construction method
CN102799709A (en) System simulation test environment building and configuring system and method based on extensive markup language (XML)
CN110389766A (en) HBase container cluster deployment method, system, device and computer-readable storage medium
CN105095103A (en) Storage device management method and device used for cloud environment
CN110532058B (en) Management method, device and equipment of container cluster service and readable storage medium
CN104363122A (en) Pre-configuration method and system of network element
CN103927244A (en) Plug-in scheduling process monitoring method implemented based on dynamic proxy
CN112764825A (en) Service integration system, corresponding device and storage medium
CN106815232A (en) Catalog management method, apparatus and system
CN112953739A (en) K8S platform-based method, system and storage medium for nanotube SDN
CN114721827A (en) Data processing method and device
US10755212B2 (en) Dynamic process execution architecture with disassociated resource control
CN108062225A (en) Method for issuing application cluster by multi-template combination
CN103152380B (en) Distributed type simulation communication framework and communication effectiveness calculating method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200221

CF01 Termination of patent right due to non-payment of annual fee