Project

General

Profile

Bug #40152

mgr/volumes: unable to set quota on fs subvolumes

Added by Ramana Raja 5 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
-
Target version:
Start date:
Due date:
% 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:

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

Copied to fs - Backport #40158: nautilus: mgr/volumes: unable to set quota on fs subvolumes Resolved

History

#1 Updated by Patrick Donnelly 5 months ago

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

#2 Updated by Ramana Raja 5 months ago

  • Pull request ID set to 28384

#3 Updated by Patrick Donnelly 5 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler 5 months ago

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

#5 Updated by Ramana Raja 4 months ago

  • Status changed from Pending Backport to Resolved

#6 Updated by Ramana Raja 4 months ago

  • Status changed from Resolved to Pending Backport

#7 Updated by Nathan Cutler 4 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF