Bug 1930180

Summary: pybind/mgr/volumes: inherited snapshots should be filtered out of snapshot listing
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Kotresh HR <khiremat>
Component: CephFSAssignee: Kotresh HR <khiremat>
Status: CLOSED ERRATA QA Contact: Yogesh Mane <ymane>
Severity: medium Docs Contact:
Priority: high    
Version: 4.2CC: ceph-eng-bugs, pdonnell, sweil, tserlin, vereddy
Target Milestone: ---   
Target Release: 4.2z2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-14.2.11-170.el8cp, ceph-14.2.11-170.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-15 17:13:43 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:
Embargoed:

Description Kotresh HR 2021-02-18 13:29:23 UTC
Description of problem:

If a snapshot is created on a parent directory of a subvolume, it shows up in the snapshot listing:

$ ceph fs volume create b
$ ceph fs subvolume create b foo
$ sudo mkdir /home/pdonnell/mnt/tmp.NdWboGH0TH/volumes/_nogroup/.snap/bar
$ ceph fs subvolume snapshot ls b foo
[
    {
        "name": "_bar_1099511627777" 
    }
]

These should be filtered out of the listing and operations on those snapshots should fail. Eventually we might want to have snapshots on subvolume groups again to have feature parity with RBD consistency groups [1] but those snapshot names can be fetched by listing the subvolume group snaps.

[1] https://tracker.ceph.com/projects/ceph/wiki/Consistency_groups


For more details, look into upstream tracker attached.

Comment 2 Patrick Donnelly 2021-05-19 03:22:58 UTC
*** Bug 1930183 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2021-06-15 17:13:43 UTC
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 (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix Update), 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://access.redhat.com/errata/RHSA-2021:2445