]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: display the command output on OSD creation failure
authorLoic Dachary <loic@dachary.org>
Wed, 1 Jan 2014 21:13:15 +0000 (22:13 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 3 Jan 2014 15:30:40 +0000 (16:30 +0100)
The string form of a CalledProcessError instance does not include the
output datamember. Add it to the Error exception for debug purposes.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk

index 0616e813feae447323cff4041d721684351bda76..f749fc5714361eab0f6a0c6ffce27d8ce7d81d16 100755 (executable)
@@ -547,7 +547,7 @@ def allocate_osd_id(
                 ],
             )
     except subprocess.CalledProcessError as e:
-        raise Error('ceph osd create failed', e)
+        raise Error('ceph osd create failed', e, e.output)
     osd_id = must_be_one_line(osd_id)
     check_osd_id(osd_id)
     return osd_id