Actions
Feature #10192
closedceph_objectstore_tool object lookup
% 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