Project

General

Profile

Actions

Feature #10192

closed

ceph_objectstore_tool object lookup

Added by Loïc Dachary over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

100%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

It would be convenient for test purposes to have

ceph_objectstore_tool OBJECT remove

to be the equivalent of
for pgid in $(./ceph_objectstore_tool --data-path dev/osd0 --journal-path dev/osd0.journal --op list-pgs) ; do object=$(./ceph_objectstore_tool --data-path dev/osd0 --journal-path dev/osd0.journal --pgid $pgid --op list | grep '"oid":"GROUP"') ; test -n "$object" && break ; done ; ./ceph_objectstore_tool --data-path dev/osd0 --journal-path dev/osd0.journal --pgid $pgid "$object" remove 

it would fail if more than one object is found by the same name.

Actions #1

Updated by Loïc Dachary over 9 years ago

  • Status changed from 12 to Fix Under Review
Actions #2

Updated by Loïc Dachary over 9 years ago

  • Status changed from Fix Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF