]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not print the secret of osd keyring 46728/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 Jun 2022 07:22:18 +0000 (09:22 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 23 Jun 2022 07:03:02 +0000 (09:03 +0200)
commit68d71309fc3bb2d35c60df5dfd30982f85e5c11a
treefe2d791ddee8e9cc1d27009a88112a529823320a
parent8045667470b8c4c4caf2edce839a1033a8e02769
ceph-volume: do not print the secret of osd keyring

during osd preparation, ceph-volume logs the secret of the osd keyring to file
```
[2022-06-15 12:31:17,466][ceph_volume.process][INFO  ] Running command: /usr/bin/ceph-authtool /var/lib/ceph/osd/ceph-0/keyring --create-keyring --name osd.0 --add-key AQAM0aliR5JvDRAAQBu0stWl9ZhZrcjijg2BIQ==
[2022-06-15 12:31:17,481][ceph_volume.process][INFO  ] stdout creating /var/lib/ceph/osd/ceph-0/keyring
added entity osd.0 auth(key=AQAM0aliR5JvDRAAQBu0stWl9ZhZrcjijg2BIQ==)
```

This shouldn't be logged nor printed on terminal.

Fixes: https://tracker.ceph.com/issues/56071
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 4b9cc6b303588e0c44443debe4f04c6160adf5a2)
src/ceph-volume/ceph_volume/util/prepare.py