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
|
Prerequisites
-------------
Before you install and configure the aetos service,
you must create service credentials, and API endpoints.
#. Source the ``admin`` credentials to gain access to
admin-only CLI commands:
.. code-block:: console
$ . admin-openrc
#. To create the service credentials, complete these steps:
* Create the ``aetos`` user:
.. code-block:: console
$ openstack user create --domain default --password-prompt aetos
User Password:
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | b7657c9ea07a4556aef5d34cf70713a3 |
| name | aetos |
| options | {} |
| password_expires_at | None |
+---------------------+----------------------------------+
* Add the ``admin`` role to the ``aetos`` user:
.. code-block:: console
$ openstack role add --project service --user aetos admin
.. note::
This command provides no output.
* Create the aetos service entities:
.. code-block:: console
$ openstack service create --name aetos --description "OpenStack Aetos Service" metric-storage
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Aetos Service |
| enabled | True |
| id | 3405453b14da441ebb258edfeba96d83 |
| name | aetos |
| type | metric-storage |
+-------------+----------------------------------+
#. Create the aetos service API endpoints:
.. code-block:: console
$ openstack endpoint create --region RegionOne \
metric-storage public http://controller/prometheus
+--------------+-----------------------------------+
| Field | Value |
+--------------+-----------------------------------+
| enabled | True |
| id | 1196727cc22a4a26a011688236c38da9 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 3405453b14da441ebb258edfeba96d83 |
| service_name | aetos |
| service_type | metric-storage |
| url | http://controller/prometheus |
+--------------+-----------------------------------+
$ openstack endpoint create --region RegionOne \
metric-storage internal http://controller/prometheus
+--------------+-----------------------------------+
| Field | Value |
+--------------+-----------------------------------+
| enabled | True |
| id | 1196727cc22a4a26a011688236c38da9 |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 3405453b14da441ebb258edfeba96d83 |
| service_name | aetos |
| service_type | metric-storage |
| url | http://controller/prometheus |
+--------------+-----------------------------------+
$ openstack endpoint create --region RegionOne \
metric-storage admin http://controller/prometheus
+--------------+-----------------------------------+
| Field | Value |
+--------------+-----------------------------------+
| enabled | True |
| id | 1196727cc22a4a26a011688236c38da9 |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | 3405453b14da441ebb258edfeba96d83 |
| service_name | aetos |
| service_type | metric-storage |
| url | http://controller/prometheus |
+--------------+-----------------------------------+
|