You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Chandan Purushothama (JIRA)" <ji...@apache.org> on 2014/09/09 23:43:28 UTC

[jira] [Closed] (CLOUDSTACK-7148) [Automation] Fix the script "test_redundant_router_cleanups.py" - TypeError: this constructor takes no arguments

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Purushothama closed CLOUDSTACK-7148.
--------------------------------------------

Closing the bug as it is no longer seen in the automation run.

> [Automation] Fix the script "test_redundant_router_cleanups.py" - TypeError: this constructor takes no arguments
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7148
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7148
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Test
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Assignee: Ashutosk Kelkar
>            Priority: Critical
>             Fix For: 4.5.0
>
>
>         self.assertEqual(
>                     len(routers),
>                     2,
>                     "Length of the list router should be 2 (Backup & master)"
>                     )
>         self.debug("Stopping the user VM: %s" % virtual_machine.name)
>         try:
>             virtual_machine.stop(self.apiclient)
>         except Exception as e:
>             self.fail("Failed to stop guest Vm: %s - %s" %
>                                             (virtual_machine.name, e))
>         interval = Configurations( <-- BUG: Missing "list" method
>                                     self.apiclient,
>                                     name='network.gc.interval'
>                                     )
>         delay = int(interval[0].value)
>         interval = Configurations.list(
>                                     self.apiclient,
>                                     name='network.gc.wait'
>                                     )
>         exp = int(interval[0].value)
>         self.debug("Sleeping for network gc wait + interval time")
>         # Sleep to ensure that all resources are deleted
>         time.sleep((delay + exp) * 2)
> ============
> Error Message:
> ============
> est_network_gc (integration.component.test_redundant_router_cleanups.TestRedundantRouterNetworkCleanups): DEBUG: ========Sending GET Cmd : listVirtualMachines=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.220.135.41
> requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?apiKey=K1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_leTpa-yvEb04EOA&id=ecabe928-5dd9-4f53-a5b1-c758e664ac28&response=json&command=listVirtualMachines&signature=%2Fu2ByYo%2F3d%2BN3YRaFn00CddqfgA%3D&listAll=True HTTP/1.1" 200 1374
> test_network_gc (integration.component.test_redundant_router_cleanups.TestRedundantRouterNetworkCleanups): DEBUG: Response : [{domain : u'ROOT', domainid : u'ae89b9d2-0901-11e4-a9bc-5a9383355ca2', haenable : False, templatename : u'CentOS 5.6(64-bit) no GUI (XenServer)', securitygroup : [], zoneid : u'9f076f9c-266e-4d26-b6b5-05e197181167', cpunumber : 1, ostypeid : 142, passwordenabled : False, instancename : u'i-376-589-VM', id : u'ecabe928-5dd9-4f53-a5b1-c758e664ac28', displayvm : True, state : u'Stopped', guestosid : u'aea0f246-0901-11e4-a9bc-5a9383355ca2', cpuspeed : 100, serviceofferingid : u'956b0c1a-94a2-42e8-97a4-ed5cc4ff8afd', zonename : u'XenRT-Zone-0', isdynamicallyscalable : True, displayname : u'Test VM', tags : [], nic : [{networkid : u'4e47e163-7ee2-4bd2-807d-d53867768688', macaddress : u'02:00:0b:4c:00:01', type : u'Isolated', id : u'd0ac745f-c73f-43d6-847c-665067c70bb3', traffictype : u'Guest', netmask : u'255.255.255.0', ipaddress : u'192.168.200.253', networkname : u'Test Network', gateway : u'192.168.200.1', isdefault : True}], memory : 128, templateid : u'ae8e25a8-0901-11e4-a9bc-5a9383355ca2', affinitygroup : [], account : u'test-TestRedundantRouterNetworkCleanups-test_network_gc-YG37AT', name : u'VM-ecabe928-5dd9-4f53-a5b1-c758e664ac28', created : u'2014-07-12T12:49:11+0000', hypervisor : u'XenServer', rootdevicetype : u'ROOT', rootdeviceid : 0, serviceofferingname : u'Tiny Instance', templatedisplaytext : u'CentOS 5.6(64-bit) no GUI (XenServer)'}]
> test_network_gc (integration.component.test_redundant_router_cleanups.TestRedundantRouterNetworkCleanups): CRITICAL: EXCEPTION: test_network_gc: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/unittest/case.py", line 332, in run\n    testMethod()\n', '  File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_redundant_router_cleanups.py", line 597, in test_network_gc\n    name=\'network.gc.interval\'\n', 'TypeError: this constructor takes no arguments\n']
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
>     testMethod()
>   File "/home/jenkins/workspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_redundant_router_cleanups.py", line 597, in test_network_gc
>     name='network.gc.interval'
> 'this constructor takes no arguments\n-------------------- >> begin captured stdout << ---------------------\n=== TestName: test_network_gc | Status : EXCEPTION ===\n\n



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)