Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1211304

Summary: ceph-objectstore-tool should be in ceph-osd subpackage
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: BuildAssignee: Ken Dreyer (Red Hat) <kdreyer>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: dzafman, flucifre, hnallurv
Target Milestone: rc   
Target Release: 1.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-0.94.1-4.el7cp Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-24 15:52:00 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:
Bug Depends On:    
Bug Blocks: 1207333    

Description Ken Dreyer (Red Hat) 2015-04-13 14:45:51 UTC
Description of problem:
ceph-objectstore-tool should be in the "ceph-osd" package.

Version-Release number of selected component (if applicable):
ceph-osd-0.94-1


Steps to Reproduce:
1. Install ceph-osd on a system
2. Run "ceph-objectstore-tool"

Actual results:
The command is not found

Expected results:
The command should be present.

Additional info:
From an IRC conversation with Greg Farnum: The ceph-objectstore-tool utility is a tool for interacting with the OSD objectstore. It's good for repairing clusters that have broken in a variety of ways. We expect users to need to run it sometimes (as well as support). It is like an fsck and repair tool for the OSD's store.

This is a new utility so there is no man page for ceph-objectstore-tool yet.

Comment 1 Harish NV Rao 2015-04-14 07:13:15 UTC
In order to do a better estimation of efforts involved in testing this, could you please provide following:

1. write-up on objectstore-tool explaining under what situations (list them) this tool need to be used, how to use it, what parameters it accepts, what preconditions must exist to issue this command etc.,.

2. Set of steps that lead to situations (listed above) where objectstore-tool has to be used. Using them, QE will test the tool.

Comment 2 Federico Lucifredi 2015-04-14 20:34:16 UTC
*** Bug 1207333 has been marked as a duplicate of this bug. ***

Comment 3 Harish NV Rao 2015-04-15 10:03:19 UTC
Ken, can you please get us the info on above mentioned items?

Comment 4 Ken Dreyer (Red Hat) 2015-04-15 16:41:48 UTC
Hi David, would you be able to answer Harish's questions re: objectstore-tool above? QE is looking for a specific test plan for this feature.

Comment 8 Harish NV Rao 2015-06-01 07:24:07 UTC
Command "ceph-objectstore-tool" is found in recent builds. Moving this defect to verified state for now. The objectstore tool will be verified as part of KB article verification later.

[root@Admin ~]# ceph-objectstore-tool
Must provide --data-path

Allowed options:
  --help                      produce help message
  --type arg                  Arg is one of [filestore (default), memstore, 
                              keyvaluestore]
  --data-path arg             path to object store, mandatory
  --journal-path arg          path to journal, mandatory for filestore type
  --pgid arg                  PG id, mandatory except for import, list-lost, 
                              fix-lost, list-pgs, set-allow-sharded-objects
  --op arg                    Arg is one of [info, log, remove, export, import,
                              list, list-lost, fix-lost, list-pgs, 
                              rm-past-intervals, set-allow-sharded-objects]
  --file arg                  path of file to export or import
  --format arg (=json-pretty) Output format which may be json, json-pretty, 
                              xml, xml-pretty
  --debug                     Enable diagnostic output to stderr
  --skip-journal-replay       Disable journal replay
  --skip-mount-omap           Disable mounting of omap


Positional syntax:

ceph-objectstore-tool ... <object> (get|set)-bytes [file]
ceph-objectstore-tool ... <object> set-(attr|omap) <key> [file]
ceph-objectstore-tool ... <object> (get|rm)-(attr|omap) <key>
ceph-objectstore-tool ... <object> get-omaphdr
ceph-objectstore-tool ... <object> set-omaphdr [file]
ceph-objectstore-tool ... <object> list-attrs
ceph-objectstore-tool ... <object> list-omap
ceph-objectstore-tool ... <object> remove

ceph-objectstore-tool import-rados <pool> [file]

<object> can be a JSON object description as displayed
by --op list.
<object> can be an object name which will be looked up in all
the OSD's PGs.

The optional [file] argument will read stdin or write stdout
if not specified or if '-' specified.
[root@Admin ~]# ceph -v
ceph version 0.94.1 (e4bfad3a3c51054df7e537a724c8d0bf9be972ff)
[root@Admin ~]#

Comment 10 errata-xmlrpc 2015-06-24 15:52:00 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-2015:1183