Bug #40152
closedmgr/volumes: unable to set quota on fs subvolumes
0%
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'
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
Updated by Patrick Donnelly almost 5 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler almost 5 years ago
- Copied to Backport #40158: nautilus: mgr/volumes: unable to set quota on fs subvolumes added
Updated by Ramana Raja almost 5 years ago
- Status changed from Pending Backport to Resolved
Updated by Ramana Raja almost 5 years ago
- Status changed from Resolved to Pending Backport
Updated by Nathan Cutler almost 5 years ago
- Status changed from Pending Backport to Resolved