Actions
Bug #41617
closedmgr/volumes: prevent negative subvolume size
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
% Done:
0%
Source:
Community (dev)
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
$ ./bin/ceph fs subvolume create myfs mysubvol --size -10 --group_name mygroup --pool_layout mycephfs_data --mode 777
- DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2019-09-01T21:42:23.406+0530 7f08ce9f6700 -1 WARNING: all dangerous and experimental features are enabled.
2019-09-01T21:42:23.503+0530 7f08ce9f6700 -1 WARNING: all dangerous and experimental features are enabled.
Error EINVAL: Traceback (most recent call last):
File "/home/jcollin/workspace/ceph/src/pybind/mgr/mgr_module.py", line 915, in _handle_command
return self.handle_command(inbuf, cmd)
File "/home/jcollin/workspace/ceph/src/pybind/mgr/volumes/module.py", line 188, in handle_command
return handler(inbuf, cmd)
File "/home/jcollin/workspace/ceph/src/pybind/mgr/volumes/module.py", line 230, in _cmd_fs_subvolume_create
mode=cmd.get('mode', '755'))
File "/home/jcollin/workspace/ceph/src/pybind/mgr/volumes/fs/volume.py", line 345, in conn_wrapper
result = func(self, fs_h, **kwargs)
File "/home/jcollin/workspace/ceph/src/pybind/mgr/volumes/fs/volume.py", line 372, in create_subvolume
sv.create_subvolume(spec, size, pool=pool, mode=self.octal_str_to_decimal_int(mode))
File "/home/jcollin/workspace/ceph/src/pybind/mgr/volumes/fs/subvolume.py", line 111, in create_subvolume
raise e
InvalidValue: error in setxattr: Invalid argument [Errno 22]
Updated by Jos Collin over 4 years ago
- Description updated (diff)
- Status changed from New to Fix Under Review
- Pull request ID set to 30058
Updated by Patrick Donnelly over 4 years ago
- Target version set to v15.0.0
- Start date deleted (
09/03/2019)
Updated by Patrick Donnelly over 4 years ago
- Status changed from Fix Under Review to Pending Backport
- Component(FS) mgr/volumes added
Updated by Nathan Cutler over 4 years ago
- Copied to Backport #41884: nautilus: mgr/volumes: prevent negative subvolume size added
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".
Actions