]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Fri, 30 Aug 2024 15:32:29 +0000 (11:32 -0400)
commite4157c8e98a9f40c258e10f4e3042956ad3ab549
tree0fbdfebabe28e35c7515f83c010239c9b05ccfaa
parent2c345e1c2501ad3e94a4042a112d076bf6f888aa
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>
qa/tasks/rgw_multisite_tests.py