Bug #71291
closedERROR: incorrect zonegroup: A (got: A, expected: B)
0%
Description
reported by @Nizamudeen A in slack:
Our script creates 2 realms one by one and creates a system user for both of those realms. Then commits a period. While first one goes fine, for the second realm, the user creation is failing with
ceph | + /usr/bin/radosgw-admin user create --uid dashboard --display-name 'Ceph Dashboard2' --access-key M1KBQY1XV9ELH8Y637PD --secret GsOwxjOfxAwM2It2mBiB5A5CJFxu73GjpNjCROvx --rgw-realm realm2 --rgw-zonegroup zg1-realm2 --rgw-zone zone1-zg1-realm2 --system ceph | 2025-05-12T13:03:31.615+0000 7fe7d6b558c0 -1 WARNING: all dangerous and experimental features are enabled. ceph | 2025-05-12T13:03:31.619+0000 7fe7d6b558c0 -1 WARNING: all dangerous and experimental features are enabled. ceph | 2025-05-12T13:03:31.619+0000 7fe7d6b558c0 -1 WARNING: all dangerous and experimental features are enabled. ceph | 2025-05-12T13:03:31.625+0000 7fe7d6b558c0 0 ERROR: current period 973d6929-942d-4af6-996a-917ac22778e6 does not contain zone id e7d31ea2-6b5f-4246-b7f0-b24240422f1b ceph | 2025-05-12T13:03:31.632+0000 7fe7d6b558c0 0 ERROR: incorrect zonegroup: zg1-realm2 (got: zg1-realm2, expected: zg1-realm1) ceph | 2025-05-12T13:03:31.632+0000 7fe7d6b558c0 0 ERROR: failed to start notify service ((22) Invalid argument ceph | 2025-05-12T13:03:31.632+0000 7fe7d6b558c0 0 ERROR: failed to init services (ret=(22) Invalid argument) ceph | couldn't init storage provider
This is the log from the dev environment (I only included the rgw configuration): https://pastebin.com/ruquWc8w
and this is the script that takes care of the whole thing: https://github.com/rhcs-dashboard/ceph-dev/blob/main/docker/ceph/set-rgw.sh
and it fails in this area: https://github.com/rhcs-dashboard/ceph-dev/blob/main/docker/ceph/set-rgw.sh#L135
CB Updated by Casey Bodley over 1 year ago
seems to be a regression from the changes to RGWSI_Zone::do_start() https://github.com/ceph/ceph/pull/62398
ERROR: incorrect zonegroup: zg1-realm2 (got: zg1-realm2, expected: zg1-realm1)
this is the correct zonegroup, as requested by --rgw-zonegroup zg1-realm2. it's confusing that with the --default zonegroup "zg1-realm1" from the --default realm "realm1"
CB Updated by Casey Bodley over 1 year ago
reproduced against a vstart cluster:
~/ceph/build $ MON=1 OSD=1 RGW=0 MDS=0 MGR=0 ../src/vstart.sh -n -d
create a realm/zonegroup/zone and commit the period. only use `--default` for the realm:
~/ceph/build $ bin/radosgw-admin realm create --rgw-realm A --default
~/ceph/build $ bin/radosgw-admin zonegroup create --rgw-realm A --rgw-zonegroup A1 --master
~/ceph/build $ bin/radosgw-admin zone create --rgw-realm A --rgw-zonegroup A1 --rgw-zone A1.1 --master
~/ceph/build $ bin/radosgw-admin period update --commit --rgw-realm A --rgw-zonegroup A1 --rgw-zone A1.1
create another realm/zonegroup/zone but try to create a user before committing the period:
~/ceph/build $ bin/radosgw-admin realm create --rgw-realm B
~/ceph/build $ bin/radosgw-admin zonegroup create --rgw-realm B --rgw-zonegroup B1 --master
~/ceph/build $ bin/radosgw-admin zone create --rgw-realm B --rgw-zonegroup B1 --rgw-zone B1.1 --master
~/ceph/build $ bin/radosgw-admin user create --rgw-realm B --rgw-zonegroup B1 --rgw-zone B1.1
2025-05-12T12:18:28.121-0400 7f84cfc69200 0 ERROR: current period be38267f-57a0-47e5-b770-e2f713046f7d does not contain zone id acab8379-41b2-4a66-92c2-41beb70bd851
2025-05-12T12:18:28.157-0400 7f84cfc69200 0 ERROR: incorrect zonegroup: B1 (got: B1, expected: A1)
2025-05-12T12:18:28.157-0400 7f84cfc69200 0 ERROR: failed to start notify service ((22) Invalid argument
2025-05-12T12:18:28.157-0400 7f84cfc69200 0 ERROR: failed to init services (ret=(22) Invalid argument)
VT Updated by Vinayak Tiwari over 1 year ago
https://github.com/ceph/ceph/pull/63260
Fixes Bug #71291 by allowing user creation in new realms before period commit. Loads missing zone from metadata if not found in zonegroup. Tested with vstart setup — works as expected.
CB Updated by Casey Bodley over 1 year ago
- Status changed from New to Fix Under Review
- Assignee set to Casey Bodley
- Pull request ID set to 63266
CB Updated by Casey Bodley over 1 year ago
- Status changed from Fix Under Review to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 182ea58be7a12790c178d696a088edc58d60a3d3
- Fixed In set to v20.3.0-407-g182ea58be7a
- Upkeep Timestamp set to 2025-07-09T02:42:23+00:00
UB Updated by Upkeep Bot over 1 year ago
- Fixed In changed from v20.3.0-407-g182ea58be7a to v20.3.0-407-g182ea58be7
- Upkeep Timestamp changed from 2025-07-09T02:42:23+00:00 to 2025-07-14T17:11:10+00:00
CB Updated by Casey Bodley about 1 year ago
- Copied to Backport #73890: tentacle: ERROR: incorrect zonegroup: A (got: A, expected: B) added
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~2948
- Upkeep Timestamp changed from 2025-07-14T17:11:10+00:00 to 2026-10-24T01:39:41+00:00