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 20 december 2016 om 18:06 schreef Orit Wasserman <owasserm@xxxxxxxxxx>:
> 
> 
> On Tue, Dec 20, 2016 at 5:39 PM, Wido den Hollander <wido@xxxxxxxx> wrote:
> >
> >> 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.
> >
> 
> I suspect that, can you open an tracker issue?
> 

Sure, done: http://tracker.ceph.com/issues/18333

In short, a new period doesn't seem to be created when there is none when setting the realm. Creating one afterwards doesn't seem to work either.

> > 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.
> >
> Good
> 
> > 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
> >
> 
> I am guessing this is not an error just a message that should have
> higher log level,
> can you open an issue?

I updated issue #15776 since that still seems relevant.

See my update there: http://tracker.ceph.com/issues/15776

Thanks!

Wido

> 
> > 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.
> >
> 
> Strange it should be part of jewel , I will look into it.
> 
> > 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