Project

General

Profile

Actions

Bug #41617

closed

mgr/volumes: prevent negative subvolume size

Added by Jos Collin over 4 years ago. Updated over 4 years ago.

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]

Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #41884: nautilus: mgr/volumes: prevent negative subvolume sizeResolvedRamana RajaActions
Actions #1

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
Actions #2

Updated by Patrick Donnelly over 4 years ago

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

Updated by Patrick Donnelly over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Component(FS) mgr/volumes added
Actions #4

Updated by Nathan Cutler over 4 years ago

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

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

Also available in: Atom PDF