Unable to move realm master between zonegroups -- radosgw-admin zonegroup ignoring the --rgw-zonegroup flag?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

We have a number of ceph clusters organized into one realm and three
zonegroups.  All the clusters are running ceph 17 built with cephadm.

I am trying to move the metadata master from one zonegroup (us-east-1) to
zone mn1 in zonegroup us-central-1, by following the steps in the
documentation
<https://docs.ceph.com/en/quincy/radosgw/multisite/#changing-the-metadata-master-zone>,
but it doesn't work as advised.  I ran these commands on a system in the
`mn1` zone in the us-central-1 zonegroup.

sudo radosgw-admin zone modify --rgw-zone=mn1 --master
sudo radosgw-admin zonegroup modify --rgw-zonegroup=us-central-1 --master
sudo radosgw-admin period update --commit

When I carry out those steps, the period update gives me this error:

2024-06-26T11:19:12.256+0000 7f1f5f610e40  0 Error updating periodmap,
multiple master zonegroups configured

2024-06-26T11:19:12.256+0000 7f1f5f610e40  0 master zonegroup: 9ef7877b and
 a3abf9e1

Here we have problem (1) that the command doesn’t move the master from
a3abf9e1 (us-east-1) to 9ef7877b (us-central-1).  There is a fix advised by
a 2016 post to ceph-users
<https://www.spinics.net/lists/ceph-users/msg30873.html> -- explicitly mark
the old zonegroup master as no longer the master.

sudo radosgw-admin zonegroup modify --rgw-zonegroup=us-east-1 --master=false

However, the json output of this command is a modified map of the
us-central-1 zonegroup, showing that the 'is_master' flag has been set back
to 'false' for that zonegroup.  Thus we have problem (2) that I am unable
to modify two different zonegroups from the same system, leaving me unable
to change the realm master.

`sudo radosgw-admin zonegroup get --rgw-zonegroup=us-east-1`, when run from
the us-central-1 zonegroup, just shows me the us-central-1 zonegroup
details.  Changing the `=` to a space does not have any effect.

My brief attempts at reading the code for rgw_admin.cc on github left me
unenlightened.  Can anyone offer any assistance here?

-- 
Tim Hunter
Senior Infrastructure Engineer

telnyx.com
[image: Telnyx logo]
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux