Install and configure for Ubuntu

This section describes how to install and configure the murano service for Ubuntu 14.04 (LTS).

Prerequisites

Before you install and configure the murano service, you must create a database, service credentials, and API endpoints.

  1. To create the database, complete these steps:

    • Use the database access client to connect to the database server as the root user:

      $ mysql -u root -p
      
    • Create the murano_tempest_tests database:

      CREATE DATABASE murano_tempest_tests;
      
    • Grant proper access to the murano_tempest_tests database:

      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_DBPASS with a suitable password.

    • Exit the database access client.

      exit;
      
  2. Source the admin credentials to gain access to admin-only CLI commands:

    $ . admin-openrc
    
  3. To create the service credentials, complete these steps:

    • Create the murano_tempest_tests user:

      $ openstack user create --domain default --password-prompt murano_tempest_tests
      
    • Add the admin role to the murano_tempest_tests user:

      $ openstack role add --project service --user murano_tempest_tests admin
      
    • Create the murano_tempest_tests service entities:

      $ openstack service create --name murano_tempest_tests --description "murano" murano
      
  4. 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

  1. Install the packages:

    # apt-get update
    
    # apt-get install
    
  1. Edit the /etc/murano_tempest_tests/murano_tempest_tests.conf file 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

Restart the murano services:

# service openstack-murano_tempest_tests-api restart