Why does RHCS/Ceph Rados Gateway returns an error message while trying to delete objects from a bucket using the '--lazy-remove' option?
Environment
- Red Hat Ceph Storage 1.2.3
- Red Hat Ceph Storage 1.3
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Issue
- Rados Gateway returns an error message while trying to delete objects from a bucket using the '--lazy-remove' option.
# radosgw-admin bucket rm --purge-objects --bucket=8ixsvyve8xn7uykd1v38-dump --lazy-remove
ERROR: invalid flag --lazy-remove
Resolution
-
The '--lazy-remove' switch for 'radosgw-admin' has been removed from the RGW code base.
-
Even though removed, it is still listed in the 'man' page for
radosgw-admin. -
Do not use the '--lazy-remove' option when deleting objects in Rados Gateway, since this feature has been depreciated since pre-argonaut code.
-
A Bugzilla has been open to address the option appearing in the 'man' page at Content from tracker.ceph.com is not included.Content from tracker.ceph.com is not included.http://tracker.ceph.com/issues/13317
-
RHCS bugzilla can be seen at This content is not included.This content is not included.https://bugzilla.redhat.com/show_bug.cgi?id=1267937
Root Cause
- RHCS/Ceph Engineering has removed the code for the '--lazy-remove' option as it is no longer applicable.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.