]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_key: handle error in a better way v4.0.59
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 7 Jun 2021 12:51:43 +0000 (14:51 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Jul 2021 12:01:52 +0000 (14:01 +0200)
commitff2043f92c563a065fbb1bb0390e8c9c40c8f035
tree853d00bb9d1744d69c254de8c4cb2bee698e625e
parent77f32a330260a2efb52ec604d9512e560ed7db34
ceph_key: handle error in a better way

When calling the `ceph_key` module with `state: info`, if the ceph
command called fails, the actual error is hidden by the module which
makes it pretty difficult to troubleshoot.

The current code always states that if rc is not equal to 0 the keyring
doesn't exist.

`state: info` should always return the actual rc, stdout and stderr.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1964889
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit d58500ade01c7c4cc20b6bbaf8f5789d825b8d1b)
library/ceph_key.py
roles/ceph-mon/tasks/deploy_monitors.yml