Project

General

Profile

Bug #55759

mgr/volumes: subvolume ls with groupname as '_nogroup' crashes

Added by Kotresh Hiremath Ravishankar 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Tags:
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The subvolume ls with groupname as '_nogroup' crashes


# bin/ceph fs subvolume ls a --group-name=_nogroup
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-05-25T11:58:18.672+0530 7fd40eb4d700 -1 WARNING: all dangerous and experimental features are enabled.
2022-05-25T11:58:18.684+0530 7fd40eb4d700 -1 WARNING: all dangerous and experimental features are enabled.
Error EINVAL: Traceback (most recent call last):
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/mgr_module.py", line 1703, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/volumes/module.py", line 450, in handle_command
    return handler(inbuf, cmd)
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/volumes/module.py", line 38, in wrap
    return f(self, inbuf, cmd)
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/volumes/module.py", line 567, in _cmd_fs_subvolume_ls
    return self.vc.list_subvolumes(vol_name=cmd['vol_name'],
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/volumes/fs/volume.py", line 461, in list_subvolumes
    with open_group(fs_handle, self.volspec, groupname) as group:
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/volumes/fs/operations/group.py", line 179, in open_group
    group = Group(fs, vol_spec, groupname)
  File "/root/sandbox/kotresh-ceph/ceph/src/pybind/mgr/volumes/fs/operations/group.py", line 23, in __init__
    assert groupname != Group.NO_GROUP_NAME
AssertionError


Related issues

Copied to CephFS - Backport #56103: quincy: mgr/volumes: subvolume ls with groupname as '_nogroup' crashes Resolved
Copied to CephFS - Backport #56104: pacific: mgr/volumes: subvolume ls with groupname as '_nogroup' crashes Resolved

History

#1 Updated by Venky Shankar 6 months ago

  • Category set to Correctness/Safety
  • Assignee set to Nikhilkumar Shelke
  • Target version set to v18.0.0
  • Backport set to quincy, pacific

#2 Updated by Nikhilkumar Shelke 6 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 46636

#3 Updated by Venky Shankar 5 months ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Backport Bot 5 months ago

  • Copied to Backport #56103: quincy: mgr/volumes: subvolume ls with groupname as '_nogroup' crashes added

#5 Updated by Backport Bot 5 months ago

  • Copied to Backport #56104: pacific: mgr/volumes: subvolume ls with groupname as '_nogroup' crashes added

#6 Updated by Nikhilkumar Shelke 4 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF