Project

General

Profile

Actions

Bug #42172

closed

RBD trash ls is not listing images with namespace

Added by Ricardo Marques over 4 years ago. Updated over 4 years ago.

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

Related issues 1 (0 open1 closed)

Blocks Dashboard - Subtask #25125: mgr/dashboard: support RBD namespacesResolvedRicardo Marques

Actions
Actions #1

Updated by Ricardo Marques over 4 years ago

Actions #2

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
Actions #3

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.

Actions #4

Updated by Ricardo Marques over 4 years ago

Jason Dillaman can you please close this issue? (I don't have permissions)

Actions #5

Updated by Jason Dillaman over 4 years ago

  • Status changed from Need More Info to Closed
Actions

Also available in: Atom PDF