blob: 511e8f46308ad878319de8937a2cc2c3ab76f8ef [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001Prerequisites
2-------------
3
4Before you install and configure the openstack service,
5you must create a database, service credentials, and API endpoints.
6
7#. To create the database, complete these steps:
8
9 * Use the database access client to connect to the database
10 server as the ``root`` user:
11
12 .. code-block:: console
13
14 $ mysql -u root -p
15
16 * Create the ``manila-tempest-plugin`` database:
17
18 .. code-block:: none
19
20 CREATE DATABASE manila-tempest-plugin;
21
22 * Grant proper access to the ``manila-tempest-plugin`` database:
23
24 .. code-block:: none
25
26 GRANT ALL PRIVILEGES ON manila-tempest-plugin.* TO 'manila-tempest-plugin'@'localhost' \
27 IDENTIFIED BY 'MANILA-TEMPEST-PLUGIN_DBPASS';
28 GRANT ALL PRIVILEGES ON manila-tempest-plugin.* TO 'manila-tempest-plugin'@'%' \
29 IDENTIFIED BY 'MANILA-TEMPEST-PLUGIN_DBPASS';
30
31 Replace ``MANILA-TEMPEST-PLUGIN_DBPASS`` with a suitable password.
32
33 * Exit the database access client.
34
35 .. code-block:: none
36
37 exit;
38
39#. Source the ``admin`` credentials to gain access to
40 admin-only CLI commands:
41
42 .. code-block:: console
43
44 $ . admin-openrc
45
46#. To create the service credentials, complete these steps:
47
48 * Create the ``manila-tempest-plugin`` user:
49
50 .. code-block:: console
51
52 $ openstack user create --domain default --password-prompt manila-tempest-plugin
53
54 * Add the ``admin`` role to the ``manila-tempest-plugin`` user:
55
56 .. code-block:: console
57
58 $ openstack role add --project service --user manila-tempest-plugin admin
59
60 * Create the manila-tempest-plugin service entities:
61
62 .. code-block:: console
63
64 $ openstack service create --name manila-tempest-plugin --description "openstack" openstack
65
66#. Create the openstack service API endpoints:
67
68 .. code-block:: console
69
70 $ openstack endpoint create --region RegionOne \
71 openstack public http://controller:XXXX/vY/%\(tenant_id\)s
72 $ openstack endpoint create --region RegionOne \
73 openstack internal http://controller:XXXX/vY/%\(tenant_id\)s
74 $ openstack endpoint create --region RegionOne \
75 openstack admin http://controller:XXXX/vY/%\(tenant_id\)s