Actions
Bug #42172
closedRBD trash ls is not listing images with namespace
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I have the following image:
# bin/rbd info mypool2/ns1/myimage4-copy rbd image 'myimage4-copy': size 1 GiB in 256 objects order 22 (4 MiB objects) snapshot_count: 1 id: 130c401533a4 block_name_prefix: rbd_data.130c401533a4 format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten op_features: flags: create_timestamp: Wed Oct 2 12:44:26 2019 access_timestamp: Wed Oct 2 12:44:26 2019 modify_timestamp: Wed Oct 2 12:44:26 2019
If I move it to the "trash":
# bin/rbd trash mv mypool2/ns1/myimage4-copy
The image is not listed by the "trash ls":
# bin/rbd trash ls -p mypool2
But the image is no longer available:
# bin/rbd info mypool2/ns1/myimage4-copy rbd: error opening image myimage4-copy: (2) No such file or directory
Updated by Ricardo Marques over 4 years ago
- Blocks Subtask #25125: mgr/dashboard: support RBD namespaces added
Updated by Jason Dillaman over 4 years ago
- Status changed from New to Need More Info
Ricardo: are you listing the trash within the namespace or only the trash within the default pool namespace?
$ rbd namespace create rbd/ns $ rbd create --size 1G rbd/ns/image1 $ rbd trash mv rbd/ns/image1 $ rbd trash ls rbd/ns d390b2b60d8e image1
Updated by Ricardo Marques over 4 years ago
Jason Dillaman wrote:
Ricardo: are you listing the trash within the namespace or only the trash within the default pool namespace?
[...]
I was listing the default namespace, if I list the "ns1" namespace everything works as expected:
# bin/rbd trash ls mypool2/ns1 130c401533a4 myimage4-copy 130c8191b4f4 myimage4
Closing this issue. Thanks for the hint.
Updated by Ricardo Marques over 4 years ago
Jason Dillaman can you please close this issue? (I don't have permissions)
Updated by Jason Dillaman over 4 years ago
- Status changed from Need More Info to Closed
Actions