Skip to content

Conversation

@theaverageguy
Copy link

Fixes #353

osd_keyring = '/var/lib/ceph/osd/%(cluster)s-%(osd_id)s/keyring' % {'cluster': cluster, 'osd_id': osd_id}
temp = "ceph-conf --name osd.N --show-config-value \'keyring\'"
process = subprocess.Popen(temp.split(), stdout=subprocess.PIPE)
osd_keyring = process.communicate()[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theaverageguy Would you please fall back to the default if this Popen returns non-zero?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure just give me a minute! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants