From 912754249cf34ab2c41f3119ba0d749930196ddc Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Thu, 1 Aug 2013 22:23:04 +0530 Subject: [PATCH] CLOUDSTACK-2921: Added more logging to attach failure Also reduced size of attached disk to 1GB Signed-off-by: Prasanna Santhanam (cherry picked from commit ba059dd0ae09f6f7854aef5d14cccb9ce948724b) --- test/integration/component/test_stopped_vm.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/integration/component/test_stopped_vm.py b/test/integration/component/test_stopped_vm.py index cde2bad7a32..e1f5f2eb2f8 100644 --- a/test/integration/component/test_stopped_vm.py +++ b/test/integration/component/test_stopped_vm.py @@ -65,9 +65,9 @@ class Services: "memory": 128, # In MBs }, "disk_offering": { - "displaytext": "Small volume", - "name": "Small volume", - "disksize": 20 + "displaytext": "Tiny volume", + "name": "Tiny volume", + "disksize": 1 }, "volume": { "diskname": "DataDisk", @@ -680,9 +680,8 @@ class TestDeployVM(cloudstackTestCase): return @attr(tags = ["advanced", "eip", "advancedns", "basic", "sg"]) - def test_08_deploy_attach_volume(self): - """Test Deploy Virtual Machine with startVM=false and - attach volume already attached to different machine + def test_08_deploy_attached_volume(self): + """Test Deploy Virtual Machine with startVM=false and attach volume already attached to different machine """ # Validate the following: @@ -794,7 +793,7 @@ class TestDeployVM(cloudstackTestCase): try: self.virtual_machine_1.attach_volume(self.apiclient, volume) except Exception as e: - self.fail("Attach volume failed!") + self.fail("Attach volume failed with %s!" % e) volumes = Volume.list( self.apiclient,