| Summary: | fix for deleting objects name beginning and ending with underscores of one bucket using POST method of js sdk | ||
|---|---|---|---|
| Product: | Red Hat Ceph Storage | Reporter: | Orit Wasserman <owasserm> |
| Component: | RGW | Assignee: | Matt Benjamin (redhat) <mbenjamin> |
| Status: | CLOSED ERRATA | QA Contact: | Ramakrishnan Periyasamy <rperiyas> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | 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:47:01 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
Orit Wasserman
2016-11-29 12:58:23 UTC
upstream fix: https://github.com/ceph/ceph/pull/11982 additional fix: https://github.com/ceph/ceph/pull/12262 Orit, would you please check Loic's backport to jewel upstream and approve it if it properly fixes this issue? (In reply to Ken Dreyer (Red Hat) from comment #4) > Orit, would you please check Loic's backport to jewel upstream and approve > it if it properly fixes this issue? Loic's backport looks good (https://github.com/ceph/ceph/pull/12320), it still needs to pass teuthology run. Matt, Orit, are we still waiting on a successful Teuthology run with this change, or can it go downstream now? Moving this bug to verified state. Objects starts and ending with '_' are getting deleted. Before deleting objects: [ubuntu@host023 ~]$ swift -A http://xx.xx.xx.xx:8080/auth/v1.0 -U testuser:swift -K 9DNt6EQQkdOFfslQy3XM7FKQnkpA4C9zfCikHqgs list current_myobj _myobj_ _myobjabc _myobjabc_ my_obj After deleting objects: [ubuntu@host023 ~]$ swift -A http://xx.xx.xx.xx:8080/auth/v1.0 -U testuser:swift -K 9DNt6EQQkdOFfslQy3XM7FKQnkpA4C9zfCikHqgs list current my_obj Python boto used for deleting objects in bulk. Thanks Orit for sharing this information. bucket = conn.get_bucket('current') keys_to_delete = ['_myobj','_myobj_','_myobjabc','_myobjabc_'] result = bucket.delete_keys(keys_to_delete) 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 |