First, the Environment preparation
The Murano and Murano-dashboard were built on the red Hat Enterprise Linux Server Release 7.1 (MAIPO), which previously built the OpenStack environment As a result, some of the system's toolkits have also been installed, for example: Gcc,python-pip,mysql.
Second, configure the installation on the Devstack Murano
1. First you need to download Dev's package and you can clone it directly from GitHub
git clone https://github.com/openstack-dev/devstack.git
2.then downloadMuranoRequired Files,fromHttps://github.com/openstack/murano/tree/master/contrib/devstackDownload HereEXTRAS.Dand theLibFiles in the file and place the appropriate files in theDevstackin the appropriate directory:
CP Lib/murano ${devstack_dir}/libcp Lib/murano-dashboard {devstack_dir}/libcp extras.d/70-murano.sh {DEVSTACK_DIR}/ Extras.d
3. The most important thing is to write the localrc file, here is an example, you can modify as needed:
database_password=123456 rabbit_password=123456 service_token=123456 SERVICE_PASSW ord=123456 admin_password=123456 disable_service n-net enable_service q-svc enable_service q-agt enable_ser Vice Q-dhcp enable_service q-l3 enable_service q-meta enable_service q-lbaas enable_service q-vpn DEST=/hom E/openstack/workspace data_dir= $DEST/data service_dir= $DEST logdir=/home/openstack/workspace/logs LOGFILE= $LOG Dir/stack.sh.log verbose=true log_color=true screen_logdir= $LOGDIR/screens q_plugin=ml2 ENABLE_TENANT_VLANS =truelogdays=1 #RECLONE =true #OFFLINE =truegit_base= "http://github.com" image_urls=http:// DOWNLOAD.CIRROS-CLOUD.NET/0.3.4/CIRROS-0.3.4-X86_64-DISK.IMG # Enable Heat enable_service Heat h-api H-API-CFN H-api -CW H-eng # Enable Murano enable_service Murano murano-api murano-engine
4. After modifying the LOCALRC file we execute./stack.sh can be deployed with Murano Devstack with one click.
Third, manual installation of Murano
now try to build it manually in the environment mentioned above Murano , before the OpenStack has been deployed, so we don't need to Devstack deployment in the environment.
1. First install the murano-client and execute the command in the shell:
Pip Install Python-muranoclient
2. Install the Murano API and Engine
Download Murano Code:
git clone Git://git.openstack.org/openstack/murano
3. Configure the Murano localrc file, here is an example:
[Default]debug = Trueverbose = Truerabbit_host =%rabbitmq_server_ip%rabbit_userid =%rabbitmq_user%rabbit_password =% Rabbitmq_password%rabbit_virtual_host =%rabbitmq_server_virtual_host%notification_driver = Messagingv2 ... [database]backend = Sqlalchemyconnection = Sqlite:///murano.sqlite ... [Keystone]auth_url = ' http://%OPENSTACK_HOST_IP%:5000/v2.0 ' ... [Keystone_authtoken]auth_uri = ' http://%OPENSTACK_HOST_IP%:5000/v2.0 ' auth_host = '%openstack_host_ip% ' Auth_port = 5000auth_protocol = Httpadmin_tenant_name =%openstack_admin_tenant%admin_user =%openstack_admin_user%admin_ Password =%openstack_admin_password% ... [Murano]url = Http://%your_host_ip%:8082[rabbitmq]host =%rabbitmq_server_ip%login =%RABBITMQ_USER%password =% Rabbitmq_password%virtual_host =%rabbitmq_server_virtual_host%
4. Create a endpoint for Murano
Keystone Endpoint-create [--region <endpoint-region>]--service-id <service-id> [--publicurl < Public-url>] [--adminurl <admin-url>] [--internalurl <internal-url>]
5. Install the API
Install Murano-api--config-file./etc/murano/murano.conf
6. Install engine
Install Murano-engine–config-file./etc/murano/murano.conf
7. you can then Observe the Murano command to see if the Murano is successfully installed.
Four, Installing Murano-dashboard
1. Download the code for Murano-dashboard and Horizon
git clone git://git.openstack.org/openstack/murano-dashboardgit clone Git://git.openstack.org/openstack/horizon
2. copy the Murano plugin file into the Horizon folder
CP .. /murano-dashboard/muranodashboard/local/_50_murano.py openstack_dashboard/local/enabled/
3.To prepare the configuration file, you can directlyExamplethe configuration in the file is taken over by using:
CP Openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
4.Normal StartDjangoService
Python manage.py runserver <IP:PORT>
5. Enter <IP:PORT>in the browser and log in to see the Murano itemon the left side of the page .
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Manual installation of Openstack-murano and Murano-dashboard