Debian Codegraph @

doc/source/install/common_prerequisites.rst

raw
1 Prerequisites
2 -------------
3
4 Before you install and configure the aetos service,
5 you must create service credentials, and API endpoints.
6
7 #. Source the ``admin`` credentials to gain access to
8 admin-only CLI commands:
9
10 .. code-block:: console
11
12 $ . admin-openrc
13
14 #. To create the service credentials, complete these steps:
15
16 * Create the ``aetos`` user:
17
18 .. code-block:: console
19
20 $ openstack user create --domain default --password-prompt aetos
21 User Password:
22 Repeat User Password:
23 +---------------------+----------------------------------+
24 | Field | Value |
25 +---------------------+----------------------------------+
26 | domain_id | default |
27 | enabled | True |
28 | id | b7657c9ea07a4556aef5d34cf70713a3 |
29 | name | aetos |
30 | options | {} |
31 | password_expires_at | None |
32 +---------------------+----------------------------------+
33
34 * Add the ``admin`` role to the ``aetos`` user:
35
36 .. code-block:: console
37
38 $ openstack role add --project service --user aetos admin
39
40 .. note::
41
42 This command provides no output.
43
44
45 * Create the aetos service entities:
46
47 .. code-block:: console
48
49 $ openstack service create --name aetos --description "OpenStack Aetos Service" metric-storage
50 +-------------+----------------------------------+
51 | Field | Value |
52 +-------------+----------------------------------+
53 | description | OpenStack Aetos Service |
54 | enabled | True |
55 | id | 3405453b14da441ebb258edfeba96d83 |
56 | name | aetos |
57 | type | metric-storage |
58 +-------------+----------------------------------+
59
60 #. Create the aetos service API endpoints:
61
62 .. code-block:: console
63
64 $ openstack endpoint create --region RegionOne \
65 metric-storage public http://controller/prometheus
66 +--------------+-----------------------------------+
67 | Field | Value |
68 +--------------+-----------------------------------+
69 | enabled | True |
70 | id | 1196727cc22a4a26a011688236c38da9 |
71 | interface | public |
72 | region | RegionOne |
73 | region_id | RegionOne |
74 | service_id | 3405453b14da441ebb258edfeba96d83 |
75 | service_name | aetos |
76 | service_type | metric-storage |
77 | url | http://controller/prometheus |
78 +--------------+-----------------------------------+
79 $ openstack endpoint create --region RegionOne \
80 metric-storage internal http://controller/prometheus
81 +--------------+-----------------------------------+
82 | Field | Value |
83 +--------------+-----------------------------------+
84 | enabled | True |
85 | id | 1196727cc22a4a26a011688236c38da9 |
86 | interface | internal |
87 | region | RegionOne |
88 | region_id | RegionOne |
89 | service_id | 3405453b14da441ebb258edfeba96d83 |
90 | service_name | aetos |
91 | service_type | metric-storage |
92 | url | http://controller/prometheus |
93 +--------------+-----------------------------------+
94 $ openstack endpoint create --region RegionOne \
95 metric-storage admin http://controller/prometheus
96 +--------------+-----------------------------------+
97 | Field | Value |
98 +--------------+-----------------------------------+
99 | enabled | True |
100 | id | 1196727cc22a4a26a011688236c38da9 |
101 | interface | admin |
102 | region | RegionOne |
103 | region_id | RegionOne |
104 | service_id | 3405453b14da441ebb258edfeba96d83 |
105 | service_name | aetos |
106 | service_type | metric-storage |
107 | url | http://controller/prometheus |
108 +--------------+-----------------------------------+