I see the same error. Not sure if its something related to the new XenServer jars. But I was seeing this since about a month, haven't been able to dig into it yet.
Thanks, Amogh On 4/17/14 10:58 AM, "David Grizzanti" <dgrizzanti.cloudst...@gmail.com> wrote: >Yeah, even after using the newer devcloud2 instance, I'm still not able to >get it to work. Still seeing errors for the directory and others. > >Amogh - what errors are you seeing? > >From deploy marvin: >cloudstackException.cloudstackAPIException: Execute cmd: addhost failed, >due to: errorCode: 530, errorText:Cannot transit agent status with event >AgentDisconnected for host 1, mangement server id is 8796757504512,Unable >to transition to a new state from Creating via AgentDisconnected > >mgmt server log: >ARN [c.c.a.m.DirectAgentAttache] (DirectAgent-1:ctx-bef0aa48) Seq >1-9152158867746979841: Exception Caught while executing command >com.cloud.utils.exception.CloudRuntimeException: Cannot create directory >/opt/cloud/bin on XenServer hosts >at >com.cloud.hypervisor.xen.resource.CitrixResourceBase.setupServer(CitrixRes >ourceBase.java:4843) >at >com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc >eBase.java:4669) >at >com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix >ResourceBase.java:490) >at >com.cloud.hypervisor.xen.resource.XcpOssResource.executeRequest(XcpOssReso >urce.java:176) >at >com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAt >tache.java:216) >at >org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Managed >ContextRunnable.java:49) >at >org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(De >faultManagedContext.java:56) >at >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithC >ontext(DefaultManagedContext.java:103) >at >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithCo >ntext(DefaultManagedContext.java:53) >at >org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedCo >ntextRunnable.java:46) >at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >at java.util.concurrent.FutureTask.run(FutureTask.java:166) >at >java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces >s$201(ScheduledThreadPoolExecutor.java:178) >at >java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(S >cheduledThreadPoolExecutor.java:292) >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:724) >WARN [c.c.h.x.d.XcpServerDiscoverer] >(15756059@qtp-13139836-0:ctx-a51fbd54 >ctx-e6b9836a ctx-f62ead06) Unable to setup agent 1 due to >com.cloud.utils.exception.CloudRuntimeException: Cannot create directory >/opt/cloud/bin on XenServer hosts >INFO [c.c.u.e.CSExceptionErrorCode] (15756059@qtp-13139836-0:ctx-a51fbd54 >ctx-e6b9836a ctx-f62ead06) Could not find exception: >com.cloud.exception.ConnectionException in error code list for exceptions >WARN [c.c.a.m.AgentManagerImpl] (15756059@qtp-13139836-0:ctx-a51fbd54 >ctx-e6b9836a ctx-f62ead06) Monitor XcpServerDiscoverer says there is an >error in the connect process for 1 due to Reinitialize agent after setup. >INFO [c.c.a.m.AgentManagerImpl] (15756059@qtp-13139836-0:ctx-a51fbd54 >ctx-e6b9836a ctx-f62ead06) Host 1 is disconnecting with event >AgentDisconnected >WARN [c.c.r.ResourceManagerImpl] (15756059@qtp-13139836-0:ctx-a51fbd54 >ctx-e6b9836a ctx-f62ead06) Unable to connect due to >com.cloud.exception.ConnectionException: Reinitialize agent after setup. >at >com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(Xcp >ServerDiscoverer.java:657) >at >com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentM >anagerImpl.java:514) >at >com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentMan >agerImpl.java:1427) >at >com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerI >mpl.java:1765) >at >com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerIm >pl.java:773) >at >com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.j >ava:586) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > >On Wed, Apr 16, 2014 at 1:40 PM, Amogh Vasekar ><amogh.vase...@citrix.com>wrote: > >> Let me know if you get it working, hasn't been for me. >> >> Thanks, >> Amogh >> >> On 4/16/14 5:20 AM, "David Grizzanti" <dgrizzanti.cloudst...@gmail.com> >> wrote: >> >> >Didn't realize there was a new version of devcloud - thanks for the >>tip. >> > Will try this out! >> > >> > >> >On Wed, Apr 16, 2014 at 1:30 AM, Punith S <punit...@cloudbyte.com> >>wrote: >> > >> >> hi, >> >> >> >> check whether you are using the new updated devcloud2(1.3GB) for 4.3 >> >> onwards! >> >> ref - https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud >> >> >> >> and its recommended to use devcloud as host only mode. >> >> thanks, >> >> >> >> >> >> >> >> On Wed, Apr 16, 2014 at 12:18 AM, David Grizzanti < >> >> david.grizza...@sungard.com> wrote: >> >> >> >> > All, >> >> > >> >> > I am facing an issue when trying to get devcloud2 running with >>latest >> >> code >> >> > from 4.4 branch. There was a similar email to this a few weeks >>back on >> >> > master, but I did not see any resolution. >> >> > >> >> > I'm running everything in side of devcloud2 (mgmt server, mysql, >>xen). >> >> > >> >> > Seeing the following errors when trying to deploy an initial zone. >> >>Don't >> >> > see any issues with creating the /opt/cloud/bin directory inside >>the >> >>VM. >> >> > >> >> > WARN [c.c.a.m.DirectAgentAttache] (DirectAgent-37:ctx-0d57a0bf) >>Seq >> >> > 3-8906994163031998465: Exception Caught while executing command >> >> > com.cloud.utils.exception.CloudRuntimeException: Cannot create >> >>directory >> >> > /opt/cloud/bin on XenServer hosts >> >> > at >> >> > >> >> >> >>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.setupServer(Citrix >>>>Re >> >>sourceBase.java:4842) >> >> > at >> >> > >> >> >> >>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixReso >>>>ur >> >>ceBase.java:4668) >> >> > at >> >> > >> >> >> >>>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Cit >>>>ri >> >>xResourceBase.java:489) >> >> > at >> >> > >> >> >> >>>>com.cloud.hypervisor.xen.resource.XcpOssResource.executeRequest(XcpOssR >>>>es >> >>ource.java:176) >> >> > at >> >> > >> >> >> >>>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgen >>>>tA >> >>ttache.java:216) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Mana >>>>ge >> >>dContextRunnable.java:49) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call >>>>(D >> >>efaultManagedContext.java:56) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWi >>>>th >> >>Context(DefaultManagedContext.java:103) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWit >>>>hC >> >>ontext(DefaultManagedContext.java:53) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(Manage >>>>dC >> >>ontextRunnable.java:46) >> >> > at >> >> > >> >>>>java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> >> > at >> >> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> >> > at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> >> > at >> >> > >> >> >> >>>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.ac >>>>ce >> >>ss$201(ScheduledThreadPoolExecutor.java:178) >> >> > at >> >> > >> >> >> >>>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.ru >>>>n( >> >>ScheduledThreadPoolExecutor.java:292) >> >> > at >> >> > >> >> >> >>>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja >>>>va >> >>:1145) >> >> > at >> >> > >> >> >> >>>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j >>>>av >> >>a:615) >> >> > at java.lang.Thread.run(Thread.java:724) >> >> > WARN [c.c.h.x.d.XcpServerDiscoverer] >>(AgentTaskPool-13:ctx-5015bd03) >> >> > Unable to setup agent 3 due to >> >> > com.cloud.utils.exception.CloudRuntimeException: Cannot create >> >>directory >> >> > /opt/cloud/bin on XenServer hosts >> >> > INFO [c.c.u.e.CSExceptionErrorCode] >>(AgentTaskPool-13:ctx-5015bd03) >> >> Could >> >> > not find exception: com.cloud.exception.ConnectionException in >>error >> >>code >> >> > list for exceptions >> >> > WARN [c.c.a.m.AgentManagerImpl] (AgentTaskPool-13:ctx-5015bd03) >> >>Monitor >> >> > XcpServerDiscoverer says there is an error in the connect process >>for >> >>3 >> >> due >> >> > to Reinitialize agent after setup. >> >> > INFO [c.c.a.m.AgentManagerImpl] (AgentTaskPool-13:ctx-5015bd03) >>Host >> >>3 >> >> is >> >> > disconnecting with event AgentDisconnected >> >> > WARN [c.c.r.ResourceManagerImpl] (AgentTaskPool-13:ctx-5015bd03) >> >>Unable >> >> > to connect due to >> >> > com.cloud.exception.ConnectionException: Reinitialize agent after >> >>setup. >> >> > at >> >> > >> >> >> >>>>com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect( >>>>Xc >> >>pServerDiscoverer.java:658) >> >> > at >> >> > >> >> >> >>>>com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(Age >>>>nt >> >>ManagerImpl.java:514) >> >> > at >> >> > >> >> >> >>>>com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(Agent >>>>Ma >> >>nagerImpl.java:1428) >> >> > at >> >> > >> >> >> >>>>com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManag >>>>er >> >>Impl.java:1767) >> >> > at >> >> > >> >> >> >>>>com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManag >>>>er >> >>Impl.java:1893) >> >> > at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown >> >>Source) >> >> > at >> >> > >> >> >> >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso >>>>rI >> >>mpl.java:43) >> >> > at java.lang.reflect.Method.invoke(Method.java:606) >> >> > at >> >> > >> >> >> >>>>org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection >>>>(A >> >>opUtils.java:317) >> >> > at >> >> > >> >> >> >>>>org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoin >>>>po >> >>int(ReflectiveMethodInvocation.java:183) >> >> > at >> >> > >> >> >> >>>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re >>>>fl >> >>ectiveMethodInvocation.java:150) >> >> > at >> >> > >> >> >> >>>>org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke( >>>>Ex >> >>poseInvocationInterceptor.java:91) >> >> > at >> >> > >> >> >> >>>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re >>>>fl >> >>ectiveMethodInvocation.java:172) >> >> > at >> >> > >> >> >> >>>>org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicA >>>>op >> >>Proxy.java:204) >> >> > at com.sun.proxy.$Proxy147.createHostAndAgent(Unknown >>Source) >> >> > at >> >> > >> >> >> >>>>com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.runInContext >>>>(A >> >>gentManagerImpl.java:1070) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Mana >>>>ge >> >>dContextRunnable.java:49) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call >>>>(D >> >>efaultManagedContext.java:56) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWi >>>>th >> >>Context(DefaultManagedContext.java:103) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWit >>>>hC >> >>ontext(DefaultManagedContext.java:53) >> >> > at >> >> > >> >> >> >>>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(Manage >>>>dC >> >>ontextRunnable.java:46) >> >> > at >> >> > >> >> >> >>>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja >>>>va >> >>:1145) >> >> > at >> >> > >> >> >> >>>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j >>>>av >> >>a:615) >> >> > at java.lang.Thread.run(Thread.java:724) >> >> > >> >> > Any help would be appreciated. Thanks! >> >> > >> >> > -- >> >> > David Grizzanti >> >> > Software Engineer >> >> > Sungard Availability Services >> >> > e: david.grizza...@sungard.com >> >> > w: 215-446-1431 >> >> > c: 570-575-0315 >> >> >> >> >> >> >> >> >> >> -- >> >> regards, >> >> >> >> punith s >> >> cloudbyte.com >> >> >> >>