cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Ferreira <MFerre...@schubergphilis.com>
Subject Re: test_nicira_controller.py is failing on all Advzone - XS, KVM
Date Wed, 30 Sep 2015 09:31:07 GMT
Hi Raja,

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": {
    "hosts": [ "nsxcon1.cloud.lan", "nsxcon2.cloud.lan" ]
    }

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.

Cheers,
\ Miguel Ferreira
   mferreira@schubergphilis.com<mailto:mferreira@schubergphilis.com>




On 30 Sep 2015, at 09:05, Raja Pullela <raja.pullela@citrix.com<mailto:raja.pullela@citrix.com>>
wrote:

Hi Miguel or someone's familiar with this test,

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.

Thanks,
Raja

=== TestName: None | Status : EXCEPTION ===
ERROR

======================================================================
ERROR: test suite for <class 'integration.smoke.test_nicira_controller.TestNiciraContoller'>
----------------------------------------------------------------------
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      = cls.config.niciraNvp.hosts
AttributeError: 'NoneType' object has no attribute 'hosts'
-------------------- >> begin captured stdout << ---------------------
=== TestName: None | Status : EXCEPTION ===


--------------------- >> 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      = cls.config.niciraNvp.hosts\n', "AttributeError:
'NoneType' object has no attribute 'hosts'\n"]
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
XML: /root/marvinxKcIvFqe/results.xml
----------------------------------------------------------------------
Ran 0 tests in 0.002s

FAILED (errors=1)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message