[
https://issues.apache.org/jira/browse/CLOUDSTACK-5269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13853954#comment-13853954
]
Santhosh Kumar Edukulla commented on CLOUDSTACK-5269:
-----------------------------------------------------
1. When ever we see an issue during Automation Run as reported in the bugs,
please check the validness of the test scripts by running with python command
as below
"python test_cpu_limits.py". Most probably its the test script issue.
2. The reported issue happens when NosePlugin was not able to load the relevant
test script, following are few of the examples when it misses to load :
2. 1. Test module has an indentation error
2. 2. Not able to import a given module
2. 3. Undefined variable or improper operation on a type etc.
2. 4 Any other Misc Script Issues
2.5 Import an invalid non python file. (We added fix for this as not to
import non python files)
i.e., there was an issue with the test script.
3. In the mentioned cases on the particular setup when i ran it with python
command, below are script errors it reported.
python
/Repo_30X/ipcl/cloudstack/test/integration/component/test_egress_fw_rules.py
'''''''''''''''''''''''''''''''''''''''''
Traceback (most recent call last):
File
"/Repo_30X/ipcl/cloudstack/test/integration/component/test_egress_fw_rules.py",
line 31, in <module>
from marvin.integration.lib.common import (get_domain,
ImportError: cannot import name rebootRouter
'''''''''''''''''''''''''''''''''''''''''
python /Repo_30X/ipcl/cloudstack/test/integration/component/test_cpu_limits.py
Traceback (most recent call last):
File
"/Repo_30X/ipcl/cloudstack/test/integration/component/test_cpu_limits.py", line
30, in <module>
from marvin.integration.lib.common import (get_domain,
ImportError: cannot import name cleanup_resources
4. So, in above cases the relevant import of "cleanup_resources" was failed
for one of the above case. It happened because on your local marvin
installation, there was no API by that name under integration/lib/common.py.
5. If there was no error reported when you run as mentioned in step1, it could
be a marvin issue. Raise the issue and assign to me.
> [Automation] test_shared_networks failed to import "get_free_vlan" and failed
> ------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5269
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5269
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.3.0
> Environment: Basic zone
> Automation
> Reporter: Rayees Namathponnan
> Assignee: Santhosh Kumar Edukulla
> Fix For: 4.3.0
>
>
> Steps to reproduce
> execute test_shared_networks.py in basic zone; test case failed to execute
> with below error
> + nosetests --with-xunit --xunit-file=test_shared_networks.xml --with-marvin
> --marvin-config=/hudson/scripts/bvt_basic_sg_kvm.cfg
> /Repo_30X/ipcl/cloudstack/test//integration/component/test_shared_networks.py
> --load -a tags=sg -a tags=basic
> ERROR
> ======================================================================
> ERROR: Failure: ImportError (cannot import name get_free_vlan)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 132, in run
> self.beforeTest(result)
> File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 74, in
> beforeTest
> beforeTest(self.test)
> File "/usr/local/lib/python2.7/site-packages/nose/proxy.py", line 117, in
> beforeTest
> self.plugins.beforeTest(self.test)
> File "/usr/local/lib/python2.7/site-packages/nose/plugins/manager.py", line
> 99, in __call__
> return self.call(*arg, **kw)
> File "/usr/local/lib/python2.7/site-packages/nose/plugins/manager.py", line
> 167, in simple
> result = meth(*arg, **kw)
> File "/usr/local/lib/python2.7/site-packages/marvin/marvinPlugin.py", line
> 130, in beforeTest
> self.testclient.identifier = '-'.join([self.identifier, self.testName])
> TypeError: sequence item 0: expected string, NoneType found
> ----------------------------------------------------------------------
> Ran 0 tests in 0.023s
> FAILED (errors=1)
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)