Project

General

Profile

Actions

Bug #40152

closed

mgr/volumes: unable to set quota on fs subvolumes

Added by Ramana Raja almost 5 years ago. Updated almost 5 years ago.

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

0%

Source:
Community (dev)
Tags:
Backport:
nautilus
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Setting quota on fs subvolumes fails in master. Tested on a vstart cluster.

build]$ ./bin/ceph fs subvolume create a subvol0
2019-06-04 20:04:17.051 7f0f8b632700 -1 WARNING: all dangerous and experimental features are enabled.
2019-06-04 20:04:17.116 7f0f8b632700 -1 WARNING: all dangerous and experimental features are enabled.

build]$ ./bin/ceph fs subvolume create a subvol0 9
2019-06-04 20:04:11.753 7f2050d9d700 -1 WARNING: all dangerous and experimental features are enabled.
2019-06-04 20:04:11.821 7f2050d9d700 -1 WARNING: all dangerous and experimental features are enabled.
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 177, in handle_command
return handler(inbuf, cmd)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/module.py", line 353, in _cmd_fs_subvolume_create
svc.create_subvolume(svp, size)
File "/home/rraja/git/ceph/src/pybind/mgr/volumes/fs/subvolume.py", line 162, in create_subvolume
self.fs.setxattr(path, 'ceph.quota.max_bytes', size.encode('utf-8'), 0)
AttributeError: 'int' object has no attribute 'encode'


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #40158: nautilus: mgr/volumes: unable to set quota on fs subvolumesResolvedRamana RajaActions
Actions #1

Updated by Patrick Donnelly almost 5 years ago

  • Project changed from mgr to CephFS
  • Category deleted (ceph-mgr)
  • Status changed from In Progress to Fix Under Review
  • Target version set to v15.0.0
  • Start date deleted (06/04/2019)
  • Backport set to nautilus
  • Component(FS) mgr/volumes added
Actions #2

Updated by Ramana Raja almost 5 years ago

  • Pull request ID set to 28384
Actions #3

Updated by Patrick Donnelly almost 5 years ago

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

Updated by Nathan Cutler almost 5 years ago

  • Copied to Backport #40158: nautilus: mgr/volumes: unable to set quota on fs subvolumes added
Actions #5

Updated by Ramana Raja almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions #6

Updated by Ramana Raja almost 5 years ago

  • Status changed from Resolved to Pending Backport
Actions #7

Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF