]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add explanations to asserts
authorZack Cerza <zack@cerza.org>
Fri, 21 Feb 2014 15:57:29 +0000 (09:57 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 21 Feb 2014 15:57:29 +0000 (09:57 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/devstack.py

index f88532cbc30f5d45a5fe136b9cc66e1781743189..c676acea17c9fa928e2d3dae197011ea144e3e77 100644 (file)
@@ -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']