Actions
Bug #21398
closedDeleting keys doesn't work (RESTful plug-in)
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
An attempt to delete a key by using the "ceph restful delete-key <key>" fails with the following error:
[root@node2 ~]# ceph restful delete-key admin
Error EINVAL: Traceback (most recent call last):
File "/usr/lib64/ceph/mgr/restful/module.py", line 410, in handle_command
self.set_config('keys/' + command['key_name'], None)
File "/usr/lib64/ceph/mgr/mgr_module.py", line 262, in set_config
ceph_state.set_config(self._handle, key, val)
TypeError: must be string, not None
I also tried to use quotation marks with the key (ceph restful delete-key "admin") that doesn't work either.
ceph version 12.1.2-1.el7cp (b661348f156f148d764b998b65b90451f096cb27) luminous (rc)
ceph-mgr-12.1.2-1.el7cp.x86_64
Actions