Bug 1857827

Summary: mgr/volumes: Remove 'protect' and 'unprotect' requirements to clone a subvolume snapshot
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Shyamsundar <srangana>
Component: CephFSAssignee: Shyamsundar <srangana>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: high Docs Contact:
Priority: medium    
Version: 4.1CC: ceph-eng-bugs, hyelloji, pdonnell, sweil, tserlin, vereddy
Target Milestone: z2   
Target Release: 4.1   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ceph-14.2.8-94.el8cp, ceph-14.2.8-94.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1858826 (view as bug list) Environment:
Last Closed: 2020-09-30 17:26:28 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 Shyamsundar 2020-07-16 16:01:22 UTC
Subvolume snapshots required to be protected, prior to cloning the same.

Also, protected snapshots were not allowed to be unprotected or removed, if there were in-flight clones, whose source was the snapshot being removed.

The protection of snapshots explicitly is not required, as these can be prevented from being removed based only on the in-flight clones checks.

These calls should hence be deprecated, and this allows a clone to be a simpler implementation for consumers like ceph-csi.

In addition to deprecating the above, add support to query a subvolume for supported features, via the subvolume info command, to assist with a Ceph version based  decision on when to use these calls prior to cloning the subvolume.

Comment 1 RHEL Program Management 2020-07-16 16:01:29 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 16 errata-xmlrpc 2020-09-30 17:26:28 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 (Red Hat Ceph Storage 4.1 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/RHBA-2020:4144