Install and configure for openSUSE and SUSE Linux Enterprise¶
This section describes how to install and configure the murano service for openSUSE Leap 42.1 and SUSE Linux Enterprise Server 12 SP1.
Prerequisites¶
Before you install and configure the murano service, you must create a database, service credentials, and API endpoints.
To create the database, complete these steps:
Use the database access client to connect to the database server as the
rootuser:$ mysql -u root -pCreate the
murano_tempest_testsdatabase:CREATE DATABASE murano_tempest_tests;
Grant proper access to the
murano_tempest_testsdatabase:GRANT ALL PRIVILEGES ON murano_tempest_tests.* TO 'murano_tempest_tests'@'localhost' \ IDENTIFIED BY 'MURANO_TEMPEST_TESTS_DBPASS'; GRANT ALL PRIVILEGES ON murano_tempest_tests.* TO 'murano_tempest_tests'@'%' \ IDENTIFIED BY 'MURANO_TEMPEST_TESTS_DBPASS';
Replace
MURANO_TEMPEST_TESTS_DBPASSwith a suitable password.Exit the database access client.
exit;
Source the
admincredentials to gain access to admin-only CLI commands:$ . admin-openrcTo create the service credentials, complete these steps:
Create the
murano_tempest_testsuser:$ openstack user create --domain default --password-prompt murano_tempest_testsAdd the
adminrole to themurano_tempest_testsuser:$ openstack role add --project service --user murano_tempest_tests adminCreate the murano_tempest_tests service entities:
$ openstack service create --name murano_tempest_tests --description "murano" murano
Create the murano service API endpoints:
$ openstack endpoint create --region RegionOne \ murano public http://controller:XXXX/vY/%\(tenant_id\)s $ openstack endpoint create --region RegionOne \ murano internal http://controller:XXXX/vY/%\(tenant_id\)s $ openstack endpoint create --region RegionOne \ murano admin http://controller:XXXX/vY/%\(tenant_id\)s
Install and configure components¶
Install the packages:
# zypper --quiet --non-interactive install
Edit the
/etc/murano_tempest_tests/murano_tempest_tests.conffile and complete the following actions:In the
[database]section, configure database access:[database] ... connection = mysql+pymysql://murano_tempest_tests:MURANO_TEMPEST_TESTS_DBPASS@controller/murano_tempest_tests
Finalize installation¶
Start the murano services and configure them to start when the system boots:
# systemctl enable openstack-murano_tempest_tests-api.service
# systemctl start openstack-murano_tempest_tests-api.service