Files
gyan/doc/source/install/common_prerequisites.rst
bharath 72ef73e22f Initial commit from cookiecutter
Change-Id: I99fac20f40b2ca006d0a95ded27fe8140d795f50
2018-09-30 22:57:52 +05:30

1.9 KiB

Prerequisites

Before you install and configure the gyan 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 gyan database:

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

      GRANT ALL PRIVILEGES ON gyan.* TO 'gyan'@'localhost' \
        IDENTIFIED BY 'GYAN_DBPASS';
      GRANT ALL PRIVILEGES ON gyan.* TO 'gyan'@'%' \
        IDENTIFIED BY 'GYAN_DBPASS';

      Replace GYAN_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 gyan user:

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

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

      $ openstack service create --name gyan --description "gyan" gyan
  4. Create the gyan service API endpoints:

    $ openstack endpoint create --region RegionOne \
      gyan public http://controller:XXXX/vY/%\(tenant_id\)s
    $ openstack endpoint create --region RegionOne \
      gyan internal http://controller:XXXX/vY/%\(tenant_id\)s
    $ openstack endpoint create --region RegionOne \
      gyan admin http://controller:XXXX/vY/%\(tenant_id\)s