Bug 2159627

Summary: mgr/snap-schedule: v2 subvols need "/.." as the mandatory path when creating a schedule for a subvol
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Milind Changire <mchangir>
Component: DocumentationAssignee: Ranjini M N <rmandyam>
Documentation sub component: File System Guide QA Contact: julpark
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: high    
Priority: unspecified CC: hyelloji, julpark, rmandyam, vdas, vshankar
Version: 6.0   
Target Milestone: ---   
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Cause: This happens due to difference in the location at which the snapshots are created in the different type of subvolumes i.e. v1 vs v2 Consequence: Snapshot path is not computed correctly for v2 subvolumes. Workaround (if any): A path of "/.." needs to be supplied as the command-line argument when creating the schedule for a v2 subvol. Result: Snapshots are then correctly created in the directory that is one level higher than the one returned by the subvolume `getpath` command. No other path other than "/.." would work here.
Story Points: ---
Clone Of:
: 2168347 (view as bug list) Environment:
Last Closed: 2023-06-21 06:59:51 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:
Bug Depends On:    
Bug Blocks: 2168347    

Description Milind Changire 2023-01-10 08:04:14 UTC
Describe the issue:
Snaps fail to get created for v2 subvols using the standard path for the subvol.

Describe the task you were trying to accomplish:
I was trying to set a snapshot creation schedule using mgr/snap-schedule module.

Suggestions for improvement:

Document URL:

Chapter/Section Number and Title:

Product Version:

Environment Details:

Any other versions of this document that also needs this update:

Additional information:
Since snapshots fail to get created using the default path for v2 subvol which ends in a UUID, a "/.." path is necessary to be suffixed to the standard subvol path so that the snapshots get correctly created in a directory one level higher than the actual subvol path that ends in a UUID.

Comment 1 RHEL Program Management 2023-01-10 08:04:22 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.