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]

 



> Op 15 december 2016 om 17:10 schreef Orit Wasserman <owasserm@xxxxxxxxxx>:
> 
> 
> 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
> 

I eventually ended up doing that indeed. Setting a realm from a backup doesn't work.

So my sequence in commands:

NOTE THE UUID OF THE REALM AND CHANGE IN JSON FILES

nano zm1.json
nano zonegroup.json

radosgw-admin zonegroup set --rgw-zonegroup gn < zonegroup.json
radosgw-admin zone set --rgw-zonegroup gn --rgw-zone zm1 < zm1.json
radosgw-admin zonegroup default --rgw-zonegroup gn
radosgw-admin zone default --rgw-zone zm1
radosgw-admin period update
radosgw-admin period update --commit

This eventually got things working again.

The only thing I keep seeing everywhere:

root@alpha:~# radosgw-admin period update --commit
2016-12-20 16:38:07.958860 7f9571697a00  0 error in read_id for id  : (2) No such file or directory
2016-12-20 16:38:07.960035 7f9571697a00  0 error in read_id for id  : (2) No such file or directory

Brought me to:

- http://tracker.ceph.com/issues/15776
- https://github.com/ceph/ceph/pull/8994

Doesn't seem to be backported to 10.2.5 however.

Wido

> 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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux