Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E1C318F1E for ; Thu, 1 Oct 2015 11:04:10 +0000 (UTC) Received: (qmail 57067 invoked by uid 500); 1 Oct 2015 11:04:09 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 57012 invoked by uid 500); 1 Oct 2015 11:04:09 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 57000 invoked by uid 99); 1 Oct 2015 11:04:09 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2015 11:04:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 178F9C0470 for ; Thu, 1 Oct 2015 11:04:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.7 X-Spam-Level: X-Spam-Status: No, score=0.7 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tZr1sFLlC7bU for ; Thu, 1 Oct 2015 11:03:55 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E7B022085F for ; Thu, 1 Oct 2015 11:03:54 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so22822250wic.0 for ; Thu, 01 Oct 2015 04:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=V1aR68b4EZH46nBH3K93/H2+6whU7FpwN5KDbJXGSYo=; b=boJVGpJF9hC5M3YcuhDW11kkhV/McdF5FK+jwZqF+1calujjkOHOkRyImPuW0FrCy7 30xg/pOE8upIqthoIooSg2gedsZItKRIc33sIeInsu8psEc4x8NATNwmGiACVWY6p1aC QLoWc85/tujrcv4ODQ/rbeoqLb23RuAKMAHsAzxaK+1TjDJC8Wa8eA9/5RYtbvqooWIs edzlficrVEaXlxQQj1oGGx6C2hoLZK2i6htv6dcaLx4rjO3ep4/FDmX0iltZm71dslfl n8P65TBVkwSm6Ez4yc2NrEmxdYxWswbYafrSPo0kba1x5OqdD0L4WQbRJXC03fhc0EI+ zVXg== X-Received: by 10.180.39.242 with SMTP id s18mr2464037wik.79.1443697434562; Thu, 01 Oct 2015 04:03:54 -0700 (PDT) Received: from [10.0.0.107] (229.194.193.178.dynamic.wline.res.cust.swisscom.ch. [178.193.194.229]) by smtp.gmail.com with ESMTPSA id bs8sm5523645wjc.47.2015.10.01.04.03.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Oct 2015 04:03:53 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: test_nicira_controller.py is failing on all Advzone - XS, KVM From: sebgoa In-Reply-To: Date: Thu, 1 Oct 2015 13:03:51 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <64A27E67-F234-4C8C-B371-E2C27D5ED342@gmail.com> References: <93238155381A8343BD3FFE2CB75BC9E723B75F27@SINPEX01CL01.citrite.net> <93238155381A8343BD3FFE2CB75BC9E723B7A7C7@SINPEX01CL01.citrite.net> <93238155381A8343BD3FFE2CB75BC9E723B7C48F@SINPEX01CL01.citrite.net> <9BDCBD03-27F5-43DA-BA39-80AFCFC48014@schubergphilis.com> <409D6B0A-C103-42BA-9D13-89E0118D2A62@citrix.com> To: dev@cloudstack.apache.org X-Mailer: Apple Mail (2.1510) I am not aware of anyone except Schuberg that uses the nicira (NSX) = cloudstack integration. And since Miguel wrote the test, I am comfortable doing what he suggests = and not run it as part of the standard tests for a release. -sebastien On Oct 1, 2015, at 12:57 PM, Miguel Ferreira = wrote: > Can=92t we not run the test if we do not wish to do so? >=20 > \ Miguel Ferreira > mferreira@schubergphilis.com >=20 >=20 >=20 >=20 > On 01 Oct 2015, at 12:11, Koushik Das = > wrote: >=20 > Can't we output a proper message (missing OR incorrect config) while = skipping the test? >=20 > On 01-Oct-2015, at 2:56 PM, Miguel Ferreira = > = wrote: >=20 > Hi Raja, >=20 > I don=92t agree with what you propose. > I do understand your intention is to be able to run all tests and skip = the ones you don=92t have a config for. > However, I also see the other side of that coin, when someone actually = wants to run the tests but makes a mistake in the config and the tests = get skipped. >=20 > I think the test should fail if the config is not right, or otherwise = be excluded if the indentation is to not run them. >=20 > Cheers, > \ Miguel Ferreira > = mferreira@schubergphilis.com >=20 >=20 >=20 >=20 > On 30 Sep 2015, at 19:40, Raja Pullela = > wrote: >=20 > Hi Miguel, >=20 > Can you please add some checking in the setup method for the = configuration parameters and if it is not available, can you skip this = test? >=20 > Raja >=20 > -----Original Message----- > From: Raja Pullela [mailto:raja.pullela@citrix.com] > Sent: Wednesday, September 30, 2015 5:52 PM > To: Miguel Ferreira = > > Cc: dev = > > Subject: RE: test_nicira_controller.py is failing on all Advzone - XS, = KVM >=20 > thanks Miguel ! >=20 > From: Miguel Ferreira [mailto:MFerreira@schubergphilis.com] > Sent: Wednesday, September 30, 2015 3:01 PM > To: Raja Pullela = > > Cc: dev = > > Subject: Re: test_nicira_controller.py is failing on all Advzone - XS, = KVM >=20 > Hi Raja, >=20 > That test needs a NSX cluster. With that in place, the configuration = used to run the test must define a section called NiciraNvp, and that = section should have an array os hosts with that name (see line 46 of the = test). > In a Marvin config that materializes in something like this: > "niciraNvp": { >=20 > "hosts": [ "nsxcon1.cloud.lan", "nsxcon2.cloud.lan" ] > } >=20 > Furthermore, you need to have a zone configured to use NSX and that = requires more work. > You can find a full Marvin config for it here: = https://github.com/schubergphilis/MCT-shared/blob/master/marvin/mct-zone1-= kvm1-NVP.cfg > In that same git repo there are config files for deploying a NSX = cluster = (https://github.com/schubergphilis/MCT-shared/blob/master/deploy/cloud/nsx= _cluster.conf). > However, we have not yet fully automated all the steps needed to get = the cluster up and running (ie. setting up the cluster internals, and = adding a more controllers to the cluster). > I can help you with that if you need. >=20 > Cheers, > \ Miguel Ferreira > = mferreira@schubergphilis.com >=20 >=20 >=20 > On 30 Sep 2015, at 09:05, Raja Pullela = > wrote: >=20 > Hi Miguel or someone's familiar with this test, >=20 > Can you please provide documentation around how to get these tests = running ? > BTW - looks like this is a new test that was added on Aug 25th 2015. >=20 > Thanks, > Raja >=20 > =3D=3D=3D TestName: None | Status : EXCEPTION =3D=3D=3D ERROR >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ERROR: test suite for > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 209, = in run > self.setUp() > File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 292, = in setUp > self.setupContext(ancestor) > File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 315, = in setupContext > try_run(context, names) > File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, = in try_run > return func() > File = "/root/cloudstack/test/integration/smoke/test_nicira_controller.py", = line 46, in setUpClass > cls.nicira_hosts =3D cls.config.niciraNvp.hosts > AttributeError: 'NoneType' object has no attribute 'hosts' > -------------------- >> begin captured stdout << --------------------- = =3D=3D=3D TestName: None | Status : EXCEPTION =3D=3D=3D >=20 >=20 > --------------------- >> end captured stdout << ---------------------- > -------------------- >> begin captured logging << -------------------- > CSLog: CRITICAL: EXCEPTION: None: ['Traceback (most recent call = last):\n', ' File = "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 209, in = run\n self.setUp()\n', ' File = "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 292, in = setUp\n self.setupContext(ancestor)\n', ' File = "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 315, in = setupContext\n try_run(context, names)\n', ' File = "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in = try_run\n return func()\n', ' File = "/root/cloudstack/test/integration/smoke/test_nicira_controller.py", = line 46, in setUpClass\n cls.nicira_hosts =3D = cls.config.niciraNvp.hosts\n', "AttributeError: 'NoneType' object has no = attribute 'hosts'\n"] > --------------------- >> end captured logging << --------------------- >=20 > ---------------------------------------------------------------------- > XML: /root/marvinxKcIvFqe/results.xml > ---------------------------------------------------------------------- > Ran 0 tests in 0.002s >=20 > FAILED (errors=3D1) >=20 >=20 >=20