Bug 1428326

Summary: radosgw-admin period update reverts deleted zonegroup
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Orit Wasserman <owasserm>
Component: RGWAssignee: Casey Bodley <cbodley>
Status: CLOSED ERRATA QA Contact: shilpa <smanjara>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.2CC: cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil
Target Milestone: rc   
Target Release: 2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.7-2.el7cp Ubuntu: ceph_10.2.7-3redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-19 13:30:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orit Wasserman 2017-03-02 10:18:39 UTC
Description of problem:







try 
the same error and zonegroup default is part of the staging period


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.start the radosgw without any multisite configuration (default zonegroup and zone will be created)
2.create a realm , set it as default.
3.update zonegroup default and zone default using set commands 
(this will cause the realm id to change)
4. update and commit the period
5. create a new master zonegroup zg0 and a new zg0zo that will the master of zg0
6. radosgw-admin period update --commit (error two master zonegroups)
7. remove zone default from default zonegroup and delete it
8. period update

Actual results:
error two master zonegroups and zonegroup default is part of the staging period

Expected results:
success

Additional info:
workround:
delete .rgw.root: rados purge .rgw.root --yes-i-really-really-mean-it
create a new configuration when the gateway is down:
create a new realm and set it as default
radosgw-admin zonegroup set < json (with the new realm id) 
radosgw-admin zoneg set < json (with the new realm id)
set zonegroup and zone as default
period update --commit

Comment 4 Matt Benjamin (redhat) 2017-04-04 16:37:30 UTC
@cbodley, @owasserm assigning to ensure backport

Comment 5 Orit Wasserman 2017-04-05 08:39:34 UTC
(In reply to Matt Benjamin (redhat) from comment #4)
> @cbodley, @owasserm assigning to ensure backport

It is part of Jewel 10.2.7, no need to backport

Comment 9 shilpa 2017-05-08 08:40:05 UTC
Verified on ceph-radosgw-10.2.7-13

Comment 11 errata-xmlrpc 2017-06-19 13:30:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1497