cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7025) [Automation] Failed to deply virtual machine: 'TestAddNetworkToVirtualMachine' object has no attribute 'defaultNetworkId'
Date Mon, 28 Jul 2014 14:04:40 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14076241#comment-14076241
] 

ASF subversion and git services commented on CLOUDSTACK-7025:
-------------------------------------------------------------

Commit 843e60475798a2cb06daeaa00708c816fb819650 in cloudstack's branch refs/heads/4.4 from
[~ashutoshk]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=843e604 ]

CLOUDSTACK-7025: Resolving test script issue

(cherry picked from commit 33fdfbc83407037b45624ca84ca436fab72e59ab)


> [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.2#6252)

Mime
View raw message