]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
library: exit on user creation failure
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 28 Jul 2021 16:27:00 +0000 (12:27 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 3 Aug 2021 17:27:54 +0000 (13:27 -0400)
commit17884d984870e83763878f0e503e0443ce4d5b1f
tree997b1487882769b0857935ec75ed166ec61e6391
parent7f5b986e019b91d5f68499182b44876db8c295ab
library: exit on user creation failure

When the ceph dashboard user creation fails then the issue is hidden
as we don't check the return code and don't print the error message
in the module output.

This ends up with a failure on the ceph dashboard set roles command saying
that the user doesn't exist.

By failing on the user creation, we will have an explicit explaination of
the issue (like weak password).

Closes: #6197
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 17784624e0fb02080e14d15b4105ef92a78ec8c4)
library/ceph_dashboard_user.py
tests/library/test_ceph_dashboard_user.py