Project

General

Profile

Actions

Bug #55759

closed

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

Added by Kotresh Hiremath Ravishankar almost 2 years ago. Updated almost 2 years 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 2 (0 open2 closed)

Copied to CephFS - Backport #56103: quincy: mgr/volumes: subvolume ls with groupname as '_nogroup' crashesResolvedNikhilkumar ShelkeActions
Copied to CephFS - Backport #56104: pacific: mgr/volumes: subvolume ls with groupname as '_nogroup' crashesResolvedNikhilkumar ShelkeActions
Actions #1

Updated by Venky Shankar almost 2 years ago

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

Updated by Nikhilkumar Shelke almost 2 years ago

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

Updated by Venky Shankar almost 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot almost 2 years ago

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

Updated by Backport Bot almost 2 years ago

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

Updated by Nikhilkumar Shelke almost 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF