publiccloud-sig/doc/source/install/common_prerequisites.rst

2.2 KiB

Prerequisites

Before you install and configure the replace with the service it implements 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 PublicCloudWG database:

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

      GRANT ALL PRIVILEGES ON PublicCloudWG.* TO 'PublicCloudWG'@'localhost' \
        IDENTIFIED BY 'PUBLICCLOUDWG_DBPASS';
      GRANT ALL PRIVILEGES ON PublicCloudWG.* TO 'PublicCloudWG'@'%' \
        IDENTIFIED BY 'PUBLICCLOUDWG_DBPASS';

      Replace PUBLICCLOUDWG_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 PublicCloudWG user:

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

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

      $ openstack service create --name PublicCloudWG --description "replace with the service it implements" replace with the service it implements
  4. Create the replace with the service it implements service API endpoints:

    $ openstack endpoint create --region RegionOne \
      replace with the service it implements public http://controller:XXXX/vY/%\(tenant_id\)s
    $ openstack endpoint create --region RegionOne \
      replace with the service it implements internal http://controller:XXXX/vY/%\(tenant_id\)s
    $ openstack endpoint create --region RegionOne \
      replace with the service it implements admin http://controller:XXXX/vY/%\(tenant_id\)s