Project

General

Profile

Bug #41617

mgr/volumes: prevent negative subvolume size

Added by Jos Collin 16 days ago. Updated 2 days ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
Start date:
Due date:
% 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:

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]

Related issues

Copied to fs - Backport #41884: nautilus: mgr/volumes: prevent negative subvolume size In Progress

History

#1 Updated by Jos Collin 16 days ago

  • Description updated (diff)
  • Status changed from New to Need Review
  • Pull request ID set to 30058

#2 Updated by Patrick Donnelly 9 days ago

  • Target version set to v15.0.0
  • Start date deleted (09/03/2019)

#3 Updated by Patrick Donnelly 2 days ago

  • Status changed from Need Review to Pending Backport
  • Component(FS) mgr/volumes added

#4 Updated by Nathan Cutler 2 days ago

  • Copied to Backport #41884: nautilus: mgr/volumes: prevent negative subvolume size added

Also available in: Atom PDF