Skip to content

Commit c99bd0b

Browse files
authored
Merge pull request #1293 from stackhpc/update-secret-rotation
Update secret rotation doc
2 parents 7fc90f2 + e4cb368 commit c99bd0b

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

doc/source/operations/secret-rotation.rst

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Full method
7474
the state of the cloud before any changes are made
7575

7676
2. Edit your Kolla-Ansible checkout to include changes not yet included
77-
upstream.
77+
upstream.
7878

7979
.. _kolla-change:
8080

@@ -98,7 +98,7 @@ Full method
9898
.. code:: bash
9999
100100
git fetch https://review.opendev.org/openstack/kolla-ansible refs/changes/78/903178/2 && git cherry-pick FETCH_HEAD
101-
101+
102102
3. Re-install Kolla-Ansible from source in your Kolla-Ansible Python
103103
environment
104104

@@ -129,7 +129,7 @@ Full method
129129
^redis_master_password
130130
^memcache_secret_key
131131
_ssh_key
132-
132+
133133
private_key
134134
public_key
135135
^$
@@ -222,17 +222,32 @@ Full method
222222
223223
2. Update the value of ``grafana_admin_password`` in ``passwords.yml``
224224

225-
3. Exec into the Grafana container on a controller
225+
3. Exec into the MariaDB container on a controller then login to MariaDB
226+
227+
.. code:: bash
228+
229+
sudo docker exec -u 0 -it mariadb bash
230+
(mariadb) mysql grafana -p
231+
# Enter database password when prompted
232+
233+
4. Query for the ID of ``grafana_local_admin``
234+
235+
.. code:: sql
236+
237+
SELECT id,login FROM user WHERE login = "grafana_local_admin";
238+
# Take a note of this ID
239+
240+
5. Exec into the Grafana container on a controller
226241

227242
.. code:: bash
228243
229244
sudo docker exec -it grafana bash
230245
231-
4. Run the password reset command, then enter the new password
246+
6. Run the password reset command, then enter the new password
232247

233248
.. code:: bash
234249
235-
grafana-cli admin reset-admin-password --password-from-stdin
250+
grafana-cli admin reset-admin-password --user-id <id> --password-from-stdin
236251
237252
12. Update the MariaDB database password
238253

0 commit comments

Comments
 (0)