]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: log parted output
authorLoic Dachary <ldachary@redhat.com>
Wed, 16 Dec 2015 11:30:20 +0000 (12:30 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 Jan 2016 15:54:05 +0000 (16:54 +0100)
Should parted output fail to parse, it is useful to get the full output
when running in verbose mode.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit f5d36b9ac299e9f6d52cc32d540cc1c3342de6e7)

src/ceph-disk

index 384eb171c7d3f6369b5795db489c84d278cb0a81..a5133430ab3c1318e9d9c7353cb3c52f47b0be84 100755 (executable)
@@ -1190,6 +1190,7 @@ def get_free_partition_index(dev):
 
     if not lines:
         raise Error('parted failed to output anything')
+    LOG.debug('get_free_partition_index: analyzing ' + lines)
     if ('CHS;' not in lines and
         'CYL;' not in lines and
         'BYT;' not in lines):