Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7049111D51 for ; Mon, 28 Jul 2014 21:15:42 +0000 (UTC) Received: (qmail 99676 invoked by uid 500); 28 Jul 2014 21:15:42 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 99652 invoked by uid 500); 28 Jul 2014 21:15:42 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 99640 invoked by uid 500); 28 Jul 2014 21:15:42 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 99637 invoked by uid 99); 28 Jul 2014 21:15:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2014 21:15:42 +0000 Date: Mon, 28 Jul 2014 21:15:42 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-7148) [Automation] Fix the script "test_redundant_router_cleanups.py" - TypeError: this constructor takes no arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-7148?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14076882#comment-14076882 ]=20 ASF subversion and git services commented on CLOUDSTACK-7148: ------------------------------------------------------------- Commit 58987452994f1abc621a2f8f7fcdd24b443cf0e9 in cloudstack's branch refs= /heads/4.4 from [~ashutoshk] [ https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;h=3D5898745 ] CLOUDSTACK-7148: Adding missing list method (cherry picked from commit dd138ceec5faa5d5b0fcdfe5cc655199b8f9187b) > [Automation] Fix the script "test_redundant_router_cleanups.py" - TypeErr= or: this constructor takes no arguments > -------------------------------------------------------------------------= --------------------------------------- > > Key: CLOUDSTACK-7148 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-714= 8 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > 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 & mast= er)" > ) > 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 =3D Configurations( <-- BUG: Missing "list" method > self.apiclient, > name=3D'network.gc.interval' > ) > delay =3D int(interval[0].value) > interval =3D Configurations.list( > self.apiclient, > name=3D'network.gc.wait' > ) > exp =3D 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) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Error Message: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > est_network_gc (integration.component.test_redundant_router_cleanups.Test= RedundantRouterNetworkCleanups): DEBUG: =3D=3D=3D=3D=3D=3D=3D=3DSending GET= Cmd : listVirtualMachines=3D=3D=3D=3D=3D=3D=3D > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connect= ion (1): 10.220.135.41 > requests.packages.urllib3.connectionpool: DEBUG: "GET /client/api?apiKey= =3DK1eKecmH_8ipIelDho9Wm-HZm0WhiIw-2cGFZveZJdKOwB_Cchln9O4QBNxkyy8U8UHCRt_l= eTpa-yvEb04EOA&id=3Decabe928-5dd9-4f53-a5b1-c758e664ac28&response=3Djson&co= mmand=3DlistVirtualMachines&signature=3D%2Fu2ByYo%2F3d%2BN3YRaFn00CddqfgA%3= D&listAll=3DTrue HTTP/1.1" 200 1374 > test_network_gc (integration.component.test_redundant_router_cleanups.Tes= tRedundantRouterNetworkCleanups): DEBUG: Response : [{domain : u'ROOT', dom= ainid : u'ae89b9d2-0901-11e4-a9bc-5a9383355ca2', haenable : False, template= name : 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-5d= d9-4f53-a5b1-c758e664ac28', displayvm : True, state : u'Stopped', guestosid= : u'aea0f246-0901-11e4-a9bc-5a9383355ca2', cpuspeed : 100, serviceoffering= id : u'956b0c1a-94a2-42e8-97a4-ed5cc4ff8afd', zonename : u'XenRT-Zone-0', i= sdynamicallyscalable : True, displayname : u'Test VM', tags : [], nic : [{n= etworkid : 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.16= 8.200.253', networkname : u'Test Network', gateway : u'192.168.200.1', isde= fault : True}], memory : 128, templateid : u'ae8e25a8-0901-11e4-a9bc-5a9383= 355ca2', affinitygroup : [], account : u'test-TestRedundantRouterNetworkCle= anups-test_network_gc-YG37AT', name : u'VM-ecabe928-5dd9-4f53-a5b1-c758e664= ac28', created : u'2014-07-12T12:49:11+0000', hypervisor : u'XenServer', ro= otdevicetype : u'ROOT', rootdeviceid : 0, serviceofferingname : u'Tiny Inst= ance', templatedisplaytext : u'CentOS 5.6(64-bit) no GUI (XenServer)'}] > test_network_gc (integration.component.test_redundant_router_cleanups.Tes= tRedundantRouterNetworkCleanups): CRITICAL: EXCEPTION: test_network_gc: ['T= raceback (most recent call last):\n', ' File "/usr/lib/python2.7/unittest/= case.py", line 332, in run\n testMethod()\n', ' File "/home/jenkins/wor= kspace/xenrt-reg-adv-xs/cloudstack.git/test/integration/component/test_redu= ndant_router_cleanups.py", line 597, in test_network_gc\n name=3D\'netwo= rk.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/inte= gration/component/test_redundant_router_cleanups.py", line 597, in test_net= work_gc > name=3D'network.gc.interval' > 'this constructor takes no arguments\n-------------------- >> begin captu= red stdout << ---------------------\n=3D=3D=3D TestName: test_network_gc | = Status : EXCEPTION =3D=3D=3D\n\n -- This message was sent by Atlassian JIRA (v6.2#6252)