Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Ian Marshall
Hi Everyone

Does anyone have a guide to help a new user setup a cloudstack with xenserver 
and equallogic SAN?

I've read the guides on the cloudstack site and found a link to the Dell guide 
for integrating EQLX to xenserver but unsure if this is correct for cloudstack 
setup. Also not sure what should/can be configured using the xen centre admin 
once cloudstack is implemented. 

Regards
Ian

RE: Unable to delete virtual router

2014-06-23 Thread Suresh Sadhu

HI,

It looks your network in stuck in transition state(implementing) as log clearly 
says it should either implemented or allocate .

You can  update the network state in db as implemented  and perform again 
network restart with cleanup option.

-sadhu


-Original Message-
From: Tejas Gadaria [mailto:refond.g...@gmail.com] 
Sent: 23 June 2014 12:10
To: d...@cloudstack.apache.org
Cc: users@cloudstack.apache.org
Subject: Re: Unable to delete virtual router

Hi,

After restarting the Network it says, "Network is not in the right state to be 
restarted. Correct states are: Implemented, Setup"


2014-06-23 12:04:29,112 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-993ca065) Completed acquiring hosts for clusters not owned by any 
management server
2014-06-23 12:04:29,269 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-15:null) Ping from 3
2014-06-23 12:04:32,755 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-393:ctx-d0977fbe) Ping from 1(swiftproxy-xen1)
2014-06-23 12:04:33,101 DEBUG [c.c.a.ApiServlet]
(catalina-exec-11:ctx-dc604cdc) ===START===  192.168.160.192 -- GET
command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%2Bk%3D&_=1403505273057
2014-06-23 12:04:33,127 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-12:null) SeqA 4-91008: Processing Seq 4-91008:  { Cmd , 
MgmtId: -1, via: 4, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":3,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }
2014-06-23 12:04:33,291 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-12:null) SeqA 4-91008: Sending Seq 4-91008:  { Ans: ,
MgmtId: 64342918221735, via: 4, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2014-06-23 12:04:33,404 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) submit async job-167, details:
AsyncJobVO {id:167, userId: 2, accountId: 2, instanceType: None,
instanceId: null, cmd:
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo:
{"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessionkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventType":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"1403505273057","ctxAccountId":"2","ctxStartEventId":"605"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated:
null, lastPolled: null, created: null}
2014-06-23 12:04:33,405 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
(Job-Executor-11:ctx-587064a4) Add job-167 into job monitoring
2014-06-23 12:04:33,406 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(Job-Executor-11:ctx-587064a4) Executing AsyncJobVO {id:167, userId: 2,
accountId: 2, instanceType: None, instanceId: null, cmd:
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo:
{"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessionkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventType":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"1403505273057","ctxAccountId":"2","ctxStartEventId":"605"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated:
null, lastPolled: null, created: null}
2014-06-23 12:04:33,407 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-dc604cdc 
ctx-6b97cb9e) ===END===  192.168.160.192 -- GET
command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%2Bk%3D&_=1403505273057
2014-06-23 12:04:33,538 ERROR [c.c.a.ApiAsyncJobDispatcher]
(Job-Executor-11:ctx-587064a4) Unexpected exception while executing 
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd
com.cloud.exception.InvalidParameterValueException: Network is not in the right 
state to be restarted. Correct states are: Implemented, Setup
at
com.cloud.network.NetworkServiceImpl.restartNetwork(NetworkServiceImpl.java:1832)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


Regards,
Tejas


On Mon, Jun 23, 2014 at 12:03 PM, Tejas Gadaria 
wrote:

> I am using CS 4.3.
>
> Before restarting the Guest network, Network state : Implementing I 
> will post logs once i will restart the Network.
>
> Regards,
> Tejas
>
>
> On Mon, Jun 23, 2014 at 10:18 AM, Suresh Sadhu 
> 
> wrote:
>
>> Try restart the network with cleanup option .it will recreate the  router.
>> By the way, Which version of cloudstack you are using?
>>
>>
>> -Original Message-
>> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
>> Sent: 21 June 2014 22:45
>> To: users@cloudstack.apache.org; d...@cloudstack.apache.org
>> Subject: Re: Unable to delete virtual router
>>
>> Hi,
>>
>> I found this bug still open
>> https://issues.apache.org/jira/browse/CLOUDSTACK-1007
>>
>> Is there a

Re: Unable to delete virtual router

2014-06-23 Thread Tejas Gadaria
Hi,

Should I update the state in "networks" table in cloud db ?

Regards,
Tejas


On Mon, Jun 23, 2014 at 12:46 PM, Suresh Sadhu 
wrote:

>
> HI,
>
> It looks your network in stuck in transition state(implementing) as log
> clearly says it should either implemented or allocate .
>
> You can  update the network state in db as implemented  and perform again
> network restart with cleanup option.
>
> -sadhu
>
>
> -Original Message-
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> Sent: 23 June 2014 12:10
> To: d...@cloudstack.apache.org
> Cc: users@cloudstack.apache.org
> Subject: Re: Unable to delete virtual router
>
> Hi,
>
> After restarting the Network it says, "Network is not in the right state
> to be restarted. Correct states are: Implemented, Setup"
>
>
> 2014-06-23 12:04:29,112 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
> Timer:ctx-993ca065) Completed acquiring hosts for clusters not owned by
> any management server
> 2014-06-23 12:04:29,269 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-15:null) Ping from 3
> 2014-06-23 12:04:32,755 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-393:ctx-d0977fbe) Ping from 1(swiftproxy-xen1)
> 2014-06-23 12:04:33,101 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-11:ctx-dc604cdc) ===START===  192.168.160.192 -- GET
>
> command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%2Bk%3D&_=1403505273057
> 2014-06-23 12:04:33,127 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-12:null) SeqA 4-91008: Processing Seq 4-91008:  {
> Cmd , MgmtId: -1, via: 4, Ver: v1, Flags: 11,
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":3,"_loadInfo":"{\n
> \"connections\": []\n}","wait":0}}] }
> 2014-06-23 12:04:33,291 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-12:null) SeqA 4-91008: Sending Seq 4-91008:  { Ans: ,
> MgmtId: 64342918221735, via: 4, Ver: v1, Flags: 100010,
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2014-06-23 12:04:33,404 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) submit async job-167, details:
> AsyncJobVO {id:167, userId: 2, accountId: 2, instanceType: None,
> instanceId: null, cmd:
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo:
>
> {"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessionkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventType":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"1403505273057","ctxAccountId":"2","ctxStartEventId":"605"},
> cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated:
> null, lastPolled: null, created: null}
> 2014-06-23 12:04:33,405 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
> (Job-Executor-11:ctx-587064a4) Add job-167 into job monitoring
> 2014-06-23 12:04:33,406 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-11:ctx-587064a4) Executing AsyncJobVO {id:167, userId: 2,
> accountId: 2, instanceType: None, instanceId: null, cmd:
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo:
>
> {"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessionkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventType":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"1403505273057","ctxAccountId":"2","ctxStartEventId":"605"},
> cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated:
> null, lastPolled: null, created: null}
> 2014-06-23 12:04:33,407 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) ===END===  192.168.160.192 --
> GET
>
> command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%2Bk%3D&_=1403505273057
> 2014-06-23 12:04:33,538 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (Job-Executor-11:ctx-587064a4) Unexpected exception while executing
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd
> com.cloud.exception.InvalidParameterValueException: Network is not in the
> right state to be restarted. Correct states are: Implemented, Setup
> at
>
> com.cloud.network.NetworkServiceImpl.restartNetwork(NetworkServiceImpl.java:1832)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>
> Regards,
> Tejas
>
>
> On Mon, Jun 23, 2014 at 12:03 PM, Tejas Gadaria 
> wrote:
>
> > I am using CS 4.3.
> >
> > Before restarting the Guest network, Network state : Implementing I
> > will post logs once i will restart the Network.
> >
> > Regards,
> > Tejas
> >
> >
> > On Mon, Jun 23, 2014 at 10:18 AM, Suresh Sadhu
> > 
> > wrote:
> >
> >> Try restart the network with cleanup option .it will recreate the
>  router.
> >> By the way, Which version of cloudstack you are using?
> >>
> >>
> >> -Origin

Error in listHosts - Infrastructure Tab in UI

2014-06-23 Thread Mark van der Meulen
Hi,

Does anyone know where I can start looking to resolve this error? It occurs
whenever we visit the Infrastructure page in the CS UI ever since we removed
a host(which was apparently successful). It means we can¹t add more hosts or
perform any functions which would be performed from the Infrastructure
section of the UI.

Thanks,

Mark


2014-06-23 17:41:45,279 DEBUG [c.c.a.q.QueryManagerImpl]
(catalina-exec-18:ctx-5ee0ee17 ctx-51f50f45) >>>Searching for hosts>>>
2014-06-23 17:41:45,301 DEBUG [c.c.a.q.QueryManagerImpl]
(catalina-exec-18:ctx-5ee0ee17 ctx-51f50f45) >>>Generating Response>>>
2014-06-23 17:41:45,312 ERROR [c.c.a.ApiServer]
(catalina-exec-18:ctx-5ee0ee17 ctx-51f50f45) unhandled exception executing
api command: listHosts
java.lang.NullPointerException
at 
com.cloud.storage.StorageManagerImpl.isLocalStorageActiveOnHost(StorageManag
erImpl.java:359)
at 
com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(ApiDBUtils.java:735)
at 
com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(HostJoinDaoImpl.java
:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopU
tils.java:317)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:150)
at 
com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextIn
terceptor.java:33)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:161)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expos
eInvocationInterceptor.java:91)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro
xy.java:204)
at com.sun.proxy.$Proxy262.newHostResponse(Unknown Source)
at com.cloud.api.ApiDBUtils.newHostResponse(ApiDBUtils.java:1540)
at 
com.cloud.api.query.ViewResponseHelper.createHostResponse(ViewResponseHelper
.java:236)
at 
com.cloud.api.query.QueryManagerImpl.searchForServers(QueryManagerImpl.java:
1530)
at 
org.apache.cloudstack.api.command.admin.host.ListHostsCmd.execute(ListHostsC
md.java:179)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
at 
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(Defa
ultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithCon
text(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithCont
ext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:74)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:
889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(H
ttp11NioProtocol.java:744)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:
2282)
at 
java.util.concurren

RE: Unable to delete virtual router

2014-06-23 Thread Suresh Sadhu
Yes.

-Original Message-
From: Tejas Gadaria [mailto:refond.g...@gmail.com] 
Sent: 23 June 2014 12:53
To: users@cloudstack.apache.org
Cc: d...@cloudstack.apache.org
Subject: Re: Unable to delete virtual router

Hi,

Should I update the state in "networks" table in cloud db ?

Regards,
Tejas


On Mon, Jun 23, 2014 at 12:46 PM, Suresh Sadhu 
wrote:

>
> HI,
>
> It looks your network in stuck in transition state(implementing) as 
> log clearly says it should either implemented or allocate .
>
> You can  update the network state in db as implemented  and perform 
> again network restart with cleanup option.
>
> -sadhu
>
>
> -Original Message-
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> Sent: 23 June 2014 12:10
> To: d...@cloudstack.apache.org
> Cc: users@cloudstack.apache.org
> Subject: Re: Unable to delete virtual router
>
> Hi,
>
> After restarting the Network it says, "Network is not in the right 
> state to be restarted. Correct states are: Implemented, Setup"
>
>
> 2014-06-23 12:04:29,112 DEBUG [c.c.h.d.HostDaoImpl] 
> (ClusteredAgentManager
> Timer:ctx-993ca065) Completed acquiring hosts for clusters not owned 
> by any management server
> 2014-06-23 12:04:29,269 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-15:null) Ping from 3
> 2014-06-23 12:04:32,755 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-393:ctx-d0977fbe) Ping from 1(swiftproxy-xen1)
> 2014-06-23 12:04:33,101 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-11:ctx-dc604cdc) ===START===  192.168.160.192 -- GET
>
> command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368db
> e3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%
> 2Bk%3D&_=1403505273057
> 2014-06-23 12:04:33,127 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-12:null) SeqA 4-91008: Processing Seq 4-91008:  
> { Cmd , MgmtId: -1, via: 4, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":3,
> "_loadInfo":"{\n
> \"connections\": []\n}","wait":0}}] }
> 2014-06-23 12:04:33,291 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-12:null) SeqA 4-91008: Sending Seq 4-91008:  { 
> Ans: ,
> MgmtId: 64342918221735, via: 4, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] 
> }
> 2014-06-23 12:04:33,404 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) submit async job-167, details:
> AsyncJobVO {id:167, userId: 2, accountId: 2, instanceType: None,
> instanceId: null, cmd:
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo:
>
> {"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessio
> nkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventTy
> pe":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"14035052
> 73057","ctxAccountId":"2","ctxStartEventId":"605"},
> cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated:
> null, lastPolled: null, created: null}
> 2014-06-23 12:04:33,405 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
> (Job-Executor-11:ctx-587064a4) Add job-167 into job monitoring
> 2014-06-23 12:04:33,406 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-11:ctx-587064a4) Executing AsyncJobVO {id:167, userId: 
> 2,
> accountId: 2, instanceType: None, instanceId: null, cmd:
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo:
>
> {"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessio
> nkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventTy
> pe":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"14035052
> 73057","ctxAccountId":"2","ctxStartEventId":"605"},
> cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated:
> null, lastPolled: null, created: null}
> 2014-06-23 12:04:33,407 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) ===END===  
> 192.168.160.192 -- GET
>
> command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368db
> e3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%
> 2Bk%3D&_=1403505273057
> 2014-06-23 12:04:33,538 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (Job-Executor-11:ctx-587064a4) Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd
> com.cloud.exception.InvalidParameterValueException: Network is not in 
> the right state to be restarted. Correct states are: Implemented, Setup
> at
>
> com.cloud.network.NetworkServiceImpl.restartNetwork(NetworkServiceImpl.java:1832)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>
> Regards,
> Tejas
>
>
> On Mon, Jun 23, 2014 at 12:03 PM, Tejas Gadaria 
> 
> wrote:
>
> > I am using CS 4.3.
> >
> > Before restarting the Guest network, Network state : Implementing I 
> > will post logs once i will restart the Net

Re: Unable to delete virtual router

2014-06-23 Thread Tejas Gadaria
Hi,

I am getting the similar log after deleting the Network it says "Unable to
destroy network because of virtual router" & VR is in expunging state.

2014-06-23 13:02:21,589 WARN  [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Unable to apply ip association,
virtual router is not in the right state Expunging
2014-06-23 13:02:21,594 DEBUG [c.c.n.IpAddressManagerImpl]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Resource is not available:
VirtualRouter
com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1]
is unreachable: Unable to apply ip association, virtual router is not in
the right state
at
com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3928)


2014-06-23 13:02:21,595 WARN  [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Unable to apply ip address
associations for Ntwk[207|Guest|17] as a part of shutdownNetworkRules
2014-06-23 13:02:21,595 WARN  [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Failed to cleanup network
id=207 resources as a part of shutdownNetwork
2014-06-23 13:02:21,599 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Sending network shutdown to
VirtualRouter
2014-06-23 13:02:21,601 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Stopping router
VM[DomainRouter|r-27-VM]
2014-06-23 13:02:21,604 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Stopped called on
VM[DomainRouter|r-27-VM] but the state is Expunging
2014-06-23 13:02:21,606 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Network id=207 is shutdown
successfully, cleaning up corresponding resources now.
2014-06-23 13:02:21,654 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Lock is released for network
Ntwk[207|Guest|17] as a part of network shutdown

2014-06-23 13:02:22,045 WARN  [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-16:ctx-011048ba ctx-55af37fa) Unable to complete destroy of
the network due to element: VirtualRouter


After this logs I changed VR status in 'vm_instance' made it 'stopped' &
tried to delete the router..but it has thrown exception,



2014-06-23 13:16:51,878 DEBUG [c.c.c.CapacityManagerImpl]
(Job-Executor-18:ctx-b2b5bc61 ctx-82406597) VM state transitted from
:Stopped to Expunging with event: ExpungeOperationvm's original host id:
null new host id: 6 host id before state transition: 6
2014-06-23 13:16:51,878 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-18:ctx-b2b5bc61 ctx-82406597) Destroying vm
VM[DomainRouter|r-27-VM]
2014-06-23 13:16:51,878 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-18:ctx-b2b5bc61 ctx-82406597) Cleaning up NICS
2014-06-23 13:16:51,878 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-18:ctx-b2b5bc61 ctx-82406597) Cleaning network for vm: 27
2014-06-23 13:16:51,881 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-18:ctx-b2b5bc61 ctx-82406597) Cleaning up hypervisor data
structures (ex. SRs in XenServer) for managed storage
2014-06-23 13:16:51,900 ERROR [c.c.a.ApiAsyncJobDispatcher]
(Job-Executor-18:ctx-b2b5bc61) Unexpected exception while executing
org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd
java.lang.NullPointerException
at
org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.disconnectVolumesFromHost(VolumeOrchestrator.java:885)
at
com.cloud.vm.VirtualMachineManagerImpl.advanceExpunge(VirtualMachineManagerImpl.java:513)


at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2014-06-23 13:16:51,912 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(Job-Executor-18:ctx-b2b5bc61) Complete async job-174, jobStatus: FAILED,
resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530}
2014-06-23 13:16:51,966 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(Job-Executor-18:ctx-b2b5bc61) Done executing
org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd for job-174
2014-06-23 13:16:51,989 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
(Job-Executor-18:ctx-b2b5bc61) Remove job-174 from job monitoring


Regards,
Tejas




On Mon, Jun 23, 2014 at 12:52 PM, Tejas Gadaria 
wrote:

> Hi,
>
> Should I update the state in "networks" table in cloud db ?
>
> Regards,
> Tejas
>
>
> On Mon, Jun 23, 2014 at 12:46 PM, Suresh Sadhu 
> wrote:
>
>>
>> HI,
>>
>> It looks your network in stuck in transition state(implementing) as log
>> clearly says it should either implemented or allocate .
>>
>> You can  update the network state in db as implemented  and perform again
>> network restart with cleanup option.
>>
>> -sadhu
>>
>>
>> -Original Message-
>> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
>> Sent: 23 June 2014 12:10
>> To: d...@cloudstack.apache.org

Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Dean Kamali
You could ​export shares via NFS and add your shares as primary or
secondary storage to your CS accordingly, you may export your shares
via ISCSI volumes as well.

There is not specific guide for Dell EQLX.

cheers

Dean
​


On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall  wrote:

> Hi Everyone
>
> Does anyone have a guide to help a new user setup a cloudstack with
> xenserver and equallogic SAN?
>
> I've read the guides on the cloudstack site and found a link to the Dell
> guide for integrating EQLX to xenserver but unsure if this is correct for
> cloudstack setup. Also not sure what should/can be configured using the xen
> centre admin once cloudstack is implemented.
>
> Regards
> Ian


Performance degrades when I use the StaticNAT in Virtual Router. Is there a way to speed up?

2014-06-23 Thread giraffeg forestg
Hi All

Performance degrades when I use the StaticNAT in Virtual Router. Is there a
way to speed up?

Environment:
 Apache CloudStack 4.3.0
 SystemVM:systemvm64template-2014-01-14-master-xen.vhd
 HyperVisor:XenServer 6.2SP1
 Network:1Gbps (Catalyst3550-12G)

 System Offering:
  CPU:2000 MHz
  Memory:2048 MB
  Network Rate:1 MB

 Network Offering:
  Network Rate:1 MB


(Case-1, Direct Access) Good
PhysicalServer--->VM Instance1
# ./nuttcp 192.168.11.2
 1122.3928 MB /  10.07 sec =  935.0451 Mbps 4 %TX 59 %RX 0 retrans 0.93
msRTT


(Case-2, VirtualRouter SourceNAT) Good
VM Instance2--->VirtualRouter--->PhysicalServer
# ./nuttcp 192.168.11.248
 1123.1641 MB /  10.03 sec =  938.9331 Mbps 12 %TX 15 %RX 0 retrans 3.11
msRTT


(Case-3, VirtualRouter StaticNAT) Not Good
PhysicalServer--->VirtualRouter--->VM Instance2
# ./nuttcp 192.168.11.173
  738. MB /  10.01 sec =  618.6374 Mbps 2 %TX 48 %RX 0 retrans 2.84
msRTT


Thanks.

--
Satoru Nakaya


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Pierre-Luc Dion
Dell EQL work well as iSCSI primary storage with XenServer in CloudStack.
Don't use iSL(Storage Link) which is deprecated in XenServer 6.2 and not
suported in CloudStack.

As Dean is saying, you can export an EQL volume as NFS share for the
Secondary Storage which require NFS.



*Pierre-Luc DION*
Architecte de Solution Cloud | Cloud Solutions Architect
t 855.652.5683

*CloudOps* Votre partenaire infonuagique* | *Cloud Solutions Experts
420 rue Guy *|* Montreal *|* Quebec *|* H3J 1S6
w cloudops.com *|* tw @CloudOps_



On Mon, Jun 23, 2014 at 11:45 AM, Dean Kamali  wrote:

> You could ​export shares via NFS and add your shares as primary or
> secondary storage to your CS accordingly, you may export your shares
> via ISCSI volumes as well.
>
> There is not specific guide for Dell EQLX.
>
> cheers
>
> Dean
> ​
>
>
> On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall 
> wrote:
>
> > Hi Everyone
> >
> > Does anyone have a guide to help a new user setup a cloudstack with
> > xenserver and equallogic SAN?
> >
> > I've read the guides on the cloudstack site and found a link to the Dell
> > guide for integrating EQLX to xenserver but unsure if this is correct for
> > cloudstack setup. Also not sure what should/can be configured using the
> xen
> > centre admin once cloudstack is implemented.
> >
> > Regards
> > Ian
>


Re: Error in listHosts - Infrastructure Tab in UI

2014-06-23 Thread Mike Tutkowski
What version of the code are you using?


On Mon, Jun 23, 2014 at 1:51 AM, Mark van der Meulen 
wrote:

> Hi,
>
> Does anyone know where I can start looking to resolve this error? It occurs
> whenever we visit the Infrastructure page in the CS UI ever since we
> removed
> a host(which was apparently successful). It means we can¹t add more hosts
> or
> perform any functions which would be performed from the Infrastructure
> section of the UI.
>
> Thanks,
>
> Mark
>
>
> 2014-06-23 17:41:45,279 DEBUG [c.c.a.q.QueryManagerImpl]
> (catalina-exec-18:ctx-5ee0ee17 ctx-51f50f45) >>>Searching for hosts>>>
> 2014-06-23 17:41:45,301 DEBUG [c.c.a.q.QueryManagerImpl]
> (catalina-exec-18:ctx-5ee0ee17 ctx-51f50f45) >>>Generating Response>>>
> 2014-06-23 17:41:45,312 ERROR [c.c.a.ApiServer]
> (catalina-exec-18:ctx-5ee0ee17 ctx-51f50f45) unhandled exception executing
> api command: listHosts
> java.lang.NullPointerException
> at
>
> com.cloud.storage.StorageManagerImpl.isLocalStorageActiveOnHost(StorageManag
> erImpl.java:359)
> at
> com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(ApiDBUtils.java:735)
> at
>
> com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(HostJoinDaoImpl.java
> :166)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
> )
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:43)
> at java.lang.reflect.Method.invoke(Method.java:622)
> at
>
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopU
> tils.java:317)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
> (ReflectiveMethodInvocation.java:183)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
> iveMethodInvocation.java:150)
> at
>
> com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextIn
> terceptor.java:33)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
> iveMethodInvocation.java:161)
> at
>
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expos
> eInvocationInterceptor.java:91)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
> iveMethodInvocation.java:172)
> at
>
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro
> xy.java:204)
> at com.sun.proxy.$Proxy262.newHostResponse(Unknown Source)
> at com.cloud.api.ApiDBUtils.newHostResponse(ApiDBUtils.java:1540)
> at
>
> com.cloud.api.query.ViewResponseHelper.createHostResponse(ViewResponseHelper
> .java:236)
> at
>
> com.cloud.api.query.QueryManagerImpl.searchForServers(QueryManagerImpl.java:
> 1530)
> at
>
> org.apache.cloudstack.api.command.admin.host.ListHostsCmd.execute(ListHostsC
> md.java:179)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
> at
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
> at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
> at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(Defa
> ultManagedContext.java:56)
> at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithCon
> text(DefaultManagedContext.java:103)
> at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithCont
> ext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:74)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:290)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:206)
> at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:233)
> at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
> )
> at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
> )
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
> at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(Co

Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Carlos Reátegui
Hi Ian,
I used XenCenter to setup my network on the first host and then added the 
others to the cluster within XenCenter.  When you add the primary host to 
CloudStack all hosts will get added.

If you follow the install instructions on the site 
(http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/) 
you should be ok.

I think the main thing that usually trips up folks is the vhd-util step.  Make 
sure that the one you download per the instructions ends up on the hosts in the 
/opt/xensource/bin directory.  In the past there were problems with the script 
that added the hosts not copying it from the management server.  Please note 
that this vhd-util is a different version than the one that comes with 
XenServer and you should leave that one alone.

cheers,
-Carlos

On Jun 23, 2014, at 8:45 AM, Dean Kamali  wrote:

> You could ​export shares via NFS and add your shares as primary or
> secondary storage to your CS accordingly, you may export your shares
> via ISCSI volumes as well.
> 
> There is not specific guide for Dell EQLX.
> 
> cheers
> 
> Dean
> ​
> 
> 
> On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall  wrote:
> 
>> Hi Everyone
>> 
>> Does anyone have a guide to help a new user setup a cloudstack with
>> xenserver and equallogic SAN?
>> 
>> I've read the guides on the cloudstack site and found a link to the Dell
>> guide for integrating EQLX to xenserver but unsure if this is correct for
>> cloudstack setup. Also not sure what should/can be configured using the xen
>> centre admin once cloudstack is implemented.
>> 
>> Regards
>> Ian



NoClassDefFoundError while trying to access the cloudstack UI

2014-06-23 Thread Seif Eddine Jemli
Hi everyone,

I installed the cloudstack management server using the *: apt-get install
cloud-client.*

I have this exception when I try to log in the UI :

*exception*

javax.servlet.ServletException: java.lang.NoClassDefFoundError:
org/apache/tomcat/util/descriptor/LocalResolver
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

*root cause*

java.lang.NoClassDefFoundError: org/apache/tomcat/util/descriptor/LocalResolver
org.apache.jasper.xmlparser.ParserUtils.(ParserUtils.java:82)

org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:102)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:238)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:294)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

 javax.servlet.http.HttpServlet.service(HttpServlet.java:727)


When I try again , I get this exception :

*exception*

org.apache.jasper.JasperException: org.apache.jasper.JasperException:
Unable to load class for JSP

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:161)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

*root cause*

org.apache.jasper.JasperException: Unable to load class for JSP

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

*root cause*

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
java.net.URLClassLoader$1.run(URLClassLoader.java:217)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:205)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

 javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

Did anyone get these exceptions before while trying
*http://localhost:8080/client/
*?
What can be the problem?

thanks in advance


Re: Performance degrades when I use the StaticNAT in Virtual Router. Is there a way to speed up?

2014-06-23 Thread Nux!
Depending on your circumstances, you could move to an Advanced Zone with 
Security Groups, this way traffic will bypass the Virtual Router and go 
directly to the VMs.

HTH
Lucian


--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


- Original Message -
From: "giraffeg forestg" 
To: users@cloudstack.apache.org
Sent: Monday, 23 June, 2014 4:51:49 PM
Subject: Performance degrades when I use the StaticNAT in Virtual Router. Is 
there a way to speed up?

Hi All

Performance degrades when I use the StaticNAT in Virtual Router. Is there a
way to speed up?

Environment:
 Apache CloudStack 4.3.0
 SystemVM:systemvm64template-2014-01-14-master-xen.vhd
 HyperVisor:XenServer 6.2SP1
 Network:1Gbps (Catalyst3550-12G)

 System Offering:
  CPU:2000 MHz
  Memory:2048 MB
  Network Rate:1 MB

 Network Offering:
  Network Rate:1 MB


(Case-1, Direct Access) Good
PhysicalServer--->VM Instance1
# ./nuttcp 192.168.11.2
 1122.3928 MB /  10.07 sec =  935.0451 Mbps 4 %TX 59 %RX 0 retrans 0.93
msRTT


(Case-2, VirtualRouter SourceNAT) Good
VM Instance2--->VirtualRouter--->PhysicalServer
# ./nuttcp 192.168.11.248
 1123.1641 MB /  10.03 sec =  938.9331 Mbps 12 %TX 15 %RX 0 retrans 3.11
msRTT


(Case-3, VirtualRouter StaticNAT) Not Good
PhysicalServer--->VirtualRouter--->VM Instance2
# ./nuttcp 192.168.11.173
  738. MB /  10.01 sec =  618.6374 Mbps 2 %TX 48 %RX 0 retrans 2.84
msRTT


Thanks.

--
Satoru Nakaya


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Ian Marshall
Thanks Dean

I did find this guide
http://en.community.dell.com/techcenter/extras/m/white_papers/20438058.aspx

Which seems quite good but not 100% sure if i shoudl follow it for a
cloudstack deployment.

I like the idea I can utilise the SAN for primary and secondary storage as
the SAM is RAID10 with 9TB and we really only require about 3TB for primary
storage [present infrastructure uses about 1TB]

regards
Ian

Regards
Ian


On 23 June 2014 16:45, Dean Kamali  wrote:

> You could ​export shares via NFS and add your shares as primary or
> secondary storage to your CS accordingly, you may export your shares
> via ISCSI volumes as well.
>
> There is not specific guide for Dell EQLX.
>
> cheers
>
> Dean
> ​
>
>
> On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall 
> wrote:
>
> > Hi Everyone
> >
> > Does anyone have a guide to help a new user setup a cloudstack with
> > xenserver and equallogic SAN?
> >
> > I've read the guides on the cloudstack site and found a link to the Dell
> > guide for integrating EQLX to xenserver but unsure if this is correct for
> > cloudstack setup. Also not sure what should/can be configured using the
> xen
> > centre admin once cloudstack is implemented.
> >
> > Regards
> > Ian
>


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Ian Marshall
Thanks Carlos

I have read these but a little unsure of the specific order of deployment
configuration if using xenserver. I was intending to setup KVM hosts, but
after spending about 6 weeks trying to get Openstack deployed, I want to be
100% sure how to deploy C;loudstack before I pull the plug on Openstack -
which has turned out to be a nightmare to deploy.

As mentioned in my replay to Dean, I am looking for corrext steps to deploy
Cloudstack with xenserver, so any pointers outside of the ionline
documentation would be appreciated.

regards
Ian



Regards
Ian


On 23 June 2014 17:15, Carlos Reátegui  wrote:

> Hi Ian,
> I used XenCenter to setup my network on the first host and then added the
> others to the cluster within XenCenter.  When you add the primary host to
> CloudStack all hosts will get added.
>
> If you follow the install instructions on the site (
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/)
> you should be ok.
>
> I think the main thing that usually trips up folks is the vhd-util step.
>  Make sure that the one you download per the instructions ends up on the
> hosts in the /opt/xensource/bin directory.  In the past there were problems
> with the script that added the hosts not copying it from the management
> server.  Please note that this vhd-util is a different version than the one
> that comes with XenServer and you should leave that one alone.
>
> cheers,
> -Carlos
>
> On Jun 23, 2014, at 8:45 AM, Dean Kamali  wrote:
>
> > You could ​export shares via NFS and add your shares as primary or
> > secondary storage to your CS accordingly, you may export your shares
> > via ISCSI volumes as well.
> >
> > There is not specific guide for Dell EQLX.
> >
> > cheers
> >
> > Dean
> > ​
> >
> >
> > On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall 
> wrote:
> >
> >> Hi Everyone
> >>
> >> Does anyone have a guide to help a new user setup a cloudstack with
> >> xenserver and equallogic SAN?
> >>
> >> I've read the guides on the cloudstack site and found a link to the Dell
> >> guide for integrating EQLX to xenserver but unsure if this is correct
> for
> >> cloudstack setup. Also not sure what should/can be configured using the
> xen
> >> centre admin once cloudstack is implemented.
> >>
> >> Regards
> >> Ian
>
>


Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Hi All,

In the past i've used the community supplied scripts over at
https://github.com/shankerbalan/cloudstack-scripts for doing injection of
password / ssh keys.

I'm trying to move to cloud-init to handle this for me however I am having
some issues.

I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:

datasource_list: ['CloudStack']

datasource:

  CloudStack: {}


I also set the following:

disable_root: False

user: root

ssh_pwauth: True

ssh_deletekeys: True

ssh_genkeytypes: ['rsa', 'dsa']

ssh_svcname: ssh


On booting up the machine I see the script run successfully and pull the
metadata down from the VR. The hostname is also set and new ssh keys are
generated.

On attempting to login as root with the password provided on the Cloudstack
UI I am unsuccessful. I'm unsure why.


Anybody got an idea where I'm going wrong?


Thanks,

Ian


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Tim Mackey
Ian,

A couple of quick questions:

- Is this going to be NFS or iSCSI (I've used EQL with iSCSI)?
- Do you require a separate storage network on XenServer to access the EQL,
or is it accessible from the same network as the management server?
- Is you EQL on the XenServer HCL, including the firmware?  HCL is at
hcl.xensource.com

That last point may not seem significant, but I've seen issues where a
firmware update gets in the way.

-tim


On Mon, Jun 23, 2014 at 12:56 PM, Ian Marshall  wrote:

> Thanks Carlos
>
> I have read these but a little unsure of the specific order of deployment
> configuration if using xenserver. I was intending to setup KVM hosts, but
> after spending about 6 weeks trying to get Openstack deployed, I want to be
> 100% sure how to deploy C;loudstack before I pull the plug on Openstack -
> which has turned out to be a nightmare to deploy.
>
> As mentioned in my replay to Dean, I am looking for corrext steps to deploy
> Cloudstack with xenserver, so any pointers outside of the ionline
> documentation would be appreciated.
>
> regards
> Ian
>
>
>
> Regards
> Ian
>
>
> On 23 June 2014 17:15, Carlos Reátegui  wrote:
>
> > Hi Ian,
> > I used XenCenter to setup my network on the first host and then added the
> > others to the cluster within XenCenter.  When you add the primary host to
> > CloudStack all hosts will get added.
> >
> > If you follow the install instructions on the site (
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/
> )
> > you should be ok.
> >
> > I think the main thing that usually trips up folks is the vhd-util step.
> >  Make sure that the one you download per the instructions ends up on the
> > hosts in the /opt/xensource/bin directory.  In the past there were
> problems
> > with the script that added the hosts not copying it from the management
> > server.  Please note that this vhd-util is a different version than the
> one
> > that comes with XenServer and you should leave that one alone.
> >
> > cheers,
> > -Carlos
> >
> > On Jun 23, 2014, at 8:45 AM, Dean Kamali  wrote:
> >
> > > You could ​export shares via NFS and add your shares as primary or
> > > secondary storage to your CS accordingly, you may export your shares
> > > via ISCSI volumes as well.
> > >
> > > There is not specific guide for Dell EQLX.
> > >
> > > cheers
> > >
> > > Dean
> > > ​
> > >
> > >
> > > On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall 
> > wrote:
> > >
> > >> Hi Everyone
> > >>
> > >> Does anyone have a guide to help a new user setup a cloudstack with
> > >> xenserver and equallogic SAN?
> > >>
> > >> I've read the guides on the cloudstack site and found a link to the
> Dell
> > >> guide for integrating EQLX to xenserver but unsure if this is correct
> > for
> > >> cloudstack setup. Also not sure what should/can be configured using
> the
> > xen
> > >> centre admin once cloudstack is implemented.
> > >>
> > >> Regards
> > >> Ian
> >
> >
>


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Ian Marshall
Hi Tim

I was hoping to utilise iscsi. The SAN is a PS4110X which is on the hcl list. 
Just need to check firmware. 

Otherwise would have to setup as NSF. Plan is to use separate storage network 
as switches and network cards are 10gbe ( 4 in each server + 4 1gbe) so plenty. 

I cant setup a storage node. Was wanting to use xenserver to speed up 
deployment as we use that setup in present infrastructure. FYI this cloudstack 
deployment is on new hardware and not using any existing. 

Regards
Ian

> On 23 Jun 2014, at 18:12, Tim Mackey  wrote:
> 
> Ian,
> 
> A couple of quick questions:
> 
> - Is this going to be NFS or iSCSI (I've used EQL with iSCSI)?
> - Do you require a separate storage network on XenServer to access the EQL,
> or is it accessible from the same network as the management server?
> - Is you EQL on the XenServer HCL, including the firmware?  HCL is at
> hcl.xensource.com
> 
> That last point may not seem significant, but I've seen issues where a
> firmware update gets in the way.
> 
> -tim
> 
> 
>> On Mon, Jun 23, 2014 at 12:56 PM, Ian Marshall  wrote:
>> 
>> Thanks Carlos
>> 
>> I have read these but a little unsure of the specific order of deployment
>> configuration if using xenserver. I was intending to setup KVM hosts, but
>> after spending about 6 weeks trying to get Openstack deployed, I want to be
>> 100% sure how to deploy C;loudstack before I pull the plug on Openstack -
>> which has turned out to be a nightmare to deploy.
>> 
>> As mentioned in my replay to Dean, I am looking for corrext steps to deploy
>> Cloudstack with xenserver, so any pointers outside of the ionline
>> documentation would be appreciated.
>> 
>> regards
>> Ian
>> 
>> 
>> 
>> Regards
>> Ian
>> 
>> 
>>> On 23 June 2014 17:15, Carlos Reátegui  wrote:
>>> 
>>> Hi Ian,
>>> I used XenCenter to setup my network on the first host and then added the
>>> others to the cluster within XenCenter.  When you add the primary host to
>>> CloudStack all hosts will get added.
>>> 
>>> If you follow the install instructions on the site (
>> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/
>> )
>>> you should be ok.
>>> 
>>> I think the main thing that usually trips up folks is the vhd-util step.
>>> Make sure that the one you download per the instructions ends up on the
>>> hosts in the /opt/xensource/bin directory.  In the past there were
>> problems
>>> with the script that added the hosts not copying it from the management
>>> server.  Please note that this vhd-util is a different version than the
>> one
>>> that comes with XenServer and you should leave that one alone.
>>> 
>>> cheers,
>>> -Carlos
>>> 
 On Jun 23, 2014, at 8:45 AM, Dean Kamali  wrote:
 
 You could ​export shares via NFS and add your shares as primary or
 secondary storage to your CS accordingly, you may export your shares
 via ISCSI volumes as well.
 
 There is not specific guide for Dell EQLX.
 
 cheers
 
 Dean
 ​
 
 
> On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall 
 wrote:
 
> Hi Everyone
> 
> Does anyone have a guide to help a new user setup a cloudstack with
> xenserver and equallogic SAN?
> 
> I've read the guides on the cloudstack site and found a link to the
>> Dell
> guide for integrating EQLX to xenserver but unsure if this is correct
>>> for
> cloudstack setup. Also not sure what should/can be configured using
>> the
>>> xen
> centre admin once cloudstack is implemented.
> 
> Regards
> Ian
>> 


Re: NoClassDefFoundError while trying to access the cloudstack UI

2014-06-23 Thread Seif Eddine Jemli
Hi Sebastien,

I removed he cloud-client package and installed cloudstack-management and
cloudstack-common.

But when trying to set up the databse, this is what I get :

cloud-setup-databases cloud:@localhost --deploy-as=root:password

*cloud-setup-databases: command not found*


cloud-setup-databases is not recognised anymore.





2014-06-23 19:10 GMT+02:00 sebgoa :

> Seif,
>
> looks like you are on ubuntu/debian
>
> assuming you set up the repos properly try:
>
> apt-get install cloudstack-management
>
> and if you have setup your db's properly then:
>
> service cloudstack-management start
>
> Ps: please just email one list dev@ or users@
>
> On Jun 23, 2014, at 6:43 PM, Seif Eddine Jemli 
> wrote:
>
> > Hi everyone,
> >
> > I installed the cloudstack management server using the *: apt-get install
> > cloud-client.*
> >
> > I have this exception when I try to log in the UI :
> >
> > *exception*
> >
> > javax.servlet.ServletException: java.lang.NoClassDefFoundError:
> > org/apache/tomcat/util/descriptor/LocalResolver
> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)
> >   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > *root cause*
> >
> > java.lang.NoClassDefFoundError:
> org/apache/tomcat/util/descriptor/LocalResolver
> >   org.apache.jasper.xmlparser.ParserUtils.(ParserUtils.java:82)
> >
> org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:102)
> >   org.apache.jasper.compiler.JspConfig.init(JspConfig.java:238)
> >
> org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:294)
> >   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
> >
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> >
> > When I try again , I get this exception :
> >
> > *exception*
> >
> > org.apache.jasper.JasperException: org.apache.jasper.JasperException:
> > Unable to load class for JSP
> >
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:161)
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > *root cause*
> >
> > org.apache.jasper.JasperException: Unable to load class for JSP
> >
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630)
> >
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > *root cause*
> >
> > java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
> >   java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> >   java.security.AccessController.doPrivileged(Native Method)
> >   java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> >
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
> >
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
> >
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)
> >
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > Did anyone get these exceptions before while trying
> > *http://localhost:8080/client/
> > *?
> > What can be the problem?
> >
> > thanks in advance
>
>


Re: NoClassDefFoundError while trying to access the cloudstack UI

2014-06-23 Thread sebgoa
Seif,

looks like you are on ubuntu/debian

assuming you set up the repos properly try:

apt-get install cloudstack-management

and if you have setup your db's properly then:

service cloudstack-management start

Ps: please just email one list dev@ or users@ 

On Jun 23, 2014, at 6:43 PM, Seif Eddine Jemli  
wrote:

> Hi everyone,
> 
> I installed the cloudstack management server using the *: apt-get install
> cloud-client.*
> 
> I have this exception when I try to log in the UI :
> 
> *exception*
> 
> javax.servlet.ServletException: java.lang.NoClassDefFoundError:
> org/apache/tomcat/util/descriptor/LocalResolver
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
> *root cause*
> 
> java.lang.NoClassDefFoundError: 
> org/apache/tomcat/util/descriptor/LocalResolver
>   org.apache.jasper.xmlparser.ParserUtils.(ParserUtils.java:82)
>   
> org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:102)
>   org.apache.jasper.compiler.JspConfig.init(JspConfig.java:238)
>   org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:294)
>   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
>   
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
> 
> When I try again , I get this exception :
> 
> *exception*
> 
> org.apache.jasper.JasperException: org.apache.jasper.JasperException:
> Unable to load class for JSP
>   
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:161)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
> *root cause*
> 
> org.apache.jasper.JasperException: Unable to load class for JSP
>   
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630)
>   
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
> *root cause*
> 
> java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
>   java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>   java.security.AccessController.doPrivileged(Native Method)
>   java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
>   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
>   
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)
>   
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
> Did anyone get these exceptions before while trying
> *http://localhost:8080/client/
> *?
> What can be the problem?
> 
> thanks in advance



Re: Debian + Cloud-Init

2014-06-23 Thread Nux!
Yes, the Cloudstack root password feature is (to my knowledge) totally 
unsupported by cloud-init.
So only ssh keys and user data works.
To work around it, I usually throw the cloudstack-set-root-password script in 
/var/lib/cloud/scripts/per-boot so cloud-init will execute it every time the VM 
boots.

HTH
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


- Original Message -
From: "Ian Duffy" 
To: users@cloudstack.apache.org
Sent: Monday, 23 June, 2014 6:09:30 PM
Subject: Debian + Cloud-Init

Hi All,

In the past i've used the community supplied scripts over at
https://github.com/shankerbalan/cloudstack-scripts for doing injection of
password / ssh keys.

I'm trying to move to cloud-init to handle this for me however I am having
some issues.

I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:

datasource_list: ['CloudStack']

datasource:

  CloudStack: {}


I also set the following:

disable_root: False

user: root

ssh_pwauth: True

ssh_deletekeys: True

ssh_genkeytypes: ['rsa', 'dsa']

ssh_svcname: ssh


On booting up the machine I see the script run successfully and pull the
metadata down from the VR. The hostname is also set and new ssh keys are
generated.

On attempting to login as root with the password provided on the Cloudstack
UI I am unsuccessful. I'm unsure why.


Anybody got an idea where I'm going wrong?


Thanks,

Ian


Re: Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Thanks Lucian!

I'm currently digging through the cloud-init documentation. I'll let you
know if I find another way.


On 23 June 2014 18:34, Nux!  wrote:

> Yes, the Cloudstack root password feature is (to my knowledge) totally
> unsupported by cloud-init.
> So only ssh keys and user data works.
> To work around it, I usually throw the cloudstack-set-root-password script
> in /var/lib/cloud/scripts/per-boot so cloud-init will execute it every time
> the VM boots.
>
> HTH
> Lucian
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>
>
> - Original Message -
> From: "Ian Duffy" 
> To: users@cloudstack.apache.org
> Sent: Monday, 23 June, 2014 6:09:30 PM
> Subject: Debian + Cloud-Init
>
> Hi All,
>
> In the past i've used the community supplied scripts over at
> https://github.com/shankerbalan/cloudstack-scripts for doing injection of
> password / ssh keys.
>
> I'm trying to move to cloud-init to handle this for me however I am having
> some issues.
>
> I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:
>
> datasource_list: ['CloudStack']
>
> datasource:
>
>   CloudStack: {}
>
>
> I also set the following:
>
> disable_root: False
>
> user: root
>
> ssh_pwauth: True
>
> ssh_deletekeys: True
>
> ssh_genkeytypes: ['rsa', 'dsa']
>
> ssh_svcname: ssh
>
>
> On booting up the machine I see the script run successfully and pull the
> metadata down from the VR. The hostname is also set and new ssh keys are
> generated.
>
> On attempting to login as root with the password provided on the Cloudstack
> UI I am unsuccessful. I'm unsure why.
>
>
> Anybody got an idea where I'm going wrong?
>
>
> Thanks,
>
> Ian
>


Re: Performance degrades when I use the StaticNAT in Virtual Router. Is there a way to speed up?

2014-06-23 Thread giraffeg forestg
Thank you for advice. :)

# Isolation based on Security Groups in Advanced Zone
#
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Security+Groups+Isolation+in+Advanced+Zone

However, I'm want to improve the speed of StaticNAT in Virtual Router.

Trial-1:linux kernel parameter tuning of virural router

 /etc/sysctl.conf

 net.core.rmem_max = 16777216
 net.core.wmem_max = 16777216
 net.ipv4.tcp_rmem = 4096 87380 16777216
 net.ipv4.tcp_wmem = 4096 65536 16777216

 -> Did not improve performance.  :(


Trial-2:disabling TSO of virural router

 /ethtool -K eth0 tso off
 /ethtool -K eth2 tso off

 -> Did not improve performance.  :(


Thanks.

--
Satoru Nakaya



2014-06-24 1:46 GMT+09:00 Nux! :

> Depending on your circumstances, you could move to an Advanced Zone with
> Security Groups, this way traffic will bypass the Virtual Router and go
> directly to the VMs.
>
> HTH
> Lucian
>
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>
>
> - Original Message -
> From: "giraffeg forestg" 
> To: users@cloudstack.apache.org
> Sent: Monday, 23 June, 2014 4:51:49 PM
> Subject: Performance degrades when I use the StaticNAT in Virtual Router.
> Is there a way to speed up?
>
> Hi All
>
> Performance degrades when I use the StaticNAT in Virtual Router. Is there a
> way to speed up?
>
> Environment:
>  Apache CloudStack 4.3.0
>  SystemVM:systemvm64template-2014-01-14-master-xen.vhd
>  HyperVisor:XenServer 6.2SP1
>  Network:1Gbps (Catalyst3550-12G)
>
>  System Offering:
>   CPU:2000 MHz
>   Memory:2048 MB
>   Network Rate:1 MB
>
>  Network Offering:
>   Network Rate:1 MB
>
>
> (Case-1, Direct Access) Good
> PhysicalServer--->VM Instance1
> # ./nuttcp 192.168.11.2
>  1122.3928 MB /  10.07 sec =  935.0451 Mbps 4 %TX 59 %RX 0 retrans 0.93
> msRTT
>
>
> (Case-2, VirtualRouter SourceNAT) Good
> VM Instance2--->VirtualRouter--->PhysicalServer
> # ./nuttcp 192.168.11.248
>  1123.1641 MB /  10.03 sec =  938.9331 Mbps 12 %TX 15 %RX 0 retrans 3.11
> msRTT
>
>
> (Case-3, VirtualRouter StaticNAT) Not Good
> PhysicalServer--->VirtualRouter--->VM Instance2
> # ./nuttcp 192.168.11.173
>   738. MB /  10.01 sec =  618.6374 Mbps 2 %TX 48 %RX 0 retrans 2.84
> msRTT
>
>
> Thanks.
>
> --
> Satoru Nakaya
>


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Tim Mackey
Sounds good.  For this installation, you'll want to first setup the storage
network within XenServer as a separate management network.  I recommend
also using an MTU of 9000 (precise value will depend on the switches, and
don't forget to test that packets aren't fragmenting or you'll have
horrible performance/won't work).  If you're plan is to multipath (as
opposed to LACP bond), then also set that up in XenServer directly, but do
be aware that CloudStack won't natively work with multipath.  That's the
PreSetup you might have seen, and is also how I've had to deal with things
in my environment even without multipath, so currently my best practice.

In CloudStack, the concept of a storage network is one where all the
elements related to storage are on their own dedicated network.  For how
I've had to set things up, this wasn't always the case so I avoided the
CloudStack storage network concept and chose to manage my storage directly.

When you define primary storage in CloudStack, you can have CloudStack
directly manage it (iSCSI, NFS and Local for XenServer), or with XenServer
you can tell CloudStack that it just exists.  That's what I've typically
had to do for a variety of reasons related to my local environment.  In
that model, you precreate your SR and give it a name, then when you define
the primary storage for a cluster, you supply that name and choose PreSetup
as the storage type.  One caveat is that the name needs to be unique within
the Zone, so if you attempt to add a new primary storage and it fails,
check the name for duplicates.

-tim


On Mon, Jun 23, 2014 at 1:25 PM, Ian Marshall  wrote:

> Hi Tim
>
> I was hoping to utilise iscsi. The SAN is a PS4110X which is on the hcl
> list. Just need to check firmware.
>
> Otherwise would have to setup as NSF. Plan is to use separate storage
> network as switches and network cards are 10gbe ( 4 in each server + 4
> 1gbe) so plenty.
>
> I cant setup a storage node. Was wanting to use xenserver to speed up
> deployment as we use that setup in present infrastructure. FYI this
> cloudstack deployment is on new hardware and not using any existing.
>
> Regards
> Ian
>
> > On 23 Jun 2014, at 18:12, Tim Mackey  wrote:
> >
> > Ian,
> >
> > A couple of quick questions:
> >
> > - Is this going to be NFS or iSCSI (I've used EQL with iSCSI)?
> > - Do you require a separate storage network on XenServer to access the
> EQL,
> > or is it accessible from the same network as the management server?
> > - Is you EQL on the XenServer HCL, including the firmware?  HCL is at
> > hcl.xensource.com
> >
> > That last point may not seem significant, but I've seen issues where a
> > firmware update gets in the way.
> >
> > -tim
> >
> >
> >> On Mon, Jun 23, 2014 at 12:56 PM, Ian Marshall 
> wrote:
> >>
> >> Thanks Carlos
> >>
> >> I have read these but a little unsure of the specific order of
> deployment
> >> configuration if using xenserver. I was intending to setup KVM hosts,
> but
> >> after spending about 6 weeks trying to get Openstack deployed, I want
> to be
> >> 100% sure how to deploy C;loudstack before I pull the plug on Openstack
> -
> >> which has turned out to be a nightmare to deploy.
> >>
> >> As mentioned in my replay to Dean, I am looking for corrext steps to
> deploy
> >> Cloudstack with xenserver, so any pointers outside of the ionline
> >> documentation would be appreciated.
> >>
> >> regards
> >> Ian
> >>
> >>
> >>
> >> Regards
> >> Ian
> >>
> >>
> >>> On 23 June 2014 17:15, Carlos Reátegui  wrote:
> >>>
> >>> Hi Ian,
> >>> I used XenCenter to setup my network on the first host and then added
> the
> >>> others to the cluster within XenCenter.  When you add the primary host
> to
> >>> CloudStack all hosts will get added.
> >>>
> >>> If you follow the install instructions on the site (
> >>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/
> >> )
> >>> you should be ok.
> >>>
> >>> I think the main thing that usually trips up folks is the vhd-util
> step.
> >>> Make sure that the one you download per the instructions ends up on the
> >>> hosts in the /opt/xensource/bin directory.  In the past there were
> >> problems
> >>> with the script that added the hosts not copying it from the management
> >>> server.  Please note that this vhd-util is a different version than the
> >> one
> >>> that comes with XenServer and you should leave that one alone.
> >>>
> >>> cheers,
> >>> -Carlos
> >>>
>  On Jun 23, 2014, at 8:45 AM, Dean Kamali 
> wrote:
> 
>  You could ​export shares via NFS and add your shares as primary or
>  secondary storage to your CS accordingly, you may export your shares
>  via ISCSI volumes as well.
> 
>  There is not specific guide for Dell EQLX.
> 
>  cheers
> 
>  Dean
>  ​
> 
> 
> > On Mon, Jun 23, 2014 at 3:01 AM, Ian Marshall 
>  wrote:
> 
> > Hi Everyone
> >
> > Does anyone have a guide to help a new user setup a cloudstack with
> 

Re: NoClassDefFoundError while trying to access the cloudstack UI

2014-06-23 Thread Seif Eddine Jemli
oups it is just cloudstack-databases instead of cloud-databases..


2014-06-23 19:32 GMT+02:00 Seif Eddine Jemli :

> Hi Sebastien,
>
> I removed he cloud-client package and installed cloudstack-management and
> cloudstack-common.
>
> But when trying to set up the databse, this is what I get :
>
> cloud-setup-databases cloud:@localhost --deploy-as=root:password
>
> *cloud-setup-databases: command not found*
>
>
> cloud-setup-databases is not recognised anymore.
>
>
>
>
>
> 2014-06-23 19:10 GMT+02:00 sebgoa :
>
> Seif,
>>
>> looks like you are on ubuntu/debian
>>
>> assuming you set up the repos properly try:
>>
>> apt-get install cloudstack-management
>>
>> and if you have setup your db's properly then:
>>
>> service cloudstack-management start
>>
>> Ps: please just email one list dev@ or users@
>>
>> On Jun 23, 2014, at 6:43 PM, Seif Eddine Jemli 
>> wrote:
>>
>> > Hi everyone,
>> >
>> > I installed the cloudstack management server using the *: apt-get
>> install
>> > cloud-client.*
>> >
>> > I have this exception when I try to log in the UI :
>> >
>> > *exception*
>> >
>> > javax.servlet.ServletException: java.lang.NoClassDefFoundError:
>> > org/apache/tomcat/util/descriptor/LocalResolver
>> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)
>> >   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> >
>> > *root cause*
>> >
>> > java.lang.NoClassDefFoundError:
>> org/apache/tomcat/util/descriptor/LocalResolver
>> >
>> org.apache.jasper.xmlparser.ParserUtils.(ParserUtils.java:82)
>> >
>> org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:102)
>> >   org.apache.jasper.compiler.JspConfig.init(JspConfig.java:238)
>> >
>> org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:294)
>> >
>> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
>> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
>> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
>> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
>> >
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
>> >
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
>> >
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> >
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> >
>> >
>> > When I try again , I get this exception :
>> >
>> > *exception*
>> >
>> > org.apache.jasper.JasperException: org.apache.jasper.JasperException:
>> > Unable to load class for JSP
>> >
>> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:161)
>> >
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
>> >
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> >   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> >
>> > *root cause*
>> >
>> > org.apache.jasper.JasperException: Unable to load class for JSP
>> >
>> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630)
>> >
>> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
>> >
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
>> >
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> >   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> >
>> > *root cause*
>> >
>> > java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
>> >   java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>> >   java.security.AccessController.doPrivileged(Native Method)
>> >   java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>> >
>> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
>> >
>> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
>> >
>> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)
>> >
>> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
>> >
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
>> >
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> >
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> >
>> > Did anyone get these exceptions before while trying
>> > *http://localhost:8080/client/
>> > *?
>> > What can be the problem?
>> >
>> > thanks in advance
>>
>>
>


Re: Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Lucian,

You were spot on. It is not supported. I've done similar to your work
around by giving a init.d script.

I've upload a automated system using packer for generating a OVA of a
debian x64 template to github
https://github.com/imduffy15/cloudstack-templates

I included a built version of the template for xenserver to save somebody
time in the future.
https://github.com/imduffy15/cloudstack-templates/releases

If people are interested I might build this out to generate KVM, Xen,
HyperV and vSphere images and add CentOS and Ubuntu.


On 23 June 2014 18:40, Ian Duffy  wrote:

> Thanks Lucian!
>
> I'm currently digging through the cloud-init documentation. I'll let you
> know if I find another way.
>
>
> On 23 June 2014 18:34, Nux!  wrote:
>
>> Yes, the Cloudstack root password feature is (to my knowledge) totally
>> unsupported by cloud-init.
>> So only ssh keys and user data works.
>> To work around it, I usually throw the cloudstack-set-root-password
>> script in /var/lib/cloud/scripts/per-boot so cloud-init will execute it
>> every time the VM boots.
>>
>> HTH
>> Lucian
>>
>> --
>> Sent from the Delta quadrant using Borg technology!
>>
>> Nux!
>> www.nux.ro
>>
>>
>> - Original Message -
>> From: "Ian Duffy" 
>> To: users@cloudstack.apache.org
>> Sent: Monday, 23 June, 2014 6:09:30 PM
>> Subject: Debian + Cloud-Init
>>
>> Hi All,
>>
>> In the past i've used the community supplied scripts over at
>> https://github.com/shankerbalan/cloudstack-scripts for doing injection of
>> password / ssh keys.
>>
>> I'm trying to move to cloud-init to handle this for me however I am having
>> some issues.
>>
>> I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:
>>
>> datasource_list: ['CloudStack']
>>
>> datasource:
>>
>>   CloudStack: {}
>>
>>
>> I also set the following:
>>
>> disable_root: False
>>
>> user: root
>>
>> ssh_pwauth: True
>>
>> ssh_deletekeys: True
>>
>> ssh_genkeytypes: ['rsa', 'dsa']
>>
>> ssh_svcname: ssh
>>
>>
>> On booting up the machine I see the script run successfully and pull the
>> metadata down from the VR. The hostname is also set and new ssh keys are
>> generated.
>>
>> On attempting to login as root with the password provided on the
>> Cloudstack
>> UI I am unsuccessful. I'm unsure why.
>>
>>
>> Anybody got an idea where I'm going wrong?
>>
>>
>> Thanks,
>>
>> Ian
>>
>
>


Re: Cloudstack-4.3 xenserver-6.2 equallogic SAN

2014-06-23 Thread Ian Marshall
Hi Tim

This is very much appreciated. 

From your email, if I am correct. I do the following in this order ---
(1) install xenserver v6.2 
(2) setup extra management network for storage
(3) setup eqlx as isci and multipathing
(4) install the cloudstack requirements for the cloudstack server(s) to 
access-control xenserver
(5) create the storage integration in cloudstack as 'presetup'

Please advise where I can find details of presetup or is it detailed in one of 
the docs.

ALSO
Can you explain how xenserver is used and managed ny cloudstack. For example --
(1) do I manage all instances and primary-secondary storage from cloudstack or 
xenserver?
(2) do I manage the users, security, networking [advanced] from cloudstack?

Is there anything else I need to know or be aware of before going down this 
route?


Regards
Ian

> On 23 Jun 2014, at 20:02, Tim Mackey  wrote:
> 
> Sounds good.  For this installation, you'll want to first setup the storage
> network within XenServer as a separate management network.  I recommend
> also using an MTU of 9000 (precise value will depend on the switches, and
> don't forget to test that packets aren't fragmenting or you'll have
> horrible performance/won't work).  If you're plan is to multipath (as
> opposed to LACP bond), then also set that up in XenServer directly, but do
> be aware that CloudStack won't natively work with multipath.  That's the
> PreSetup you might have seen, and is also how I've had to deal with things
> in my environment even without multipath, so currently my best practice.
> 
> In CloudStack, the concept of a storage network is one where all the
> elements related to storage are on their own dedicated network.  For how
> I've had to set things up, this wasn't always the case so I avoided the
> CloudStack storage network concept and chose to manage my storage directly.
> 
> When you define primary storage in CloudStack, you can have CloudStack
> directly manage it (iSCSI, NFS and Local for XenServer), or with XenServer
> you can tell CloudStack that it just exists.  That's what I've typically
> had to do for a variety of reasons related to my local environment.  In
> that model, you precreate your SR and give it a name, then when you define
> the primary storage for a cluster, you supply that name and choose PreSetup
> as the storage type.  One caveat is that the name needs to be unique within
> the Zone, so if you attempt to add a new primary storage and it fails,
> check the name for duplicates.
> 
> -tim
> 
> 
>> On Mon, Jun 23, 2014 at 1:25 PM, Ian Marshall  wrote:
>> 
>> Hi Tim
>> 
>> I was hoping to utilise iscsi. The SAN is a PS4110X which is on the hcl
>> list. Just need to check firmware.
>> 
>> Otherwise would have to setup as NSF. Plan is to use separate storage
>> network as switches and network cards are 10gbe ( 4 in each server + 4
>> 1gbe) so plenty.
>> 
>> I cant setup a storage node. Was wanting to use xenserver to speed up
>> deployment as we use that setup in present infrastructure. FYI this
>> cloudstack deployment is on new hardware and not using any existing.
>> 
>> Regards
>> Ian
>> 
>>> On 23 Jun 2014, at 18:12, Tim Mackey  wrote:
>>> 
>>> Ian,
>>> 
>>> A couple of quick questions:
>>> 
>>> - Is this going to be NFS or iSCSI (I've used EQL with iSCSI)?
>>> - Do you require a separate storage network on XenServer to access the
>> EQL,
>>> or is it accessible from the same network as the management server?
>>> - Is you EQL on the XenServer HCL, including the firmware?  HCL is at
>>> hcl.xensource.com
>>> 
>>> That last point may not seem significant, but I've seen issues where a
>>> firmware update gets in the way.
>>> 
>>> -tim
>>> 
>>> 
 On Mon, Jun 23, 2014 at 12:56 PM, Ian Marshall 
>> wrote:
 
 Thanks Carlos
 
 I have read these but a little unsure of the specific order of
>> deployment
 configuration if using xenserver. I was intending to setup KVM hosts,
>> but
 after spending about 6 weeks trying to get Openstack deployed, I want
>> to be
 100% sure how to deploy C;loudstack before I pull the plug on Openstack
>> -
 which has turned out to be a nightmare to deploy.
 
 As mentioned in my replay to Dean, I am looking for corrext steps to
>> deploy
 Cloudstack with xenserver, so any pointers outside of the ionline
 documentation would be appreciated.
 
 regards
 Ian
 
 
 
 Regards
 Ian
 
 
> On 23 June 2014 17:15, Carlos Reátegui  wrote:
> 
> Hi Ian,
> I used XenCenter to setup my network on the first host and then added
>> the
> others to the cluster within XenCenter.  When you add the primary host
>> to
> CloudStack all hosts will get added.
> 
> If you follow the install instructions on the site (
>> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/
 )
> you should be ok.
> 
> I think the main thing that usually trips up folks is the vhd-util
>> step.

Re: Debian + Cloud-Init

2014-06-23 Thread Carlos Reátegui
Hi Ian,
What version of cloud-init are you using?  The default one that comes with 
ubuntu 12.04 has a bug that causes is not to work on Cloudstack (uses gateway 
instead of dhcp server as metadata server). 

I did something similar to convert the cloud images from ubuntu into a 
XenServer image and have a patch for DataSourceCloudStack in cloud-init here: 
https://github.com/creategui/CloudStackImageScripts/blob/master/DataSourceCloudStack.patch

cheers,
-Carlos


On Jun 23, 2014, at 1:17 PM, Ian Duffy  wrote:

> Lucian,
> 
> You were spot on. It is not supported. I've done similar to your work
> around by giving a init.d script.
> 
> I've upload a automated system using packer for generating a OVA of a
> debian x64 template to github
> https://github.com/imduffy15/cloudstack-templates
> 
> I included a built version of the template for xenserver to save somebody
> time in the future.
> https://github.com/imduffy15/cloudstack-templates/releases
> 
> If people are interested I might build this out to generate KVM, Xen,
> HyperV and vSphere images and add CentOS and Ubuntu.
> 
> 
> On 23 June 2014 18:40, Ian Duffy  wrote:
> 
>> Thanks Lucian!
>> 
>> I'm currently digging through the cloud-init documentation. I'll let you
>> know if I find another way.
>> 
>> 
>> On 23 June 2014 18:34, Nux!  wrote:
>> 
>>> Yes, the Cloudstack root password feature is (to my knowledge) totally
>>> unsupported by cloud-init.
>>> So only ssh keys and user data works.
>>> To work around it, I usually throw the cloudstack-set-root-password
>>> script in /var/lib/cloud/scripts/per-boot so cloud-init will execute it
>>> every time the VM boots.
>>> 
>>> HTH
>>> Lucian
>>> 
>>> --
>>> Sent from the Delta quadrant using Borg technology!
>>> 
>>> Nux!
>>> www.nux.ro
>>> 
>>> 
>>> - Original Message -
>>> From: "Ian Duffy" 
>>> To: users@cloudstack.apache.org
>>> Sent: Monday, 23 June, 2014 6:09:30 PM
>>> Subject: Debian + Cloud-Init
>>> 
>>> Hi All,
>>> 
>>> In the past i've used the community supplied scripts over at
>>> https://github.com/shankerbalan/cloudstack-scripts for doing injection of
>>> password / ssh keys.
>>> 
>>> I'm trying to move to cloud-init to handle this for me however I am having
>>> some issues.
>>> 
>>> I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:
>>> 
>>> datasource_list: ['CloudStack']
>>> 
>>> datasource:
>>> 
>>>  CloudStack: {}
>>> 
>>> 
>>> I also set the following:
>>> 
>>> disable_root: False
>>> 
>>> user: root
>>> 
>>> ssh_pwauth: True
>>> 
>>> ssh_deletekeys: True
>>> 
>>> ssh_genkeytypes: ['rsa', 'dsa']
>>> 
>>> ssh_svcname: ssh
>>> 
>>> 
>>> On booting up the machine I see the script run successfully and pull the
>>> metadata down from the VR. The hostname is also set and new ssh keys are
>>> generated.
>>> 
>>> On attempting to login as root with the password provided on the
>>> Cloudstack
>>> UI I am unsuccessful. I'm unsure why.
>>> 
>>> 
>>> Anybody got an idea where I'm going wrong?
>>> 
>>> 
>>> Thanks,
>>> 
>>> Ian
>>> 
>> 
>> 



Re: Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Hi Carlos,

I'm using 0.7.3-2 from the Debian Wheezy backports repo.

I didn't have any issues acquiring metadata as long as I used
isc-dhcp-client as the dhcp client (Had issues when using pump).

I believe even with your patch the password on the root account will not be
set.


On 23 June 2014 23:49, Carlos Reátegui  wrote:

> Hi Ian,
> What version of cloud-init are you using?  The default one that comes with
> ubuntu 12.04 has a bug that causes is not to work on Cloudstack (uses
> gateway instead of dhcp server as metadata server).
>
> I did something similar to convert the cloud images from ubuntu into a
> XenServer image and have a patch for DataSourceCloudStack in cloud-init
> here:
> https://github.com/creategui/CloudStackImageScripts/blob/master/DataSourceCloudStack.patch
>
> cheers,
> -Carlos
>
>
> On Jun 23, 2014, at 1:17 PM, Ian Duffy  wrote:
>
> > Lucian,
> >
> > You were spot on. It is not supported. I've done similar to your work
> > around by giving a init.d script.
> >
> > I've upload a automated system using packer for generating a OVA of a
> > debian x64 template to github
> > https://github.com/imduffy15/cloudstack-templates
> >
> > I included a built version of the template for xenserver to save somebody
> > time in the future.
> > https://github.com/imduffy15/cloudstack-templates/releases
> >
> > If people are interested I might build this out to generate KVM, Xen,
> > HyperV and vSphere images and add CentOS and Ubuntu.
> >
> >
> > On 23 June 2014 18:40, Ian Duffy  wrote:
> >
> >> Thanks Lucian!
> >>
> >> I'm currently digging through the cloud-init documentation. I'll let you
> >> know if I find another way.
> >>
> >>
> >> On 23 June 2014 18:34, Nux!  wrote:
> >>
> >>> Yes, the Cloudstack root password feature is (to my knowledge) totally
> >>> unsupported by cloud-init.
> >>> So only ssh keys and user data works.
> >>> To work around it, I usually throw the cloudstack-set-root-password
> >>> script in /var/lib/cloud/scripts/per-boot so cloud-init will execute it
> >>> every time the VM boots.
> >>>
> >>> HTH
> >>> Lucian
> >>>
> >>> --
> >>> Sent from the Delta quadrant using Borg technology!
> >>>
> >>> Nux!
> >>> www.nux.ro
> >>>
> >>>
> >>> - Original Message -
> >>> From: "Ian Duffy" 
> >>> To: users@cloudstack.apache.org
> >>> Sent: Monday, 23 June, 2014 6:09:30 PM
> >>> Subject: Debian + Cloud-Init
> >>>
> >>> Hi All,
> >>>
> >>> In the past i've used the community supplied scripts over at
> >>> https://github.com/shankerbalan/cloudstack-scripts for doing
> injection of
> >>> password / ssh keys.
> >>>
> >>> I'm trying to move to cloud-init to handle this for me however I am
> having
> >>> some issues.
> >>>
> >>> I modified my /etc/cloud/cloud.cfg file to use CloudStack as a
> datasource:
> >>>
> >>> datasource_list: ['CloudStack']
> >>>
> >>> datasource:
> >>>
> >>>  CloudStack: {}
> >>>
> >>>
> >>> I also set the following:
> >>>
> >>> disable_root: False
> >>>
> >>> user: root
> >>>
> >>> ssh_pwauth: True
> >>>
> >>> ssh_deletekeys: True
> >>>
> >>> ssh_genkeytypes: ['rsa', 'dsa']
> >>>
> >>> ssh_svcname: ssh
> >>>
> >>>
> >>> On booting up the machine I see the script run successfully and pull
> the
> >>> metadata down from the VR. The hostname is also set and new ssh keys
> are
> >>> generated.
> >>>
> >>> On attempting to login as root with the password provided on the
> >>> Cloudstack
> >>> UI I am unsuccessful. I'm unsure why.
> >>>
> >>>
> >>> Anybody got an idea where I'm going wrong?
> >>>
> >>>
> >>> Thanks,
> >>>
> >>> Ian
> >>>
> >>
> >>
>
>


Re: Debian + Cloud-Init

2014-06-23 Thread Carlos Reátegui

On Jun 23, 2014, at 4:09 PM, Ian Duffy  wrote:

> Hi Carlos,
> 
> I'm using 0.7.3-2 from the Debian Wheezy backports repo.
> 
> I didn't have any issues acquiring metadata as long as I used
> isc-dhcp-client as the dhcp client (Had issues when using pump).
> 
> I believe even with your patch the password on the root account will not be
> set.
Correct.  We share similar launch/user-data scripts for AWS and CloudStack so 
we use the cloud-init standard public-keys metadata type for enabling VM access 
and therefore have no need for the CS password service.




Management Server HA & DB Replication

2014-06-23 Thread Tejas Gadaria
Hi,

I want to make MS on high availability, with automatic failover.
I have MS & DB on same server. & planning to create slave DB on separate
server.

but if I create separate Slave MS for HA, how can point it to DB so command
issued from any of MS will trigger to same infrastructure.

Regards,
Tejas


Re: Management Server HA & DB Replication

2014-06-23 Thread Ian Marshall
Hi Tejas

I suggest you try mariadb cluster v5.5. Although My only experience is using it 
for active-active db for openstack, it was quite easy to set up  and can work 
with two installations. You can increase the nodes by using arbitrator if you 
wish. See the community website for mariadb and the galera website for more 
information. 

Regards
Ian 

> On 24 Jun 2014, at 05:23, Tejas Gadaria  wrote:
> 
> Hi,
> 
> I want to make MS on high availability, with automatic failover.
> I have MS & DB on same server. & planning to create slave DB on separate
> server.
> 
> but if I create separate Slave MS for HA, how can point it to DB so command
> issued from any of MS will trigger to same infrastructure.
> 
> Regards,
> Tejas


RE: Management Server HA & DB Replication

2014-06-23 Thread Damoder Reddy
The problem with MariaDB/galera is it does not support explicit locking of 
tables etc.. which are used inside Cloudstack code..

https://mariadb.com/kb/en/mariadb-galera-cluster-known-limitations/


Thanks & Regards
Damodar/

-Original Message-
From: Ian Marshall [mailto:i...@itlhosting.co.uk] 
Sent: Tuesday, June 24, 2014 10:25 AM
To: users@cloudstack.apache.org
Subject: Re: Management Server HA & DB Replication

Hi Tejas

I suggest you try mariadb cluster v5.5. Although My only experience is using it 
for active-active db for openstack, it was quite easy to set up  and can work 
with two installations. You can increase the nodes by using arbitrator if you 
wish. See the community website for mariadb and the galera website for more 
information. 

Regards
Ian 

> On 24 Jun 2014, at 05:23, Tejas Gadaria  wrote:
> 
> Hi,
> 
> I want to make MS on high availability, with automatic failover.
> I have MS & DB on same server. & planning to create slave DB on 
> separate server.
> 
> but if I create separate Slave MS for HA, how can point it to DB so 
> command issued from any of MS will trigger to same infrastructure.
> 
> Regards,
> Tejas


[acs-4.4] cherry-pick

2014-06-23 Thread Damoder Reddy
Hi,

Please cherry-pick the following commit to 4.4 from 4.4-forward

24401e0b2b575d1aa151dbf5d4e0e0e1de4e9361 - The fix is for 
https://issues.apache.org/jira/browse/CLOUDSTACK-6444


Thanks & Regards
Damodar/



Re: Management Server HA & DB Replication

2014-06-23 Thread Ian Marshall
Thanks for the info as I planned to use mariadb cluster. 

I presume our only option is mysql with replication as perconadb also uses 
galera so presume that wont work either. 

Regards
Ian

> On 24 Jun 2014, at 06:42, Damoder Reddy  wrote:
> 
> The problem with MariaDB/galera is it does not support explicit locking of 
> tables etc.. which are used inside Cloudstack code..
> 
> https://mariadb.com/kb/en/mariadb-galera-cluster-known-limitations/
> 
> 
> Thanks & Regards
> Damodar/
> 
> -Original Message-
> From: Ian Marshall [mailto:i...@itlhosting.co.uk] 
> Sent: Tuesday, June 24, 2014 10:25 AM
> To: users@cloudstack.apache.org
> Subject: Re: Management Server HA & DB Replication
> 
> Hi Tejas
> 
> I suggest you try mariadb cluster v5.5. Although My only experience is using 
> it for active-active db for openstack, it was quite easy to set up  and can 
> work with two installations. You can increase the nodes by using arbitrator 
> if you wish. See the community website for mariadb and the galera website for 
> more information. 
> 
> Regards
> Ian 
> 
>> On 24 Jun 2014, at 05:23, Tejas Gadaria  wrote:
>> 
>> Hi,
>> 
>> I want to make MS on high availability, with automatic failover.
>> I have MS & DB on same server. & planning to create slave DB on 
>> separate server.
>> 
>> but if I create separate Slave MS for HA, how can point it to DB so 
>> command issued from any of MS will trigger to same infrastructure.
>> 
>> Regards,
>> Tejas


Cloud Stack | Unable to add KVM host

2014-06-23 Thread Ali Ahsan

Hi,

I have configured Cloud stack but unable to add KVM host both mangment 
and KVM hosted on Same VM (Vmwear ). Please see the log below.



INFO  [c.c.a.ApiServer] (catalina-exec-19:ctx-5d9e0c4a ctx-17cfe177) 
Unable to add the host
INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-94e1f583 
ctx-867ef602) Trying to add a new host at http://10.10.0.244 in data 
center 1
WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-94e1f583 
ctx-867ef602) Unable to find the server resources at http://10.10.0.244
INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-20:ctx-94e1f583 
ctx-867ef602) Could not find exception: 
com.cloud.exception.DiscoveryException in error code list for exceptions
WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-20:ctx-94e1f583 
ctx-867ef602) Exception:

com.cloud.exception.DiscoveryException: Unable to add the host
at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

at com.sun.proxy.$Proxy145.discoverHosts(Unknown Source)
at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)

at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
at 
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)

at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)

at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)
INFO  [c.c.a.ApiServer] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Unable to add the host






RE: Management Server HA & DB Replication

2014-06-23 Thread Damoder Reddy
Yes, from 4.3 onwards we enabled DB-HA within cloudstack using mysql 
replication and connector configurations.

https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=34838207



Thanks & Regards
Damodar/


-Original Message-
From: Ian Marshall [mailto:i...@itlhosting.co.uk] 
Sent: Tuesday, June 24, 2014 11:31 AM
To: users@cloudstack.apache.org
Subject: Re: Management Server HA & DB Replication

Thanks for the info as I planned to use mariadb cluster. 

I presume our only option is mysql with replication as perconadb also uses 
galera so presume that wont work either. 

Regards
Ian

> On 24 Jun 2014, at 06:42, Damoder Reddy  wrote:
> 
> The problem with MariaDB/galera is it does not support explicit locking of 
> tables etc.. which are used inside Cloudstack code..
> 
> https://mariadb.com/kb/en/mariadb-galera-cluster-known-limitations/
> 
> 
> Thanks & Regards
> Damodar/
> 
> -Original Message-
> From: Ian Marshall [mailto:i...@itlhosting.co.uk]
> Sent: Tuesday, June 24, 2014 10:25 AM
> To: users@cloudstack.apache.org
> Subject: Re: Management Server HA & DB Replication
> 
> Hi Tejas
> 
> I suggest you try mariadb cluster v5.5. Although My only experience is using 
> it for active-active db for openstack, it was quite easy to set up  and can 
> work with two installations. You can increase the nodes by using arbitrator 
> if you wish. See the community website for mariadb and the galera website for 
> more information. 
> 
> Regards
> Ian
> 
>> On 24 Jun 2014, at 05:23, Tejas Gadaria  wrote:
>> 
>> Hi,
>> 
>> I want to make MS on high availability, with automatic failover.
>> I have MS & DB on same server. & planning to create slave DB on 
>> separate server.
>> 
>> but if I create separate Slave MS for HA, how can point it to DB so 
>> command issued from any of MS will trigger to same infrastructure.
>> 
>> Regards,
>> Tejas


Re: Cloud Stack | Unable to add KVM host

2014-06-23 Thread Rajani Karuturi
did you do agent install?
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor/kvm.html#install-and-configure-the-agent


~Rajani



On 24-Jun-2014, at 11:32 am, Ali Ahsan 
mailto:ali.ah...@northbaysolutions.net>> wrote:

Hi,

I have configured Cloud stack but unable to add KVM host both mangment and KVM 
hosted on Same VM (Vmwear ). Please see the log below.


INFO  [c.c.a.ApiServer] (catalina-exec-19:ctx-5d9e0c4a ctx-17cfe177) Unable to 
add the host
INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Trying to add a new host at http://10.10.0.244 in data center 1
WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Unable to find the server resources at http://10.10.0.244
INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-20:ctx-94e1f583 
ctx-867ef602) Could not find exception: com.cloud.exception.DiscoveryException 
in error code list for exceptions
WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
   at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
   at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy145.discoverHosts(Unknown Source)
   at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
   at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
   at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
   at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
   at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
   at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
   at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
   at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
   at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
   at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
   at com.cloud.api.ApiServlet.doPost(ApiServlet.java:79)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
   at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
   at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
INFO  [c.c.a.ApiServer] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) Unable to 
add the host