Actions
Bug #5258
closedceph-deploy: forgetkeys command could delete existing keyring files without errors
% Done:
0%
Source:
Q/A
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
From an admin point of view, it would be nice to have 'forgetkeys' command to delete only existing keyring files and not complain about the ones that do not exist.
In cases, where we try to redo cluster creation by wiping out the keyring files, it complains of the ones, that do not exist.
If thats how it was designed, maybe it can display warnings instead of errors.
[ubuntu@burnupi28 ceph-deploy]$ ./ceph-deploy forgetkeys Traceback (most recent call last): File "./ceph-deploy", line 8, in <module> load_entry_point('ceph-deploy==0.1', 'console_scripts', 'ceph-deploy')() File "/home/ubuntu/cdep/ceph-deploy/ceph_deploy/cli.py", line 112, in main return args.func(args) File "/home/ubuntu/cdep/ceph-deploy/ceph_deploy/forgetkeys.py", line 19, in forgetkeys what=f, OSError: [Errno 2] No such file or directory: 'ceph.client.admin.keyring'
Updated by Ian Colle almost 11 years ago
- Assignee set to Sage Weil
- Priority changed from Normal to High
Updated by Sage Weil almost 11 years ago
- Status changed from New to Resolved
commit:953bee3cc66d19ef9b201299fc82c270587936a9
Actions