Project

General

Profile

Actions

Bug #21398

closed

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

Added by Bara Ancincova over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% 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 #1

Updated by Boris Ranto over 6 years ago

  • Status changed from New to Resolved

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

Actions

Also available in: Atom PDF