]> 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>
Tue, 18 Feb 2020 09:22:21 +0000 (10:22 +0100)
commitac0f68ccf06dafe3c5b1321b81d80e2dc9d29015
tree7a0973a211142913268003e56f8ec4d9783edd67
parent2a2656a985f8ef29a8b01f4fde746679ee76b856
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>
roles/ceph-dashboard/tasks/configure_dashboard.yml
tests/functional/tests/rgw/test_rgw_tuning.py