]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Get the correct OSD ID when the cluster name includes numbers 750/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 3 May 2016 19:47:47 +0000 (14:47 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 3 May 2016 19:47:47 +0000 (14:47 -0500)
commit4a181d420d7d0f8361d24f274c0e952b9d956945
treebe64c9e3cfbcb28dcc32265e678b43d497b13669
parent28bf3aab441dea49529270aaae92bc4b15ac553a
Get the correct OSD ID when the cluster name includes numbers

If the ceph cluster name includes numbers, the grep used to find the OSD
IDs from /var/lib/ceph/osd/ would also return the numbers that were in
the cluster name.

For example, if the cluster was named 'mine123' and there was only one
OSD on the node, then the task that finds the OSD IDs would return
'123' and '0'.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-osd/tasks/activate_osds.yml