Bug 1390336

Summary: rgw: json encode/decode of RGWBucketInfo missing index_type field
Product: Red Hat Ceph Storage Reporter: Yehuda Sadeh <yehuda>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil
Target Milestone: rc   
Target Release: 2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.5-17.el7cp Ubuntu: ceph_10.2.5-10redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-14 15:46:11 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:

Description Yehuda Sadeh 2016-10-31 17:56:08 UTC
Description of problem:

When dumping metadata of a bucket instance, the index_type param does not show. We also don't parse that field when setting bucket instance metadata (via radosgw-admin or through command line on existing buckets).


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


How reproducible:
always

Steps to Reproduce:
1.

$ radosgw-admin metadata get bucket.instance:<bucket>:<bucket-id>

Actual results:

should show index_type field

Expected results:

does not show


Additional info:


In order to completely test feature (once fixed), need to do the following:

$ radosgw-admin metadata get bucket.instance:<bucket>:<bucket-id> > buck.json

.. modify index_type in buck.json , switch it from 0 to 1

$ radosgw-admin metadata put bucket.instance:<bucket>:<bucket-id> < buck.json


$ radosgw-admin metadata get bucket.instance:<bucket>:<bucket-id>

.. verify that index_type has been set correctly

Comment 6 Ken Dreyer (Red Hat) 2017-01-25 03:01:09 UTC
Matt, is https://github.com/ceph/ceph/pull/11759 ready to merge?

Comment 11 Hemanth Kumar 2017-02-08 13:58:44 UTC
Verified.. index_type  is getting changed as expected..

Comment 13 errata-xmlrpc 2017-03-14 15:46:11 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/RHBA-2017-0514.html