Hello Umesh, >From the logs that you posted, it appears to me that your command for >deployment of VM got fired to the setup correctly. It looks like the VM >deployment failed on the setup. Can you kindly check your cloudstack >management server logs for the error information in order to understand the >root cause for the issue,
Thank you, Chandan -------- Original message -------- From: Santhosh Edukulla Date:12/30/2013 4:20 AM (GMT-08:00) To: users@cloudstack.apache.org,Chandan Purushothama Cc: Sudha Ponnaganti Subject: RE: Regarding cloudstack automation Umesh, One question : Did you registered the template for ostype: "ostype": 'CentOS 5.3 (64-bit)'? Regards, Santhosh ________________________________________ From: umesh kute [umeshvk...@gmail.com] Sent: Monday, December 30, 2013 6:32 AM To: Chandan Purushothama Cc: users@cloudstack.apache.org; Sudha Ponnaganti Subject: Re: Regarding cloudstack automation Hi Chandan, Thanks for your response. I have the latest Marvin repository (December 20th). I am able to proceed further. There was an issue of firewall for that machine and it got resolved. But now i am getting another error when i tried to run the script "test_deploy_vm.py" I have attached the log. Can somebody please have a look on it and help me in resolving the issue? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test_deploy_vm (integration.smoke.test_deploy_vm.TestDeployVM): CRITICAL: EXCEPTION: test_deploy_vm: Traceback (most recent call last): File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run testMethod() File "/DataDisk/temp/cloudstack/test/integration/smoke/test_deploy_vm.py", line 116, in test_deploy_vm templateid=self.template.id<http://self.template.id> File "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line 415, in create virtual_machine = apiclient.deployVirtualMachine(cmd, method=method) File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 593, in deployVirtualMachine response = self.connection.marvinRequest(command, response_type=response, method=method) File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 280, in marvinRequest response = self.poll(asyncJobId, response_type) File "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 86, in poll "asyncquery", asyncResonse.jobresult) cloudstackAPIException: Execute cmd: asyncquery failed, due to: {errorcode : 533, errortext : u'Unable to create a deployment for VM[User|testvmshr]'} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PFA entire logs. Please let me know in case if anything is required. Thanks and Regards -- Umesh Kute On Sun, Dec 29, 2013 at 10:32 PM, Chandan Purushothama <chandan.purushoth...@citrix.com<mailto:chandan.purushoth...@citrix.com>> wrote: Hello Umesh, I had a similar experience with an older Marvin build. I updated mine to the latest and tried again and it worked. I recommend you to kindly try again with the latest Marvin build and see if you are able to work with the automation framework, Thank you, Chandan -------- Original message -------- From: umesh kute Date:12/26/2013 12:29 AM (GMT-08:00) To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>,Sudha Ponnaganti Subject: Re: Regarding cloudstack automation 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<mailto: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<mailto: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<mailto: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 >> > >