[
https://issues.apache.org/jira/browse/CLOUDSTACK-5378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13853953#comment-13853953
]
Santhosh Kumar Edukulla commented on CLOUDSTACK-5378:
-----------------------------------------------------
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
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.
Let me know. Closing the bug for now.
> nose failure sequence item 0: expected string, NoneType found
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-5378
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5378
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: marvin
> Affects Versions: 4.3.0
> Reporter: Girish Shilamkar
> Assignee: Santhosh Kumar Edukulla
> Priority: Critical
>
> Error Message
> sequence item 0: expected string, NoneType found
> Stacktrace
> 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
> 131, in beforeTest
> self.testclient.identifier = '-'.join([self.identifier, self.testName])
> TypeError: sequence item 0: expected string, NoneType found
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)