Hi Raja, Please see this PR: https://github.com/apache/cloudstack/pull/1028
Regards, Remi On 30/10/15 17:44, "Raja Pullela" <raja.pull...@citrix.com> wrote: >Hi Michael > >Can you please add a wait for the template to download before the VM creation? > >Raja >Begin forwarded message: >From: Raja Pullela <raja.pull...@citrix.com<mailto:raja.pull...@citrix.com>> >Date: October 29, 2015 at 11:49:59 AM GMT+5:30 >To: "CloudStack Dev >(dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>)" ><dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>> >Subject: Few BVTs failing >Reply-To: <dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>> > >Hi, > >In the latest BVTs, following tests are failing consistently - > >* 2015-10-29 00:27:43,987 - CRITICAL - FAILED: >test_vpc_remote_access_vpn: ['Traceback (most recent call last):\n', ' File >"/usr/lib/python2.7/unittest/case.py", line 329, in run\n testMethod()\n', >' File "/root/cloudstack/test/integration/smoke/test_vpc_vpn.py", line 333, >in test_vpc_remote_access_vpn\n self.fail(e)\n', ' File >"/usr/lib/python2.7/unittest/case.py", line 410, in fail\n raise >self.failureException(msg)\n', 'AssertionError: Execute cmd: >deployvirtualmachine failed, due to: errorCode: 530, errorText:Template 202 >has not been completely downloaded to zone 1\n'] > >* 2015-10-29 00:28:02,194 - CRITICAL - EXCEPTION: >test_vpc_site2site_vpn: ['Traceback (most recent call last):\n', ' File >"/usr/lib/python2.7/unittest/case.py", line 329, in run\n testMethod()\n', >' File "/root/cloudstack/test/integration/smoke/test_vpc_vpn.py", line 589, >in test_vpc_site2site_vpn\n self.assert_(vm1 is not None, "VM failed to >deploy")\n', "UnboundLocalError: local variable 'vm1' referenced before >assignment\n"] > >* 2015-10-29 02:02:15,167 - CRITICAL - EXCEPTION: >test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80: ['Traceback (most recent >call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 329, in >run\n testMethod()\n', ' File >"/root/cloudstack/test/integration/smoke/test_internal_lb.py", line 576, in >test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80\n client_vm = >self.deployvm_in_network(vpc, network_guestnet.id)\n', ' File >"/root/cloudstack/test/integration/smoke/test_internal_lb.py", line 382, in >deployvm_in_network\n raise Exception("Deployment failed of VM: %s" % >e)\n', "Exception: Deployment failed of VM: Job failed: {jobprocstatus : 0, >created : u'2015-10-29T02:02:09+0000', jobresult : {errorcode : 533, errortext >: u'Unable to create a deployment for VM[User|i-36-69-VM]'}, cmd : >u'org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin', userid : >u'afe432e8-7dd7-11e5-9ca5-b230fb1ebb83', jobstatus : 2, jobid : >u'de5a239a-c70c-4039-9e8e-2ea9b80ed28b', jobresultcode : 530, jobinstanceid : >u'47770620-0c37-4e7c-91e0-666bf7fe5eaa', jobresulttype : u'object', >jobinstancetype : u'VirtualMachine', accountid : >u'afe422b2-7dd7-11e5-9ca5-b230fb1ebb83'}\n"] > >* 2015-10-29 02:00:33,135 - CRITICAL - EXCEPTION: >test02_internallb_haproxy_stats_on_all_interfaces: ['Traceback (most recent >call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", line 329, in >run\n testMethod()\n', ' File >"/root/cloudstack/test/integration/smoke/test_internal_lb.py", line 686, in >test02_internallb_haproxy_stats_on_all_interfaces\n settings = >self.get_lb_stats_settings()\n', ' File >"/root/cloudstack/test/integration/smoke/test_internal_lb.py", line 646, in >get_lb_stats_settings\n self.fail("Failed to retrieve stats settings " % >e)\n', 'TypeError: not all arguments converted during string formatting\n'] > >Looks like these were added by Michael. > >Michael, >Can you optimize the tests with the following > >1) Before the VM Deployment or right after Template Register, can you put >a loop to check if the Template is in a ready state before continuing with the >test ? The reason is Template download is not getting completed and as a >result the test cases are failing. > >2) Any reason for not using test_data.py to have all the >configuration/settings you have defined the test file ? > >Please let me know if you have any questions, >Raja >