Bug #3933
closedceph-deploy gatherkeys silently fails if no host is specified
0%
Updated by Anonymous about 11 years ago
- Category set to ceph-deploy
If no host is specified and ceph.conf exists gatherkeys will fail, but not report any error.
Updated by Anonymous about 11 years ago
- Status changed from In Progress to Fix Under Review
Fix is checked into wip-3933 branch.
Originally there was no output it a host was not supplied, but it is now:
ubuntu@gary-ubuntu-01:~/ceph-deploy$ ./ceph-deploy gatherkeys
WARNING:ceph_deploy.gatherkeys:Unable to find /etc/ceph/ceph.client.admin.keyring on []
DEBUG:ceph_deploy.gatherkeys:Have ceph.mon.keyring
WARNING:ceph_deploy.gatherkeys:Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on []
WARNING:ceph_deploy.gatherkeys:Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on []
With the fix to require at leas one arguement the result is:
ubuntu@gary-ubuntu-01:~/ceph-deploy$ ./ceph-deploy gatherkeys
usage: ceph-deploy gatherkeys [-h] HOST [HOST ...]
ceph-deploy gatherkeys: error: too few arguments
Updated by Sage Weil about 11 years ago
- Status changed from Fix Under Review to Resolved
commit:37d9abb4ba75b95a1d57febe290d8b5573e736bc