Skip to content

Use ceph-conf to locate OSD keyring#399

Open
theaverageguy wants to merge 1 commit intoceph:masterfrom
theaverageguy:Issue#353
Open

Use ceph-conf to locate OSD keyring#399
theaverageguy wants to merge 1 commit intoceph:masterfrom
theaverageguy:Issue#353

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