RE: Regarding cloudstack automation

2013-12-30 Thread Santhosh Edukulla
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
  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 
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,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 : [Errno 110] Connection timed out)
Traceback (most recent call last):
  File "/usr/local/bin/nosetests", line 9, in 
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/

suspend/pause cloudstack VM (kvm hypervisor)

2013-12-30 Thread Nevo
Hi all!
  Sorry if my question (see the subject) has been asked before, as it's indeed 
(http://markmail.org/message/apchw5rsf4xgevt4?q=list:org%2Eapache%2Eincubator%2Ecloudstack-%2A+suspend).
 But since I saw no further update on that issue, maybe I could check out here 
first. My box is running cloudstack 4.2.0 on ubuntu 12.04 (desktop). The 
hypervisor is kvm as you probably know. it would be great to be able to 
suspend/resume my VMs now and then so I could have my PC take a break 
sometimes.  Can anyone suggest whether it's possible to support that? It seems 
we can do it via "virsh": https://help.ubuntu.com/community/KVM/Managing , but 
not cloudstack API?

  Thanks!


Nevo

How to update dns server name

2013-12-30 Thread Du Jun
Hi all,
How can I update dns server name of Cloudstack? When we create a zone, we
are required to add public dns server name and internal dns server name.
And how can we update them after enabling zone? As one of my dns server
could not work anymore. Can I update some tables of mysql database
directly? Thanks!
ps: I am the root of my cluster.

--
Best regards,
DuJun


Re: How to update dns server name

2013-12-30 Thread Steven Liang
Hi Dujun,

You can try to modify them in table data_center.

Steven

On 12/30/2013 09:41 AM, Du Jun wrote:
> Hi all,
> How can I update dns server name of Cloudstack? When we create a zone, we
> are required to add public dns server name and internal dns server name.
> And how can we update them after enabling zone? As one of my dns server
> could not work anymore. Can I update some tables of mysql database
> directly? Thanks!
> ps: I am the root of my cluster.
>
> --
> Best regards,
> DuJun
>




RE: How to update dns server name

2013-12-30 Thread Suresh Sadhu
You can directly update from UI.login with admin user and navigate to 
Infrastructure-zone-edit zone and change the public and private dns details.

Regards
sadhu
-Original Message-
From: Steven Liang [mailto:stevenli...@yesup.com] 
Sent: 30 December 2013 20:45
To: users@cloudstack.apache.org
Subject: Re: How to update dns server name

Hi Dujun,

You can try to modify them in table data_center.

Steven

On 12/30/2013 09:41 AM, Du Jun wrote:
> Hi all,
> How can I update dns server name of Cloudstack? When we create a zone, 
> we are required to add public dns server name and internal dns server name.
> And how can we update them after enabling zone? As one of my dns 
> server could not work anymore. Can I update some tables of mysql 
> database directly? Thanks!
> ps: I am the root of my cluster.
>
> --
> Best regards,
> DuJun
>




RE: How to update dns server name

2013-12-30 Thread Chandan Purushothama
Hello DuJun,

Kindly note that the changed DNS information doesn't get automatically updated 
on your system VMs. You might have to stop and start your system VMs for the 
update to happen,

Thank you,
Chandan


 Original message 
From: Suresh Sadhu
Date:12/30/2013 8:54 AM (GMT-08:00)
To: users@cloudstack.apache.org
Subject: RE: How to update dns server name

You can directly update from UI.login with admin user and navigate to 
Infrastructure-zone-edit zone and change the public and private dns details.

Regards
sadhu
-Original Message-
From: Steven Liang [mailto:stevenli...@yesup.com]
Sent: 30 December 2013 20:45
To: users@cloudstack.apache.org
Subject: Re: How to update dns server name

Hi Dujun,

You can try to modify them in table data_center.

Steven

On 12/30/2013 09:41 AM, Du Jun wrote:
> Hi all,
> How can I update dns server name of Cloudstack? When we create a zone,
> we are required to add public dns server name and internal dns server name.
> And how can we update them after enabling zone? As one of my dns
> server could not work anymore. Can I update some tables of mysql
> database directly? Thanks!
> ps: I am the root of my cluster.
>
> --
> Best regards,
> DuJun
>




RE: Regarding cloudstack automation

2013-12-30 Thread Chandan Purushothama

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
  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 
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,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 : [Errno 110] Connection timed out)
Traceback (most recent call last):
  File "/usr/local/bin/nosetests", line 9, in 
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

RE: Unable to create a deployment for VM

2013-12-30 Thread Chandan Purushothama
Hello Sabareesh,

The logs doesn't show the root cause of the problem you have seen on your 
setup. The Insufficient Server Capacity Exception that you have seen might have 
been thrown for the following reasons. 

1. The host on which the VM previously resided on before stopping it, is no 
longer suitable to start the VM on. 
2. There is no other host available in the cluster that can reach the primary 
storage on which the ROOT Volume is present.

Kindly search the logs for information that can help us understand the cause of 
Reason 1,

Regarding Avoid Set:

Whenever user deploys or starts a stopped VM, the deployment planner plans the 
resources required for deploying or starting the VM. Avoid set is a memory data 
structure that is specific for the thread that is executing the request for VM 
deployment or VM Start Operation. During the execution of the request, the host 
picked for deploying or starting a VM is added to the Avoid Set. This will help 
the planner not to retry VM deployment or VM start operation on this host if 
there was a failure in its first attempt to use that particular host. Avoid Set 
is of no use if the VM got successfully deployed or started on its first 
attempt to use that host. Since the avoid set is a thread specific data 
structure, the information stored in it will be garbage collected after the 
death of the thread that is executing the request,

Hope the above information helps you,

Thank you,
Chandan.


-Original Message-
From: remala sabareesh [mailto:rd.sabare...@gmail.com] 
Sent: Sunday, December 29, 2013 11:41 PM
To: users@cloudstack.apache.org
Subject: Unable to create a deployment for VM

Hi,

I am able to setup succesfully  the cloudstack and created the instances 
running successfully,  i am able to stop and start the instances succesfully.

but suddenly after stopping and starting the instance it gives me following 
exception... may i know what is the reason when i am checking the logs it shows 
like host is avoid set, pod is avoid set... and finally throws the insufficent 
server capacity exception.
May i know what is the avoid set how to overcome this issue... if it is the 
insufficient server capacity issue it should throw this exception long back. 
but it is started throwing exception today onwards...
iam confused and stuck pls help me on this below is the logs pasted

2013-12-30 10:52:37,434 DEBUG [agent.manager.
AgentManagerImpl] (AgentManager-Handler-14:null) SeqA 2-24333: Sending Seq
2-24333:  { Ans: , MgmtId: 90591532766, via: 2, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-12-30 10:52:39,290 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) HostStatsCollector is running...
2013-12-30 10:52:39,811 DEBUG [cloud.api.ApiServlet]
(catalina-exec-15:null) ===START===  10.203.251.143 -- GET
command=queryAsyncJobResult&jobId=4333d42a-03b4-4500-97db-429e744df78b&response=json&sessionkey=7JJVl1vgRpS%2FxVXGO1y4KyXksYo%3D&_=1388380873338
2013-12-30 10:52:39,889 DEBUG [cloud.api.ApiServlet]
(catalina-exec-15:null) ===END===  10.203.251.143 -- GET
command=queryAsyncJobResult&jobId=4333d42a-03b4-4500-97db-429e744df78b&response=json&sessionkey=7JJVl1vgRpS%2FxVXGO1y4KyXksYo%3D&_=1388380873338
2013-12-30 10:52:42,811 DEBUG [cloud.api.ApiServlet]
(catalina-exec-13:null) ===START===  10.203.251.143 -- GET
command=queryAsyncJobResult&jobId=4333d42a-03b4-4500-97db-429e744df78b&response=json&sessionkey=7JJVl1vgRpS%2FxVXGO1y4KyXksYo%3D&_=1388380876338
2013-12-30 10:52:42,882 DEBUG [cloud.api.ApiServlet]
(catalina-exec-13:null) ===END===  10.203.251.143 -- GET
command=queryAsyncJobResult&jobId=4333d42a-03b4-4500-97db-429e744df78b&response=json&sessionkey=7JJVl1vgRpS%2FxVXGO1y4KyXksYo%3D&_=1388380876338
2013-12-30 10:52:43,115 DEBUG [agent.transport.Request]
(StatsCollector-2:null) Seq 1-1087657629: Received:  { Ans: , MgmtId:
90591532766, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
2013-12-30 10:52:45,814 DEBUG [cloud.api.ApiServlet]
(catalina-exec-12:null) ===START===  10.203.251.143 -- GET
command=queryAsyncJobResult&jobId=4333d42a-03b4-4500-97db-429e744df78b&response=json&sessionkey=7JJVl1vgRpS%2FxVXGO1y4KyXksYo%3D&_=1388380879340
2013-12-30 10:52:45,883 DEBUG [cloud.api.ApiServlet]
(catalina-exec-12:null) ===END===  10.203.251.143 -- GET
command=queryAsyncJobResult&jobId=4333d42a-03b4-4500-97db-429e744df78b&response=json&sessionkey=7JJVl1vgRpS%2FxVXGO1y4KyXksYo%3D&_=1388380879340
2013-12-30 10:52:47,358 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-1:null) SeqA 2-24334: Processing Seq 2-24334:  { Cmd , 
MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }
2013-12-30 10:52:47,424 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-1:null) SeqA 2-24334: Sending Seq 2-24334:  { Ans: ,
MgmtId: 90591532766, via: 2, Ver: v1, Flags: 100010, 
[{"com.cloud.agent

Advanced Zone Multi NIC Requirement

2013-12-30 Thread Cherif Gouiaa
Hi all,

Is it true that Multi NIC Hypervisor Host is required even in Education/PoC
context ?

My config is
+ ACS 4.2
+ Advanced networking with GRE isolation and 1 public/shared guest network
+ XenServer 6.2 Hypervisor with 1 physical NIC


Re: Advanced Zone Multi NIC Requirement

2013-12-30 Thread Shanker Balan
Comments inline.

On 31-Dec-2013, at 2:13 am, Cherif Gouiaa  wrote:

> Hi all,
>
> Is it true that Multi NIC Hypervisor Host is required even in Education/PoC
> context ?

VLAN based Advanced Zone isolation can be achieved with a single NIC hypervisor.

>
> My config is
> + ACS 4.2
> + Advanced networking with GRE isolation and 1 public/shared guest network

While VLAN based AZ isolation requires a minimum of one NIC, I am not sure
about GRE based Advanced isolation. In my tests, It did not work correctly
with a single NIC.

I ended up using 2 NICs for GRE isolation.


> + XenServer 6.2 Hypervisor with 1 physical NIC

Please do try and let us know if you GRE isolation works in a single
NIC environment.


Regards.


--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2 training
08/09 January 2014, London
13-17 January 2014, GLOBAL. Instructor led, 
On-line
20-24 January 2014, GLOBAL. Instructor led, 
On-line

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.