Bug 1383631

Summary: Old radosgw-admin corrupt radosgw configuration for an upgrade radosgw
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Orit Wasserman <owasserm>
Component: RGWAssignee: Orit Wasserman <owasserm>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: high    
Version: 2.0CC: cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil, uboppana, vashastr
Target Milestone: rc   
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.3-8.el7cp Ubuntu: ceph_10.2.3-9redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-22 19:32:18 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 2016-10-11 09:52:52 UTC
Description of problem:

Running radosgw-admin from 1.3 corrupts radosgw-admin configuration (default and multisite)
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Run radosgw-admin from 1.3 on a 2.0 (or later) radosgw  
2.Restart the radosgw
3.

Actual results:
Configuration get corrupted.
zonegroup default and zone default get reset

Expected results:
No change in configuration

Additional info:

Comment 2 Orit Wasserman 2016-10-11 12:27:26 UTC
upstream pull request: https://github.com/ceph/ceph/pull/11426

Comment 7 Vasishta 2016-11-08 16:26:49 UTC
Hi,

I tried running radosgw-admin from 1.3 on a 2.1 radosgw, working fine

radosgw-admin from 1.3,

[ubuntu@magna068 ~]$ sudo ceph --version
ceph version 0.94.9-3.el7cp (7358f71bebe44c463df4d91c2770149e812bbeaa)
[ubuntu@magna068 ~]$ sudo radosgw-admin zone list
{
    "zones": [
        "default"
    ]
}

[ubuntu@magna068 ~]$ sudo radosgw-admin region list
{
    "default_info": {
        "default_region": ""
    },
    "regions": []
}

After creating two new zones from 2.0 radosgw,
[ubuntu@magna068 ~]$ sudo radosgw-admin zone list
{
    "zones": [
        "b4d3bf71-e7b1-4795-b66b-638135b140bc",
        "default",
        "420b2a97-a4a2-400a-97a2-7efaeeb01cb0"
    ]
}


After discussing with Orit on IRC, got to know that zone ID getting printed on 1.3 radosgw-admin when zones are listed (as pasted above) is expected. 
As there was no configuration corruption observed, moving this to VERIFIED state.

Regards,
Vasishta

Comment 9 errata-xmlrpc 2016-11-22 19:32:18 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://rhn.redhat.com/errata/RHSA-2016-2815.html