]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commit
osd: fix determination of osd type
authorPaul Cuzner <pcuzner@redhat.com>
Fri, 21 Jul 2017 22:25:17 +0000 (10:25 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Fri, 21 Jul 2017 22:25:17 +0000 (10:25 +1200)
commit389a00ef432fbb0b16f412aefeed804cd90d9d9e
treedc5218ffb8f501f641896a32f1a012834328ff5e
parentc2d2f2568099d80bc0191b7f60d442a10c5d58ec
osd: fix determination of osd type

the presence of the type file was being relied upon across versions.
However, not all versions show this file (10.2.2 did, 10.2.7 didn't!), so
this fix looks for type and if it's there it uses it, if not it will
look for the presence of the journal link to determine if the osd
is filestore. It is assumed that bluestore will 'always' use the type
file..
collectors/osd.py