Project

General

Profile

Actions

Bug #9697

closed

exitcode of gatherkeys has changed the latests versions

Added by Kenneth Waegeman over 9 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
ceph-deploy
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi,

We've been using ceph-deploy in a deployment component, and we also use the gatherkeys function.
In some earlier versions, when the keys are not found, it will exit with code 1:


-sh-4.2$ /usr/bin/ceph-deploy --cluster ceph gatherkeys ceph001.cubone.os
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.11): /usr/bin/ceph-deploy --cluster ceph gatherkeys ceph001.cubone.os
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /etc/ceph/ceph.client.admin.keyring
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /etc/ceph/ceph.client.admin.keyring on ['ceph001.cubone.os']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /var/lib/ceph/mon/ceph-{hostname}/keyring
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /var/lib/ceph/mon/ceph-{hostname}/keyring on ['ceph001.cubone.os']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /var/lib/ceph/bootstrap-osd/ceph.keyring
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['ceph001.cubone.os']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /var/lib/ceph/bootstrap-mds/ceph.keyring
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['ceph001.cubone.os']
-sh-4.2$ echo $?
1

I've seen in the latest versions this is no longer the case (tried 1.5.14 and 1.5.17):

-sh-4.2$ /usr/bin/ceph-deploy --cluster ceph gatherkeys ceph001.cubone.os
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.17): /usr/bin/ceph-deploy --cluster ceph gatherkeys ceph001.cubone.os
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /etc/ceph/ceph.client.admin.keyring
[ceph001.cubone.os][DEBUG ] connection detected need for sudo
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /etc/ceph/ceph.client.admin.keyring on ['ceph001.cubone.os']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /var/lib/ceph/mon/ceph-{hostname}/keyring
[ceph001.cubone.os][DEBUG ] connection detected need for sudo
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /var/lib/ceph/mon/ceph-{hostname}/keyring on ['ceph001.cubone.os']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /var/lib/ceph/bootstrap-osd/ceph.keyring
[ceph001.cubone.os][DEBUG ] connection detected need for sudo
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /var/lib/ceph/bootstrap-osd/ceph.keyring on ['ceph001.cubone.os']
[ceph_deploy.gatherkeys][DEBUG ] Checking ceph001.cubone.os for /var/lib/ceph/bootstrap-mds/ceph.keyring
[ceph001.cubone.os][DEBUG ] connection detected need for sudo
[ceph001.cubone.os][DEBUG ] connected to host: ceph001.cubone.os 
[ceph001.cubone.os][DEBUG ] detect platform information from remote host
[ceph001.cubone.os][DEBUG ] detect machine type
[ceph001.cubone.os][DEBUG ] fetch remote file
[ceph_deploy.gatherkeys][WARNIN] Unable to find /var/lib/ceph/bootstrap-mds/ceph.keyring on ['ceph001.cubone.os']
-sh-4.2$ echo $?
0

Can the exitcode be again non-zero when no keys are found?

Thanks!

Actions #1

Updated by Kenneth Waegeman over 9 years ago

I placed a new issue in the correct project: #9991

Actions #2

Updated by Sage Weil almost 6 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF