[ https://issues.apache.org/jira/browse/CLOUDSTACK-7025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chandan Purushothama closed CLOUDSTACK-7025. -------------------------------------------- Closing the bug as it is no longer seen in the automation run. > [Automation] Failed to deply virtual machine: > 'TestAddNetworkToVirtualMachine' object has no attribute 'defaultNetworkId' > ------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-7025 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7025 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation, Test > Affects Versions: 4.4.0 > Reporter: Chandan Purushothama > Assignee: Ashutosk Kelkar > Priority: Critical > Fix For: 4.4.0 > > > =========== > Bug in Script: > =========== > try: > virtual_machine = VirtualMachine.create( > self.api_client, self.services["virtual_machine"], > accountid=self.account.name, domainid=self.account.domainid, > serviceofferingid=self.service_offering.id, > mode=self.zone.networktype, > networkids=[self.defaultNetworkId]) ------> BUG: There is no > reference to defaultNetworkId specified anywhere before this code in the > "TestAddNetworkToVirtualMachine" class > self.cleanup.append(virtual_machine) > except Exception as e: > self.fail("Failed to deply virtual machine: %s" % e) > ============ > Error Message: > ============ > Failed to deply virtual machine: 'TestAddNetworkToVirtualMachine' object has > no attribute 'defaultNetworkId' > -------------------- >> begin captured stdout << --------------------- > === TestName: test_03_add_nw_multiple_times_1_isolated | Status : FAILED === > --------------------- >> end captured stdout << ---------------------- > -------------------- >> begin captured logging << -------------------- > test_03_add_nw_multiple_times_1_isolated > (integration.component.test_add_remove_network.TestAddNetworkToVirtualMachine): > DEBUG: ::::::::::::STARTED : TC: test_03_add_nw_multiple_times_1_isolated > ::::::::::: > test_03_add_nw_multiple_times_1_isolated > (integration.component.test_add_remove_network.TestAddNetworkToVirtualMachine): > CRITICAL: FAILED: test_03_add_nw_multiple_times_1_isolated: ['Traceback > (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/case.py", > line 332, in run\n testMethod()\n', ' File > "/usr/local/lib/python2.7/dist-packages/ddt.py", line 114, in wrapper\n > return func(self, *args, **kwargs)\n', ' File > "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_add_remove_network.py", > line 408, in test_03_add_nw_multiple_times\n self.fail("Failed to deply > virtual machine: %s" % e)\n', ' File "/usr/lib/python2.7/unittest/case.py", > line 413, in fail\n raise self.failureException(msg)\n', "AssertionError: > Failed to deply virtual machine: 'TestAddNetworkToVirtualMachine' object has > no attribute 'defaultNetworkId'\n"] > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/lib/python2.7/unittest/case.py", line 332, in run > testMethod() > File "/usr/local/lib/python2.7/dist-packages/ddt.py", line 114, in wrapper > return func(self, *args, **kwargs) > File > "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_add_remove_network.py", > line 408, in test_03_add_nw_multiple_times > self.fail("Failed to deply virtual machine: %s" % e) > File "/usr/lib/python2.7/unittest/case.py", line 413, in fail > raise self.failureException(msg) > 'Failed to deply virtual machine: \'TestAddNetworkToVirtualMachine\' object > has no attribute \'defaultNetworkId\'\n-------------------- >> begin captured > stdout << ---------------------\n=== TestName: > test_03_add_nw_multiple_times_1_isolated | Status : FAILED > ===\n\n\n--------------------- >> end captured stdout << > ----------------------\n-------------------- >> begin captured logging << > --------------------\ntest_03_add_nw_multiple_times_1_isolated > (integration.component.test_add_remove_network.TestAddNetworkToVirtualMachine): > DEBUG: ::::::::::::STARTED : TC: test_03_add_nw_multiple_times_1_isolated > :::::::::::\ntest_03_add_nw_multiple_times_1_isolated > (integration.component.test_add_remove_network.TestAddNetworkToVirtualMachine): > CRITICAL: FAILED: test_03_add_nw_multiple_times_1_isolated: [\'Traceback > (most recent call last):\\n\', \' File > "/usr/lib/python2.7/unittest/case.py", line 332, in run\\n > testMethod()\\n\', \' File "/usr/local/lib/python2.7/dist-packages/ddt.py", > line 114, in wrapper\\n return func(self, *args, **kwargs)\\n\', \' File > "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_add_remove_network.py", > line 408, in test_03_add_nw_multiple_times\\n self.fail("Failed to deply > virtual machine: %s" % e)\\n\', \' File > "/usr/lib/python2.7/unittest/case.py", line 413, in fail\\n raise > self.failureException(msg)\\n\', "AssertionError: Failed to deply virtual > machine: \'TestAddNetworkToVirtualMachine\' object has no attribute > \'defaultNetworkId\'\\n"]\n--------------------- >> end captured logging << > ---------------------' > Standard Output > === TestName: test_03_add_nw_multiple_times_1_isolated | Status : FAILED === -- This message was sent by Atlassian JIRA (v6.3.4#6332)