Project

General

Profile

Actions

Bug #5258

closed

ceph-deploy: forgetkeys command could delete existing keyring files without errors

Added by Tamilarasi muthamizhan almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
ceph-deploy
Target version:
-
% 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'

Actions

Also available in: Atom PDF