]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-dashboard: update create/get rgw user tasks
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 17 Feb 2020 20:46:54 +0000 (15:46 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 20 Jul 2020 19:21:57 +0000 (21:21 +0200)
commit056a4fe8667bcf6d10b4e74c31a5c8959c3c5d4c
tree1dc84e83d14f31718e4709a98d15ae7f0ea7880f
parent2095df3397dfe2e83e65eb94b00f1de5af86bc89
ceph-dashboard: update create/get rgw user tasks

Since [1] if a rgw user already exists then the radosgw-admin user create
command will return an error instead of modifying the current user.
We were already doing separated tasks for create and get operation but
only for multisite configuration but it's not enough.
Instead we should do the get task first and depending on the result
execute the create.
This commit also adds missing run_once and delegate_to statement.

[1] https://github.com/ceph/ceph/commit/269e9b9

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit ac0f68ccf06dafe3c5b1321b81d80e2dc9d29015)
roles/ceph-dashboard/tasks/configure_dashboard.yml
tests/functional/tests/rgw/test_rgw_tuning.py