Project

General

Profile

Bug #21398

Deleting keys doesn't work (RESTful plug-in)

Added by Bara Ancincova almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
09/15/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

History

#1 Updated by Boris Ranto almost 2 years ago

  • Status changed from New to Resolved

This was fixed in the later builds by commit 868420e4219fd11ef12f713c0378a6565f36f1d3.

Also available in: Atom PDF