Project

General

Profile

Bug #41371

mgr/volumes: subvolume and subvolume group path exists even when creation failed

Added by Ramana Raja over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
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

(testenv) [rraja@bzn build]$ ./bin/ceph fs subvolume create a subvol00 --pool_layout invalid_pool
Error EINVAL: Traceback (most recent call last):
File "/home/rraja/git/ceph/src/pybind/mgr/mgr_module.py", line 889, in _handle_command
return self.handle_command(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 188, in handle_command
return handler(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 230, in _cmd_fs_subvolume_create
mode=cmd.get('mode', '755'))
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 364, in conn_wrapper
result = func(self, fs_h, **kwargs)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 391, in create_subvolume
sv.create_subvolume(spec, size, pool=pool, mode=self.octal_str_to_decimal_int(mode))
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolume.py", line 105, in create_subvolume
self.fs.setxattr(subvolpath, 'ceph.dir.layout.pool', pool.encode('utf-8'), 0)
File "cephfs.pyx", line 1051, in cephfs.LibCephFS.setxattr
cephfs.InvalidValue: [Errno 22] error in setxattr

(testenv) [rraja@bzn build]$ ./bin/ceph fs subvolume getpath a subvol00
/volumes/_nogroup/subvol00

(testenv) [rraja@bzn build]$ ./bin/ceph fs subvolumegroup create a csi --pool_layout invalid_pool
Error EINVAL: Traceback (most recent call last):
File "/home/rraja/git/ceph/src/pybind/mgr/mgr_module.py", line 889, in _handle_command
return self.handle_command(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 188, in handle_command
return handler(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 211, in _cmd_fs_subvolumegroup_create
pool_layout=cmd.get('pool_layout', None), mode=cmd.get('mode', '755'))
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 364, in conn_wrapper
result = func(self, fs_h, **kwargs)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/volume.py", line 504, in create_subvolume_group
sv.create_group(spec, pool=pool, mode=self.octal_str_to_decimal_int(mode))
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolume.py", line 209, in create_group
self.fs.setxattr(path, 'ceph.dir.layout.pool', pool.encode('utf-8'), 0)
File "cephfs.pyx", line 1051, in cephfs.LibCephFS.setxattr
cephfs.InvalidValue: [Errno 22] error in setxattr

(testenv) [rraja@bzn build]$ ./bin/ceph fs subvolumegroup getpath a csi
/volumes/csi


Related issues

Copied to CephFS - Backport #41437: nautilus: mgr/volumes: subvolume and subvolume group path exists even when creation failed Resolved

History

#1 Updated by Ramana Raja over 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 29760

#2 Updated by Patrick Donnelly over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Target version set to v15.0.0
  • Start date deleted (08/21/2019)
  • Source set to Development

#3 Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #41437: nautilus: mgr/volumes: subvolume and subvolume group path exists even when creation failed added

#4 Updated by Nathan Cutler over 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved".

Also available in: Atom PDF