Bug #21398
closedDeleting keys doesn't work (RESTful plug-in)
0%
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
Updated by Boris Ranto over 6 years ago
- Status changed from New to Resolved
This was fixed in the later builds by commit 868420e4219fd11ef12f713c0378a6565f36f1d3.