Actions
Bug #43762
closedpybind/mgr/volumes: create fails with TypeError
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
octopus,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
stack@bionicbeaver:~/devstack$ sudo ceph --version ceph version 14.2.6-268-g2404588 (24045889bfe0c51d31753f37ee53dff33ae14b13) nautilus (stable) stack@bionicbeaver:~$ sudo ceph fs subvolumegroup create manila-volume manila-group Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 923, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/volumes/module.py", line 230, in handle_command return handler(inbuf, cmd) File "/usr/share/ceph/mgr/volumes/module.py", line 253, in _cmd_fs_subvolumegroup_create gid=cmd.get('gid', None), mode=cmd.get('mode', '755')) File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 356, in conn_wrapper fs_h = self.connection_pool.get_fs_handle(fs_name) File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 145, in get_fs_handle raise VolumeException(-e.args[0], e.args[1]) TypeError: bad operand type for unary -: 'str'
< ceph mgr logs >
root@bionicbeaver:~# sudo journalctl -f --unit ceph-mgr@x.service -- Logs begin at Thu 2020-01-09 14:41:46 UTC. -- Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: return self.handle_command(inbuf, cmd) Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/module.py", line 230, in handle_command Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: return handler(inbuf, cmd) Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/module.py", line 253, in _cmd_fs_subvolumegroup_create Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: gid=cmd.get('gid', None), mode=cmd.get('mode', '755')) Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 356, in conn_wrapper Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: fs_h = self.connection_pool.get_fs_handle(fs_name) Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 145, in get_fs_handle Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: raise VolumeException(-e.args[0], e.args[1]) Jan 20 14:44:50 bionicbeaver ceph-mgr[50888]: TypeError: bad operand type for unary -: 'str' Jan 20 17:20:23 bionicbeaver ceph-mgr[50888]: 2020-01-20 17:20:23.522 7fae12c97700 -1 client.0 error registering admin socket command: (17) File exists Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: 2020-01-20 17:25:23.562 7fae12c97700 -1 mgr handle_command module 'volumes' command handler threw exception: bad operand type for unary -: 'str' Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: 2020-01-20 17:25:23.566 7fae12c97700 -1 mgr.server reply reply (22) Invalid argument Traceback (most recent call last): Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/mgr_module.py", line 923, in _handle_command Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: return self.handle_command(inbuf, cmd) Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/module.py", line 230, in handle_command Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: return handler(inbuf, cmd) Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/module.py", line 253, in _cmd_fs_subvolumegroup_create Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: gid=cmd.get('gid', None), mode=cmd.get('mode', '755')) Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 356, in conn_wrapper Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: fs_h = self.connection_pool.get_fs_handle(fs_name) Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 145, in get_fs_handle Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: raise VolumeException(-e.args[0], e.args[1]) Jan 20 17:25:23 bionicbeaver ceph-mgr[50888]: TypeError: bad operand type for unary -: 'str'
Checked the ceph-mon and the ceph-osd, nothing relevant there
Should I check logs for some other service?
Actions