1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
Install and configure Placement for openSUSE and SUSE Linux Enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This section describes how to install and configure the placement service
when using openSUSE or SUSE Linux Enterprise packages.
Prerequisites
-------------
Before you install and configure the placement service, you must create
a database, service credentials, and API endpoints.
Create Database
^^^^^^^^^^^^^^^
#. To create the database, complete these steps:
* Use the database access client to connect to the database server
as the ``root`` user:
.. code-block:: console
$ mysql -u root -p
* Create the ``placement`` database:
.. code-block:: console
MariaDB [(none)]> CREATE DATABASE placement;
* Grant proper access to the database:
.. code-block:: console
MariaDB [(none)]> GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'localhost' \
IDENTIFIED BY 'PLACEMENT_DBPASS';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' \
IDENTIFIED BY 'PLACEMENT_DBPASS';
Replace ``PLACEMENT_DBPASS`` with a suitable password.
* Exit the database access client.
Configure User and Endpoints
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. include:: shared/endpoints.rst
Install and configure components
--------------------------------
.. include:: note_configuration_vary_by_distribution.rst
.. note::
As of the Newton release, SUSE OpenStack packages are shipped with the
upstream default configuration files. For example,
``/etc/placement/placement.conf`` has customizations in
``/etc/placement/placement.conf.d/010-placement.conf``. While the following
instructions modify the default configuration file, adding a new file in
``/etc/placement/placement.conf.d`` achieves the same result.
#. Install the packages:
.. code-block:: console
# zypper install openstack-placement
#. Edit the ``/etc/placement/placement.conf`` file and complete the following
actions:
* In the ``[placement_database]`` section, configure database access:
.. path /etc/placement/placement.conf
.. code-block:: ini
[placement_database]
# ...
connection = mysql+pymysql://placement:PLACEMENT_DBPASS@controller/placement
Replace ``PLACEMENT_DBPASS`` with the password you chose for the
placement database.
* In the ``[api]`` and ``[keystone_authtoken]`` sections, configure Identity
service access:
.. path /etc/placement/placement.conf
.. code-block:: ini
[api]
# ...
auth_strategy = keystone
[keystone_authtoken]
# ...
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = PLACEMENT_PASS
Replace ``PLACEMENT_PASS`` with the password you chose for the
``placement`` user in the Identity service.
.. note::
Comment out or remove any other options in the ``[keystone_authtoken]``
section.
.. note::
The value of ``user_name``, ``password``, ``project_domain_name`` and
``user_domain_name`` need to be in sync with your keystone config.
#. Populate the ``placement`` database:
.. code-block:: console
# su -s /bin/sh -c "placement-manage db sync" placement
.. note::
Ignore any deprecation messages in this output.
Finalize installation
---------------------
* Enable the placement API Apache vhost:
.. code-block:: console
# mv /etc/apache2/vhosts.d/openstack-placement-api.conf.sample \
/etc/apache2/vhosts.d/openstack-placement-api.conf
# systemctl reload apache2.service
|