Bug 2187659

Summary: ceph fs snap-schedule listing is failing
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Hemanth Kumar <hyelloji>
Component: CephFSAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 6.1CC: akraj, amk, ceph-eng-bugs, cephqe-warriors, mchangir, rmandyam, tserlin, vshankar
Target Milestone: ---Keywords: Regression
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-25.el9cp Doc Type: Bug Fix
Doc Text:
.Support for snap-schedule module With this fix, Ceph continues to provide the subvolume interface to the snap-schedule module of Ceph Manager.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:17:21 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: 2192813    

Description Hemanth Kumar 2023-04-18 11:18:35 UTC
Created attachment 1957954 [details]
mgr_log

Description of problem:
--------------------------

When tried listing out the created snap-scheduled using "ceph fs snap-schedule list / --recursive", traceback is seen as follows.

[root@magna021 ~]# ceph fs snap-schedule list / --recursive
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1758, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
  File "/usr/share/ceph/mgr/mgr_module.py", line 462, in call
    return self.func(mgr, **kwargs)
  File "/usr/share/ceph/mgr/snap_schedule/module.py", line 104, in snap_schedule_list
    abs_path = self.resolve_subvolume_path(use_fs, subvol, path)
NameError: name 'subvol' is not defined


Version-Release number of selected component (if applicable):
ceph version 17.2.6-22.el9cp

How reproducible:
Always


Expected : ceph fs snap-schedule list / --recursive - Should display all the snap-schedules created under /

Actual : Traceback is seen instead of displaying the snap-schedules created.

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

Comment 11 Venky Shankar 2023-04-20 02:46:46 UTC
*** Bug 2188175 has been marked as a duplicate of this bug. ***

Comment 16 Venky Shankar 2023-04-26 02:48:04 UTC
*** Bug 2187661 has been marked as a duplicate of this bug. ***

Comment 19 errata-xmlrpc 2023-06-15 09:17:21 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 (Moderate: Red Hat Ceph Storage 6.1 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-2023:3623