Re: cannot commit period: period does not have a master zone of a master zonegroup

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

 



Hi Wido,

This looks like you are hitting http://tracker.ceph.com/issues/17364
The fix is being backported to jewel: https://github.com/ceph/ceph/pull/12315

A workaround:
save the realm, zonegroup and zones json file
make a copy of .rgw.root (the pool contain the multisite config)
remove .rgw.root
stop the gateway
radosgw-admin realm set < json
radosgw-admin zonegroup set < json
raodsgw-admin zone set < json
radosgw-admin period update --commit
start the gateway

If the realm set will give you problems you can create a new realm
and will need to update the realm id in the zonegroup and zones json
files before using them

Orit


On Thu, Dec 15, 2016 at 4:47 PM, Wido den Hollander <wido@xxxxxxxx> wrote:
> Hi,
>
> On a Ceph cluster running Jewel 10.2.5 I'm running into a problem.
>
> I want to change the amount of shards:
>
> # radosgw-admin zonegroup-map get > zonegroup.json
> # nano zonegroup.json
> # radosgw-admin zonegroup-map set --infile zonegroup.json
> # radosgw-admin period update --commit
>
> Now, the error arrises:
>
> cannot commit period: period does not have a master zone of a master zonegroup
> failed to commit period: (22) Invalid argument
>
> Looking at the output:
>
> # radosgw-admin period update
>
> {
> ...
>     "master_zonegroup": "",
>     "master_zone": "",
> ...
> }
>
> # radosgw-admin zone list
>
> {
>     "default_info": "zm1",
>     "zones": [
>         "default",
>         "zm1"
>     ]
> }
>
> To me it seems like there is something wrong with the period since there is no UUID present in master_zone/zonegroup.
>
> Any idea on how to fix this?
>
> Wido
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[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