]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/rgw/multisite: specify realm/zonegroup/zone args for 'account create'
authorCasey Bodley <cbodley@redhat.com>
Fri, 30 Aug 2024 15:21:50 +0000 (11:21 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 4 Sep 2024 12:27:50 +0000 (08:27 -0400)
commita6551921bf2a6c7e28a1f12138dc27e09ac02705
tree684fdeb19fdcf4cc19d178a05e57722aec12796a
parent91c8a7e56f7ba6f8ae8d6d8c0ae8cae96c5619e4
qa/rgw/multisite: specify realm/zonegroup/zone args for 'account create'

in the rgw/multisite suite, jobs fail on user creation:

> radosgw-admin --cluster c1 account create --account-id RGW11111111111111111
> radosgw-admin --cluster c1 user create --uid rgw-multisite-test-user --account-id RGW11111111111111111 --account-root --rgw-zone test-zone1 --rgw-zonegroup test-zonegroup --rgw-realm test-realm --display-name TestUser --gen-access-key --gen-secret
> could not create user: unable to create user, Failed to load account by id

realms/two-zones.yaml misspells `is_default` as `is default` for the
realm, so it doesn't get set as default. the `account create` command
doesn't specify a realm/zonegroup/zone, so operates on the "default"
zone and zonegroup

use `zone_args()` to add the explicit realm/zonegroup/zone arguments

Fixes: https://tracker.ceph.com/issues/67839
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit e4157c8e98a9f40c258e10f4e3042956ad3ab549)
qa/tasks/rgw_multisite_tests.py