From: Zack Cerza Date: Fri, 21 Feb 2014 15:57:29 +0000 (-0600) Subject: Add explanations to asserts X-Git-Tag: 1.1.0~1646^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=05842e9f842b73e26273050ed716ef8951dc6931;p=teuthology.git Add explanations to asserts Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/devstack.py b/teuthology/task/devstack.py index f88532cbc3..c676acea17 100644 --- a/teuthology/task/devstack.py +++ b/teuthology/task/devstack.py @@ -366,8 +366,10 @@ def create_volume(devstack_node, ceph_node, vol_name, size): ceph_node.run(args="rbd ls -l volumes", stdout=out_stream, wait=True) - assert vol_info['id'] in out_stream.getvalue() - assert vol_info['size'] == size + assert vol_info['id'] in out_stream.getvalue(), \ + "Volume not found on Ceph cluster" + assert vol_info['size'] == size, \ + "Volume size on Ceph cluster is different than specified" return vol_info['id']