Hi All,
I have created a Marvin setup on CentOS6.3 by following the document:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Marvin+-+Testing+with+Python

All the pre-requisites are installed successfully.

I tried to run the sample script test_deploy_vm.py
(cloudstack/test/integration/smoke/), I am getting following error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@localhost smoke]# nosetests --with-marvin
--marvin-config=/DataDisk/temp/cloudstack/tools/marvin/dist/demo.cfg --load
test_deploy_vm.py

 Exception Occurred Under __deployDC :
HTTPConnectionPool(host='10.88.91.100', port=8096): Max retries exceeded
with url: /client/api?account=admin&command=listUsers&response=json (Caused
by <class 'socket.error'>: [Errno 110] Connection timed out)
Traceback (most recent call last):
  File "/usr/local/bin/nosetests", line 9, in <module>
    load_entry_point('nose==1.3.0', 'console_scripts', 'nosetests')()
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/core.py",
line 118, in __init__
    **extra_args)
  File "/usr/local/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/core.py",
line 197, in runTests
    result = self.testRunner.run(self.test)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/core.py",
line 61, in run
    test(result)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 176, in __call__
    return self.run(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 223, in run
    test(orig)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 176, in __call__
    return self.run(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 223, in run
    test(orig)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 176, in __call__
    return self.run(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 223, in run
    test(orig)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 176, in __call__
    return self.run(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 223, in run
    test(orig)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 176, in __call__
    return self.run(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 223, in run
    test(orig)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 176, in __call__
    return self.run(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 223, in run
    test(orig)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/case.py",
line 45, in __call__
    return self.run(*arg, **kwarg)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/case.py",
line 138, in run
    result.addError(self, err)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/proxy.py",
line 124, in addError
    plugin_handled = plugins.handleError(self.test, err)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/plugins/manager.py",
line 99, in __call__
    return self.call(*arg, **kw)
  File
"/usr/local/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/plugins/manager.py",
line 167, in simple
    result = meth(*arg, **kw)
  File "/usr/local/lib/python2.7/site-packages/marvin/marvinPlugin.py",
line 155, in handleError
    self.tcRunLogger.fatal("%s: %s: %s" %
AttributeError: 'NoneType' object has no attribute 'fatal'

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The logs are generated at /tmp and the log has following error.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2013-12-26 13:40:51,797 - DEBUG - CSLog - sending GET request: listUsers
{'account': 'admin'}
2013-12-26 13:41:54,825 - DEBUG - CSLog - Connection refused. Reason:
http://10.88.91.100:8096/client/api :
HTTPConnectionPool(host='10.88.91.100', port=8096): Max retries exceeded
with url: /client/api?account=admin&command=listUsers&response=json (Caused
by <class 'socket.error'>: [Errno 110] Connection timed out)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Please note: I have opened the integration port 8096 on management server.
Also, changed the global settings integration.api.port
on cloudstack GUI to 8096 and restarted the management server.

Still I am getting the above issue. I am not sure if i missed any
configuration.

Can somebody please help me with resolution of this issue?
Appreciate your help here!!!

Thanks and Regards
-- Umesh Kute


On Mon, Dec 9, 2013 at 1:57 PM, umesh kute <umeshvk...@gmail.com> wrote:

> Thanks a lot Sudha for your quick response.
> I will setup the Marvin on local machine and get back in case if I face
> any challenges in setup.
>
> Thanks and Regards
> -- Umesh Kute
>
>
>
> On Sun, Dec 8, 2013 at 4:05 PM, Sudha Ponnaganti <
> sudha.ponnaga...@citrix.com> wrote:
>
>> Hi Umesh,
>>
>> Looks like you have started on right track - Marvin is the framework to
>> use for functional or integration automation.
>> There are sizable number of test cases exist and you can review them.
>>  There are some wiki pages already written explaining Marvin [1]. Also best
>> practices are published by community as well [2]. You can contribute to it
>> as much as you can.
>>
>> Besides this, there is Junit framework (unit Test), Selenium framework
>> (UI automation) which are not as popular as Marvin. Marvin is perfect for
>> majority of the validation. You can use simulator as well with Marvin.
>>
>> Please do pursue these and post questions to the community if you run in
>> to any issues in setting up env and running tests. There are jobs setup by
>> various community members to test Master or current releases in various
>> labs and can help answer questions.
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Marvin+-+Testing+with+Python
>>
>>
>> Thanks
>> /Sudha
>>
>>
>> -----Original Message-----
>> From: umesh kute [mailto:umeshvk...@gmail.com]
>> Sent: Saturday, December 07, 2013 10:29 PM
>> To: users@cloudstack.apache.org
>> Subject: Regarding cloudstack automation
>>
>> Hi All,
>> Good morning !!!
>> I am working as QA engineer and I am new to the cloudstack community.
>> We have started using cloudstack and deployed it in our infrastructure.
>>
>> Can somebody please help me in identifying the good automation
>> framework/tool/anything? The main intention is we want to automate the
>> infrastructure validation related cases (for e.g. create/update/delete
>> cases for instances, project, network, etc...)
>>
>> It would be good if you can help in identifying it.
>>
>> Please note: I have gone through cloudmonkey. But i haven't found much
>> help on it. May be i need to search a bit more.. I am also going through
>> the marvin and planning to setup it. If apart from these two, if anyone has
>> different view please suggest.
>>
>> Also, if somebody has any pointers on cloudmonkey and marvin or any more
>> info on this (like, if it would suffice the infrastructure validation
>> related cases i mentioned above) any pros/cons would really be helpful for
>> me...
>>
>> Appreciate any help on this and looking forward for the response on
>> this!!!
>>
>> Thanks and Regards
>> -- Umesh Kute
>>
>
>

Reply via email to