]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: Reporting /sys directory in get_partition_dev() 14080/head
authorErwan Velu <erwan@redhat.com>
Wed, 22 Mar 2017 09:11:44 +0000 (10:11 +0100)
committerErwan Velu <erwan@redhat.com>
Wed, 22 Mar 2017 09:11:44 +0000 (10:11 +0100)
commit413c9fcfbe8e6ab33d73b8428090ccacc33c5d15
tree614bc13d50f35e2d0d2668de70873f80506e6aff
parent68bc50941303c8ccaa489342204b1f5fcc63b12b
ceph-disk: Reporting /sys directory in get_partition_dev()

When get_partition_dev() fails, it reports the following message :
    ceph_disk.main.Error: Error: partition 2 for /dev/sdb does not appear to exist
The code search for a directory inside the /sys/block/get_dev_name(os.path.realpath(dev)).

The issue here is the error message doesn't report that path when failing while it might be involved in.

This patch is about reporting where the code was looking at when trying to estimate if the partition was available.

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/ceph-disk/ceph_disk/main.py