You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Carlos Reategui <cr...@gmail.com> on 2014/09/30 01:53:25 UTC

Can't launch VMs

Following up on my earlier email regarding errors in my logs it appears
things are not as great as I thought.  Trying to launch instances is not
working.  Please help.
thanks,
Carlos

ACS: 4.3.1
Hosts: XenServer 6.2
Network: Basic Shared Network no SG

Things appear ok up until it tries to create the VIF.  Here are the logs:

2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request

2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.

2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Created VM
71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM

2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
created for com.cloud.agent.api.to.DiskTO@53d6031b

2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:

2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
(StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
GetStorageStatsAnswer } }

2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request

2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
created for com.cloud.agent.api.to.DiskTO@7fbb227a

2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
(catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658

2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
(catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
GET
command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658

2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
created for com.cloud.agent.api.to.DiskTO@194e84ba

2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
[Nic:Guest-172.30.45.143-null]

2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
java.lang.NullPointerException due to java.lang.NullPointerException

java.lang.NullPointerException

        at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)

        at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to

java.lang.NullPointerException

        at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)

        at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected problem
during startup : i-3-98-VM

2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:

2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
5.7
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5","params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4479-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
"}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67534434d137","volumeId":124,"vmName":"i-3-
98-VM
","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
"}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","volumeId":125,"vmName":"i-3-
98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType":"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","type":"DATADISK","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816","ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","mac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","broadcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMaxLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
to start i-3-98-VM due to ","wait":0}}] }

2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StartAnswer }
}

2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
Host[-2-Routing] due to Unable to start i-3-98-VM due to

2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
vm VM[User|sununxcld19] in Starting state

2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  { Cmd
, MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
98-VM","wait":0}}] }

2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:  {
Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
98-VM","wait":0}}] }

2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request

2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-236:ctx-234da2e1) VM does not exist on
XenServer63befa52-4c03-460a-9557-9100d51cedaf

2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:

2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
exist","wait":0}}] }

2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer } }

2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
supported in the network id=204

2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of nics
for network id=204 on -1

2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to release
NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null

2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
resources for the vm VM[User|sununxcld19]

2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
resources for the vm VM[User|sununxcld19] in Starting state

2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
place VM in volume's cluster

Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
Never thought of that. will have to write an update for that as well

On Tue, Oct 7, 2014 at 8:30 AM, Carlos Reátegui <cr...@gmail.com> wrote:

> That was definitely a bug but will not fix my problem.  See my comment in
> the JIRA.
>
>
> On Oct 6, 2014, at 11:04 PM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> I just had a look at the code and found a bug. It might have not thrown an
> exception where it should have. sorry about that. I am fixing that and will
> port it to later versions.
>
> On Tue, Oct 7, 2014 at 7:56 AM, Carlos Reátegui <cr...@gmail.com>
> wrote:
>
>> What is it looking for?
>>
>> Where is that code?  Maybe I can have a look.
>>
>> On Oct 6, 2014, at 10:54 PM, Daan Hoogland <da...@gmail.com>
>> wrote:
>>
>>
>> On Mon, Oct 6, 2014 at 9:41 PM, Carlos Reátegui <cr...@gmail.com>
>> wrote:
>>
>>> 2014-09-29 09:56:03,519 DEBUG [c.c.u.d.Upgrade430to431] (main:null)
>>> updating vlan URIs
>>> 2014-09-29 09:56:03,523 DEBUG [c.c.u.d.Upgrade430to431] (main:null) Done
>>> updateing vlan URIs
>>>
>>
>> ​This is what I wanted to have confirmed. It should have done the trick.​
>>
>>
>>
>> --
>> Daan
>>
>>
>>
>
>
> --
> Daan
>
>
>


-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
That was definitely a bug but will not fix my problem.  See my comment in the JIRA.


On Oct 6, 2014, at 11:04 PM, Daan Hoogland <da...@gmail.com> wrote:

> I just had a look at the code and found a bug. It might have not thrown an exception where it should have. sorry about that. I am fixing that and will port it to later versions.
> 
> On Tue, Oct 7, 2014 at 7:56 AM, Carlos Reátegui <cr...@gmail.com> wrote:
> What is it looking for?
> 
> Where is that code?  Maybe I can have a look.
> 
> On Oct 6, 2014, at 10:54 PM, Daan Hoogland <da...@gmail.com> wrote:
> 
>> 
>> On Mon, Oct 6, 2014 at 9:41 PM, Carlos Reátegui <cr...@gmail.com> wrote:
>> 2014-09-29 09:56:03,519 DEBUG [c.c.u.d.Upgrade430to431] (main:null) updating vlan URIs
>> 2014-09-29 09:56:03,523 DEBUG [c.c.u.d.Upgrade430to431] (main:null) Done updateing vlan URIs
>> 
>> ​This is what I wanted to have confirmed. It should have done the trick.​
>> 
>> 
>> 
>> -- 
>> Daan
> 
> 
> 
> 
> -- 
> Daan


Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
I just had a look at the code and found a bug. It might have not thrown an
exception where it should have. sorry about that. I am fixing that and will
port it to later versions.

On Tue, Oct 7, 2014 at 7:56 AM, Carlos Reátegui <cr...@gmail.com> wrote:

> What is it looking for?
>
> Where is that code?  Maybe I can have a look.
>
> On Oct 6, 2014, at 10:54 PM, Daan Hoogland <da...@gmail.com>
> wrote:
>
>
> On Mon, Oct 6, 2014 at 9:41 PM, Carlos Reátegui <cr...@gmail.com>
> wrote:
>
>> 2014-09-29 09:56:03,519 DEBUG [c.c.u.d.Upgrade430to431] (main:null)
>> updating vlan URIs
>> 2014-09-29 09:56:03,523 DEBUG [c.c.u.d.Upgrade430to431] (main:null) Done
>> updateing vlan URIs
>>
>
> ​This is what I wanted to have confirmed. It should have done the trick.​
>
>
>
> --
> Daan
>
>
>


-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
What is it looking for?

Where is that code?  Maybe I can have a look.

On Oct 6, 2014, at 10:54 PM, Daan Hoogland <da...@gmail.com> wrote:

> 
> On Mon, Oct 6, 2014 at 9:41 PM, Carlos Reátegui <cr...@gmail.com> wrote:
> 2014-09-29 09:56:03,519 DEBUG [c.c.u.d.Upgrade430to431] (main:null) updating vlan URIs
> 2014-09-29 09:56:03,523 DEBUG [c.c.u.d.Upgrade430to431] (main:null) Done updateing vlan URIs
> 
> ​This is what I wanted to have confirmed. It should have done the trick.​
> 
> 
> 
> -- 
> Daan


Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
On Mon, Oct 6, 2014 at 9:41 PM, Carlos Reátegui <cr...@gmail.com> wrote:

> 2014-09-29 09:56:03,519 DEBUG [c.c.u.d.Upgrade430to431] (main:null)
> updating vlan URIs
> 2014-09-29 09:56:03,523 DEBUG [c.c.u.d.Upgrade430to431] (main:null) Done
> updateing vlan URIs
>

​This is what I wanted to have confirmed. It should have done the trick.​



-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Yes I do.  Anything in particular I should look for?

2014-09-29 09:56:03,115 INFO  [c.c.u.d.T.Transaction] (main:null) Is Data Base High Availiability enabled? Ans : false
2014-09-29 09:56:03,381 DEBUG [c.c.u.d.ConnectionConcierge] (main:null) Registering a database connection for LockMaster1
2014-09-29 09:56:03,381 INFO  [c.c.u.d.Merovingian2] (main:null) Cleaning up locks for 233845174730255
2014-09-29 09:56:03,393 INFO  [c.c.u.d.Merovingian2] (main:null) Released 0 locks for 233845174730255
2014-09-29 09:56:03,430 INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Running system integrity checker com.cloud.upgrade.DatabaseUpgradeChecker@55ea8912
2014-09-29 09:56:03,431 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Grabbing lock to check for database upgrade.
2014-09-29 09:56:03,474 DEBUG [c.c.u.d.VersionDaoImpl] (main:null) Checking to see if the database is at a version before it was the version table is created
2014-09-29 09:56:03,515 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) DB version = 4.3.0 Code Version = 4.3.1
2014-09-29 09:56:03,517 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Database upgrade must be performed from 4.3.0 to 4.3.1
2014-09-29 09:56:03,518 DEBUG [c.c.u.DatabaseUpgradeChecker] (main:null) Running upgrade Upgrade430to431 to upgrade from 4.3.0-4.3.1 to 4.3.1
2014-09-29 09:56:03,519 DEBUG [c.c.u.d.Upgrade430to431] (main:null) updating vlan URIs
2014-09-29 09:56:03,523 DEBUG [c.c.u.d.Upgrade430to431] (main:null) Done updateing vlan URIs
2014-09-29 09:56:03,542 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Cleaning upgrades because all management server are now at the same version
2014-09-29 09:56:03,545 DEBUG [c.c.u.DatabaseUpgradeChecker] (main:null) Upgrading to version 4.3.1...
2014-09-29 09:56:03,545 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null) Cleanup upgrade Upgrade430to431 to upgrade from 4.3.0-4.3.1 to 4.3.1
2014-09-29 09:56:03,564 DEBUG [c.c.u.DatabaseUpgradeChecker] (main:null) Upgrade completed for version 4.3.1
2014-09-29 09:56:03,568 INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Configuring CloudStack Components
2014-09-29 09:56:03,570 INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Done Configuring CloudStack Components
2014-09-29 09:56:03,570 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) Loaded module context [system] in 2268 ms




On Oct 6, 2014, at 1:53 AM, Daan Hoogland <da...@gmail.com> wrote:

> I am not sure Carlos, but I think it was due to a fix of some other network related issue in 4.3.1. I thought we wrote an update/fix for it. So I am looking at how your env missed out.
> 
> On Sun, Oct 5, 2014 at 1:10 AM, Carlos Reátegui <cr...@gmail.com> wrote:
> Sure, but I am not sure if the problem happened when I upgraded to 4.3.0 or 4.3.1.  When (what version) did the broadcast_uri in the network table require an entry for Guest networks and not able to be null?
> 
> 
> On Oct 4, 2014, at 4:15 AM, Daan Hoogland <da...@gmail.com> wrote:
> 
>> Carlos, I think you found a bug in our upgrade scripts. Can you describe the scenario in a ticket?
>> 
>> On Sat, Oct 4, 2014 at 1:48 AM, Carlos Reátegui <cr...@gmail.com> wrote:
>> Hmm.  I just checked another deployment I did with 4.4.0 using the same zone type and network offering and it has the broadcast_uri set to vlan://untagged.
>> 
>> I also checked previous backups from older versions (4.10 and 4.2.1) and in all of those the broadcast_uri was blank.  I am wondering if this is a bug in the upgrade scripts. 
>> 
>> I updated network 204 and set the broadcast_uri and now I am able to start new instances.
>> 
>> thank you for your help!
>> 
>> I am including my nics table just in case you spot something else out of the ordinary.
>> 
>> mysql> select id, instance_id, network_id, netmask, gateway, ip4_address, broadcast_uri, mode, state, strategy from nics where network_id=204 order by ip4_address;
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> | id  | instance_id | network_id | netmask       | gateway     | ip4_address   | broadcast_uri   | mode | state        | strategy    |
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> |  60 |          52 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  64 |          53 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  68 |          54 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  72 |          55 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  76 |          56 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 116 |        NULL |        204 | NULL          | 172.30.45.1 | 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
>> | 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
>> | 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
>> | 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
>> |  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> 92 rows in set (0.00 sec)
>> 
>> 
>> 
>> 
>> On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <Ch...@citrix.com> wrote:
>> 
>>> Not really sure. Check your nics table as well
>>> select id, instance_id, network_id, netmask, gateway, ip4_address,
>>> broadcast_uri, mode, state, strategy from nics where network_id=204
>>> 
>>> It looks like the broadcast_uri is null? Should be vlan://untagged
>>> 
>>> 
>>> From:  Carlos Reátegui <cr...@gmail.com>
>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Date:  Friday, October 3, 2014 at 12:48 PM
>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Cc:  Daan Hoogland <da...@gmail.com>
>>> Subject:  Re: Can't launch VMs
>>> 
>>> 
>>> Don’t know how to “check your Œnetworks¹ table and see if the URI is
>>> correct."
>>> 
>>> Here is my networks table:
>>> 
>>> mysql> select * from networks;
>>> +-----+--------------------------+--------------------------------------+--
>>> ------------------------+--------------+-----------------------+-----------
>>> ----+-------------+----------------+--------+---------------------+--------
>>> -------------+----------------+---------------------------+-------+--------
>>> -+-----------+------------+------+------+-----------+------------+---------
>>> -+-------------------+----------------+------------+------------------+----
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> | id  | name                     | uuid                                 |
>>> display_text             | traffic_type | broadcast_domain_type |
>>> broadcast_uri | gateway     | cidr           | mode   |
>>> network_offering_id | physical_network_id | data_center_id | guru_name
>>>            | state | related | domain_id | account_id | dns1 | dns2 |
>>> guru_data | set_fields | acl_type | network_domain    | reservation_id |
>>> guest_type | restart_required | created             | removed |
>>> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
>>> display_network | network_acl_id |
>>> +-----+--------------------------+--------------------------------------+--
>>> ------------------------+--------------+-----------------------+-----------
>>> ----+-------------+----------------+--------+---------------------+--------
>>> -------------+----------------+---------------------------+-------+--------
>>> -+-----------+------------+------+------+-----------+------------+---------
>>> -+-------------------+----------------+------------+------------------+----
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
>>> NULL                     | Public       | Vlan                  | NULL
>>>     | NULL        | NULL           | Static |                   1 |
>>>         NULL |              1 | PublicNetworkGuru         | Setup |
>>> 200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
>>> NULL                     | Management   | Native                | NULL
>>>     | NULL        | NULL           | Static |                   2 |
>>>         NULL |              1 | PodBasedNetworkGuru       | Setup |
>>> 201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
>>> NULL                     | Control      | LinkLocal             | NULL
>>>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>>>         NULL |              1 | ControlNetworkGuru        | Setup |
>>> 202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
>>> NULL                     | Storage      | Native                | NULL
>>>     | NULL        | NULL           | Static |                   4 |
>>>         NULL |              1 | StorageNetworkGuru        | Setup |
>>> 203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
>>> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>>>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>>>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
>>> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> Domain   | cs1cloud.internal | NULL           | Shared     |
>>> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>>>   | NULL     | NULL         |               1 |           NULL |
>>> +-----+--------------------------+--------------------------------------+--
>>> ------------------------+--------------+-----------------------+-----------
>>> ----+-------------+----------------+--------+---------------------+--------
>>> -------------+----------------+---------------------------+-------+--------
>>> -+-----------+------------+------+------+-----------+------------+---------
>>> -+-------------------+----------------+------------+------------------+----
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> 5 rows in set (0.00 sec)
>>> 
>>> 
>>> 
>>> 
>>> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
>>> <Ch...@citrix.com> wrote:
>>> 
>>>> Wonder if Daan is talking about
>>>> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>>>> 
>>>> 
>>>> As you can see from
>>>> 
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>>>> h
>>>> 
>>>> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>>>> o
>>>> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
>>>> the first check for ³untagged² should¹ve gone through, except that it
>>>> goes
>>>> through and either hits line 1025 instead.
>>>> So, check your Œnetworks¹ table and see if the URI is correct.
>>>> 
>>>> 
>>>> From:  Carlos Reátegui <cr...@gmail.com>
>>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>>> Date:  Friday, October 3, 2014 at 12:15 PM
>>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>>> Subject:  Re: Can't launch VMs
>>>> 
>>>> 
>>>> Thanks for having a look.  Inline...
>>>> 
>>>> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
>>>> <Ch...@citrix.com> wrote:
>>>> 
>>>>> Not sure what is a ³basic zone no security groups².
>>>> Basic Zone type with the following Network Offering:
>>>> DefaultSharedNetworkOffering as opposed to the default/first option
>>>> DefaultSharedNetworkOfferingWithSGService.
>>>> 
>>>>> Check your vlan table to see if there has been any allocation of vlans?
>>>> mysql> select * from vlan;
>>>> 
>>>> +----+--------------------------------------+-----------------+-----------
>>>> -
>>>> 
>>>> --+---------------+-----------------------------+----------------+--------
>>>> -
>>>> 
>>>> -------+------------+---------------------+-------------+----------+------
>>>> -
>>>> ----+
>>>> | id | uuid                                 | vlan_id         |
>>>> vlan_gateway | vlan_netmask  | description                 | vlan_type
>>>> | data_center_id | network_id | physical_network_id | ip6_gateway |
>>>> ip6_cidr | ip6_range |
>>>> 
>>>> +----+--------------------------------------+-----------------+-----------
>>>> -
>>>> 
>>>> --+---------------+-----------------------------+----------------+--------
>>>> -
>>>> 
>>>> -------+------------+---------------------+-------------+----------+------
>>>> -
>>>> ----+
>>>> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
>>>> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
>>>> DirectAttached |              1 |        204 |                 200 | NULL
>>>>     | NULL     | NULL      |
>>>> 
>>>> +----+--------------------------------------+-----------------+-----------
>>>> -
>>>> 
>>>> --+---------------+-----------------------------+----------------+--------
>>>> -
>>>> 
>>>> -------+------------+---------------------+-------------+----------+------
>>>> -
>>>> ----+
>>>> 1 row in set (0.00 sec)
>>>> 
>>>> 
>>>> 
>>>>> 
>>>>> From: Carlos Reategui <cr...@gmail.com>>
>>>>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>>> <de...@cloudstack.apache.org>>,
>>>>> "carlos@reategui.com<ma...@reategui.com>"
>>>>> <ca...@reategui.com>>
>>>>> Date: Thursday, October 2, 2014 at 3:48 PM
>>>>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>>> <de...@cloudstack.apache.org>>
>>>>> Subject: Fwd: Can't launch VMs
>>>>> 
>>>>> Hi devs,
>>>>> Daan suggested I check with you all regarding this email I sent to the
>>>>> users list.
>>>>> 
>>>>> He said "the line of code that breaks expects a uri for a vlan", However
>>>>> I
>>>>> am using basic networking and I don't know where to add a vlan in that
>>>>> setup.
>>>>> He also said this was a known issue.  Hopefully one of you all knows a
>>>>> fix.
>>>>> 
>>>>> This deployment had been working fine.  Originally a 4.1, upgraded to
>>>>> 4.2.1
>>>>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>>>>> 4.2.1
>>>>> and I though it had been working under 4.3 as well but I am not sure
>>>>> now.
>>>>> There is no problem with existing instances.  The problem is when trying
>>>>> to
>>>>> launch new ones.
>>>>> 
>>>>> Let me know what additional info would be useful.
>>>>> 
>>>>> thank you,
>>>>> Carlos
>>>>> 
>>>>> 
>>>>> 
>>>>> ---------- Forwarded message ----------
>>>>> From: Carlos Reategui <cr...@gmail.com>>
>>>>> Date: Mon, Sep 29, 2014 at 4:53 PM
>>>>> Subject: Can't launch VMs
>>>>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>>> <us...@cloudstack.apache.org>>
>>>>> 
>>>>> 
>>>>> Following up on my earlier email regarding errors in my logs it appears
>>>>> things are not as great as I thought.  Trying to launch instances is not
>>>>> working.  Please help.
>>>>> thanks,
>>>>> Carlos
>>>>> 
>>>>> ACS: 4.3.1
>>>>> Hosts: XenServer 6.2
>>>>> Network: Basic Shared Network no SG
>>>>> 
>>>>> Things appear ok up until it tries to create the VIF.  Here are the
>>>>> logs:
>>>>> 
>>>>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>>>>> 
>>>>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>>>>> 
>>>>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>>>>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>>>>> 
>>>>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>>>>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>>>>> 
>>>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>>>>> 
>>>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>>>>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>>>> GetStorageStatsAnswer } }
>>>>> 
>>>>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>>>>> 
>>>>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>>>>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>>>>> 
>>>>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>>>>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>>>>> 
>>>>> 
>>>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>>>> s
>>>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>>> 
>>>>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>>>>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>>>>> GET
>>>>> 
>>>>> 
>>>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>>>> s
>>>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>>> 
>>>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>>>>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>>>>> 
>>>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>>>>> [Nic:Guest-172.30.45.143-null]
>>>>> 
>>>>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>>>>> java.lang.NullPointerException due to java.lang.NullPointerException
>>>>> 
>>>>> java.lang.NullPointerException
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>>>> v
>>>>> a:173)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>>>> )
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>>>> o
>>>>> urceBase.java:1035)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>>>> u
>>>>> rceBase.java:1088)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1718)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>>>>> 
>>>>> java.lang.NullPointerException
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>>>> v
>>>>> a:173)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>>>> )
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>>>> o
>>>>> urceBase.java:1035)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>>>> u
>>>>> rceBase.java:1088)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1718)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>>> 
>>>>> You gave an invalid object reference.  The object may have recently been
>>>>> deleted.  The class parameter gives the type of reference given, and the
>>>>> handle parameter echoes the bad value given.
>>>>> 
>>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>>> 
>>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>>> t
>>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>>> 
>>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>>> (
>>>>> CitrixResourceBase.java:1462)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1800)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>>> 
>>>>> You gave an invalid object reference.  The object may have recently been
>>>>> deleted.  The class parameter gives the type of reference given, and the
>>>>> handle parameter echoes the bad value given.
>>>>> 
>>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>>> 
>>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>>> t
>>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>>> 
>>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>>> (
>>>>> CitrixResourceBase.java:1462)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1800)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>>> 
>>>>> You gave an invalid object reference.  The object may have recently been
>>>>> deleted.  The class parameter gives the type of reference given, and the
>>>>> handle parameter echoes the bad value given.
>>>>> 
>>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>>> 
>>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>>> t
>>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>>> 
>>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>>> (
>>>>> CitrixResourceBase.java:1462)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1800)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>>>>> problem
>>>>> during startup : i-3-98-VM
>>>>> 
>>>>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>>>>> 
>>>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>>> 
>>>>> 
>>>>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>>>>> o
>>>>> 
>>>>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>>>>> "
>>>>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>>>>> 5.7
>>>>> 
>>>>> 
>>>>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>>>>> s
>>>>> 
>>>>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>>>>> ,
>>>>> 
>>>>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>>>>> 4
>>>>> 
>>>>> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
>>>>> .
>>>>> 
>>>>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>>>>> e
>>>>> 
>>>>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>>>>> O
>>>>> 
>>>>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>>>>> w
>>>>> 
>>>>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>>>>> "
>>>>> url":"NetworkFilesystem://
>>>>> 
>>>>> 
>>>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>>>> 0
>>>>> e-31eebeafb217
>>>>> 
>>>>> 
>>>>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>>>>> 7
>>>>> 534434d137","volumeId":124,"vmName":"i-3-
>>>>> 98-VM
>>>>> 
>>>>> 
>>>>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>>>>> n
>>>>> 
>>>>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>>>>> "
>>>>> 
>>>>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>>>>> "
>>>>> 
>>>>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>>>>> .
>>>>> 
>>>>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>>>>> ,
>>>>> 
>>>>> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
>>>>> i
>>>>> 
>>>>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>>>>> "
>>>>> 
>>>>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>>>>> y
>>>>> ","port":2049,"url":"NetworkFilesystem://
>>>>> 
>>>>> 
>>>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>>>> 0
>>>>> e-31eebeafb217
>>>>> 
>>>>> 
>>>>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>>>>> 1
>>>>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>>>>> 
>>>>> 
>>>>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>>>>> "
>>>>> 
>>>>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>>>>> "
>>>>> 
>>>>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>>>>> a
>>>>> 
>>>>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
>>>>> o
>>>>> 
>>>>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>>>>> ,
>>>>> 
>>>>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>>>>> t
>>>>> 
>>>>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>>>>> "
>>>>> 
>>>>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>>>>> m
>>>>> 
>>>>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>>>>> o
>>>>> 
>>>>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>>>>> a
>>>>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>>>>> to start i-3-98-VM due to ","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>>>>> {
>>>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>>>> StartAnswer }
>>>>> }
>>>>> 
>>>>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>>>>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>>>>> 
>>>>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>>>>> the
>>>>> vm VM[User|sununxcld19] in Starting state
>>>>> 
>>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>>>>> Cmd
>>>>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>>>>> 
>>>>> 
>>>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>>>> f
>>>>> alse,"vmName":"i-3-
>>>>> 98-VM","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>>>>> {
>>>>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>>>>> 100011,
>>>>> 
>>>>> 
>>>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>>>> f
>>>>> alse,"vmName":"i-3-
>>>>> 98-VM","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>>>>> 
>>>>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>>>>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>>>>> 
>>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>>>>> 
>>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>>>>> exist","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>>>>> {
>>>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>>>>> } }
>>>>> 
>>>>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>>>>> supported in the network id=204
>>>>> 
>>>>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>>>>> nics
>>>>> for network id=204 on -1
>>>>> 
>>>>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>>>>> release
>>>>> 
>>>>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>>>>> 
>>>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released 
>>>>> network
>>>>> resources for the vm VM[User|sununxcld19]
>>>>> 
>>>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>>>>> resources for the vm VM[User|sununxcld19] in Starting state
>>>>> 
>>>>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need 
>>>>> to
>>>>> place VM in volume's cluster
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
>> 
>> 
>> -- 
>> Daan
> 
> 
> 
> 
> -- 
> Daan


Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
H Carlos,

This still deludes me. The code to replace empty broadcastUris is in branch
4.3 and below the tag for 4.3.1. Your system should have been upgraded. Do
you still have the logs for the first start after upgrading?

On Mon, Oct 6, 2014 at 8:00 PM, Carlos Reátegui <cr...@gmail.com> wrote:

> Let me know if you require more detail:
>
> https://issues.apache.org/jira/browse/CLOUDSTACK-7674
>
>
>
> On Oct 6, 2014, at 1:53 AM, Daan Hoogland <da...@gmail.com> wrote:
>
> I am not sure Carlos, but I think it was due to a fix of some other
> network related issue in 4.3.1. I thought we wrote an update/fix for it. So
> I am looking at how your env missed out.
>
> On Sun, Oct 5, 2014 at 1:10 AM, Carlos Reátegui <cr...@gmail.com>
> wrote:
>
>> Sure, but I am not sure if the problem happened when I upgraded to 4.3.0
>> or 4.3.1.  When (what version) did the broadcast_uri in the network table
>> require an entry for Guest networks and not able to be null?
>>
>>
>> On Oct 4, 2014, at 4:15 AM, Daan Hoogland <da...@gmail.com>
>> wrote:
>>
>> Carlos, I think you found a bug in our upgrade scripts. Can you describe
>> the scenario in a ticket?
>>
>> On Sat, Oct 4, 2014 at 1:48 AM, Carlos Reátegui <cr...@gmail.com>
>> wrote:
>>
>>> Hmm.  I just checked another deployment I did with 4.4.0 using the same
>>> zone type and network offering and it has the broadcast_uri set to
>>> vlan://untagged.
>>>
>>> I also checked previous backups from older versions (4.10 and 4.2.1) and
>>> in all of those the broadcast_uri was blank.  I am wondering if this is a
>>> bug in the upgrade scripts.
>>>
>>> I updated network 204 and set the broadcast_uri and now I am able to
>>> start new instances.
>>>
>>> thank you for your help!
>>>
>>> I am including my nics table just in case you spot something else out of
>>> the ordinary.
>>>
>>> mysql> select id, instance_id, network_id, netmask, gateway,
>>> ip4_address, broadcast_uri, mode, state, strategy from nics where
>>> network_id=204 order by ip4_address;
>>>
>>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>>> | id  | instance_id | network_id | netmask       | gateway     |
>>> ip4_address   | broadcast_uri   | mode | state        | strategy    |
>>>
>>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>>> |  60 |          52 |        204 | NULL          | NULL        | NULL
>>>        | NULL            | Dhcp | Deallocating | Start       |
>>> |  64 |          53 |        204 | NULL          | NULL        | NULL
>>>        | NULL            | Dhcp | Deallocating | Start       |
>>> |  68 |          54 |        204 | NULL          | NULL        | NULL
>>>        | NULL            | Dhcp | Deallocating | Start       |
>>> |  72 |          55 |        204 | NULL          | NULL        | NULL
>>>        | NULL            | Dhcp | Deallocating | Start       |
>>> |  76 |          56 |        204 | NULL          | NULL        | NULL
>>>        | NULL            | Dhcp | Deallocating | Start       |
>>> |  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 116 |        NULL |        204 | NULL          | 172.30.45.1 |
>>> 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
>>> | 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> | 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
>>> | 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> | 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
>>> |  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> | 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
>>> |  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> | 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> | 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
>>> |  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> |  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
>>> | 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 |
>>> 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
>>>
>>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>>> 92 rows in set (0.00 sec)
>>>
>>>
>>>
>>>
>>> On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <
>>> Chiradeep.Vittal@citrix.com> wrote:
>>>
>>> Not really sure. Check your nics table as well
>>> select id, instance_id, network_id, netmask, gateway, ip4_address,
>>> broadcast_uri, mode, state, strategy from nics where network_id=204
>>>
>>> It looks like the broadcast_uri is null? Should be vlan://untagged
>>>
>>>
>>> From:  Carlos Reátegui <cr...@gmail.com>
>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Date:  Friday, October 3, 2014 at 12:48 PM
>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Cc:  Daan Hoogland <da...@gmail.com>
>>> Subject:  Re: Can't launch VMs
>>>
>>>
>>> Don’t know how to “check your Œnetworks¹ table and see if the URI is
>>> correct."
>>>
>>> Here is my networks table:
>>>
>>> mysql> select * from networks;
>>>
>>> +-----+--------------------------+--------------------------------------+--
>>>
>>> ------------------------+--------------+-----------------------+-----------
>>>
>>> ----+-------------+----------------+--------+---------------------+--------
>>>
>>> -------------+----------------+---------------------------+-------+--------
>>>
>>> -+-----------+------------+------+------+-----------+------------+---------
>>>
>>> -+-------------------+----------------+------------+------------------+----
>>>
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> | id  | name                     | uuid                                 |
>>> display_text             | traffic_type | broadcast_domain_type |
>>> broadcast_uri | gateway     | cidr           | mode   |
>>> network_offering_id | physical_network_id | data_center_id | guru_name
>>>            | state | related | domain_id | account_id | dns1 | dns2 |
>>> guru_data | set_fields | acl_type | network_domain    | reservation_id |
>>> guest_type | restart_required | created             | removed |
>>> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
>>> display_network | network_acl_id |
>>>
>>> +-----+--------------------------+--------------------------------------+--
>>>
>>> ------------------------+--------------+-----------------------+-----------
>>>
>>> ----+-------------+----------------+--------+---------------------+--------
>>>
>>> -------------+----------------+---------------------------+-------+--------
>>>
>>> -+-----------+------------+------+------+-----------+------------+---------
>>>
>>> -+-------------------+----------------+------------+------------------+----
>>>
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
>>> NULL                     | Public       | Vlan                  | NULL
>>>     | NULL        | NULL           | Static |                   1 |
>>>         NULL |              1 | PublicNetworkGuru         | Setup |
>>> 200 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL
>>>  |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
>>> NULL                     | Management   | Native                | NULL
>>>     | NULL        | NULL           | Static |                   2 |
>>>         NULL |              1 | PodBasedNetworkGuru       | Setup |
>>> 201 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL
>>>  |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
>>> NULL                     | Control      | LinkLocal             | NULL
>>>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>>>         NULL |              1 | ControlNetworkGuru        | Setup |
>>> 202 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL
>>>  |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
>>> NULL                     | Storage      | Native                | NULL
>>>     | NULL        | NULL           | Static |                   4 |
>>>         NULL |              1 | StorageNetworkGuru        | Setup |
>>> 203 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL
>>>  |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
>>> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>>>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>>>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
>>> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> Domain   | cs1cloud.internal | NULL           | Shared     |
>>> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>>>   | NULL     | NULL         |               1 |           NULL |
>>>
>>> +-----+--------------------------+--------------------------------------+--
>>>
>>> ------------------------+--------------+-----------------------+-----------
>>>
>>> ----+-------------+----------------+--------+---------------------+--------
>>>
>>> -------------+----------------+---------------------------+-------+--------
>>>
>>> -+-----------+------------+------+------+-----------+------------+---------
>>>
>>> -+-------------------+----------------+------------+------------------+----
>>>
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> 5 rows in set (0.00 sec)
>>>
>>>
>>>
>>>
>>> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
>>> <Ch...@citrix.com> wrote:
>>>
>>> Wonder if Daan is talking about
>>> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>>>
>>>
>>> As you can see from
>>>
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>>> h
>>>
>>>
>>> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>>> o
>>> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
>>> the first check for ³untagged² should¹ve gone through, except that it
>>> goes
>>> through and either hits line 1025 instead.
>>> So, check your Œnetworks¹ table and see if the URI is correct.
>>>
>>>
>>> From:  Carlos Reátegui <cr...@gmail.com>
>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Date:  Friday, October 3, 2014 at 12:15 PM
>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Subject:  Re: Can't launch VMs
>>>
>>>
>>> Thanks for having a look.  Inline...
>>>
>>> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
>>> <Ch...@citrix.com> wrote:
>>>
>>> Not sure what is a ³basic zone no security groups².
>>>
>>> Basic Zone type with the following Network Offering:
>>> DefaultSharedNetworkOffering as opposed to the default/first option
>>> DefaultSharedNetworkOfferingWithSGService.
>>>
>>> Check your vlan table to see if there has been any allocation of vlans?
>>>
>>> mysql> select * from vlan;
>>>
>>>
>>> +----+--------------------------------------+-----------------+-----------
>>> -
>>>
>>>
>>> --+---------------+-----------------------------+----------------+--------
>>> -
>>>
>>>
>>> -------+------------+---------------------+-------------+----------+------
>>> -
>>> ----+
>>> | id | uuid                                 | vlan_id         |
>>> vlan_gateway | vlan_netmask  | description                 | vlan_type
>>> | data_center_id | network_id | physical_network_id | ip6_gateway |
>>> ip6_cidr | ip6_range |
>>>
>>>
>>> +----+--------------------------------------+-----------------+-----------
>>> -
>>>
>>>
>>> --+---------------+-----------------------------+----------------+--------
>>> -
>>>
>>>
>>> -------+------------+---------------------+-------------+----------+------
>>> -
>>> ----+
>>> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
>>> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
>>> DirectAttached |              1 |        204 |                 200 | NULL
>>>     | NULL     | NULL      |
>>>
>>>
>>> +----+--------------------------------------+-----------------+-----------
>>> -
>>>
>>>
>>> --+---------------+-----------------------------+----------------+--------
>>> -
>>>
>>>
>>> -------+------------+---------------------+-------------+----------+------
>>> -
>>> ----+
>>> 1 row in set (0.00 sec)
>>>
>>>
>>>
>>>
>>> From: Carlos Reategui <cr...@gmail.com>>
>>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>> <de...@cloudstack.apache.org>>,
>>> "carlos@reategui.com<ma...@reategui.com>"
>>> <ca...@reategui.com>>
>>> Date: Thursday, October 2, 2014 at 3:48 PM
>>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>> <de...@cloudstack.apache.org>>
>>> Subject: Fwd: Can't launch VMs
>>>
>>> Hi devs,
>>> Daan suggested I check with you all regarding this email I sent to the
>>> users list.
>>>
>>> He said "the line of code that breaks expects a uri for a vlan", However
>>> I
>>> am using basic networking and I don't know where to add a vlan in that
>>> setup.
>>> He also said this was a known issue.  Hopefully one of you all knows a
>>> fix.
>>>
>>> This deployment had been working fine.  Originally a 4.1, upgraded to
>>> 4.2.1
>>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>>> 4.2.1
>>> and I though it had been working under 4.3 as well but I am not sure
>>> now.
>>> There is no problem with existing instances.  The problem is when trying
>>> to
>>> launch new ones.
>>>
>>> Let me know what additional info would be useful.
>>>
>>> thank you,
>>> Carlos
>>>
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: Carlos Reategui <cr...@gmail.com>>
>>> Date: Mon, Sep 29, 2014 at 4:53 PM
>>> Subject: Can't launch VMs
>>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>> <us...@cloudstack.apache.org>>
>>>
>>>
>>> Following up on my earlier email regarding errors in my logs it appears
>>> things are not as great as I thought.  Trying to launch instances is not
>>> working.  Please help.
>>> thanks,
>>> Carlos
>>>
>>> ACS: 4.3.1
>>> Hosts: XenServer 6.2
>>> Network: Basic Shared Network no SG
>>>
>>> Things appear ok up until it tries to create the VIF.  Here are the
>>> logs:
>>>
>>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>>>
>>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>>>
>>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>>>
>>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>>>
>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>>>
>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>> GetStorageStatsAnswer } }
>>>
>>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>>>
>>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>>>
>>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>>>
>>>
>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>> s
>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>
>>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>>> GET
>>>
>>>
>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>> s
>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>
>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>>>
>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>>> [Nic:Guest-172.30.45.143-null]
>>>
>>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>>> java.lang.NullPointerException due to java.lang.NullPointerException
>>>
>>> java.lang.NullPointerException
>>>
>>>      at
>>>
>>>
>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>> v
>>> a:173)
>>>
>>>      at
>>>
>>>
>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>> )
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>> o
>>> urceBase.java:1035)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>> u
>>> rceBase.java:1088)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1718)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>>
>>>      at
>>>
>>>
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>>
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>
>>>      at
>>>
>>>
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>>
>>>      at java.lang.Thread.run(Thread.java:745)
>>>
>>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>>>
>>> java.lang.NullPointerException
>>>
>>>      at
>>>
>>>
>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>> v
>>> a:173)
>>>
>>>      at
>>>
>>>
>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>> )
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>> o
>>> urceBase.java:1035)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>> u
>>> rceBase.java:1088)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1718)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>>
>>>      at
>>>
>>>
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>>
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>
>>>      at
>>>
>>>
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>>
>>>      at java.lang.Thread.run(Thread.java:745)
>>>
>>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>
>>> You gave an invalid object reference.  The object may have recently been
>>> deleted.  The class parameter gives the type of reference given, and the
>>> handle parameter echoes the bad value given.
>>>
>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>
>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>> t
>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>
>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>> (
>>> CitrixResourceBase.java:1462)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1800)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>>
>>>      at
>>>
>>>
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>>
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>
>>>      at
>>>
>>>
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>>
>>>      at java.lang.Thread.run(Thread.java:745)
>>>
>>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>
>>> You gave an invalid object reference.  The object may have recently been
>>> deleted.  The class parameter gives the type of reference given, and the
>>> handle parameter echoes the bad value given.
>>>
>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>
>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>> t
>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>
>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>> (
>>> CitrixResourceBase.java:1462)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1800)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>>
>>>      at
>>>
>>>
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>>
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>
>>>      at
>>>
>>>
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>>
>>>      at java.lang.Thread.run(Thread.java:745)
>>>
>>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>
>>> You gave an invalid object reference.  The object may have recently been
>>> deleted.  The class parameter gives the type of reference given, and the
>>> handle parameter echoes the bad value given.
>>>
>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>
>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>> t
>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>
>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>> (
>>> CitrixResourceBase.java:1462)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1800)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>>
>>>      at
>>>
>>>
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>>
>>>      at
>>>
>>>
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>>
>>>      at
>>>
>>>
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>>
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>
>>>      at
>>>
>>>
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>>
>>>      at java.lang.Thread.run(Thread.java:745)
>>>
>>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>>> problem
>>> during startup : i-3-98-VM
>>>
>>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>>>
>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>
>>>
>>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>>> o
>>>
>>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>>> "
>>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>>> 5.7
>>>
>>>
>>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>>> s
>>>
>>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>>> ,
>>>
>>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>>> 4
>>>
>>> 79-b9a5-3829c97006e0","disks":[{"data":{"
>>> org.apache.cloudstack.storage.to
>>> .
>>>
>>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>>> e
>>>
>>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>>> O
>>>
>>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>>> w
>>>
>>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>>> "
>>> url":"NetworkFilesystem://
>>>
>>>
>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>> 0
>>> e-31eebeafb217
>>>
>>>
>>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>>> 7
>>> 534434d137","volumeId":124,"vmName":"i-3-
>>> 98-VM
>>>
>>>
>>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>>> n
>>>
>>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>>> "
>>>
>>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>>> "
>>>
>>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>>> .
>>>
>>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>>> ,
>>>
>>> "volumeType":"DATADISK","dataStore":{"
>>> org.apache.cloudstack.storage.to.Pr
>>> <http://org.apache.cloudstack.storage.to.pr/>
>>> i
>>>
>>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>>> "
>>>
>>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>>> y
>>> ","port":2049,"url":"NetworkFilesystem://
>>>
>>>
>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>> 0
>>> e-31eebeafb217
>>>
>>>
>>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>>> 1
>>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>>>
>>>
>>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>>> "
>>>
>>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>>> "
>>>
>>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>>> a
>>>
>>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"
>>> org.apache.cl
>>> o
>>>
>>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>>> ,
>>>
>>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>>> t
>>>
>>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>>> "
>>>
>>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>>> m
>>>
>>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>>> o
>>>
>>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>>> a
>>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>>> to start i-3-98-VM due to ","wait":0}}] }
>>>
>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>>> {
>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>> StartAnswer }
>>> }
>>>
>>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>>>
>>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>>> the
>>> vm VM[User|sununxcld19] in Starting state
>>>
>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>>> Cmd
>>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>>>
>>>
>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>> f
>>> alse,"vmName":"i-3-
>>> 98-VM","wait":0}}] }
>>>
>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>>> {
>>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>>> 100011,
>>>
>>>
>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>> f
>>> alse,"vmName":"i-3-
>>> 98-VM","wait":0}}] }
>>>
>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>>>
>>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>>>
>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>>>
>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>>> exist","wait":0}}] }
>>>
>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>>> {
>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>>> } }
>>>
>>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>>> supported in the network id=204
>>>
>>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>>> nics
>>> for network id=204 on -1
>>>
>>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>>> release
>>>
>>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>>>
>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released
>>> network
>>> resources for the vm VM[User|sununxcld19]
>>>
>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>>> resources for the vm VM[User|sununxcld19] in Starting state
>>>
>>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need
>>> to
>>> place VM in volume's cluster
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Daan
>>
>>
>>
>
>
> --
> Daan
>
>
>


-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Let me know if you require more detail:

https://issues.apache.org/jira/browse/CLOUDSTACK-7674



On Oct 6, 2014, at 1:53 AM, Daan Hoogland <da...@gmail.com> wrote:

> I am not sure Carlos, but I think it was due to a fix of some other network related issue in 4.3.1. I thought we wrote an update/fix for it. So I am looking at how your env missed out.
> 
> On Sun, Oct 5, 2014 at 1:10 AM, Carlos Reátegui <cr...@gmail.com> wrote:
> Sure, but I am not sure if the problem happened when I upgraded to 4.3.0 or 4.3.1.  When (what version) did the broadcast_uri in the network table require an entry for Guest networks and not able to be null?
> 
> 
> On Oct 4, 2014, at 4:15 AM, Daan Hoogland <da...@gmail.com> wrote:
> 
>> Carlos, I think you found a bug in our upgrade scripts. Can you describe the scenario in a ticket?
>> 
>> On Sat, Oct 4, 2014 at 1:48 AM, Carlos Reátegui <cr...@gmail.com> wrote:
>> Hmm.  I just checked another deployment I did with 4.4.0 using the same zone type and network offering and it has the broadcast_uri set to vlan://untagged.
>> 
>> I also checked previous backups from older versions (4.10 and 4.2.1) and in all of those the broadcast_uri was blank.  I am wondering if this is a bug in the upgrade scripts. 
>> 
>> I updated network 204 and set the broadcast_uri and now I am able to start new instances.
>> 
>> thank you for your help!
>> 
>> I am including my nics table just in case you spot something else out of the ordinary.
>> 
>> mysql> select id, instance_id, network_id, netmask, gateway, ip4_address, broadcast_uri, mode, state, strategy from nics where network_id=204 order by ip4_address;
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> | id  | instance_id | network_id | netmask       | gateway     | ip4_address   | broadcast_uri   | mode | state        | strategy    |
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> |  60 |          52 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  64 |          53 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  68 |          54 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  72 |          55 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  76 |          56 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
>> |  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 116 |        NULL |        204 | NULL          | 172.30.45.1 | 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
>> | 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
>> | 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
>> | 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
>> |  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> 92 rows in set (0.00 sec)
>> 
>> 
>> 
>> 
>> On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <Ch...@citrix.com> wrote:
>> 
>>> Not really sure. Check your nics table as well
>>> select id, instance_id, network_id, netmask, gateway, ip4_address,
>>> broadcast_uri, mode, state, strategy from nics where network_id=204
>>> 
>>> It looks like the broadcast_uri is null? Should be vlan://untagged
>>> 
>>> 
>>> From:  Carlos Reátegui <cr...@gmail.com>
>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Date:  Friday, October 3, 2014 at 12:48 PM
>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Cc:  Daan Hoogland <da...@gmail.com>
>>> Subject:  Re: Can't launch VMs
>>> 
>>> 
>>> Don’t know how to “check your Œnetworks¹ table and see if the URI is
>>> correct."
>>> 
>>> Here is my networks table:
>>> 
>>> mysql> select * from networks;
>>> +-----+--------------------------+--------------------------------------+--
>>> ------------------------+--------------+-----------------------+-----------
>>> ----+-------------+----------------+--------+---------------------+--------
>>> -------------+----------------+---------------------------+-------+--------
>>> -+-----------+------------+------+------+-----------+------------+---------
>>> -+-------------------+----------------+------------+------------------+----
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> | id  | name                     | uuid                                 |
>>> display_text             | traffic_type | broadcast_domain_type |
>>> broadcast_uri | gateway     | cidr           | mode   |
>>> network_offering_id | physical_network_id | data_center_id | guru_name
>>>            | state | related | domain_id | account_id | dns1 | dns2 |
>>> guru_data | set_fields | acl_type | network_domain    | reservation_id |
>>> guest_type | restart_required | created             | removed |
>>> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
>>> display_network | network_acl_id |
>>> +-----+--------------------------+--------------------------------------+--
>>> ------------------------+--------------+-----------------------+-----------
>>> ----+-------------+----------------+--------+---------------------+--------
>>> -------------+----------------+---------------------------+-------+--------
>>> -+-----------+------------+------+------+-----------+------------+---------
>>> -+-------------------+----------------+------------+------------------+----
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
>>> NULL                     | Public       | Vlan                  | NULL
>>>     | NULL        | NULL           | Static |                   1 |
>>>         NULL |              1 | PublicNetworkGuru         | Setup |
>>> 200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
>>> NULL                     | Management   | Native                | NULL
>>>     | NULL        | NULL           | Static |                   2 |
>>>         NULL |              1 | PodBasedNetworkGuru       | Setup |
>>> 201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
>>> NULL                     | Control      | LinkLocal             | NULL
>>>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>>>         NULL |              1 | ControlNetworkGuru        | Setup |
>>> 202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
>>> NULL                     | Storage      | Native                | NULL
>>>     | NULL        | NULL           | Static |                   4 |
>>>         NULL |              1 | StorageNetworkGuru        | Setup |
>>> 203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>>    | NULL              | NULL           | NULL       |                0 |
>>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>>> NULL     | NULL         |               1 |           NULL |
>>> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
>>> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>>>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>>>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
>>> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
>>> Domain   | cs1cloud.internal | NULL           | Shared     |
>>> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>>>   | NULL     | NULL         |               1 |           NULL |
>>> +-----+--------------------------+--------------------------------------+--
>>> ------------------------+--------------+-----------------------+-----------
>>> ----+-------------+----------------+--------+---------------------+--------
>>> -------------+----------------+---------------------------+-------+--------
>>> -+-----------+------------+------+------+-----------+------------+---------
>>> -+-------------------+----------------+------------+------------------+----
>>> -----------------+---------+-------------------+--------+-------------+----
>>> ------+--------------+-----------------+----------------+
>>> 5 rows in set (0.00 sec)
>>> 
>>> 
>>> 
>>> 
>>> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
>>> <Ch...@citrix.com> wrote:
>>> 
>>>> Wonder if Daan is talking about
>>>> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>>>> 
>>>> 
>>>> As you can see from
>>>> 
>>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>>>> h
>>>> 
>>>> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>>>> o
>>>> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
>>>> the first check for ³untagged² should¹ve gone through, except that it
>>>> goes
>>>> through and either hits line 1025 instead.
>>>> So, check your Œnetworks¹ table and see if the URI is correct.
>>>> 
>>>> 
>>>> From:  Carlos Reátegui <cr...@gmail.com>
>>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>>> Date:  Friday, October 3, 2014 at 12:15 PM
>>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>>> Subject:  Re: Can't launch VMs
>>>> 
>>>> 
>>>> Thanks for having a look.  Inline...
>>>> 
>>>> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
>>>> <Ch...@citrix.com> wrote:
>>>> 
>>>>> Not sure what is a ³basic zone no security groups².
>>>> Basic Zone type with the following Network Offering:
>>>> DefaultSharedNetworkOffering as opposed to the default/first option
>>>> DefaultSharedNetworkOfferingWithSGService.
>>>> 
>>>>> Check your vlan table to see if there has been any allocation of vlans?
>>>> mysql> select * from vlan;
>>>> 
>>>> +----+--------------------------------------+-----------------+-----------
>>>> -
>>>> 
>>>> --+---------------+-----------------------------+----------------+--------
>>>> -
>>>> 
>>>> -------+------------+---------------------+-------------+----------+------
>>>> -
>>>> ----+
>>>> | id | uuid                                 | vlan_id         |
>>>> vlan_gateway | vlan_netmask  | description                 | vlan_type
>>>> | data_center_id | network_id | physical_network_id | ip6_gateway |
>>>> ip6_cidr | ip6_range |
>>>> 
>>>> +----+--------------------------------------+-----------------+-----------
>>>> -
>>>> 
>>>> --+---------------+-----------------------------+----------------+--------
>>>> -
>>>> 
>>>> -------+------------+---------------------+-------------+----------+------
>>>> -
>>>> ----+
>>>> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
>>>> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
>>>> DirectAttached |              1 |        204 |                 200 | NULL
>>>>     | NULL     | NULL      |
>>>> 
>>>> +----+--------------------------------------+-----------------+-----------
>>>> -
>>>> 
>>>> --+---------------+-----------------------------+----------------+--------
>>>> -
>>>> 
>>>> -------+------------+---------------------+-------------+----------+------
>>>> -
>>>> ----+
>>>> 1 row in set (0.00 sec)
>>>> 
>>>> 
>>>> 
>>>>> 
>>>>> From: Carlos Reategui <cr...@gmail.com>>
>>>>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>>> <de...@cloudstack.apache.org>>,
>>>>> "carlos@reategui.com<ma...@reategui.com>"
>>>>> <ca...@reategui.com>>
>>>>> Date: Thursday, October 2, 2014 at 3:48 PM
>>>>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>>> <de...@cloudstack.apache.org>>
>>>>> Subject: Fwd: Can't launch VMs
>>>>> 
>>>>> Hi devs,
>>>>> Daan suggested I check with you all regarding this email I sent to the
>>>>> users list.
>>>>> 
>>>>> He said "the line of code that breaks expects a uri for a vlan", However
>>>>> I
>>>>> am using basic networking and I don't know where to add a vlan in that
>>>>> setup.
>>>>> He also said this was a known issue.  Hopefully one of you all knows a
>>>>> fix.
>>>>> 
>>>>> This deployment had been working fine.  Originally a 4.1, upgraded to
>>>>> 4.2.1
>>>>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>>>>> 4.2.1
>>>>> and I though it had been working under 4.3 as well but I am not sure
>>>>> now.
>>>>> There is no problem with existing instances.  The problem is when trying
>>>>> to
>>>>> launch new ones.
>>>>> 
>>>>> Let me know what additional info would be useful.
>>>>> 
>>>>> thank you,
>>>>> Carlos
>>>>> 
>>>>> 
>>>>> 
>>>>> ---------- Forwarded message ----------
>>>>> From: Carlos Reategui <cr...@gmail.com>>
>>>>> Date: Mon, Sep 29, 2014 at 4:53 PM
>>>>> Subject: Can't launch VMs
>>>>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>>> <us...@cloudstack.apache.org>>
>>>>> 
>>>>> 
>>>>> Following up on my earlier email regarding errors in my logs it appears
>>>>> things are not as great as I thought.  Trying to launch instances is not
>>>>> working.  Please help.
>>>>> thanks,
>>>>> Carlos
>>>>> 
>>>>> ACS: 4.3.1
>>>>> Hosts: XenServer 6.2
>>>>> Network: Basic Shared Network no SG
>>>>> 
>>>>> Things appear ok up until it tries to create the VIF.  Here are the
>>>>> logs:
>>>>> 
>>>>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>>>>> 
>>>>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>>>>> 
>>>>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>>>>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>>>>> 
>>>>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>>>>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>>>>> 
>>>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>>>>> 
>>>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>>>>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>>>> GetStorageStatsAnswer } }
>>>>> 
>>>>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>>>>> 
>>>>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>>>>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>>>>> 
>>>>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>>>>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>>>>> 
>>>>> 
>>>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>>>> s
>>>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>>> 
>>>>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>>>>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>>>>> GET
>>>>> 
>>>>> 
>>>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>>>> s
>>>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>>> 
>>>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>>>>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>>>>> 
>>>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>>>>> [Nic:Guest-172.30.45.143-null]
>>>>> 
>>>>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>>>>> java.lang.NullPointerException due to java.lang.NullPointerException
>>>>> 
>>>>> java.lang.NullPointerException
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>>>> v
>>>>> a:173)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>>>> )
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>>>> o
>>>>> urceBase.java:1035)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>>>> u
>>>>> rceBase.java:1088)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1718)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>>>>> 
>>>>> java.lang.NullPointerException
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>>>> v
>>>>> a:173)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>>>> )
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>>>> o
>>>>> urceBase.java:1035)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>>>> u
>>>>> rceBase.java:1088)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1718)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>>> 
>>>>> You gave an invalid object reference.  The object may have recently been
>>>>> deleted.  The class parameter gives the type of reference given, and the
>>>>> handle parameter echoes the bad value given.
>>>>> 
>>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>>> 
>>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>>> t
>>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>>> 
>>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>>> (
>>>>> CitrixResourceBase.java:1462)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1800)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>>> 
>>>>> You gave an invalid object reference.  The object may have recently been
>>>>> deleted.  The class parameter gives the type of reference given, and the
>>>>> handle parameter echoes the bad value given.
>>>>> 
>>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>>> 
>>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>>> t
>>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>>> 
>>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>>> (
>>>>> CitrixResourceBase.java:1462)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1800)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>>> 
>>>>> You gave an invalid object reference.  The object may have recently been
>>>>> deleted.  The class parameter gives the type of reference given, and the
>>>>> handle parameter echoes the bad value given.
>>>>> 
>>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>>> 
>>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>>> t
>>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>>> 
>>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>>> (
>>>>> CitrixResourceBase.java:1462)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>>> c
>>>>> eBase.java:1800)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>>> x
>>>>> ResourceBase.java:545)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>>> e
>>>>> rver56Resource.java:59)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>>> t
>>>>> tache.java:216)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>>> d
>>>>> ContextRunnable.java:49)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>>> e
>>>>> faultManagedContext.java:56)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>>> C
>>>>> ontext(DefaultManagedContext.java:103)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>>> o
>>>>> ntext(DefaultManagedContext.java:53)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>>> o
>>>>> ntextRunnable.java:46)
>>>>> 
>>>>>      at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> 
>>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> 
>>>>>      at
>>>>> 
>>>>> 
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>>> s
>>>>> 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.jav
>>>>> a
>>>>> :615)
>>>>> 
>>>>>      at java.lang.Thread.run(Thread.java:745)
>>>>> 
>>>>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>>>>> problem
>>>>> during startup : i-3-98-VM
>>>>> 
>>>>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>>>>> 
>>>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>>> 
>>>>> 
>>>>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>>>>> o
>>>>> 
>>>>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>>>>> "
>>>>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>>>>> 5.7
>>>>> 
>>>>> 
>>>>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>>>>> s
>>>>> 
>>>>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>>>>> ,
>>>>> 
>>>>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>>>>> 4
>>>>> 
>>>>> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
>>>>> .
>>>>> 
>>>>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>>>>> e
>>>>> 
>>>>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>>>>> O
>>>>> 
>>>>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>>>>> w
>>>>> 
>>>>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>>>>> "
>>>>> url":"NetworkFilesystem://
>>>>> 
>>>>> 
>>>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>>>> 0
>>>>> e-31eebeafb217
>>>>> 
>>>>> 
>>>>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>>>>> 7
>>>>> 534434d137","volumeId":124,"vmName":"i-3-
>>>>> 98-VM
>>>>> 
>>>>> 
>>>>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>>>>> n
>>>>> 
>>>>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>>>>> "
>>>>> 
>>>>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>>>>> "
>>>>> 
>>>>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>>>>> .
>>>>> 
>>>>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>>>>> ,
>>>>> 
>>>>> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
>>>>> i
>>>>> 
>>>>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>>>>> "
>>>>> 
>>>>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>>>>> y
>>>>> ","port":2049,"url":"NetworkFilesystem://
>>>>> 
>>>>> 
>>>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>>>> 0
>>>>> e-31eebeafb217
>>>>> 
>>>>> 
>>>>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>>>>> 1
>>>>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>>>>> 
>>>>> 
>>>>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>>>>> "
>>>>> 
>>>>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>>>>> "
>>>>> 
>>>>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>>>>> a
>>>>> 
>>>>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
>>>>> o
>>>>> 
>>>>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>>>>> ,
>>>>> 
>>>>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>>>>> t
>>>>> 
>>>>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>>>>> "
>>>>> 
>>>>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>>>>> m
>>>>> 
>>>>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>>>>> o
>>>>> 
>>>>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>>>>> a
>>>>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>>>>> to start i-3-98-VM due to ","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>>>>> {
>>>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>>>> StartAnswer }
>>>>> }
>>>>> 
>>>>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>>>>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>>>>> 
>>>>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>>>>> the
>>>>> vm VM[User|sununxcld19] in Starting state
>>>>> 
>>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>>>>> Cmd
>>>>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>>>>> 
>>>>> 
>>>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>>>> f
>>>>> alse,"vmName":"i-3-
>>>>> 98-VM","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>>>>> {
>>>>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>>>>> 100011,
>>>>> 
>>>>> 
>>>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>>>> f
>>>>> alse,"vmName":"i-3-
>>>>> 98-VM","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>>>>> 
>>>>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>>>>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>>>>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>>>>> 
>>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>>>>> 
>>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>>>>> exist","wait":0}}] }
>>>>> 
>>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>>>>> {
>>>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>>>>> } }
>>>>> 
>>>>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>>>>> supported in the network id=204
>>>>> 
>>>>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>>>>> nics
>>>>> for network id=204 on -1
>>>>> 
>>>>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>>>>> release
>>>>> 
>>>>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>>>>> 
>>>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released 
>>>>> network
>>>>> resources for the vm VM[User|sununxcld19]
>>>>> 
>>>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>>>>> resources for the vm VM[User|sununxcld19] in Starting state
>>>>> 
>>>>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need 
>>>>> to
>>>>> place VM in volume's cluster
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
>> 
>> 
>> -- 
>> Daan
> 
> 
> 
> 
> -- 
> Daan


Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
I am not sure Carlos, but I think it was due to a fix of some other network
related issue in 4.3.1. I thought we wrote an update/fix for it. So I am
looking at how your env missed out.

On Sun, Oct 5, 2014 at 1:10 AM, Carlos Reátegui <cr...@gmail.com> wrote:

> Sure, but I am not sure if the problem happened when I upgraded to 4.3.0
> or 4.3.1.  When (what version) did the broadcast_uri in the network table
> require an entry for Guest networks and not able to be null?
>
>
> On Oct 4, 2014, at 4:15 AM, Daan Hoogland <da...@gmail.com> wrote:
>
> Carlos, I think you found a bug in our upgrade scripts. Can you describe
> the scenario in a ticket?
>
> On Sat, Oct 4, 2014 at 1:48 AM, Carlos Reátegui <cr...@gmail.com>
> wrote:
>
>> Hmm.  I just checked another deployment I did with 4.4.0 using the same
>> zone type and network offering and it has the broadcast_uri set to
>> vlan://untagged.
>>
>> I also checked previous backups from older versions (4.10 and 4.2.1) and
>> in all of those the broadcast_uri was blank.  I am wondering if this is a
>> bug in the upgrade scripts.
>>
>> I updated network 204 and set the broadcast_uri and now I am able to
>> start new instances.
>>
>> thank you for your help!
>>
>> I am including my nics table just in case you spot something else out of
>> the ordinary.
>>
>> mysql> select id, instance_id, network_id, netmask, gateway, ip4_address,
>> broadcast_uri, mode, state, strategy from nics where network_id=204 order
>> by ip4_address;
>>
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> | id  | instance_id | network_id | netmask       | gateway     |
>> ip4_address   | broadcast_uri   | mode | state        | strategy    |
>>
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> |  60 |          52 |        204 | NULL          | NULL        | NULL
>>      | NULL            | Dhcp | Deallocating | Start       |
>> |  64 |          53 |        204 | NULL          | NULL        | NULL
>>      | NULL            | Dhcp | Deallocating | Start       |
>> |  68 |          54 |        204 | NULL          | NULL        | NULL
>>      | NULL            | Dhcp | Deallocating | Start       |
>> |  72 |          55 |        204 | NULL          | NULL        | NULL
>>      | NULL            | Dhcp | Deallocating | Start       |
>> |  76 |          56 |        204 | NULL          | NULL        | NULL
>>      | NULL            | Dhcp | Deallocating | Start       |
>> |  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 116 |        NULL |        204 | NULL          | 172.30.45.1 |
>> 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
>> | 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
>> | 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
>> | 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
>> |  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
>> |  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
>> | 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
>> |  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
>> |  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
>> | 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 |
>> 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
>>
>> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
>> 92 rows in set (0.00 sec)
>>
>>
>>
>>
>> On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <Ch...@citrix.com>
>> wrote:
>>
>> Not really sure. Check your nics table as well
>> select id, instance_id, network_id, netmask, gateway, ip4_address,
>> broadcast_uri, mode, state, strategy from nics where network_id=204
>>
>> It looks like the broadcast_uri is null? Should be vlan://untagged
>>
>>
>> From:  Carlos Reátegui <cr...@gmail.com>
>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Date:  Friday, October 3, 2014 at 12:48 PM
>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Cc:  Daan Hoogland <da...@gmail.com>
>> Subject:  Re: Can't launch VMs
>>
>>
>> Don’t know how to “check your Œnetworks¹ table and see if the URI is
>> correct."
>>
>> Here is my networks table:
>>
>> mysql> select * from networks;
>>
>> +-----+--------------------------+--------------------------------------+--
>>
>> ------------------------+--------------+-----------------------+-----------
>>
>> ----+-------------+----------------+--------+---------------------+--------
>>
>> -------------+----------------+---------------------------+-------+--------
>>
>> -+-----------+------------+------+------+-----------+------------+---------
>>
>> -+-------------------+----------------+------------+------------------+----
>>
>> -----------------+---------+-------------------+--------+-------------+----
>> ------+--------------+-----------------+----------------+
>> | id  | name                     | uuid                                 |
>> display_text             | traffic_type | broadcast_domain_type |
>> broadcast_uri | gateway     | cidr           | mode   |
>> network_offering_id | physical_network_id | data_center_id | guru_name
>>            | state | related | domain_id | account_id | dns1 | dns2 |
>> guru_data | set_fields | acl_type | network_domain    | reservation_id |
>> guest_type | restart_required | created             | removed |
>> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
>> display_network | network_acl_id |
>>
>> +-----+--------------------------+--------------------------------------+--
>>
>> ------------------------+--------------+-----------------------+-----------
>>
>> ----+-------------+----------------+--------+---------------------+--------
>>
>> -------------+----------------+---------------------------+-------+--------
>>
>> -+-----------+------------+------+------+-----------+------------+---------
>>
>> -+-------------------+----------------+------------+------------------+----
>>
>> -----------------+---------+-------------------+--------+-------------+----
>> ------+--------------+-----------------+----------------+
>> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
>> NULL                     | Public       | Vlan                  | NULL
>>     | NULL        | NULL           | Static |                   1 |
>>         NULL |              1 | PublicNetworkGuru         | Setup |
>> 200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
>> NULL                     | Management   | Native                | NULL
>>     | NULL        | NULL           | Static |                   2 |
>>         NULL |              1 | PodBasedNetworkGuru       | Setup |
>> 201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
>> NULL                     | Control      | LinkLocal             | NULL
>>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>>         NULL |              1 | ControlNetworkGuru        | Setup |
>> 202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
>> NULL                     | Storage      | Native                | NULL
>>     | NULL        | NULL           | Static |                   4 |
>>         NULL |              1 | StorageNetworkGuru        | Setup |
>> 203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
>> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
>> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
>> Domain   | cs1cloud.internal | NULL           | Shared     |
>> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>>   | NULL     | NULL         |               1 |           NULL |
>>
>> +-----+--------------------------+--------------------------------------+--
>>
>> ------------------------+--------------+-----------------------+-----------
>>
>> ----+-------------+----------------+--------+---------------------+--------
>>
>> -------------+----------------+---------------------------+-------+--------
>>
>> -+-----------+------------+------+------+-----------+------------+---------
>>
>> -+-------------------+----------------+------------+------------------+----
>>
>> -----------------+---------+-------------------+--------+-------------+----
>> ------+--------------+-----------------+----------------+
>> 5 rows in set (0.00 sec)
>>
>>
>>
>>
>> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
>> <Ch...@citrix.com> wrote:
>>
>> Wonder if Daan is talking about
>> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>>
>>
>> As you can see from
>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>> h
>>
>> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>> o
>> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
>> the first check for ³untagged² should¹ve gone through, except that it
>> goes
>> through and either hits line 1025 instead.
>> So, check your Œnetworks¹ table and see if the URI is correct.
>>
>>
>> From:  Carlos Reátegui <cr...@gmail.com>
>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Date:  Friday, October 3, 2014 at 12:15 PM
>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Subject:  Re: Can't launch VMs
>>
>>
>> Thanks for having a look.  Inline...
>>
>> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
>> <Ch...@citrix.com> wrote:
>>
>> Not sure what is a ³basic zone no security groups².
>>
>> Basic Zone type with the following Network Offering:
>> DefaultSharedNetworkOffering as opposed to the default/first option
>> DefaultSharedNetworkOfferingWithSGService.
>>
>> Check your vlan table to see if there has been any allocation of vlans?
>>
>> mysql> select * from vlan;
>>
>> +----+--------------------------------------+-----------------+-----------
>> -
>>
>> --+---------------+-----------------------------+----------------+--------
>> -
>>
>> -------+------------+---------------------+-------------+----------+------
>> -
>> ----+
>> | id | uuid                                 | vlan_id         |
>> vlan_gateway | vlan_netmask  | description                 | vlan_type
>> | data_center_id | network_id | physical_network_id | ip6_gateway |
>> ip6_cidr | ip6_range |
>>
>> +----+--------------------------------------+-----------------+-----------
>> -
>>
>> --+---------------+-----------------------------+----------------+--------
>> -
>>
>> -------+------------+---------------------+-------------+----------+------
>> -
>> ----+
>> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
>> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
>> DirectAttached |              1 |        204 |                 200 | NULL
>>     | NULL     | NULL      |
>>
>> +----+--------------------------------------+-----------------+-----------
>> -
>>
>> --+---------------+-----------------------------+----------------+--------
>> -
>>
>> -------+------------+---------------------+-------------+----------+------
>> -
>> ----+
>> 1 row in set (0.00 sec)
>>
>>
>>
>>
>> From: Carlos Reategui <cr...@gmail.com>>
>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <de...@cloudstack.apache.org>>,
>> "carlos@reategui.com<ma...@reategui.com>"
>> <ca...@reategui.com>>
>> Date: Thursday, October 2, 2014 at 3:48 PM
>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <de...@cloudstack.apache.org>>
>> Subject: Fwd: Can't launch VMs
>>
>> Hi devs,
>> Daan suggested I check with you all regarding this email I sent to the
>> users list.
>>
>> He said "the line of code that breaks expects a uri for a vlan", However
>> I
>> am using basic networking and I don't know where to add a vlan in that
>> setup.
>> He also said this was a known issue.  Hopefully one of you all knows a
>> fix.
>>
>> This deployment had been working fine.  Originally a 4.1, upgraded to
>> 4.2.1
>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>> 4.2.1
>> and I though it had been working under 4.3 as well but I am not sure
>> now.
>> There is no problem with existing instances.  The problem is when trying
>> to
>> launch new ones.
>>
>> Let me know what additional info would be useful.
>>
>> thank you,
>> Carlos
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Carlos Reategui <cr...@gmail.com>>
>> Date: Mon, Sep 29, 2014 at 4:53 PM
>> Subject: Can't launch VMs
>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <us...@cloudstack.apache.org>>
>>
>>
>> Following up on my earlier email regarding errors in my logs it appears
>> things are not as great as I thought.  Trying to launch instances is not
>> working.  Please help.
>> thanks,
>> Carlos
>>
>> ACS: 4.3.1
>> Hosts: XenServer 6.2
>> Network: Basic Shared Network no SG
>>
>> Things appear ok up until it tries to create the VIF.  Here are the
>> logs:
>>
>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>>
>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>>
>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>>
>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>>
>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>>
>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>> GetStorageStatsAnswer } }
>>
>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>>
>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>>
>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>>
>>
>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>> s
>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>
>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>> GET
>>
>>
>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>> s
>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>
>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>>
>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>> [Nic:Guest-172.30.45.143-null]
>>
>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>> java.lang.NullPointerException due to java.lang.NullPointerException
>>
>> java.lang.NullPointerException
>>
>>      at
>>
>>
>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>> v
>> a:173)
>>
>>      at
>>
>>
>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>> )
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>> o
>> urceBase.java:1035)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>> u
>> rceBase.java:1088)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>> c
>> eBase.java:1718)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>> x
>> ResourceBase.java:545)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>> e
>> rver56Resource.java:59)
>>
>>      at
>>
>>
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>> t
>> tache.java:216)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>> d
>> ContextRunnable.java:49)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>> e
>> faultManagedContext.java:56)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>> C
>> ontext(DefaultManagedContext.java:103)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>> o
>> ntext(DefaultManagedContext.java:53)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>> o
>> ntextRunnable.java:46)
>>
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>>      at
>>
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>> s
>> 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.jav
>> a
>> :615)
>>
>>      at java.lang.Thread.run(Thread.java:745)
>>
>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>>
>> java.lang.NullPointerException
>>
>>      at
>>
>>
>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>> v
>> a:173)
>>
>>      at
>>
>>
>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>> )
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>> o
>> urceBase.java:1035)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>> u
>> rceBase.java:1088)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>> c
>> eBase.java:1718)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>> x
>> ResourceBase.java:545)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>> e
>> rver56Resource.java:59)
>>
>>      at
>>
>>
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>> t
>> tache.java:216)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>> d
>> ContextRunnable.java:49)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>> e
>> faultManagedContext.java:56)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>> C
>> ontext(DefaultManagedContext.java:103)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>> o
>> ntext(DefaultManagedContext.java:53)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>> o
>> ntextRunnable.java:46)
>>
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>>      at
>>
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>> s
>> 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.jav
>> a
>> :615)
>>
>>      at java.lang.Thread.run(Thread.java:745)
>>
>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>>
>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>
>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>> t
>> ion.dispatch(XenServerConnectionPool.java:909)
>>
>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>> (
>> CitrixResourceBase.java:1462)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>> c
>> eBase.java:1800)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>> x
>> ResourceBase.java:545)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>> e
>> rver56Resource.java:59)
>>
>>      at
>>
>>
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>> t
>> tache.java:216)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>> d
>> ContextRunnable.java:49)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>> e
>> faultManagedContext.java:56)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>> C
>> ontext(DefaultManagedContext.java:103)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>> o
>> ntext(DefaultManagedContext.java:53)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>> o
>> ntextRunnable.java:46)
>>
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>>      at
>>
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>> s
>> 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.jav
>> a
>> :615)
>>
>>      at java.lang.Thread.run(Thread.java:745)
>>
>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>>
>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>
>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>> t
>> ion.dispatch(XenServerConnectionPool.java:909)
>>
>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>> (
>> CitrixResourceBase.java:1462)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>> c
>> eBase.java:1800)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>> x
>> ResourceBase.java:545)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>> e
>> rver56Resource.java:59)
>>
>>      at
>>
>>
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>> t
>> tache.java:216)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>> d
>> ContextRunnable.java:49)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>> e
>> faultManagedContext.java:56)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>> C
>> ontext(DefaultManagedContext.java:103)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>> o
>> ntext(DefaultManagedContext.java:53)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>> o
>> ntextRunnable.java:46)
>>
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>>      at
>>
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>> s
>> 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.jav
>> a
>> :615)
>>
>>      at java.lang.Thread.run(Thread.java:745)
>>
>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>>
>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>
>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>> t
>> ion.dispatch(XenServerConnectionPool.java:909)
>>
>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>> (
>> CitrixResourceBase.java:1462)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>> c
>> eBase.java:1800)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>> x
>> ResourceBase.java:545)
>>
>>      at
>>
>>
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>> e
>> rver56Resource.java:59)
>>
>>      at
>>
>>
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>> t
>> tache.java:216)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>> d
>> ContextRunnable.java:49)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>> e
>> faultManagedContext.java:56)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>> C
>> ontext(DefaultManagedContext.java:103)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>> o
>> ntext(DefaultManagedContext.java:53)
>>
>>      at
>>
>>
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>> o
>> ntextRunnable.java:46)
>>
>>      at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>>      at
>>
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>> s
>> 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.jav
>> a
>> :615)
>>
>>      at java.lang.Thread.run(Thread.java:745)
>>
>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>> problem
>> during startup : i-3-98-VM
>>
>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>>
>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>
>>
>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>> o
>>
>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>> "
>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>> 5.7
>>
>>
>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>> s
>>
>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>> ,
>>
>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>> 4
>>
>> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
>> .
>>
>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>> e
>>
>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>> O
>>
>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>> w
>>
>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>> "
>> url":"NetworkFilesystem://
>>
>>
>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>> 0
>> e-31eebeafb217
>>
>>
>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>> 7
>> 534434d137","volumeId":124,"vmName":"i-3-
>> 98-VM
>>
>>
>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>> n
>>
>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>> "
>>
>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>> "
>>
>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>> .
>>
>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>> ,
>>
>> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
>> <http://org.apache.cloudstack.storage.to.pr/>
>> i
>>
>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>> "
>>
>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>> y
>> ","port":2049,"url":"NetworkFilesystem://
>>
>>
>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>> 0
>> e-31eebeafb217
>>
>>
>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>> 1
>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>>
>>
>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>> "
>>
>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>> "
>>
>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>> a
>>
>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
>> o
>>
>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>> ,
>>
>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>> t
>>
>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>> "
>>
>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>> m
>>
>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>> o
>>
>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>> a
>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>> to start i-3-98-VM due to ","wait":0}}] }
>>
>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>> {
>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>> StartAnswer }
>> }
>>
>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>>
>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>> the
>> vm VM[User|sununxcld19] in Starting state
>>
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>> Cmd
>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>>
>>
>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>> f
>> alse,"vmName":"i-3-
>> 98-VM","wait":0}}] }
>>
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>> {
>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>> 100011,
>>
>>
>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>> f
>> alse,"vmName":"i-3-
>> 98-VM","wait":0}}] }
>>
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>>
>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>>
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>>
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>> exist","wait":0}}] }
>>
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>> {
>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>> } }
>>
>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>> supported in the network id=204
>>
>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>> nics
>> for network id=204 on -1
>>
>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>> release
>>
>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>>
>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released
>> network
>> resources for the vm VM[User|sununxcld19]
>>
>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>> resources for the vm VM[User|sununxcld19] in Starting state
>>
>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need
>> to
>> place VM in volume's cluster
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Daan
>
>
>


-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Sure, but I am not sure if the problem happened when I upgraded to 4.3.0 or 4.3.1.  When (what version) did the broadcast_uri in the network table require an entry for Guest networks and not able to be null?


On Oct 4, 2014, at 4:15 AM, Daan Hoogland <da...@gmail.com> wrote:

> Carlos, I think you found a bug in our upgrade scripts. Can you describe the scenario in a ticket?
> 
> On Sat, Oct 4, 2014 at 1:48 AM, Carlos Reátegui <cr...@gmail.com> wrote:
> Hmm.  I just checked another deployment I did with 4.4.0 using the same zone type and network offering and it has the broadcast_uri set to vlan://untagged.
> 
> I also checked previous backups from older versions (4.10 and 4.2.1) and in all of those the broadcast_uri was blank.  I am wondering if this is a bug in the upgrade scripts. 
> 
> I updated network 204 and set the broadcast_uri and now I am able to start new instances.
> 
> thank you for your help!
> 
> I am including my nics table just in case you spot something else out of the ordinary.
> 
> mysql> select id, instance_id, network_id, netmask, gateway, ip4_address, broadcast_uri, mode, state, strategy from nics where network_id=204 order by ip4_address;
> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
> | id  | instance_id | network_id | netmask       | gateway     | ip4_address   | broadcast_uri   | mode | state        | strategy    |
> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
> |  60 |          52 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
> |  64 |          53 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
> |  68 |          54 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
> |  72 |          55 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
> |  76 |          56 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
> |  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
> |   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 116 |        NULL |        204 | NULL          | 172.30.45.1 | 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
> | 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
> |   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
> |   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
> | 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
> | 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
> |  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
> 92 rows in set (0.00 sec)
> 
> 
> 
> 
> On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <Ch...@citrix.com> wrote:
> 
>> Not really sure. Check your nics table as well
>> select id, instance_id, network_id, netmask, gateway, ip4_address,
>> broadcast_uri, mode, state, strategy from nics where network_id=204
>> 
>> It looks like the broadcast_uri is null? Should be vlan://untagged
>> 
>> 
>> From:  Carlos Reátegui <cr...@gmail.com>
>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Date:  Friday, October 3, 2014 at 12:48 PM
>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Cc:  Daan Hoogland <da...@gmail.com>
>> Subject:  Re: Can't launch VMs
>> 
>> 
>> Don’t know how to “check your Œnetworks¹ table and see if the URI is
>> correct."
>> 
>> Here is my networks table:
>> 
>> mysql> select * from networks;
>> +-----+--------------------------+--------------------------------------+--
>> ------------------------+--------------+-----------------------+-----------
>> ----+-------------+----------------+--------+---------------------+--------
>> -------------+----------------+---------------------------+-------+--------
>> -+-----------+------------+------+------+-----------+------------+---------
>> -+-------------------+----------------+------------+------------------+----
>> -----------------+---------+-------------------+--------+-------------+----
>> ------+--------------+-----------------+----------------+
>> | id  | name                     | uuid                                 |
>> display_text             | traffic_type | broadcast_domain_type |
>> broadcast_uri | gateway     | cidr           | mode   |
>> network_offering_id | physical_network_id | data_center_id | guru_name
>>            | state | related | domain_id | account_id | dns1 | dns2 |
>> guru_data | set_fields | acl_type | network_domain    | reservation_id |
>> guest_type | restart_required | created             | removed |
>> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
>> display_network | network_acl_id |
>> +-----+--------------------------+--------------------------------------+--
>> ------------------------+--------------+-----------------------+-----------
>> ----+-------------+----------------+--------+---------------------+--------
>> -------------+----------------+---------------------------+-------+--------
>> -+-----------+------------+------+------+-----------+------------+---------
>> -+-------------------+----------------+------------+------------------+----
>> -----------------+---------+-------------------+--------+-------------+----
>> ------+--------------+-----------------+----------------+
>> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
>> NULL                     | Public       | Vlan                  | NULL
>>     | NULL        | NULL           | Static |                   1 |
>>         NULL |              1 | PublicNetworkGuru         | Setup |
>> 200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
>> NULL                     | Management   | Native                | NULL
>>     | NULL        | NULL           | Static |                   2 |
>>         NULL |              1 | PodBasedNetworkGuru       | Setup |
>> 201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
>> NULL                     | Control      | LinkLocal             | NULL
>>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>>         NULL |              1 | ControlNetworkGuru        | Setup |
>> 202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
>> NULL                     | Storage      | Native                | NULL
>>     | NULL        | NULL           | Static |                   4 |
>>         NULL |              1 | StorageNetworkGuru        | Setup |
>> 203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>>    | NULL              | NULL           | NULL       |                0 |
>> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
>> NULL     | NULL         |               1 |           NULL |
>> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
>> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
>> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
>> Domain   | cs1cloud.internal | NULL           | Shared     |
>> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>>   | NULL     | NULL         |               1 |           NULL |
>> +-----+--------------------------+--------------------------------------+--
>> ------------------------+--------------+-----------------------+-----------
>> ----+-------------+----------------+--------+---------------------+--------
>> -------------+----------------+---------------------------+-------+--------
>> -+-----------+------------+------+------+-----------+------------+---------
>> -+-------------------+----------------+------------+------------------+----
>> -----------------+---------+-------------------+--------+-------------+----
>> ------+--------------+-----------------+----------------+
>> 5 rows in set (0.00 sec)
>> 
>> 
>> 
>> 
>> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
>> <Ch...@citrix.com> wrote:
>> 
>>> Wonder if Daan is talking about
>>> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>>> 
>>> 
>>> As you can see from
>>> 
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>>> h
>>> 
>>> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>>> o
>>> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
>>> the first check for ³untagged² should¹ve gone through, except that it
>>> goes
>>> through and either hits line 1025 instead.
>>> So, check your Œnetworks¹ table and see if the URI is correct.
>>> 
>>> 
>>> From:  Carlos Reátegui <cr...@gmail.com>
>>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Date:  Friday, October 3, 2014 at 12:15 PM
>>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>>> Subject:  Re: Can't launch VMs
>>> 
>>> 
>>> Thanks for having a look.  Inline...
>>> 
>>> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
>>> <Ch...@citrix.com> wrote:
>>> 
>>>> Not sure what is a ³basic zone no security groups².
>>> Basic Zone type with the following Network Offering:
>>> DefaultSharedNetworkOffering as opposed to the default/first option
>>> DefaultSharedNetworkOfferingWithSGService.
>>> 
>>>> Check your vlan table to see if there has been any allocation of vlans?
>>> mysql> select * from vlan;
>>> 
>>> +----+--------------------------------------+-----------------+-----------
>>> -
>>> 
>>> --+---------------+-----------------------------+----------------+--------
>>> -
>>> 
>>> -------+------------+---------------------+-------------+----------+------
>>> -
>>> ----+
>>> | id | uuid                                 | vlan_id         |
>>> vlan_gateway | vlan_netmask  | description                 | vlan_type
>>> | data_center_id | network_id | physical_network_id | ip6_gateway |
>>> ip6_cidr | ip6_range |
>>> 
>>> +----+--------------------------------------+-----------------+-----------
>>> -
>>> 
>>> --+---------------+-----------------------------+----------------+--------
>>> -
>>> 
>>> -------+------------+---------------------+-------------+----------+------
>>> -
>>> ----+
>>> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
>>> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
>>> DirectAttached |              1 |        204 |                 200 | NULL
>>>     | NULL     | NULL      |
>>> 
>>> +----+--------------------------------------+-----------------+-----------
>>> -
>>> 
>>> --+---------------+-----------------------------+----------------+--------
>>> -
>>> 
>>> -------+------------+---------------------+-------------+----------+------
>>> -
>>> ----+
>>> 1 row in set (0.00 sec)
>>> 
>>> 
>>> 
>>>> 
>>>> From: Carlos Reategui <cr...@gmail.com>>
>>>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>> <de...@cloudstack.apache.org>>,
>>>> "carlos@reategui.com<ma...@reategui.com>"
>>>> <ca...@reategui.com>>
>>>> Date: Thursday, October 2, 2014 at 3:48 PM
>>>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>> <de...@cloudstack.apache.org>>
>>>> Subject: Fwd: Can't launch VMs
>>>> 
>>>> Hi devs,
>>>> Daan suggested I check with you all regarding this email I sent to the
>>>> users list.
>>>> 
>>>> He said "the line of code that breaks expects a uri for a vlan", However
>>>> I
>>>> am using basic networking and I don't know where to add a vlan in that
>>>> setup.
>>>> He also said this was a known issue.  Hopefully one of you all knows a
>>>> fix.
>>>> 
>>>> This deployment had been working fine.  Originally a 4.1, upgraded to
>>>> 4.2.1
>>>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>>>> 4.2.1
>>>> and I though it had been working under 4.3 as well but I am not sure
>>>> now.
>>>> There is no problem with existing instances.  The problem is when trying
>>>> to
>>>> launch new ones.
>>>> 
>>>> Let me know what additional info would be useful.
>>>> 
>>>> thank you,
>>>> Carlos
>>>> 
>>>> 
>>>> 
>>>> ---------- Forwarded message ----------
>>>> From: Carlos Reategui <cr...@gmail.com>>
>>>> Date: Mon, Sep 29, 2014 at 4:53 PM
>>>> Subject: Can't launch VMs
>>>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>>> <us...@cloudstack.apache.org>>
>>>> 
>>>> 
>>>> Following up on my earlier email regarding errors in my logs it appears
>>>> things are not as great as I thought.  Trying to launch instances is not
>>>> working.  Please help.
>>>> thanks,
>>>> Carlos
>>>> 
>>>> ACS: 4.3.1
>>>> Hosts: XenServer 6.2
>>>> Network: Basic Shared Network no SG
>>>> 
>>>> Things appear ok up until it tries to create the VIF.  Here are the
>>>> logs:
>>>> 
>>>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>>>> 
>>>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>>>> 
>>>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>>>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>>>> 
>>>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>>>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>>>> 
>>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>>>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>>>> 
>>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>>>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>>> GetStorageStatsAnswer } }
>>>> 
>>>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>>>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>>>> 
>>>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>>>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>>>> 
>>>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>>>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>>>> 
>>>> 
>>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>>> s
>>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>> 
>>>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>>>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>>>> GET
>>>> 
>>>> 
>>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>>> s
>>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>>> 
>>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>>>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>>>> 
>>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>>>> [Nic:Guest-172.30.45.143-null]
>>>> 
>>>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>>>> java.lang.NullPointerException due to java.lang.NullPointerException
>>>> 
>>>> java.lang.NullPointerException
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>>> v
>>>> a:173)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>>> )
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>>> o
>>>> urceBase.java:1035)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>>> u
>>>> rceBase.java:1088)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>> c
>>>> eBase.java:1718)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>> x
>>>> ResourceBase.java:545)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>> e
>>>> rver56Resource.java:59)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>> t
>>>> tache.java:216)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>> d
>>>> ContextRunnable.java:49)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>> e
>>>> faultManagedContext.java:56)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>> C
>>>> ontext(DefaultManagedContext.java:103)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>> o
>>>> ntext(DefaultManagedContext.java:53)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>> o
>>>> ntextRunnable.java:46)
>>>> 
>>>>      at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> 
>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>> s
>>>> 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.jav
>>>> a
>>>> :615)
>>>> 
>>>>      at java.lang.Thread.run(Thread.java:745)
>>>> 
>>>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>>>> 
>>>> java.lang.NullPointerException
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>>> v
>>>> a:173)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>>> )
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>>> o
>>>> urceBase.java:1035)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>>> u
>>>> rceBase.java:1088)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>> c
>>>> eBase.java:1718)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>> x
>>>> ResourceBase.java:545)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>> e
>>>> rver56Resource.java:59)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>> t
>>>> tache.java:216)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>> d
>>>> ContextRunnable.java:49)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>> e
>>>> faultManagedContext.java:56)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>> C
>>>> ontext(DefaultManagedContext.java:103)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>> o
>>>> ntext(DefaultManagedContext.java:53)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>> o
>>>> ntextRunnable.java:46)
>>>> 
>>>>      at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> 
>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>> s
>>>> 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.jav
>>>> a
>>>> :615)
>>>> 
>>>>      at java.lang.Thread.run(Thread.java:745)
>>>> 
>>>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>> 
>>>> You gave an invalid object reference.  The object may have recently been
>>>> deleted.  The class parameter gives the type of reference given, and the
>>>> handle parameter echoes the bad value given.
>>>> 
>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>> 
>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>> t
>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>> 
>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>> (
>>>> CitrixResourceBase.java:1462)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>> c
>>>> eBase.java:1800)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>> x
>>>> ResourceBase.java:545)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>> e
>>>> rver56Resource.java:59)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>> t
>>>> tache.java:216)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>> d
>>>> ContextRunnable.java:49)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>> e
>>>> faultManagedContext.java:56)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>> C
>>>> ontext(DefaultManagedContext.java:103)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>> o
>>>> ntext(DefaultManagedContext.java:53)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>> o
>>>> ntextRunnable.java:46)
>>>> 
>>>>      at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> 
>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>> s
>>>> 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.jav
>>>> a
>>>> :615)
>>>> 
>>>>      at java.lang.Thread.run(Thread.java:745)
>>>> 
>>>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>> 
>>>> You gave an invalid object reference.  The object may have recently been
>>>> deleted.  The class parameter gives the type of reference given, and the
>>>> handle parameter echoes the bad value given.
>>>> 
>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>> 
>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>> t
>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>> 
>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>> (
>>>> CitrixResourceBase.java:1462)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>> c
>>>> eBase.java:1800)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>> x
>>>> ResourceBase.java:545)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>> e
>>>> rver56Resource.java:59)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>> t
>>>> tache.java:216)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>> d
>>>> ContextRunnable.java:49)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>> e
>>>> faultManagedContext.java:56)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>> C
>>>> ontext(DefaultManagedContext.java:103)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>> o
>>>> ntext(DefaultManagedContext.java:53)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>> o
>>>> ntextRunnable.java:46)
>>>> 
>>>>      at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> 
>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>> s
>>>> 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.jav
>>>> a
>>>> :615)
>>>> 
>>>>      at java.lang.Thread.run(Thread.java:745)
>>>> 
>>>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>>> 
>>>> You gave an invalid object reference.  The object may have recently been
>>>> deleted.  The class parameter gives the type of reference given, and the
>>>> handle parameter echoes the bad value given.
>>>> 
>>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>>> 
>>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>>> t
>>>> ion.dispatch(XenServerConnectionPool.java:909)
>>>> 
>>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>>> (
>>>> CitrixResourceBase.java:1462)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>>> c
>>>> eBase.java:1800)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>>> x
>>>> ResourceBase.java:545)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>>> e
>>>> rver56Resource.java:59)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>>> t
>>>> tache.java:216)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>>> d
>>>> ContextRunnable.java:49)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>>> e
>>>> faultManagedContext.java:56)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>>> C
>>>> ontext(DefaultManagedContext.java:103)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>>> o
>>>> ntext(DefaultManagedContext.java:53)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>>> o
>>>> ntextRunnable.java:46)
>>>> 
>>>>      at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> 
>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> 
>>>>      at
>>>> 
>>>> 
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>>> s
>>>> 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.jav
>>>> a
>>>> :615)
>>>> 
>>>>      at java.lang.Thread.run(Thread.java:745)
>>>> 
>>>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>>>> problem
>>>> during startup : i-3-98-VM
>>>> 
>>>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>>>> 
>>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>> 
>>>> 
>>>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>>>> o
>>>> 
>>>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>>>> "
>>>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>>>> 5.7
>>>> 
>>>> 
>>>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>>>> s
>>>> 
>>>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>>>> ,
>>>> 
>>>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>>>> 4
>>>> 
>>>> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
>>>> .
>>>> 
>>>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>>>> e
>>>> 
>>>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>>>> O
>>>> 
>>>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>>>> w
>>>> 
>>>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>>>> "
>>>> url":"NetworkFilesystem://
>>>> 
>>>> 
>>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>>> 0
>>>> e-31eebeafb217
>>>> 
>>>> 
>>>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>>>> 7
>>>> 534434d137","volumeId":124,"vmName":"i-3-
>>>> 98-VM
>>>> 
>>>> 
>>>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>>>> n
>>>> 
>>>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>>>> "
>>>> 
>>>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>>>> "
>>>> 
>>>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>>>> .
>>>> 
>>>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>>>> ,
>>>> 
>>>> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
>>>> i
>>>> 
>>>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>>>> "
>>>> 
>>>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>>>> y
>>>> ","port":2049,"url":"NetworkFilesystem://
>>>> 
>>>> 
>>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>>> 0
>>>> e-31eebeafb217
>>>> 
>>>> 
>>>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>>>> 1
>>>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>>>> 
>>>> 
>>>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>>>> "
>>>> 
>>>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>>>> "
>>>> 
>>>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>>>> a
>>>> 
>>>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
>>>> o
>>>> 
>>>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>>>> ,
>>>> 
>>>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>>>> t
>>>> 
>>>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>>>> "
>>>> 
>>>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>>>> m
>>>> 
>>>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>>>> o
>>>> 
>>>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>>>> a
>>>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>>>> to start i-3-98-VM due to ","wait":0}}] }
>>>> 
>>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>>>> {
>>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>>> StartAnswer }
>>>> }
>>>> 
>>>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>>>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>>>> 
>>>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>>>> the
>>>> vm VM[User|sununxcld19] in Starting state
>>>> 
>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>>>> Cmd
>>>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>>>> 
>>>> 
>>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>>> f
>>>> alse,"vmName":"i-3-
>>>> 98-VM","wait":0}}] }
>>>> 
>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>>>> {
>>>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>>>> 100011,
>>>> 
>>>> 
>>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>>> f
>>>> alse,"vmName":"i-3-
>>>> 98-VM","wait":0}}] }
>>>> 
>>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>>>> 
>>>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>>>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>>>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>>>> 
>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>>>> 
>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>>>> exist","wait":0}}] }
>>>> 
>>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>>>> {
>>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>>>> } }
>>>> 
>>>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>>>> supported in the network id=204
>>>> 
>>>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>>>> nics
>>>> for network id=204 on -1
>>>> 
>>>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>>>> release
>>>> 
>>>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>>>> 
>>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released 
>>>> network
>>>> resources for the vm VM[User|sununxcld19]
>>>> 
>>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>>>> resources for the vm VM[User|sununxcld19] in Starting state
>>>> 
>>>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need 
>>>> to
>>>> place VM in volume's cluster
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 
> -- 
> Daan


Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
Carlos, I think you found a bug in our upgrade scripts. Can you describe
the scenario in a ticket?

On Sat, Oct 4, 2014 at 1:48 AM, Carlos Reátegui <cr...@gmail.com> wrote:

> Hmm.  I just checked another deployment I did with 4.4.0 using the same
> zone type and network offering and it has the broadcast_uri set to
> vlan://untagged.
>
> I also checked previous backups from older versions (4.10 and 4.2.1) and
> in all of those the broadcast_uri was blank.  I am wondering if this is a
> bug in the upgrade scripts.
>
> I updated network 204 and set the broadcast_uri and now I am able to start
> new instances.
>
> thank you for your help!
>
> I am including my nics table just in case you spot something else out of
> the ordinary.
>
> mysql> select id, instance_id, network_id, netmask, gateway, ip4_address,
> broadcast_uri, mode, state, strategy from nics where network_id=204 order
> by ip4_address;
>
> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
> | id  | instance_id | network_id | netmask       | gateway     |
> ip4_address   | broadcast_uri   | mode | state        | strategy    |
>
> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
> |  60 |          52 |        204 | NULL          | NULL        | NULL
>      | NULL            | Dhcp | Deallocating | Start       |
> |  64 |          53 |        204 | NULL          | NULL        | NULL
>      | NULL            | Dhcp | Deallocating | Start       |
> |  68 |          54 |        204 | NULL          | NULL        | NULL
>      | NULL            | Dhcp | Deallocating | Start       |
> |  72 |          55 |        204 | NULL          | NULL        | NULL
>      | NULL            | Dhcp | Deallocating | Start       |
> |  76 |          56 |        204 | NULL          | NULL        | NULL
>      | NULL            | Dhcp | Deallocating | Start       |
> |  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
> |   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 116 |        NULL |        204 | NULL          | 172.30.45.1 |
> 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
> | 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
> |   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
> |   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
> | 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
> | 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
> |  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
> |  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
> | 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
> |  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
> |  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
> | 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 |
> 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
>
> +-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
> 92 rows in set (0.00 sec)
>
>
>
>
> On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <Ch...@citrix.com>
> wrote:
>
> Not really sure. Check your nics table as well
> select id, instance_id, network_id, netmask, gateway, ip4_address,
> broadcast_uri, mode, state, strategy from nics where network_id=204
>
> It looks like the broadcast_uri is null? Should be vlan://untagged
>
>
> From:  Carlos Reátegui <cr...@gmail.com>
> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Date:  Friday, October 3, 2014 at 12:48 PM
> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Cc:  Daan Hoogland <da...@gmail.com>
> Subject:  Re: Can't launch VMs
>
>
> Don’t know how to “check your Œnetworks¹ table and see if the URI is
> correct."
>
> Here is my networks table:
>
> mysql> select * from networks;
> +-----+--------------------------+--------------------------------------+--
> ------------------------+--------------+-----------------------+-----------
> ----+-------------+----------------+--------+---------------------+--------
> -------------+----------------+---------------------------+-------+--------
> -+-----------+------------+------+------+-----------+------------+---------
> -+-------------------+----------------+------------+------------------+----
> -----------------+---------+-------------------+--------+-------------+----
> ------+--------------+-----------------+----------------+
> | id  | name                     | uuid                                 |
> display_text             | traffic_type | broadcast_domain_type |
> broadcast_uri | gateway     | cidr           | mode   |
> network_offering_id | physical_network_id | data_center_id | guru_name
>            | state | related | domain_id | account_id | dns1 | dns2 |
> guru_data | set_fields | acl_type | network_domain    | reservation_id |
> guest_type | restart_required | created             | removed |
> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
> display_network | network_acl_id |
> +-----+--------------------------+--------------------------------------+--
> ------------------------+--------------+-----------------------+-----------
> ----+-------------+----------------+--------+---------------------+--------
> -------------+----------------+---------------------------+-------+--------
> -+-----------+------------+------+------+-----------+------------+---------
> -+-------------------+----------------+------------+------------------+----
> -----------------+---------+-------------------+--------+-------------+----
> ------+--------------+-----------------+----------------+
> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
> NULL                     | Public       | Vlan                  | NULL
>     | NULL        | NULL           | Static |                   1 |
>         NULL |              1 | PublicNetworkGuru         | Setup |
> 200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
> NULL                     | Management   | Native                | NULL
>     | NULL        | NULL           | Static |                   2 |
>         NULL |              1 | PodBasedNetworkGuru       | Setup |
> 201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
> NULL                     | Control      | LinkLocal             | NULL
>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>         NULL |              1 | ControlNetworkGuru        | Setup |
> 202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
> NULL                     | Storage      | Native                | NULL
>     | NULL        | NULL           | Static |                   4 |
>         NULL |              1 | StorageNetworkGuru        | Setup |
> 203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
> Domain   | cs1cloud.internal | NULL           | Shared     |
> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>   | NULL     | NULL         |               1 |           NULL |
> +-----+--------------------------+--------------------------------------+--
> ------------------------+--------------+-----------------------+-----------
> ----+-------------+----------------+--------+---------------------+--------
> -------------+----------------+---------------------------+-------+--------
> -+-----------+------------+------+------+-----------+------------+---------
> -+-------------------+----------------+------------+------------------+----
> -----------------+---------+-------------------+--------+-------------+----
> ------+--------------+-----------------+----------------+
> 5 rows in set (0.00 sec)
>
>
>
>
> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
>
> Wonder if Daan is talking about
> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>
>
> As you can see from
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
> h
>
> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
> o
> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
> the first check for ³untagged² should¹ve gone through, except that it
> goes
> through and either hits line 1025 instead.
> So, check your Œnetworks¹ table and see if the URI is correct.
>
>
> From:  Carlos Reátegui <cr...@gmail.com>
> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Date:  Friday, October 3, 2014 at 12:15 PM
> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Subject:  Re: Can't launch VMs
>
>
> Thanks for having a look.  Inline...
>
> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
>
> Not sure what is a ³basic zone no security groups².
>
> Basic Zone type with the following Network Offering:
> DefaultSharedNetworkOffering as opposed to the default/first option
> DefaultSharedNetworkOfferingWithSGService.
>
> Check your vlan table to see if there has been any allocation of vlans?
>
> mysql> select * from vlan;
>
> +----+--------------------------------------+-----------------+-----------
> -
>
> --+---------------+-----------------------------+----------------+--------
> -
>
> -------+------------+---------------------+-------------+----------+------
> -
> ----+
> | id | uuid                                 | vlan_id         |
> vlan_gateway | vlan_netmask  | description                 | vlan_type
> | data_center_id | network_id | physical_network_id | ip6_gateway |
> ip6_cidr | ip6_range |
>
> +----+--------------------------------------+-----------------+-----------
> -
>
> --+---------------+-----------------------------+----------------+--------
> -
>
> -------+------------+---------------------+-------------+----------+------
> -
> ----+
> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
> DirectAttached |              1 |        204 |                 200 | NULL
>     | NULL     | NULL      |
>
> +----+--------------------------------------+-----------------+-----------
> -
>
> --+---------------+-----------------------------+----------------+--------
> -
>
> -------+------------+---------------------+-------------+----------+------
> -
> ----+
> 1 row in set (0.00 sec)
>
>
>
>
> From: Carlos Reategui <cr...@gmail.com>>
> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> <de...@cloudstack.apache.org>>,
> "carlos@reategui.com<ma...@reategui.com>"
> <ca...@reategui.com>>
> Date: Thursday, October 2, 2014 at 3:48 PM
> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> <de...@cloudstack.apache.org>>
> Subject: Fwd: Can't launch VMs
>
> Hi devs,
> Daan suggested I check with you all regarding this email I sent to the
> users list.
>
> He said "the line of code that breaks expects a uri for a vlan", However
> I
> am using basic networking and I don't know where to add a vlan in that
> setup.
> He also said this was a known issue.  Hopefully one of you all knows a
> fix.
>
> This deployment had been working fine.  Originally a 4.1, upgraded to
> 4.2.1
> and more recently to 4.3 and 4.3.1.  It was definitely working under
> 4.2.1
> and I though it had been working under 4.3 as well but I am not sure
> now.
> There is no problem with existing instances.  The problem is when trying
> to
> launch new ones.
>
> Let me know what additional info would be useful.
>
> thank you,
> Carlos
>
>
>
> ---------- Forwarded message ----------
> From: Carlos Reategui <cr...@gmail.com>>
> Date: Mon, Sep 29, 2014 at 4:53 PM
> Subject: Can't launch VMs
> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> <us...@cloudstack.apache.org>>
>
>
> Following up on my earlier email regarding errors in my logs it appears
> things are not as great as I thought.  Trying to launch instances is not
> working.  Please help.
> thanks,
> Carlos
>
> ACS: 4.3.1
> Hosts: XenServer 6.2
> Network: Basic Shared Network no SG
>
> Things appear ok up until it tries to create the VIF.  Here are the
> logs:
>
> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>
> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>
> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Created VM
> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>
> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
> created for com.cloud.agent.api.to.DiskTO@53d6031b
>
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
> GetStorageStatsAnswer } }
>
> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>
> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>
> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>
>
> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
> s
> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>
> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
> GET
>
>
> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
> s
> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
> created for com.cloud.agent.api.to.DiskTO@194e84ba
>
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
> [Nic:Guest-172.30.45.143-null]
>
> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> java.lang.NullPointerException due to java.lang.NullPointerException
>
> java.lang.NullPointerException
>
>      at
>
>
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
> v
> a:173)
>
>      at
>
>
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
> )
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
> o
> urceBase.java:1035)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
> u
> rceBase.java:1088)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
> c
> eBase.java:1718)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
> x
> ResourceBase.java:545)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
> e
> rver56Resource.java:59)
>
>      at
>
>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
> t
> tache.java:216)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
> d
> ContextRunnable.java:49)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
> e
> faultManagedContext.java:56)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
> C
> ontext(DefaultManagedContext.java:103)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
> o
> ntext(DefaultManagedContext.java:53)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
> o
> ntextRunnable.java:46)
>
>      at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>      at
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
> s
> 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.jav
> a
> :615)
>
>      at java.lang.Thread.run(Thread.java:745)
>
> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>
> java.lang.NullPointerException
>
>      at
>
>
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
> v
> a:173)
>
>      at
>
>
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
> )
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
> o
> urceBase.java:1035)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
> u
> rceBase.java:1088)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
> c
> eBase.java:1718)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
> x
> ResourceBase.java:545)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
> e
> rver56Resource.java:59)
>
>      at
>
>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
> t
> tache.java:216)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
> d
> ContextRunnable.java:49)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
> e
> faultManagedContext.java:56)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
> C
> ontext(DefaultManagedContext.java:103)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
> o
> ntext(DefaultManagedContext.java:53)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
> o
> ntextRunnable.java:46)
>
>      at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>      at
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
> s
> 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.jav
> a
> :615)
>
>      at java.lang.Thread.run(Thread.java:745)
>
> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>
>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>
>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
> t
> ion.dispatch(XenServerConnectionPool.java:909)
>
>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
> (
> CitrixResourceBase.java:1462)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
> c
> eBase.java:1800)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
> x
> ResourceBase.java:545)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
> e
> rver56Resource.java:59)
>
>      at
>
>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
> t
> tache.java:216)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
> d
> ContextRunnable.java:49)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
> e
> faultManagedContext.java:56)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
> C
> ontext(DefaultManagedContext.java:103)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
> o
> ntext(DefaultManagedContext.java:53)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
> o
> ntextRunnable.java:46)
>
>      at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>      at
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
> s
> 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.jav
> a
> :615)
>
>      at java.lang.Thread.run(Thread.java:745)
>
> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>
>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>
>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
> t
> ion.dispatch(XenServerConnectionPool.java:909)
>
>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
> (
> CitrixResourceBase.java:1462)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
> c
> eBase.java:1800)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
> x
> ResourceBase.java:545)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
> e
> rver56Resource.java:59)
>
>      at
>
>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
> t
> tache.java:216)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
> d
> ContextRunnable.java:49)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
> e
> faultManagedContext.java:56)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
> C
> ontext(DefaultManagedContext.java:103)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
> o
> ntext(DefaultManagedContext.java:53)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
> o
> ntextRunnable.java:46)
>
>      at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>      at
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
> s
> 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.jav
> a
> :615)
>
>      at java.lang.Thread.run(Thread.java:745)
>
> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>
>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>
>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
> t
> ion.dispatch(XenServerConnectionPool.java:909)
>
>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
> (
> CitrixResourceBase.java:1462)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
> c
> eBase.java:1800)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
> x
> ResourceBase.java:545)
>
>      at
>
>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
> e
> rver56Resource.java:59)
>
>      at
>
>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
> t
> tache.java:216)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
> d
> ContextRunnable.java:49)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
> e
> faultManagedContext.java:56)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
> C
> ontext(DefaultManagedContext.java:103)
>
>      at
>
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
> o
> ntext(DefaultManagedContext.java:53)
>
>      at
>
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
> o
> ntextRunnable.java:46)
>
>      at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>      at
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
> s
> 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.jav
> a
> :615)
>
>      at java.lang.Thread.run(Thread.java:745)
>
> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
> problem
> during startup : i-3-98-VM
>
> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>
>
> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
> o
>
> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
> "
> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
> 5.7
>
>
> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
> s
>
> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
> ,
>
> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
> 4
>
> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
> .
>
> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
> e
>
> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
> O
>
> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
> w
>
> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
> "
> url":"NetworkFilesystem://
>
>
> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
> 0
> e-31eebeafb217
>
>
> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
> 7
> 534434d137","volumeId":124,"vmName":"i-3-
> 98-VM
>
>
> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
> n
>
> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
> "
>
> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
> "
>
> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
> .
>
> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
> ,
>
> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
> i
>
> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
> "
>
> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
> y
> ","port":2049,"url":"NetworkFilesystem://
>
>
> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
> 0
> e-31eebeafb217
>
>
> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
> 1
> ed1bdfd48","volumeId":125,"vmName":"i-3-
>
>
> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
> "
>
> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
> "
>
> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
> a
>
> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
> o
>
> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
> ,
>
> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
> t
>
> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
> "
>
> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
> m
>
> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
> o
>
> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
> a
> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
> to start i-3-98-VM due to ","wait":0}}] }
>
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
> {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
> StartAnswer }
> }
>
> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>
> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
> the
> vm VM[User|sununxcld19] in Starting state
>
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
> Cmd
> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>
>
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
> f
> alse,"vmName":"i-3-
> 98-VM","wait":0}}] }
>
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
> {
> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
> 100011,
>
>
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
> f
> alse,"vmName":"i-3-
> 98-VM","wait":0}}] }
>
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>
> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-236:ctx-234da2e1) VM does not exist on
> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
> exist","wait":0}}] }
>
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
> {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
> } }
>
> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
> supported in the network id=204
>
> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
> nics
> for network id=204 on -1
>
> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
> release
>
> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released
> network
> resources for the vm VM[User|sununxcld19]
>
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
> resources for the vm VM[User|sununxcld19] in Starting state
>
> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need
> to
> place VM in volume's cluster
>
>
>
>
>
>
>


-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Hmm.  I just checked another deployment I did with 4.4.0 using the same zone type and network offering and it has the broadcast_uri set to vlan://untagged.

I also checked previous backups from older versions (4.10 and 4.2.1) and in all of those the broadcast_uri was blank.  I am wondering if this is a bug in the upgrade scripts. 

I updated network 204 and set the broadcast_uri and now I am able to start new instances.

thank you for your help!

I am including my nics table just in case you spot something else out of the ordinary.

mysql> select id, instance_id, network_id, netmask, gateway, ip4_address, broadcast_uri, mode, state, strategy from nics where network_id=204 order by ip4_address;
+-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
| id  | instance_id | network_id | netmask       | gateway     | ip4_address   | broadcast_uri   | mode | state        | strategy    |
+-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
|  60 |          52 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
|  64 |          53 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
|  68 |          54 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
|  72 |          55 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
|  76 |          56 |        204 | NULL          | NULL        | NULL          | NULL            | Dhcp | Deallocating | Start       |
|  30 |          21 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
|  32 |          23 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
|  43 |          34 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Deallocating | Start       |
|  47 |          38 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.100 | vlan://untagged | Dhcp | Reserved     | Start       |
|   1 |           1 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
|  13 |           5 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
|  87 |          59 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Deallocating | Start       |
| 116 |        NULL |        204 | NULL          | 172.30.45.1 | 172.30.45.101 | NULL            | NULL | Reserved     | PlaceHolder |
| 120 |          91 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.101 | vlan://untagged | Dhcp | Reserved     | Start       |
|  23 |          14 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.102 | vlan://untagged | Dhcp | Reserved     | Start       |
|  21 |          12 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
| 109 |          81 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.103 | vlan://untagged | Dhcp | Deallocating | Start       |
|   4 |           2 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
|  84 |          58 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
|  89 |          60 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Deallocating | Start       |
| 117 |          90 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.104 | vlan://untagged | Dhcp | Reserved     | Start       |
|  19 |          10 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.105 | vlan://untagged | Dhcp | Reserved     | Start       |
|  34 |          25 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Deallocating | Start       |
|  38 |          29 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.106 | vlan://untagged | Dhcp | Reserved     | Start       |
|   8 |           3 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
|  95 |          64 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.107 | vlan://untagged | Dhcp | Deallocating | Start       |
|  27 |          18 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
|  28 |          19 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Deallocating | Start       |
|  37 |          28 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.108 | vlan://untagged | Dhcp | Reserved     | Start       |
|  36 |          27 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
|  45 |          36 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Deallocating | Start       |
|  48 |          39 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.109 | vlan://untagged | Dhcp | Allocated    | Start       |
|  29 |          20 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
|  44 |          35 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
|  50 |          41 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Deallocating | Start       |
|  55 |          46 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.110 | vlan://untagged | Dhcp | Reserved     | Start       |
|  56 |          47 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.111 | vlan://untagged | Dhcp | Allocated    | Start       |
|  31 |          22 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Deallocating | Start       |
|  39 |          30 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.112 | vlan://untagged | Dhcp | Allocated    | Start       |
|  51 |          42 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Deallocating | Start       |
|  92 |          61 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.113 | vlan://untagged | Dhcp | Reserved     | Start       |
|  54 |          45 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.114 | vlan://untagged | Dhcp | Allocated    | Start       |
|  96 |          65 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
| 100 |          70 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
| 110 |          82 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.115 | vlan://untagged | Dhcp | Deallocating | Start       |
|  57 |          48 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
| 104 |          76 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Deallocating | Start       |
| 113 |          87 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.116 | vlan://untagged | Dhcp | Reserved     | Start       |
|  26 |          17 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
|  58 |          50 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
| 108 |          80 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
| 115 |          89 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.117 | vlan://untagged | Dhcp | Deallocating | Start       |
|  93 |          62 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
|  98 |          67 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
| 102 |          72 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.118 | vlan://untagged | Dhcp | Deallocating | Start       |
|  94 |          63 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Deallocating | Start       |
|  99 |          69 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.119 | vlan://untagged | Dhcp | Allocated    | Start       |
| 103 |          73 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
| 112 |          86 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.120 | vlan://untagged | Dhcp | Deallocating | Start       |
|  97 |          66 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | vlan://untagged | Dhcp | Deallocating | Start       |
| 126 |          97 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.121 | NULL            | Dhcp | Deallocating | Start       |
| 111 |          83 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.122 | vlan://untagged | Dhcp | Deallocating | Start       |
|  12 |           4 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.123 | vlan://untagged | Dhcp | Reserved     | Start       |
| 105 |          77 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
| 114 |          88 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.124 | vlan://untagged | Dhcp | Deallocating | Start       |
|  49 |          40 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.125 | vlan://untagged | Dhcp | Allocated    | Start       |
|  33 |          24 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.126 | vlan://untagged | Dhcp | Deallocating | Start       |
|  17 |           8 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.130 | vlan://untagged | Dhcp | Deallocating | Start       |
|  52 |          43 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.131 | vlan://untagged | Dhcp | Deallocating | Start       |
|  53 |          44 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Deallocating | Start       |
| 124 |          94 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.132 | vlan://untagged | Dhcp | Allocated    | Start       |
|  16 |           7 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.134 | vlan://untagged | Dhcp | Deallocating | Start       |
|  15 |           6 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.135 | vlan://untagged | Dhcp | Reserved     | Start       |
|  59 |          51 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.137 | vlan://untagged | Dhcp | Deallocating | Start       |
|  40 |          31 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.138 | vlan://untagged | Dhcp | Reserved     | Start       |
|  41 |          32 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Deallocating | Start       |
| 123 |          93 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.139 | vlan://untagged | Dhcp | Reserved     | Start       |
|  25 |          16 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.141 | vlan://untagged | Dhcp | Deallocating | Start       |
| 127 |          98 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.143 | NULL            | Dhcp | Deallocating | Start       |
|  80 |          57 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.144 | vlan://untagged | Dhcp | Reserved     | Start       |
|  35 |          26 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Deallocating | Start       |
|  42 |          33 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.145 | vlan://untagged | Dhcp | Reserved     | Start       |
| 106 |          78 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.148 | vlan://untagged | Dhcp | Allocated    | Start       |
|  24 |          15 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.149 | vlan://untagged | Dhcp | Deallocating | Start       |
| 107 |          79 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.155 | vlan://untagged | Dhcp | Reserved     | Start       |
|  20 |          11 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.157 | vlan://untagged | Dhcp | Reserved     | Start       |
| 122 |          92 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.159 | vlan://untagged | Dhcp | Deallocating | Start       |
| 101 |          71 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.163 | vlan://untagged | Dhcp | Deallocating | Start       |
|  46 |          37 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.167 | vlan://untagged | Dhcp | Deallocating | Start       |
|  22 |          13 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.168 | vlan://untagged | Dhcp | Reserved     | Start       |
|  18 |           9 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.170 | vlan://untagged | Dhcp | Reserved     | Start       |
| 125 |          95 |        204 | 255.255.255.0 | 172.30.45.1 | 172.30.45.173 | NULL            | Dhcp | Deallocating | Start       |
+-----+-------------+------------+---------------+-------------+---------------+-----------------+------+--------------+-------------+
92 rows in set (0.00 sec)




On Oct 3, 2014, at 2:55 PM, Chiradeep Vittal <Ch...@citrix.com> wrote:

> Not really sure. Check your nics table as well
> select id, instance_id, network_id, netmask, gateway, ip4_address,
> broadcast_uri, mode, state, strategy from nics where network_id=204
> 
> It looks like the broadcast_uri is null? Should be vlan://untagged
> 
> 
> From:  Carlos Reátegui <cr...@gmail.com>
> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Date:  Friday, October 3, 2014 at 12:48 PM
> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Cc:  Daan Hoogland <da...@gmail.com>
> Subject:  Re: Can't launch VMs
> 
> 
> Don’t know how to “check your Œnetworks¹ table and see if the URI is
> correct."
> 
> Here is my networks table:
> 
> mysql> select * from networks;
> +-----+--------------------------+--------------------------------------+--
> ------------------------+--------------+-----------------------+-----------
> ----+-------------+----------------+--------+---------------------+--------
> -------------+----------------+---------------------------+-------+--------
> -+-----------+------------+------+------+-----------+------------+---------
> -+-------------------+----------------+------------+------------------+----
> -----------------+---------+-------------------+--------+-------------+----
> ------+--------------+-----------------+----------------+
> | id  | name                     | uuid                                 |
> display_text             | traffic_type | broadcast_domain_type |
> broadcast_uri | gateway     | cidr           | mode   |
> network_offering_id | physical_network_id | data_center_id | guru_name
>            | state | related | domain_id | account_id | dns1 | dns2 |
> guru_data | set_fields | acl_type | network_domain    | reservation_id |
> guest_type | restart_required | created             | removed |
> specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
> display_network | network_acl_id |
> +-----+--------------------------+--------------------------------------+--
> ------------------------+--------------+-----------------------+-----------
> ----+-------------+----------------+--------+---------------------+--------
> -------------+----------------+---------------------------+-------+--------
> -+-----------+------------+------+------+-----------+------------+---------
> -+-------------------+----------------+------------+------------------+----
> -----------------+---------+-------------------+--------+-------------+----
> ------+--------------+-----------------+----------------+
> | 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
> NULL                     | Public       | Vlan                  | NULL
>     | NULL        | NULL           | Static |                   1 |
>         NULL |              1 | PublicNetworkGuru         | Setup |
> 200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
> NULL                     | Management   | Native                | NULL
>     | NULL        | NULL           | Static |                   2 |
>         NULL |              1 | PodBasedNetworkGuru       | Setup |
> 201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
> NULL                     | Control      | LinkLocal             | NULL
>     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
>         NULL |              1 | ControlNetworkGuru        | Setup |
> 202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
> NULL                     | Storage      | Native                | NULL
>     | NULL        | NULL           | Static |                   4 |
>         NULL |              1 | StorageNetworkGuru        | Setup |
> 203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
>    | NULL              | NULL           | NULL       |                0 |
> 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
> NULL     | NULL         |               1 |           NULL |
> | 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
> guestNetworkForBasicZone | Guest        | Vlan                  | NULL
>     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
>          200 |              1 | DirectPodBasedNetworkGuru | Setup |
> 204 |         1 |          1 | NULL | NULL | NULL      |          0 |
> Domain   | cs1cloud.internal | NULL           | Shared     |
> 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
>   | NULL     | NULL         |               1 |           NULL |
> +-----+--------------------------+--------------------------------------+--
> ------------------------+--------------+-----------------------+-----------
> ----+-------------+----------------+--------+---------------------+--------
> -------------+----------------+---------------------------+-------+--------
> -+-----------+------------+------+------+-----------+------------+---------
> -+-------------------+----------------+------------+------------------+----
> -----------------+---------+-------------------+--------+-------------+----
> ------+--------------+-----------------+----------------+
> 5 rows in set (0.00 sec)
> 
> 
> 
> 
> On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
> 
>> Wonder if Daan is talking about
>> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
>> 
>> 
>> As you can see from
>> 
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>> h
>> 
>> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>> o
>> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
>> the first check for ³untagged² should¹ve gone through, except that it
>> goes
>> through and either hits line 1025 instead.
>> So, check your Œnetworks¹ table and see if the URI is correct.
>> 
>> 
>> From:  Carlos Reátegui <cr...@gmail.com>
>> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Date:  Friday, October 3, 2014 at 12:15 PM
>> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
>> Subject:  Re: Can't launch VMs
>> 
>> 
>> Thanks for having a look.  Inline...
>> 
>> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
>> <Ch...@citrix.com> wrote:
>> 
>>> Not sure what is a ³basic zone no security groups².
>> Basic Zone type with the following Network Offering:
>> DefaultSharedNetworkOffering as opposed to the default/first option
>> DefaultSharedNetworkOfferingWithSGService.
>> 
>>> Check your vlan table to see if there has been any allocation of vlans?
>> mysql> select * from vlan;
>> 
>> +----+--------------------------------------+-----------------+-----------
>> -
>> 
>> --+---------------+-----------------------------+----------------+--------
>> -
>> 
>> -------+------------+---------------------+-------------+----------+------
>> -
>> ----+
>> | id | uuid                                 | vlan_id         |
>> vlan_gateway | vlan_netmask  | description                 | vlan_type
>> | data_center_id | network_id | physical_network_id | ip6_gateway |
>> ip6_cidr | ip6_range |
>> 
>> +----+--------------------------------------+-----------------+-----------
>> -
>> 
>> --+---------------+-----------------------------+----------------+--------
>> -
>> 
>> -------+------------+---------------------+-------------+----------+------
>> -
>> ----+
>> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
>> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
>> DirectAttached |              1 |        204 |                 200 | NULL
>>     | NULL     | NULL      |
>> 
>> +----+--------------------------------------+-----------------+-----------
>> -
>> 
>> --+---------------+-----------------------------+----------------+--------
>> -
>> 
>> -------+------------+---------------------+-------------+----------+------
>> -
>> ----+
>> 1 row in set (0.00 sec)
>> 
>> 
>> 
>>> 
>>> From: Carlos Reategui <cr...@gmail.com>>
>>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>> <de...@cloudstack.apache.org>>,
>>> "carlos@reategui.com<ma...@reategui.com>"
>>> <ca...@reategui.com>>
>>> Date: Thursday, October 2, 2014 at 3:48 PM
>>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>> <de...@cloudstack.apache.org>>
>>> Subject: Fwd: Can't launch VMs
>>> 
>>> Hi devs,
>>> Daan suggested I check with you all regarding this email I sent to the
>>> users list.
>>> 
>>> He said "the line of code that breaks expects a uri for a vlan", However
>>> I
>>> am using basic networking and I don't know where to add a vlan in that
>>> setup.
>>> He also said this was a known issue.  Hopefully one of you all knows a
>>> fix.
>>> 
>>> This deployment had been working fine.  Originally a 4.1, upgraded to
>>> 4.2.1
>>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>>> 4.2.1
>>> and I though it had been working under 4.3 as well but I am not sure
>>> now.
>>> There is no problem with existing instances.  The problem is when trying
>>> to
>>> launch new ones.
>>> 
>>> Let me know what additional info would be useful.
>>> 
>>> thank you,
>>> Carlos
>>> 
>>> 
>>> 
>>> ---------- Forwarded message ----------
>>> From: Carlos Reategui <cr...@gmail.com>>
>>> Date: Mon, Sep 29, 2014 at 4:53 PM
>>> Subject: Can't launch VMs
>>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>>> <us...@cloudstack.apache.org>>
>>> 
>>> 
>>> Following up on my earlier email regarding errors in my logs it appears
>>> things are not as great as I thought.  Trying to launch instances is not
>>> working.  Please help.
>>> thanks,
>>> Carlos
>>> 
>>> ACS: 4.3.1
>>> Hosts: XenServer 6.2
>>> Network: Basic Shared Network no SG
>>> 
>>> Things appear ok up until it tries to create the VIF.  Here are the
>>> logs:
>>> 
>>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>>> 
>>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>>> 
>>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>>> 
>>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>>> 
>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>>> 
>>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>> GetStorageStatsAnswer } }
>>> 
>>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>>> 
>>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>>> 
>>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>>> 
>>> 
>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>> s
>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>> 
>>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>>> GET
>>> 
>>> 
>>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>> s
>>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>>> 
>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>>> 
>>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>>> [Nic:Guest-172.30.45.143-null]
>>> 
>>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>>> java.lang.NullPointerException due to java.lang.NullPointerException
>>> 
>>> java.lang.NullPointerException
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>> v
>>> a:173)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>> )
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>> o
>>> urceBase.java:1035)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>> u
>>> rceBase.java:1088)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1718)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>> 
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> 
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> 
>>>      at
>>> 
>>> 
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>> 
>>>      at java.lang.Thread.run(Thread.java:745)
>>> 
>>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>>> 
>>> java.lang.NullPointerException
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>> v
>>> a:173)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>> )
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>> o
>>> urceBase.java:1035)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>> u
>>> rceBase.java:1088)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1718)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>> 
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> 
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> 
>>>      at
>>> 
>>> 
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>> 
>>>      at java.lang.Thread.run(Thread.java:745)
>>> 
>>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>> 
>>> You gave an invalid object reference.  The object may have recently been
>>> deleted.  The class parameter gives the type of reference given, and the
>>> handle parameter echoes the bad value given.
>>> 
>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>> 
>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>> t
>>> ion.dispatch(XenServerConnectionPool.java:909)
>>> 
>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>> (
>>> CitrixResourceBase.java:1462)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1800)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>> 
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> 
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> 
>>>      at
>>> 
>>> 
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>> 
>>>      at java.lang.Thread.run(Thread.java:745)
>>> 
>>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>> 
>>> You gave an invalid object reference.  The object may have recently been
>>> deleted.  The class parameter gives the type of reference given, and the
>>> handle parameter echoes the bad value given.
>>> 
>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>> 
>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>> t
>>> ion.dispatch(XenServerConnectionPool.java:909)
>>> 
>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>> (
>>> CitrixResourceBase.java:1462)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1800)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>> 
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> 
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> 
>>>      at
>>> 
>>> 
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>> 
>>>      at java.lang.Thread.run(Thread.java:745)
>>> 
>>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>>> 
>>> You gave an invalid object reference.  The object may have recently been
>>> deleted.  The class parameter gives the type of reference given, and the
>>> handle parameter echoes the bad value given.
>>> 
>>>      at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>>> 
>>>      at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>> t
>>> ion.dispatch(XenServerConnectionPool.java:909)
>>> 
>>>      at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>> (
>>> CitrixResourceBase.java:1462)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>> c
>>> eBase.java:1800)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>> x
>>> ResourceBase.java:545)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>> e
>>> rver56Resource.java:59)
>>> 
>>>      at
>>> 
>>> 
>>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>> t
>>> tache.java:216)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>> d
>>> ContextRunnable.java:49)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>> e
>>> faultManagedContext.java:56)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>> C
>>> ontext(DefaultManagedContext.java:103)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>> o
>>> ntext(DefaultManagedContext.java:53)
>>> 
>>>      at
>>> 
>>> 
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>> o
>>> ntextRunnable.java:46)
>>> 
>>>      at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> 
>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>> 
>>>      at
>>> 
>>> 
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>> s
>>> 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.jav
>>> a
>>> :615)
>>> 
>>>      at java.lang.Thread.run(Thread.java:745)
>>> 
>>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>>> problem
>>> during startup : i-3-98-VM
>>> 
>>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>>> 
>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>> 
>>> 
>>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>>> o
>>> 
>>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>>> "
>>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>>> 5.7
>>> 
>>> 
>>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>>> s
>>> 
>>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>>> ,
>>> 
>>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>>> 4
>>> 
>>> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
>>> .
>>> 
>>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>>> e
>>> 
>>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>>> O
>>> 
>>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>>> w
>>> 
>>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>>> "
>>> url":"NetworkFilesystem://
>>> 
>>> 
>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>> 0
>>> e-31eebeafb217
>>> 
>>> 
>>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>>> 7
>>> 534434d137","volumeId":124,"vmName":"i-3-
>>> 98-VM
>>> 
>>> 
>>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>>> n
>>> 
>>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>>> "
>>> 
>>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>>> "
>>> 
>>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>>> .
>>> 
>>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>>> ,
>>> 
>>> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
>>> i
>>> 
>>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>>> "
>>> 
>>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>>> y
>>> ","port":2049,"url":"NetworkFilesystem://
>>> 
>>> 
>>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>> 0
>>> e-31eebeafb217
>>> 
>>> 
>>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>>> 1
>>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>>> 
>>> 
>>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>>> "
>>> 
>>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>>> "
>>> 
>>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>>> a
>>> 
>>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
>>> o
>>> 
>>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>>> ,
>>> 
>>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>>> t
>>> 
>>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>>> "
>>> 
>>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>>> m
>>> 
>>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>>> o
>>> 
>>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>>> a
>>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>>> to start i-3-98-VM due to ","wait":0}}] }
>>> 
>>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>>> {
>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>>> StartAnswer }
>>> }
>>> 
>>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>>> 
>>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>>> the
>>> vm VM[User|sununxcld19] in Starting state
>>> 
>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>>> Cmd
>>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>>> 
>>> 
>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>> f
>>> alse,"vmName":"i-3-
>>> 98-VM","wait":0}}] }
>>> 
>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>>> {
>>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>>> 100011,
>>> 
>>> 
>>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>> f
>>> alse,"vmName":"i-3-
>>> 98-VM","wait":0}}] }
>>> 
>>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>>> 
>>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>>> 
>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>>> 
>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>>> exist","wait":0}}] }
>>> 
>>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>>> {
>>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>>> } }
>>> 
>>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>>> supported in the network id=204
>>> 
>>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>>> nics
>>> for network id=204 on -1
>>> 
>>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>>> release
>>> 
>>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>>> 
>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released 
>>> network
>>> resources for the vm VM[User|sununxcld19]
>>> 
>>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>>> resources for the vm VM[User|sununxcld19] in Starting state
>>> 
>>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need 
>>> to
>>> place VM in volume's cluster
>>> 
>> 
>> 
> 
> 


Re: Can't launch VMs

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Not really sure. Check your nics table as well
select id, instance_id, network_id, netmask, gateway, ip4_address,
broadcast_uri, mode, state, strategy from nics where network_id=204

It looks like the broadcast_uri is null? Should be vlan://untagged


From:  Carlos Reátegui <cr...@gmail.com>
Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
Date:  Friday, October 3, 2014 at 12:48 PM
To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
Cc:  Daan Hoogland <da...@gmail.com>
Subject:  Re: Can't launch VMs


Don’t know how to “check your Œnetworks¹ table and see if the URI is
correct."

Here is my networks table:

mysql> select * from networks;
+-----+--------------------------+--------------------------------------+--
------------------------+--------------+-----------------------+-----------
----+-------------+----------------+--------+---------------------+--------
-------------+----------------+---------------------------+-------+--------
-+-----------+------------+------+------+-----------+------------+---------
-+-------------------+----------------+------------+------------------+----
-----------------+---------+-------------------+--------+-------------+----
------+--------------+-----------------+----------------+
| id  | name                     | uuid                                 |
display_text             | traffic_type | broadcast_domain_type |
broadcast_uri | gateway     | cidr           | mode   |
network_offering_id | physical_network_id | data_center_id | guru_name
            | state | related | domain_id | account_id | dns1 | dns2 |
guru_data | set_fields | acl_type | network_domain    | reservation_id |
guest_type | restart_required | created             | removed |
specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr |
display_network | network_acl_id |
+-----+--------------------------+--------------------------------------+--
------------------------+--------------+-----------------------+-----------
----+-------------+----------------+--------+---------------------+--------
-------------+----------------+---------------------------+-------+--------
-+-----------+------------+------+------+-----------+------------+---------
-+-------------------+----------------+------------+------------------+----
-----------------+---------+-------------------+--------+-------------+----
------+--------------+-----------------+----------------+
| 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 |
NULL                     | Public       | Vlan                  | NULL
     | NULL        | NULL           | Static |                   1 |
         NULL |              1 | PublicNetworkGuru         | Setup |
200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
    | NULL              | NULL           | NULL       |                0 |
2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
NULL     | NULL         |               1 |           NULL |
| 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b |
NULL                     | Management   | Native                | NULL
     | NULL        | NULL           | Static |                   2 |
         NULL |              1 | PodBasedNetworkGuru       | Setup |
201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
    | NULL              | NULL           | NULL       |                0 |
2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
NULL     | NULL         |               1 |           NULL |
| 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 |
NULL                     | Control      | LinkLocal             | NULL
     | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |
         NULL |              1 | ControlNetworkGuru        | Setup |
202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
    | NULL              | NULL           | NULL       |                0 |
2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        |
NULL     | NULL         |               1 |           NULL |
| 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 |
NULL                     | Storage      | Native                | NULL
     | NULL        | NULL           | Static |                   4 |
         NULL |              1 | StorageNetworkGuru        | Setup |
203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL
    | NULL              | NULL           | NULL       |                0 |
2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        |
NULL     | NULL         |               1 |           NULL |
| 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 |
guestNetworkForBasicZone | Guest        | Vlan                  | NULL
     | 172.30.45.1 | NULL           | Dhcp   |                   7 |
          200 |              1 | DirectPodBasedNetworkGuru | Setup |
204 |         1 |          1 | NULL | NULL | NULL      |          0 |
Domain   | cs1cloud.internal | NULL           | Shared     |
 0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL
   | NULL     | NULL         |               1 |           NULL |
+-----+--------------------------+--------------------------------------+--
------------------------+--------------+-----------------------+-----------
----+-------------+----------------+--------+---------------------+--------
-------------+----------------+---------------------------+-------+--------
-+-----------+------------+------+------+-----------+------------+---------
-+-------------------+----------------+------------+------------------+----
-----------------+---------+-------------------+--------+-------------+----
------+--------------+-----------------+----------------+
5 rows in set (0.00 sec)




On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal
<Ch...@citrix.com> wrote:

> Wonder if Daan is talking about
> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
> 
> 
> As you can see from
> 
>https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/
>h
> 
>ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixRes
>o
> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
> the first check for ³untagged² should¹ve gone through, except that it
>goes
> through and either hits line 1025 instead.
> So, check your Œnetworks¹ table and see if the URI is correct.
> 
> 
> From:  Carlos Reátegui <cr...@gmail.com>
> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Date:  Friday, October 3, 2014 at 12:15 PM
> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Subject:  Re: Can't launch VMs
> 
> 
> Thanks for having a look.  Inline...
> 
> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
> 
>> Not sure what is a ³basic zone no security groups².
> Basic Zone type with the following Network Offering:
> DefaultSharedNetworkOffering as opposed to the default/first option
> DefaultSharedNetworkOfferingWithSGService.
> 
>> Check your vlan table to see if there has been any allocation of vlans?
> mysql> select * from vlan;
> 
>+----+--------------------------------------+-----------------+-----------
>-
> 
>--+---------------+-----------------------------+----------------+--------
>-
> 
>-------+------------+---------------------+-------------+----------+------
>-
> ----+
> | id | uuid                                 | vlan_id         |
> vlan_gateway | vlan_netmask  | description                 | vlan_type
> | data_center_id | network_id | physical_network_id | ip6_gateway |
> ip6_cidr | ip6_range |
> 
>+----+--------------------------------------+-----------------+-----------
>-
> 
>--+---------------+-----------------------------+----------------+--------
>-
> 
>-------+------------+---------------------+-------------+----------+------
>-
> ----+
> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
> DirectAttached |              1 |        204 |                 200 | NULL
>      | NULL     | NULL      |
> 
>+----+--------------------------------------+-----------------+-----------
>-
> 
>--+---------------+-----------------------------+----------------+--------
>-
> 
>-------+------------+---------------------+-------------+----------+------
>-
> ----+
> 1 row in set (0.00 sec)
> 
> 
> 
>> 
>> From: Carlos Reategui <cr...@gmail.com>>
>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <de...@cloudstack.apache.org>>,
>> "carlos@reategui.com<ma...@reategui.com>"
>> <ca...@reategui.com>>
>> Date: Thursday, October 2, 2014 at 3:48 PM
>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <de...@cloudstack.apache.org>>
>> Subject: Fwd: Can't launch VMs
>> 
>> Hi devs,
>> Daan suggested I check with you all regarding this email I sent to the
>> users list.
>> 
>> He said "the line of code that breaks expects a uri for a vlan", However
>> I
>> am using basic networking and I don't know where to add a vlan in that
>> setup.
>> He also said this was a known issue.  Hopefully one of you all knows a
>> fix.
>> 
>> This deployment had been working fine.  Originally a 4.1, upgraded to
>> 4.2.1
>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>> 4.2.1
>> and I though it had been working under 4.3 as well but I am not sure
>>now.
>> There is no problem with existing instances.  The problem is when trying
>> to
>> launch new ones.
>> 
>> Let me know what additional info would be useful.
>> 
>> thank you,
>> Carlos
>> 
>> 
>> 
>> ---------- Forwarded message ----------
>> From: Carlos Reategui <cr...@gmail.com>>
>> Date: Mon, Sep 29, 2014 at 4:53 PM
>> Subject: Can't launch VMs
>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <us...@cloudstack.apache.org>>
>> 
>> 
>> Following up on my earlier email regarding errors in my logs it appears
>> things are not as great as I thought.  Trying to launch instances is not
>> working.  Please help.
>> thanks,
>> Carlos
>> 
>> ACS: 4.3.1
>> Hosts: XenServer 6.2
>> Network: Basic Shared Network no SG
>> 
>> Things appear ok up until it tries to create the VIF.  Here are the
>>logs:
>> 
>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>> 
>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>> 
>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>> 
>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>> 
>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>> 
>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>> GetStorageStatsAnswer } }
>> 
>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>> 
>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>> 
>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>> 
>> 
>>command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>s
>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>> 
>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>> GET
>> 
>> 
>>command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&re
>>s
>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>> 
>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>> 
>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>> [Nic:Guest-172.30.45.143-null]
>> 
>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>> java.lang.NullPointerException due to java.lang.NullPointerException
>> 
>> java.lang.NullPointerException
>> 
>>       at
>> 
>> 
>>com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>v
>> a:173)
>> 
>>       at
>> 
>> 
>>com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>o
>> urceBase.java:1035)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>u
>> rceBase.java:1088)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>c
>> eBase.java:1718)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>x
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>e
>> rver56Resource.java:59)
>> 
>>       at
>> 
>> 
>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>t
>> tache.java:216)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>d
>> ContextRunnable.java:49)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>e
>> faultManagedContext.java:56)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>C
>> ontext(DefaultManagedContext.java:103)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>o
>> ntext(DefaultManagedContext.java:53)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>o
>> ntextRunnable.java:46)
>> 
>>       at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> 
>>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 
>>       at
>> 
>> 
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>s
>> 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.jav
>>a
>> :615)
>> 
>>       at java.lang.Thread.run(Thread.java:745)
>> 
>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>> 
>> java.lang.NullPointerException
>> 
>>       at
>> 
>> 
>>com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.ja
>>v
>> a:173)
>> 
>>       at
>> 
>> 
>>com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228
>>)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixRes
>>o
>> urceBase.java:1035)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixReso
>>u
>> rceBase.java:1088)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>c
>> eBase.java:1718)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>x
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>e
>> rver56Resource.java:59)
>> 
>>       at
>> 
>> 
>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>t
>> tache.java:216)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>d
>> ContextRunnable.java:49)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>e
>> faultManagedContext.java:56)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>C
>> ontext(DefaultManagedContext.java:103)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>o
>> ntext(DefaultManagedContext.java:53)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>o
>> ntextRunnable.java:46)
>> 
>>       at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> 
>>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 
>>       at
>> 
>> 
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>s
>> 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.jav
>>a
>> :615)
>> 
>>       at java.lang.Thread.run(Thread.java:745)
>> 
>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>> 
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>> 
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>> 
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>t
>> ion.dispatch(XenServerConnectionPool.java:909)
>> 
>>       at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>(
>> CitrixResourceBase.java:1462)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>c
>> eBase.java:1800)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>x
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>e
>> rver56Resource.java:59)
>> 
>>       at
>> 
>> 
>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>t
>> tache.java:216)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>d
>> ContextRunnable.java:49)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>e
>> faultManagedContext.java:56)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>C
>> ontext(DefaultManagedContext.java:103)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>o
>> ntext(DefaultManagedContext.java:53)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>o
>> ntextRunnable.java:46)
>> 
>>       at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> 
>>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 
>>       at
>> 
>> 
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>s
>> 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.jav
>>a
>> :615)
>> 
>>       at java.lang.Thread.run(Thread.java:745)
>> 
>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>> 
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>> 
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>> 
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>t
>> ion.dispatch(XenServerConnectionPool.java:909)
>> 
>>       at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>(
>> CitrixResourceBase.java:1462)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>c
>> eBase.java:1800)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>x
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>e
>> rver56Resource.java:59)
>> 
>>       at
>> 
>> 
>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>t
>> tache.java:216)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>d
>> ContextRunnable.java:49)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>e
>> faultManagedContext.java:56)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>C
>> ontext(DefaultManagedContext.java:103)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>o
>> ntext(DefaultManagedContext.java:53)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>o
>> ntextRunnable.java:46)
>> 
>>       at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> 
>>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 
>>       at
>> 
>> 
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>s
>> 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.jav
>>a
>> :615)
>> 
>>       at java.lang.Thread.run(Thread.java:745)
>> 
>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>> 
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>> 
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>> 
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnec
>>t
>> ion.dispatch(XenServerConnectionPool.java:909)
>> 
>>       at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure
>>(
>> CitrixResourceBase.java:1462)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResour
>>c
>> eBase.java:1800)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citri
>>x
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> 
>>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenS
>>e
>> rver56Resource.java:59)
>> 
>>       at
>> 
>> 
>>com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentA
>>t
>> tache.java:216)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manage
>>d
>> ContextRunnable.java:49)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(D
>>e
>> faultManagedContext.java:56)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWith
>>C
>> ontext(DefaultManagedContext.java:103)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithC
>>o
>> ntext(DefaultManagedContext.java:53)
>> 
>>       at
>> 
>> 
>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedC
>>o
>> ntextRunnable.java:46)
>> 
>>       at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> 
>>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 
>>       at
>> 
>> 
>>java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
>>s
>> 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.jav
>>a
>> :615)
>> 
>>       at java.lang.Thread.run(Thread.java:745)
>> 
>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>> problem
>> during startup : i-3-98-VM
>> 
>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>> 
>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>> 
>> 
>>[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bo
>>o
>> 
>>tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,
>>"
>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>> 5.7
>> 
>> 
>>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuU
>>s
>> 
>>e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5"
>>,
>> 
>>"params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4
>>4
>> 
>>79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to
>>.
>> 
>>VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeTyp
>>e
>> 
>>":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreT
>>O
>> 
>>":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Net
>>w
>> 
>>orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,
>>"
>> url":"NetworkFilesystem://
>> 
>> 
>>172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>0
>> e-31eebeafb217
>> 
>> 
>>"}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-6
>>7
>> 534434d137","volumeId":124,"vmName":"i-3-
>> 98-VM
>> 
>> 
>>","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xe
>>n
>> 
>>Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type
>>"
>> 
>>:"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":
>>"
>> 
>>172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack
>>.
>> 
>>storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0"
>>,
>> 
>>"volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr
>>i
>> 
>>maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,
>>"
>> 
>>poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primar
>>y
>> ","port":2049,"url":"NetworkFilesystem://
>> 
>> 
>>172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b6
>>0
>> e-31eebeafb217
>> 
>> 
>>"}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e
>>1
>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>> 
>> 
>>98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType
>>"
>> 
>>:"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48",
>>"
>> 
>>type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stor
>>a
>> 
>>geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cl
>>o
>> 
>>udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0
>>,
>> 
>>"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRa
>>t
>> 
>>eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816
>>"
>> 
>>,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","
>>m
>> 
>>ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","br
>>o
>> 
>>adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuM
>>a
>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>> to start i-3-98-VM due to ","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:
>>{
>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>> StartAnswer }
>> }
>> 
>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>> 
>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for
>>the
>> vm VM[User|sununxcld19] in Starting state
>> 
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>> Cmd
>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>> 
>> 
>>[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>f
>> alse,"vmName":"i-3-
>> 98-VM","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>> {
>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>> 100011,
>> 
>> 
>>[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":
>>f
>> alse,"vmName":"i-3-
>> 98-VM","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>> 
>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>> 
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>> 
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>> exist","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:
>>{
>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>> } }
>> 
>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>> supported in the network id=204
>> 
>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>> nics
>> for network id=204 on -1
>> 
>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>> release
>> 
>>NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>> 
>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released 
>>network
>> resources for the vm VM[User|sununxcld19]
>> 
>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>> resources for the vm VM[User|sununxcld19] in Starting state
>> 
>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need 
>>to
>> place VM in volume's cluster
>> 
> 
> 



Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Don’t know how to “check your Œnetworks¹ table and see if the URI is correct."

Here is my networks table:

mysql> select * from networks;
+-----+--------------------------+--------------------------------------+--------------------------+--------------+-----------------------+---------------+-------------+----------------+--------+---------------------+---------------------+----------------+---------------------------+-------+---------+-----------+------------+------+------+-----------+------------+----------+-------------------+----------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| id  | name                     | uuid                                 | display_text             | traffic_type | broadcast_domain_type | broadcast_uri | gateway     | cidr           | mode   | network_offering_id | physical_network_id | data_center_id | guru_name                 | state | related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields | acl_type | network_domain    | reservation_id | guest_type | restart_required | created             | removed | specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr | display_network | network_acl_id |
+-----+--------------------------+--------------------------------------+--------------------------+--------------+-----------------------+---------------+-------------+----------------+--------+---------------------+---------------------+----------------+---------------------------+-------+---------+-----------+------------+------+------+-----------+------------+----------+-------------------+----------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| 200 | NULL                     | e5a63a7e-69a2-467f-8a5f-9be907c75473 | NULL                     | Public       | Vlan                  | NULL          | NULL        | NULL           | Static |                   1 |                NULL |              1 | PublicNetworkGuru         | Setup |     200 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL     | NULL              | NULL           | NULL       |                0 | 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        | NULL     | NULL         |               1 |           NULL |
| 201 | NULL                     | 62146c15-3981-486d-a404-91bd264a2c0b | NULL                     | Management   | Native                | NULL          | NULL        | NULL           | Static |                   2 |                NULL |              1 | PodBasedNetworkGuru       | Setup |     201 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL     | NULL              | NULL           | NULL       |                0 | 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        | NULL     | NULL         |               1 |           NULL |
| 202 | NULL                     | 45e65367-6945-40eb-a650-345bc5696eb1 | NULL                     | Control      | LinkLocal             | NULL          | 169.254.0.1 | 169.254.0.0/16 | Static |                   3 |                NULL |              1 | ControlNetworkGuru        | Setup |     202 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL     | NULL              | NULL           | NULL       |                0 | 2013-04-30 21:25:41 | NULL    |                 0 |   NULL | NULL        | NULL     | NULL         |               1 |           NULL |
| 203 | NULL                     | fd59f2b4-7db1-4383-9aea-b6ee361f8863 | NULL                     | Storage      | Native                | NULL          | NULL        | NULL           | Static |                   4 |                NULL |              1 | StorageNetworkGuru        | Setup |     203 |         1 |          1 | NULL | NULL | NULL      |          0 | NULL     | NULL              | NULL           | NULL       |                0 | 2013-04-30 21:25:41 | NULL    |                 1 |   NULL | NULL        | NULL     | NULL         |               1 |           NULL |
| 204 | guestNetworkForBasicZone | 97ad8dd0-3617-44fa-aa9e-e43c27e0ff79 | guestNetworkForBasicZone | Guest        | Vlan                  | NULL          | 172.30.45.1 | NULL           | Dhcp   |                   7 |                 200 |              1 | DirectPodBasedNetworkGuru | Setup |     204 |         1 |          1 | NULL | NULL | NULL      |          0 | Domain   | cs1cloud.internal | NULL           | Shared     |                0 | 2013-04-30 21:25:58 | NULL    |                 1 |   NULL | NULL        | NULL     | NULL         |               1 |           NULL |
+-----+--------------------------+--------------------------------------+--------------------------+--------------+-----------------------+---------------+-------------+----------------+--------+---------------------+---------------------+----------------+---------------------------+-------+---------+-----------+------------+------+------+-----------+------------+----------+-------------------+----------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
5 rows in set (0.00 sec)




On Oct 3, 2014, at 12:39 PM, Chiradeep Vittal <Ch...@citrix.com> wrote:

> Wonder if Daan is talking about
> https://issues.apache.org/jira/browse/CLOUDSTACK-4346
> 
> 
> As you can see from
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/h
> ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixReso
> urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
> the first check for ³untagged² should¹ve gone through, except that it goes
> through and either hits line 1025 instead.
> So, check your Œnetworks¹ table and see if the URI is correct.
> 
> 
> From:  Carlos Reátegui <cr...@gmail.com>
> Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Date:  Friday, October 3, 2014 at 12:15 PM
> To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> Subject:  Re: Can't launch VMs
> 
> 
> Thanks for having a look.  Inline...
> 
> On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
> 
>> Not sure what is a ³basic zone no security groups².
> Basic Zone type with the following Network Offering:
> DefaultSharedNetworkOffering as opposed to the default/first option
> DefaultSharedNetworkOfferingWithSGService.
> 
>> Check your vlan table to see if there has been any allocation of vlans?
> mysql> select * from vlan;
> +----+--------------------------------------+-----------------+------------
> --+---------------+-----------------------------+----------------+---------
> -------+------------+---------------------+-------------+----------+-------
> ----+
> | id | uuid                                 | vlan_id         |
> vlan_gateway | vlan_netmask  | description                 | vlan_type
> | data_center_id | network_id | physical_network_id | ip6_gateway |
> ip6_cidr | ip6_range |
> +----+--------------------------------------+-----------------+------------
> --+---------------+-----------------------------+----------------+---------
> -------+------------+---------------------+-------------+----------+-------
> ----+
> |  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
> 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
> DirectAttached |              1 |        204 |                 200 | NULL
>      | NULL     | NULL      |
> +----+--------------------------------------+-----------------+------------
> --+---------------+-----------------------------+----------------+---------
> -------+------------+---------------------+-------------+----------+-------
> ----+
> 1 row in set (0.00 sec)
> 
> 
> 
>> 
>> From: Carlos Reategui <cr...@gmail.com>>
>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <de...@cloudstack.apache.org>>,
>> "carlos@reategui.com<ma...@reategui.com>"
>> <ca...@reategui.com>>
>> Date: Thursday, October 2, 2014 at 3:48 PM
>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <de...@cloudstack.apache.org>>
>> Subject: Fwd: Can't launch VMs
>> 
>> Hi devs,
>> Daan suggested I check with you all regarding this email I sent to the
>> users list.
>> 
>> He said "the line of code that breaks expects a uri for a vlan", However
>> I
>> am using basic networking and I don't know where to add a vlan in that
>> setup.
>> He also said this was a known issue.  Hopefully one of you all knows a
>> fix.
>> 
>> This deployment had been working fine.  Originally a 4.1, upgraded to
>> 4.2.1
>> and more recently to 4.3 and 4.3.1.  It was definitely working under
>> 4.2.1
>> and I though it had been working under 4.3 as well but I am not sure now.
>> There is no problem with existing instances.  The problem is when trying
>> to
>> launch new ones.
>> 
>> Let me know what additional info would be useful.
>> 
>> thank you,
>> Carlos
>> 
>> 
>> 
>> ---------- Forwarded message ----------
>> From: Carlos Reategui <cr...@gmail.com>>
>> Date: Mon, Sep 29, 2014 at 4:53 PM
>> Subject: Can't launch VMs
>> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
>> <us...@cloudstack.apache.org>>
>> 
>> 
>> Following up on my earlier email regarding errors in my logs it appears
>> things are not as great as I thought.  Trying to launch instances is not
>> working.  Please help.
>> thanks,
>> Carlos
>> 
>> ACS: 4.3.1
>> Hosts: XenServer 6.2
>> Network: Basic Shared Network no SG
>> 
>> Things appear ok up until it tries to create the VIF.  Here are the logs:
>> 
>> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>> 
>> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>> 
>> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Created VM
>> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>> 
>> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
>> created for com.cloud.agent.api.to.DiskTO@53d6031b
>> 
>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>> 
>> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
>> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>> GetStorageStatsAnswer } }
>> 
>> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>> 
>> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
>> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>> 
>> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
>> 
>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&res
>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>> 
>> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
>> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
>> GET
>> 
>> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&res
>> ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>> 
>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
>> created for com.cloud.agent.api.to.DiskTO@194e84ba
>> 
>> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
>> [Nic:Guest-172.30.45.143-null]
>> 
>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>> java.lang.NullPointerException due to java.lang.NullPointerException
>> 
>> java.lang.NullPointerException
>> 
>>       at
>> 
>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.jav
>> a:173)
>> 
>>       at
>> 
>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixReso
>> urceBase.java:1035)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResou
>> rceBase.java:1088)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>> eBase.java:1718)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>> rver56Resource.java:59)
>> 
>>       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.run(FutureTask.java:262)
>> 
>>       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:745)
>> 
>> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>> 
>> java.lang.NullPointerException
>> 
>>       at
>> 
>> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.jav
>> a:173)
>> 
>>       at
>> 
>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixReso
>> urceBase.java:1035)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResou
>> rceBase.java:1088)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>> eBase.java:1718)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>> rver56Resource.java:59)
>> 
>>       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.run(FutureTask.java:262)
>> 
>>       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:745)
>> 
>> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>> 
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>> 
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>> 
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnect
>> ion.dispatch(XenServerConnectionPool.java:909)
>> 
>>       at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>> CitrixResourceBase.java:1462)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>> eBase.java:1800)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>> rver56Resource.java:59)
>> 
>>       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.run(FutureTask.java:262)
>> 
>>       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:745)
>> 
>> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>> 
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>> 
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>> 
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnect
>> ion.dispatch(XenServerConnectionPool.java:909)
>> 
>>       at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>> CitrixResourceBase.java:1462)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>> eBase.java:1800)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>> rver56Resource.java:59)
>> 
>>       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.run(FutureTask.java:262)
>> 
>>       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:745)
>> 
>> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>> 
>> You gave an invalid object reference.  The object may have recently been
>> deleted.  The class parameter gives the type of reference given, and the
>> handle parameter echoes the bad value given.
>> 
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>> 
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnect
>> ion.dispatch(XenServerConnectionPool.java:909)
>> 
>>       at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>> CitrixResourceBase.java:1462)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>> eBase.java:1800)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>> ResourceBase.java:545)
>> 
>>       at
>> 
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>> rver56Resource.java:59)
>> 
>>       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.run(FutureTask.java:262)
>> 
>>       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:745)
>> 
>> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>> problem
>> during startup : i-3-98-VM
>> 
>> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>> 
>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>> 
>> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","boo
>> tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"
>> minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
>> 5.7
>> 
>> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUs
>> e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5",
>> "params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-44
>> 79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.
>> VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType
>> ":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO
>> ":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Netw
>> orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"
>> url":"NetworkFilesystem://
>> 
>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60
>> e-31eebeafb217
>> 
>> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67
>> 534434d137","volumeId":124,"vmName":"i-3-
>> 98-VM
>> 
>> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xen
>> Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type"
>> :"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"
>> 172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.
>> storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0",
>> "volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pri
>> maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"
>> poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary
>> ","port":2049,"url":"NetworkFilesystem://
>> 
>> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60
>> e-31eebeafb217
>> 
>> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1
>> ed1bdfd48","volumeId":125,"vmName":"i-3-
>> 
>> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType"
>> :"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","
>> type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stora
>> geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.clo
>> udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,
>> "hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRat
>> eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816"
>> ,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","m
>> ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","bro
>> adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMa
>> xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
>> to start i-3-98-VM due to ","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>> StartAnswer }
>> }
>> 
>> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
>> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>> 
>> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
>> vm VM[User|sununxcld19] in Starting state
>> 
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>> Cmd
>> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
>> 
>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":f
>> alse,"vmName":"i-3-
>> 98-VM","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>> {
>> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>> 100011,
>> 
>> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":f
>> alse,"vmName":"i-3-
>> 98-VM","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>> 
>> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-236:ctx-234da2e1) VM does not exist on
>> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>> 
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>> 
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
>> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
>> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
>> exist","wait":0}}] }
>> 
>> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
>> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>> } }
>> 
>> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
>> supported in the network id=204
>> 
>> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>> nics
>> for network id=204 on -1
>> 
>> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>> release
>> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>> 
>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
>> resources for the vm VM[User|sununxcld19]
>> 
>> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
>> resources for the vm VM[User|sununxcld19] in Starting state
>> 
>> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
>> place VM in volume's cluster
>> 
> 
> 


Re: Can't launch VMs

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Wonder if Daan is talking about
https://issues.apache.org/jira/browse/CLOUDSTACK-4346


As you can see from
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=plugins/h
ypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixReso
urceBase.java;h=9313e5673f30e6a70f915258ee78c7e5832399d4;hb=HEAD#l1019 ,
the first check for ³untagged² should¹ve gone through, except that it goes
through and either hits line 1025 instead.
So, check your Œnetworks¹ table and see if the URI is correct.


From:  Carlos Reátegui <cr...@gmail.com>
Reply-To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
Date:  Friday, October 3, 2014 at 12:15 PM
To:  "dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
Subject:  Re: Can't launch VMs


Thanks for having a look.  Inline...

On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal
<Ch...@citrix.com> wrote:

> Not sure what is a ³basic zone no security groups².
Basic Zone type with the following Network Offering:
DefaultSharedNetworkOffering as opposed to the default/first option
DefaultSharedNetworkOfferingWithSGService.

> Check your vlan table to see if there has been any allocation of vlans?
mysql> select * from vlan;
+----+--------------------------------------+-----------------+------------
--+---------------+-----------------------------+----------------+---------
-------+------------+---------------------+-------------+----------+-------
----+
| id | uuid                                 | vlan_id         |
vlan_gateway | vlan_netmask  | description                 | vlan_type
 | data_center_id | network_id | physical_network_id | ip6_gateway |
ip6_cidr | ip6_range |
+----+--------------------------------------+-----------------+------------
--+---------------+-----------------------------+----------------+---------
-------+------------+---------------------+-------------+----------+-------
----+
|  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged |
172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 |
DirectAttached |              1 |        204 |                 200 | NULL
      | NULL     | NULL      |
+----+--------------------------------------+-----------------+------------
--+---------------+-----------------------------+----------------+---------
-------+------------+---------------------+-------------+----------+-------
----+
1 row in set (0.00 sec)



> 
> From: Carlos Reategui <cr...@gmail.com>>
> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
><de...@cloudstack.apache.org>>,
>"carlos@reategui.com<ma...@reategui.com>"
><ca...@reategui.com>>
> Date: Thursday, October 2, 2014 at 3:48 PM
> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
><de...@cloudstack.apache.org>>
> Subject: Fwd: Can't launch VMs
> 
> Hi devs,
> Daan suggested I check with you all regarding this email I sent to the
> users list.
> 
> He said "the line of code that breaks expects a uri for a vlan", However
>I
> am using basic networking and I don't know where to add a vlan in that
>setup.
> He also said this was a known issue.  Hopefully one of you all knows a
>fix.
> 
> This deployment had been working fine.  Originally a 4.1, upgraded to
>4.2.1
> and more recently to 4.3 and 4.3.1.  It was definitely working under
>4.2.1
> and I though it had been working under 4.3 as well but I am not sure now.
> There is no problem with existing instances.  The problem is when trying
>to
> launch new ones.
> 
> Let me know what additional info would be useful.
> 
> thank you,
> Carlos
> 
> 
> 
> ---------- Forwarded message ----------
> From: Carlos Reategui <cr...@gmail.com>>
> Date: Mon, Sep 29, 2014 at 4:53 PM
> Subject: Can't launch VMs
> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>"
><us...@cloudstack.apache.org>>
> 
> 
> Following up on my earlier email regarding errors in my logs it appears
> things are not as great as I thought.  Trying to launch instances is not
> working.  Please help.
> thanks,
> Carlos
> 
> ACS: 4.3.1
> Hosts: XenServer 6.2
> Network: Basic Shared Network no SG
> 
> Things appear ok up until it tries to create the VIF.  Here are the logs:
> 
> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
> 
> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
> 
> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Created VM
> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
> 
> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
> created for com.cloud.agent.api.to.DiskTO@53d6031b
> 
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
> 
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
> GetStorageStatsAnswer } }
> 
> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
> 
> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
> created for com.cloud.agent.api.to.DiskTO@7fbb227a
> 
> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
> 
>command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&res
>ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
> 
> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
> GET
> 
>command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&res
>ponse=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
> 
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
> created for com.cloud.agent.api.to.DiskTO@194e84ba
> 
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
> [Nic:Guest-172.30.45.143-null]
> 
> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> java.lang.NullPointerException due to java.lang.NullPointerException
> 
> java.lang.NullPointerException
> 
>        at
> 
>com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.jav
>a:173)
> 
>        at
> 
>com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixReso
>urceBase.java:1035)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResou
>rceBase.java:1088)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>eBase.java:1718)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>ResourceBase.java:545)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>rver56Resource.java:59)
> 
>        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.run(FutureTask.java:262)
> 
>        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:745)
> 
> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
> 
> java.lang.NullPointerException
> 
>        at
> 
>com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.jav
>a:173)
> 
>        at
> 
>com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixReso
>urceBase.java:1035)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResou
>rceBase.java:1088)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>eBase.java:1718)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>ResourceBase.java:545)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>rver56Resource.java:59)
> 
>        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.run(FutureTask.java:262)
> 
>        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:745)
> 
> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
> 
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
> 
>        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> 
>        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnect
>ion.dispatch(XenServerConnectionPool.java:909)
> 
>        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:1462)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>eBase.java:1800)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>ResourceBase.java:545)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>rver56Resource.java:59)
> 
>        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.run(FutureTask.java:262)
> 
>        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:745)
> 
> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
> 
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
> 
>        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> 
>        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnect
>ion.dispatch(XenServerConnectionPool.java:909)
> 
>        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:1462)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>eBase.java:1800)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>ResourceBase.java:545)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>rver56Resource.java:59)
> 
>        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.run(FutureTask.java:262)
> 
>        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:745)
> 
> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
> 
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
> 
>        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> 
>        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnect
>ion.dispatch(XenServerConnectionPool.java:909)
> 
>        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(
>CitrixResourceBase.java:1462)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourc
>eBase.java:1800)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(Citrix
>ResourceBase.java:545)
> 
>        at
> 
>com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenSe
>rver56Resource.java:59)
> 
>        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.run(FutureTask.java:262)
> 
>        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:745)
> 
> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected
>problem
> during startup : i-3-98-VM
> 
> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
> 
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> 
>[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","boo
>tloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"
>minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
> 5.7
> 
>(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUs
>e":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5",
>"params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-44
>79-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.
>VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType
>":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO
>":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"Netw
>orkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"
>url":"NetworkFilesystem://
> 
>172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60
>e-31eebeafb217
> 
>"}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67
>534434d137","volumeId":124,"vmName":"i-3-
> 98-VM
> 
>","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"Xen
>Server"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type"
>:"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"
>172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.
>storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0",
>"volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pri
>maryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"
>poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary
>","port":2049,"url":"NetworkFilesystem://
> 
>172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60
>e-31eebeafb217
> 
>"}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1
>ed1bdfd48","volumeId":125,"vmName":"i-3-
> 
>98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType"
>:"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","
>type":"DATADISK","_details":{"managed":"false","storagePort":"2049","stora
>geHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.clo
>udstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,
>"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRat
>eMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816"
>,"ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","m
>ac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","bro
>adcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMa
>xLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
> to start i-3-98-VM due to ","wait":0}}] }
> 
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
>StartAnswer }
> }
> 
> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
> Host[-2-Routing] due to Unable to start i-3-98-VM due to
> 
> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
> vm VM[User|sununxcld19] in Starting state
> 
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  {
>Cmd
> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
> 
>[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":f
>alse,"vmName":"i-3-
> 98-VM","wait":0}}] }
> 
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:
>{
> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags:
>100011,
> 
>[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":f
>alse,"vmName":"i-3-
> 98-VM","wait":0}}] }
> 
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
> 
> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-236:ctx-234da2e1) VM does not exist on
> XenServer63befa52-4c03-460a-9557-9100d51cedaf
> 
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
> 
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
> exist","wait":0}}] }
> 
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer
>} }
> 
> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
> supported in the network id=204
> 
> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of
>nics
> for network id=204 on -1
> 
> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to
>release
> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
> 
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
> resources for the vm VM[User|sununxcld19]
> 
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
> resources for the vm VM[User|sununxcld19] in Starting state
> 
> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
> place VM in volume's cluster
> 



Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Thanks for having a look.  Inline...

On Oct 3, 2014, at 11:38 AM, Chiradeep Vittal <Ch...@citrix.com> wrote:

> Not sure what is a “basic zone no security groups”.
Basic Zone type with the following Network Offering: DefaultSharedNetworkOffering as opposed to the default/first option DefaultSharedNetworkOfferingWithSGService.

> Check your vlan table to see if there has been any allocation of vlans?
mysql> select * from vlan;
+----+--------------------------------------+-----------------+--------------+---------------+-----------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
| id | uuid                                 | vlan_id         | vlan_gateway | vlan_netmask  | description                 | vlan_type      | data_center_id | network_id | physical_network_id | ip6_gateway | ip6_cidr | ip6_range |
+----+--------------------------------------+-----------------+--------------+---------------+-----------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
|  1 | 5ebc3075-2946-4be4-9e7a-f32a86e7edfc | vlan://untagged | 172.30.45.1  | 255.255.255.0 | 172.30.45.100-172.30.45.174 | DirectAttached |              1 |        204 |                 200 | NULL        | NULL     | NULL      |
+----+--------------------------------------+-----------------+--------------+---------------+-----------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
1 row in set (0.00 sec)



> 
> From: Carlos Reategui <cr...@gmail.com>>
> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>, "carlos@reategui.com<ma...@reategui.com>" <ca...@reategui.com>>
> Date: Thursday, October 2, 2014 at 3:48 PM
> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
> Subject: Fwd: Can't launch VMs
> 
> Hi devs,
> Daan suggested I check with you all regarding this email I sent to the
> users list.
> 
> He said "the line of code that breaks expects a uri for a vlan", However I
> am using basic networking and I don't know where to add a vlan in that setup.
> He also said this was a known issue.  Hopefully one of you all knows a fix.
> 
> This deployment had been working fine.  Originally a 4.1, upgraded to 4.2.1
> and more recently to 4.3 and 4.3.1.  It was definitely working under 4.2.1
> and I though it had been working under 4.3 as well but I am not sure now.
> There is no problem with existing instances.  The problem is when trying to
> launch new ones.
> 
> Let me know what additional info would be useful.
> 
> thank you,
> Carlos
> 
> 
> 
> ---------- Forwarded message ----------
> From: Carlos Reategui <cr...@gmail.com>>
> Date: Mon, Sep 29, 2014 at 4:53 PM
> Subject: Can't launch VMs
> To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>" <us...@cloudstack.apache.org>>
> 
> 
> Following up on my earlier email regarding errors in my logs it appears
> things are not as great as I thought.  Trying to launch instances is not
> working.  Please help.
> thanks,
> Carlos
> 
> ACS: 4.3.1
> Hosts: XenServer 6.2
> Network: Basic Shared Network no SG
> 
> Things appear ok up until it tries to create the VIF.  Here are the logs:
> 
> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
> 
> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
> 
> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Created VM
> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
> 
> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
> created for com.cloud.agent.api.to.DiskTO@53d6031b
> 
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
> 
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
> GetStorageStatsAnswer } }
> 
> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
> 
> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
> created for com.cloud.agent.api.to.DiskTO@7fbb227a
> 
> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
> 
> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
> GET
> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
> 
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
> created for com.cloud.agent.api.to.DiskTO@194e84ba
> 
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
> [Nic:Guest-172.30.45.143-null]
> 
> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> java.lang.NullPointerException due to java.lang.NullPointerException
> 
> java.lang.NullPointerException
> 
>        at
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
> 
>        at
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> 
>        at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> 
>        at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 
>        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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 
>        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
> 
> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
> 
> java.lang.NullPointerException
> 
>        at
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
> 
>        at
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> 
>        at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> 
>        at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 
>        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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 
>        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
> 
> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
> 
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
> 
>        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> 
>        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> 
>        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> 
>        at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> 
>        at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 
>        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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 
>        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
> 
> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
> 
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
> 
>        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> 
>        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> 
>        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> 
>        at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> 
>        at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 
>        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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 
>        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
> 
> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
> 
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
> 
>        at com.xensource.xenapi.Types.checkResponse(Types.java:209)
> 
>        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> 
>        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)
> 
>        at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
> 
>        at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> 
>        at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> 
>        at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 
>        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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 
>        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
> 
> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected problem
> during startup : i-3-98-VM
> 
> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
> 
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
> 5.7
> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5","params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4479-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67534434d137","volumeId":124,"vmName":"i-3-
> 98-VM
> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","volumeId":125,"vmName":"i-3-
> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType":"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","type":"DATADISK","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816","ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","mac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","broadcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMaxLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
> to start i-3-98-VM due to ","wait":0}}] }
> 
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StartAnswer }
> }
> 
> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
> Host[-2-Routing] due to Unable to start i-3-98-VM due to
> 
> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
> vm VM[User|sununxcld19] in Starting state
> 
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  { Cmd
> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
> 98-VM","wait":0}}] }
> 
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:  {
> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
> 98-VM","wait":0}}] }
> 
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
> 
> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-236:ctx-234da2e1) VM does not exist on
> XenServer63befa52-4c03-460a-9557-9100d51cedaf
> 
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
> 
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
> exist","wait":0}}] }
> 
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer } }
> 
> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
> supported in the network id=204
> 
> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of nics
> for network id=204 on -1
> 
> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to release
> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
> 
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
> resources for the vm VM[User|sununxcld19]
> 
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
> resources for the vm VM[User|sununxcld19] in Starting state
> 
> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
> place VM in volume's cluster
> 


Re: Can't launch VMs

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Not sure what is a “basic zone no security groups”. Check your vlan table to see if there has been any allocation of vlans?

From: Carlos Reategui <cr...@gmail.com>>
Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>, "carlos@reategui.com<ma...@reategui.com>" <ca...@reategui.com>>
Date: Thursday, October 2, 2014 at 3:48 PM
To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
Subject: Fwd: Can't launch VMs

Hi devs,
Daan suggested I check with you all regarding this email I sent to the
users list.

He said "the line of code that breaks expects a uri for a vlan", However I
am using basic networking and I don't know where to add a vlan in that setup.
He also said this was a known issue.  Hopefully one of you all knows a fix.

This deployment had been working fine.  Originally a 4.1, upgraded to 4.2.1
and more recently to 4.3 and 4.3.1.  It was definitely working under 4.2.1
and I though it had been working under 4.3 as well but I am not sure now.
There is no problem with existing instances.  The problem is when trying to
launch new ones.

Let me know what additional info would be useful.

thank you,
Carlos



---------- Forwarded message ----------
From: Carlos Reategui <cr...@gmail.com>>
Date: Mon, Sep 29, 2014 at 4:53 PM
Subject: Can't launch VMs
To: "users@cloudstack.apache.org<ma...@cloudstack.apache.org>" <us...@cloudstack.apache.org>>


Following up on my earlier email regarding errors in my logs it appears
things are not as great as I thought.  Trying to launch instances is not
working.  Please help.
thanks,
Carlos

ACS: 4.3.1
Hosts: XenServer 6.2
Network: Basic Shared Network no SG

Things appear ok up until it tries to create the VIF.  Here are the logs:

2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request

2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.

2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Created VM
71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM

2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
created for com.cloud.agent.api.to.DiskTO@53d6031b

2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:

2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
(StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
GetStorageStatsAnswer } }

2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request

2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
created for com.cloud.agent.api.to.DiskTO@7fbb227a

2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
(catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658

2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
(catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
GET
command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658

2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
created for com.cloud.agent.api.to.DiskTO@194e84ba

2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
[Nic:Guest-172.30.45.143-null]

2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
java.lang.NullPointerException due to java.lang.NullPointerException

java.lang.NullPointerException

        at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)

        at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to

java.lang.NullPointerException

        at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)

        at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected problem
during startup : i-3-98-VM

2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:

2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
5.7
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5","params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4479-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
"}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67534434d137","volumeId":124,"vmName":"i-3-
98-VM
","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
"}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","volumeId":125,"vmName":"i-3-
98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType":"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","type":"DATADISK","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816","ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","mac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","broadcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMaxLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
to start i-3-98-VM due to ","wait":0}}] }

2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StartAnswer }
}

2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
Host[-2-Routing] due to Unable to start i-3-98-VM due to

2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
vm VM[User|sununxcld19] in Starting state

2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  { Cmd
, MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
98-VM","wait":0}}] }

2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:  {
Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
98-VM","wait":0}}] }

2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request

2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-236:ctx-234da2e1) VM does not exist on
XenServer63befa52-4c03-460a-9557-9100d51cedaf

2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:

2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
exist","wait":0}}] }

2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer } }

2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
supported in the network id=204

2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of nics
for network id=204 on -1

2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to release
NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null

2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
resources for the vm VM[User|sununxcld19]

2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
resources for the vm VM[User|sununxcld19] in Starting state

2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
place VM in volume's cluster


Fwd: Can't launch VMs

Posted by Carlos Reategui <cr...@gmail.com>.
Hi devs,
Daan suggested I check with you all regarding this email I sent to the
users list.

He said "the line of code that breaks expects a uri for a vlan", However I
am using basic networking and I don't know where to add a vlan in that setup.
He also said this was a known issue.  Hopefully one of you all knows a fix.

This deployment had been working fine.  Originally a 4.1, upgraded to 4.2.1
and more recently to 4.3 and 4.3.1.  It was definitely working under 4.2.1
and I though it had been working under 4.3 as well but I am not sure now.
There is no problem with existing instances.  The problem is when trying to
launch new ones.

Let me know what additional info would be useful.

thank you,
Carlos



---------- Forwarded message ----------
From: Carlos Reategui <cr...@gmail.com>
Date: Mon, Sep 29, 2014 at 4:53 PM
Subject: Can't launch VMs
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>


Following up on my earlier email regarding errors in my logs it appears
things are not as great as I thought.  Trying to launch instances is not
working.  Please help.
thanks,
Carlos

ACS: 4.3.1
Hosts: XenServer 6.2
Network: Basic Shared Network no SG

Things appear ok up until it tries to create the VIF.  Here are the logs:

2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request

2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.

2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Created VM
71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM

2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
created for com.cloud.agent.api.to.DiskTO@53d6031b

2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:

2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
(StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
GetStorageStatsAnswer } }

2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request

2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
created for com.cloud.agent.api.to.DiskTO@7fbb227a

2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
(catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658

2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
(catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
GET
command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658

2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
created for com.cloud.agent.api.to.DiskTO@194e84ba

2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
[Nic:Guest-172.30.45.143-null]

2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
java.lang.NullPointerException due to java.lang.NullPointerException

java.lang.NullPointerException

        at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)

        at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to

java.lang.NullPointerException

        at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)

        at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to

You gave an invalid object reference.  The object may have recently been
deleted.  The class parameter gives the type of reference given, and the
handle parameter echoes the bad value given.

        at com.xensource.xenapi.Types.checkResponse(Types.java:209)

        at com.xensource.xenapi.Connection.dispatch(Connection.java:368)

        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)

        at com.xensource.xenapi.VBD.unplug(VBD.java:1059)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)

        at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)

        at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)

        at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)

        at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)

        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
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)

2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected problem
during startup : i-3-98-VM

2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:

2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
(DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
5.7
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5","params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4479-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
"}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67534434d137","volumeId":124,"vmName":"i-3-
98-VM
","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
"}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","volumeId":125,"vmName":"i-3-
98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType":"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","type":"DATADISK","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816","ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","mac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","broadcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMaxLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
to start i-3-98-VM due to ","wait":0}}] }

2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StartAnswer }
}

2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
Host[-2-Routing] due to Unable to start i-3-98-VM due to

2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
vm VM[User|sununxcld19] in Starting state

2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  { Cmd
, MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
98-VM","wait":0}}] }

2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:  {
Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
98-VM","wait":0}}] }

2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request

2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-236:ctx-234da2e1) VM does not exist on
XenServer63befa52-4c03-460a-9557-9100d51cedaf

2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:

2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
(DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
exist","wait":0}}] }

2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer } }

2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
supported in the network id=204

2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of nics
for network id=204 on -1

2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to release
NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null

2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
resources for the vm VM[User|sununxcld19]

2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
resources for the vm VM[User|sununxcld19] in Starting state

2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
place VM in volume's cluster

Re: [RESOLVED] Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Hi All,

Thanks to Chiradeep on the dev list I am back in business.  For anyone stuck with the same problem I have opened https://issues.apache.org/jira/browse/CLOUDSTACK-7674

To resolve the issue you must edit the db and set the broadcast_uri in the networks table for your Guest network to vlan://untagged

Cheers,
Carlos


On Oct 2, 2014, at 12:22 PM, Carlos Reátegui <cr...@gmail.com> wrote:

> Hi Ilya 
> I understand that. However the problem is I already have this environment deployed and it was working fine but now my users can't launch new instances because apparently there is no vlan configured. I would like to get this working again. 
> Thanks
> Carlos
> 
> 
> 
>> On Oct 2, 2014, at 12:02 PM, ilya musayev <il...@gmail.com> wrote:
>> 
>> Carlos,
>> 
>> VLAN tagging is one of the main reasons why you want to use advanced zone. Thats the difference between basic and advanced zones.
>> 
>> Regards
>> ilya
>> 
>> 
>>> On 10/2/14, 10:04 AM, Carlos Reátegui wrote:
>>> I don't see anywhere in the basic network wizard where I can add a vlan tag. I see it in the advanced network wizard.
>>> 
>>> Do you know where in the DB I can add the tag to get my system back online? Or can you point me to the jira.
>>> 
>>> Thank you
>>> Carlos
>>> 
>>> 
>>> 
>>>> On Oct 2, 2014, at 8:30 AM, Daan Hoogland <da...@gmail.com> wrote:
>>>> 
>>>> The add zone wizard provides a field during physical network creation. Not
>>>> sure if that answers your question. Not in case you are using the api of
>>>> course.
>>>> 
>>>>> On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui <cr...@gmail.com> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>>> On Oct 2, 2014, at 12:57 AM, Daan Hoogland <da...@gmail.com>
>>>>>> wrote:
>>>>>> 
>>>>>> On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
>>>>>> wrote:
>>>>>> 
>>>>>>> Daan,
>>>>>>> Any chance you got to look at this?  I am still confused why for a basic
>>>>>>> network with no vlans the code is expecting a uri for a vlan.
>>>>>>> thanks
>>>>>> ​
>>>>>> It is a known issue, can you do your setup with specifying a vlan? I
>>>>>> suspect this being the issue. It won't use the vlan but it needs a value.
>>>>> Where do I do that?
>>>>> 
>>>>>> Needs fixing but I think it will work with this work around. I am not
>>>>> sure
>>>>>> what the most solid fix would be and that would be more a discussion for
>>>>>> dev@...
>>>>>> 
>>>>>> You could think of inserting a default value when doing basic networking
>>>>> or
>>>>>> a check on networking type when creating the router/instances. Both seem
>>>>>> quirky, though.
>>>>>> 
>>>>>> regards,
>>>>>> --
>>>>>> Daan
>>>> 
>>>> 
>>>> -- 
>>>> Daan
>> 


Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Hi Ilya 
I understand that. However the problem is I already have this environment deployed and it was working fine but now my users can't launch new instances because apparently there is no vlan configured. I would like to get this working again. 
Thanks
Carlos



> On Oct 2, 2014, at 12:02 PM, ilya musayev <il...@gmail.com> wrote:
> 
> Carlos,
> 
> VLAN tagging is one of the main reasons why you want to use advanced zone. Thats the difference between basic and advanced zones.
> 
> Regards
> ilya
> 
> 
>> On 10/2/14, 10:04 AM, Carlos Reátegui wrote:
>> I don't see anywhere in the basic network wizard where I can add a vlan tag. I see it in the advanced network wizard.
>> 
>> Do you know where in the DB I can add the tag to get my system back online? Or can you point me to the jira.
>> 
>> Thank you
>> Carlos
>> 
>> 
>> 
>>> On Oct 2, 2014, at 8:30 AM, Daan Hoogland <da...@gmail.com> wrote:
>>> 
>>> The add zone wizard provides a field during physical network creation. Not
>>> sure if that answers your question. Not in case you are using the api of
>>> course.
>>> 
>>>> On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui <cr...@gmail.com> wrote:
>>>> 
>>>> 
>>>> 
>>>>>> On Oct 2, 2014, at 12:57 AM, Daan Hoogland <da...@gmail.com>
>>>>> wrote:
>>>>> 
>>>>> On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
>>>>> wrote:
>>>>> 
>>>>>> Daan,
>>>>>> Any chance you got to look at this?  I am still confused why for a basic
>>>>>> network with no vlans the code is expecting a uri for a vlan.
>>>>>> thanks
>>>>> ​
>>>>> It is a known issue, can you do your setup with specifying a vlan? I
>>>>> suspect this being the issue. It won't use the vlan but it needs a value.
>>>> Where do I do that?
>>>> 
>>>>> Needs fixing but I think it will work with this work around. I am not
>>>> sure
>>>>> what the most solid fix would be and that would be more a discussion for
>>>>> dev@...
>>>>> 
>>>>> You could think of inserting a default value when doing basic networking
>>>> or
>>>>> a check on networking type when creating the router/instances. Both seem
>>>>> quirky, though.
>>>>> 
>>>>> regards,
>>>>> --
>>>>> Daan
>>> 
>>> 
>>> -- 
>>> Daan
> 

Re: Can't launch VMs

Posted by ilya musayev <il...@gmail.com>.
Carlos,

VLAN tagging is one of the main reasons why you want to use advanced 
zone. Thats the difference between basic and advanced zones.

Regards
ilya


On 10/2/14, 10:04 AM, Carlos Reátegui wrote:
> I don't see anywhere in the basic network wizard where I can add a vlan tag. I see it in the advanced network wizard.
>
> Do you know where in the DB I can add the tag to get my system back online? Or can you point me to the jira.
>
> Thank you
> Carlos
>
>
>
>> On Oct 2, 2014, at 8:30 AM, Daan Hoogland <da...@gmail.com> wrote:
>>
>> The add zone wizard provides a field during physical network creation. Not
>> sure if that answers your question. Not in case you are using the api of
>> course.
>>
>>> On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui <cr...@gmail.com> wrote:
>>>
>>>
>>>
>>>>> On Oct 2, 2014, at 12:57 AM, Daan Hoogland <da...@gmail.com>
>>>> wrote:
>>>>
>>>> On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
>>>> wrote:
>>>>
>>>>> Daan,
>>>>> Any chance you got to look at this?  I am still confused why for a basic
>>>>> network with no vlans the code is expecting a uri for a vlan.
>>>>> thanks
>>>> ​
>>>> It is a known issue, can you do your setup with specifying a vlan? I
>>>> suspect this being the issue. It won't use the vlan but it needs a value.
>>> Where do I do that?
>>>
>>>> Needs fixing but I think it will work with this work around. I am not
>>> sure
>>>> what the most solid fix would be and that would be more a discussion for
>>>> dev@...
>>>>
>>>> You could think of inserting a default value when doing basic networking
>>> or
>>>> a check on networking type when creating the router/instances. Both seem
>>>> quirky, though.
>>>>
>>>> regards,
>>>> --
>>>> Daan
>>
>>
>> -- 
>> Daan


Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
I don't see anywhere in the basic network wizard where I can add a vlan tag. I see it in the advanced network wizard.

Do you know where in the DB I can add the tag to get my system back online? Or can you point me to the jira. 

Thank you
Carlos



> On Oct 2, 2014, at 8:30 AM, Daan Hoogland <da...@gmail.com> wrote:
> 
> The add zone wizard provides a field during physical network creation. Not
> sure if that answers your question. Not in case you are using the api of
> course.
> 
>> On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui <cr...@gmail.com> wrote:
>> 
>> 
>> 
>>>> On Oct 2, 2014, at 12:57 AM, Daan Hoogland <da...@gmail.com>
>>> wrote:
>>> 
>>> On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
>>> wrote:
>>> 
>>>> Daan,
>>>> Any chance you got to look at this?  I am still confused why for a basic
>>>> network with no vlans the code is expecting a uri for a vlan.
>>>> thanks
>>> ​
>>> It is a known issue, can you do your setup with specifying a vlan? I
>>> suspect this being the issue. It won't use the vlan but it needs a value.
>> 
>> Where do I do that?
>> 
>>> Needs fixing but I think it will work with this work around. I am not
>> sure
>>> what the most solid fix would be and that would be more a discussion for
>>> dev@...
>>> 
>>> You could think of inserting a default value when doing basic networking
>> or
>>> a check on networking type when creating the router/instances. Both seem
>>> quirky, though.
>>> 
>>> regards,
>>> --
>>> Daan
> 
> 
> 
> -- 
> Daan

Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
The add zone wizard provides a field during physical network creation. Not
sure if that answers your question. Not in case you are using the api of
course.

On Thu, Oct 2, 2014 at 3:46 PM, Carlos Reátegui <cr...@gmail.com> wrote:

>
>
> > On Oct 2, 2014, at 12:57 AM, Daan Hoogland <da...@gmail.com>
> wrote:
> >
> > On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
> > wrote:
> >
> >> Daan,
> >> Any chance you got to look at this?  I am still confused why for a basic
> >> network with no vlans the code is expecting a uri for a vlan.
> >> thanks
> > ​
> > It is a known issue, can you do your setup with specifying a vlan? I
> > suspect this being the issue. It won't use the vlan but it needs a value.
>
> Where do I do that?
>
> > Needs fixing but I think it will work with this work around. I am not
> sure
> > what the most solid fix would be and that would be more a discussion for
> > dev@...
> >
> > You could think of inserting a default value when doing basic networking
> or
> > a check on networking type when creating the router/instances. Both seem
> > quirky, though.
> >
> > regards,
> > --
> > Daan
>



-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.

> On Oct 2, 2014, at 12:57 AM, Daan Hoogland <da...@gmail.com> wrote:
> 
> On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
> wrote:
> 
>> Daan,
>> Any chance you got to look at this?  I am still confused why for a basic
>> network with no vlans the code is expecting a uri for a vlan.
>> thanks
> ​
> It is a known issue, can you do your setup with specifying a vlan? I
> suspect this being the issue. It won't use the vlan but it needs a value.

Where do I do that?

> Needs fixing but I think it will work with this work around. I am not sure
> what the most solid fix would be and that would be more a discussion for
> dev@...
> 
> You could think of inserting a default value when doing basic networking or
> a check on networking type when creating the router/instances. Both seem
> quirky, though.
> 
> regards,
> -- 
> Daan

Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
On Thu, Oct 2, 2014 at 12:29 AM, Carlos Reátegui <cr...@gmail.com>
wrote:

> Daan,
> Any chance you got to look at this?  I am still confused why for a basic
> network with no vlans the code is expecting a uri for a vlan.
> thanks
>
​
It is a known issue, can you do your setup with specifying a vlan? I
suspect this being the issue. It won't use the vlan but it needs a value.
Needs fixing but I think it will work with this work around. I am not sure
what the most solid fix would be and that would be more a discussion for
dev@...

You could think of inserting a default value when doing basic networking or
a check on networking type when creating the router/instances. Both seem
quirky, though.

regards,
-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <cr...@gmail.com>.
Daan,
Any chance you got to look at this?  I am still confused why for a basic network with no vlans the code is expecting a uri for a vlan.
thanks
Carlos


On Sep 30, 2014, at 11:37 AM, Carlos Reategui <ca...@reategui.com> wrote:

> ok.  I see. Although wouldn't it be easier to query the DB based on what it is looking for to see what is missing?
> 
> When I originally set it up, I did not us the initial wizard.  Instead I created it from "Infrastructure->Zones->Add Zone" and then following:
> 1) Zone Type:
> Basic Network
> 
> 2) Setup Zone:
> fill in values for DNS
> Hypervisor: ZenServer
> Network Offering: DefaultSharedNetworkOffering
> Network Domain: blank
> Dedicated: NO
> LocalStorageEnabled: YES (I do option 1 from the warning -- start zone in disabled state and add primary storage) 
> 
> 3) Setup Network
> POD:
> Physical Network: xapi1 (Management and Guest) did not drag storage in.
> GUEST TRAFFIC:
>  *Reserved system gateway: 172.30.45.1
>  *Reserved system netmask: 255.255.255.0
>  *Start Reserved system IP: 172.30.45.50
>  End Reserved system IP: 172.30.45.80
> 
>  Guest Gateway: 172.30.45.1
>  Guest Netmask: 255.255.255.0
>  Guest start IP: 172.30.45.100
>  Guest end IP: 172.30.45.250
>   
> 4) Add Resources:
> CLUSTER:
> Hypervisor: Xenserver
> HOST:
> add the xenserver pool master info
> 
> 5) Launch
> SECONDARY STORAGE:
> Add NFS storage
> 
> Launch zone disabled
> 
> The go to "Infrastructure->Primary Storage(view all)->Add Primary Storage" and add primary NFS storage.
> 
> This was working fine previously.
> 
> 
> 
> 
> On Tue, Sep 30, 2014 at 10:19 AM, Daan Hoogland <da...@gmail.com> wrote:
> Carlos, the line of code that breaks expects a uri for a vlan. That is why
> I want more information from you. I can not judge whether the code is
> broken and should have dealt with the nullpointer or whether the
> configuration is incorrect. What are your guest/management/storage
> networks? what are the cidrs and ip-ranges you chose?
> 
> On Tue, Sep 30, 2014 at 4:41 PM, Carlos Reátegui <ca...@reategui.com>
> wrote:
> 
> > Daan,
> > Thanks for having a look
> >
> > On Sep 30, 2014, at 2:16 AM, Daan Hoogland <da...@gmail.com>
> > wrote:
> >
> > >> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> > >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> > >> java.lang.NullPointerException due to java.lang.NullPointerException
> > >>
> > >> java.lang.NullPointerException
> > >>
> > >>        at
> > >>
> > >
> > com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
> > >>
> > >>        at
> > >>
> > com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> > >>
> > >>        at
> > >>
> > >
> > com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
> > >>
> > > ​...​
> > >
> > > ​Can you describe how you set up your network? Which cidrs/network
> > > types/vlans/ etc?​
> > >
> >
> > This is a basic network.  No security groups.  No vlans.
> >
> > ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2
> >
> > > --
> > > Daan
> >
> >
> 
> 
> --
> Daan
> 


Re: Can't launch VMs

Posted by Carlos Reategui <ca...@reategui.com>.
ok.  I see. Although wouldn't it be easier to query the DB based on what it
is looking for to see what is missing?

When I originally set it up, I did not us the initial wizard.  Instead I
created it from "Infrastructure->Zones->Add Zone" and then following:
1) Zone Type:
Basic Network

2) Setup Zone:
fill in values for DNS
Hypervisor: ZenServer
Network Offering: DefaultSharedNetworkOffering
Network Domain: blank
Dedicated: NO
LocalStorageEnabled: YES (I do option 1 from the warning -- start zone in
disabled state and add primary storage)

3) Setup Network
POD:
Physical Network: xapi1 (Management and Guest) did not drag storage in.
GUEST TRAFFIC:
 *Reserved system gateway: 172.30.45.1
 *Reserved system netmask: 255.255.255.0
 *Start Reserved system IP: 172.30.45.50
 End Reserved system IP: 172.30.45.80

 Guest Gateway: 172.30.45.1
 Guest Netmask: 255.255.255.0
 Guest start IP: 172.30.45.100
 Guest end IP: 172.30.45.250

4) Add Resources:
CLUSTER:
Hypervisor: Xenserver
HOST:
add the xenserver pool master info

5) Launch
SECONDARY STORAGE:
Add NFS storage

Launch zone disabled

The go to "Infrastructure->Primary Storage(view all)->Add Primary Storage"
and add primary NFS storage.

This was working fine previously.




On Tue, Sep 30, 2014 at 10:19 AM, Daan Hoogland <da...@gmail.com>
wrote:

> Carlos, the line of code that breaks expects a uri for a vlan. That is why
> I want more information from you. I can not judge whether the code is
> broken and should have dealt with the nullpointer or whether the
> configuration is incorrect. What are your guest/management/storage
> networks? what are the cidrs and ip-ranges you chose?
>
> On Tue, Sep 30, 2014 at 4:41 PM, Carlos Reátegui <ca...@reategui.com>
> wrote:
>
> > Daan,
> > Thanks for having a look
> >
> > On Sep 30, 2014, at 2:16 AM, Daan Hoogland <da...@gmail.com>
> > wrote:
> >
> > >> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> > >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> > >> java.lang.NullPointerException due to java.lang.NullPointerException
> > >>
> > >> java.lang.NullPointerException
> > >>
> > >>        at
> > >>
> > >
> >
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
> > >>
> > >>        at
> > >>
> >
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> > >>
> > >>        at
> > >>
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
> > >>
> > > ​...​
> > >
> > > ​Can you describe how you set up your network? Which cidrs/network
> > > types/vlans/ etc?​
> > >
> >
> > This is a basic network.  No security groups.  No vlans.
> >
> > ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2
> >
> > > --
> > > Daan
> >
> >
>
>
> --
> Daan
>

Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
Carlos, the line of code that breaks expects a uri for a vlan. That is why
I want more information from you. I can not judge whether the code is
broken and should have dealt with the nullpointer or whether the
configuration is incorrect. What are your guest/management/storage
networks? what are the cidrs and ip-ranges you chose?

On Tue, Sep 30, 2014 at 4:41 PM, Carlos Reátegui <ca...@reategui.com>
wrote:

> Daan,
> Thanks for having a look
>
> On Sep 30, 2014, at 2:16 AM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> >> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> >> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> >> java.lang.NullPointerException due to java.lang.NullPointerException
> >>
> >> java.lang.NullPointerException
> >>
> >>        at
> >>
> >
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
> >>
> >>        at
> >>
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
> >>
> >>        at
> >>
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
> >>
> > ​...​
> >
> > ​Can you describe how you set up your network? Which cidrs/network
> > types/vlans/ etc?​
> >
>
> This is a basic network.  No security groups.  No vlans.
>
> ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2
>
> > --
> > Daan
>
>


-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reátegui <ca...@reategui.com>.
Daan,
Thanks for having a look

On Sep 30, 2014, at 2:16 AM, Daan Hoogland <da...@gmail.com> wrote:

>> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
>> java.lang.NullPointerException due to java.lang.NullPointerException
>> 
>> java.lang.NullPointerException
>> 
>>        at
>> 
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
>> 
>>        at
>> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
>> 
>>        at
>> 
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
>> 
> ​...​
> 
> ​Can you describe how you set up your network? Which cidrs/network
> types/vlans/ etc?​
> 

This is a basic network.  No security groups.  No vlans.

ACS: 4.3.1 (On ubuntu 12.04) + XS 6.2

> -- 
> Daan


Re: Can't launch VMs

Posted by Daan Hoogland <da...@gmail.com>.
Carlos,

On Tue, Sep 30, 2014 at 2:23 AM, Carlos Reategui <cr...@gmail.com>
wrote:
​...​


> On Mon, Sep 29, 2014 at 4:53 PM, Carlos Reategui <cr...@gmail.com>
> wrote:
>
> > Following up on my earlier email regarding errors in my logs it appears
>
​I saw that one and will examine it later butone thing I noticed here​
​...​

> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> java.lang.NullPointerException due to java.lang.NullPointerException
>
> java.lang.NullPointerException
>
>         at
>
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
>
>         at
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
>
>         at
>
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
>
​...​

​Can you describe how you set up your network? Which cidrs/network
types/vlans/ etc?​



-- 
Daan

Re: Can't launch VMs

Posted by Carlos Reategui <cr...@gmail.com>.
I also tried looking in the SMlog on the host machine and did not see
anything out of the ordinary there.

In the xensource log I found the following where it references a VDI =
invalid after which it destroys the VM.

[20140929T23:26:25.360Z|debug|srvengxen02|28792520 inet-RPC|VBD.create
R:92cef04c77be|audit] VBD.create: VM =
'71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'; VDI =
'18801349-c195-468a-99db-67534434d137'

[20140929T23:26:25.360Z|debug|srvengxen02|28792608
unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:41de8bc7f75c
created by task R:e85d97df8f66

[20140929T23:26:25.366Z|debug|srvengxen02|28792520 inet-RPC|VBD.create
R:92cef04c77be|xapi] VBD.create (device = 0; uuid =
9297b527-7b1f-600c-0d55-8486a8bd35d7; ref =
OpaqueRef:f2c07f6f-6f4c-0f50-e38c-b4e7a5e280e6)

[20140929T23:26:25.377Z|debug|srvengxen02|28792609
unix-RPC||dummytaskhelper] task dispatch:VDI.get_all_records_where
D:05a8c79e50bf created by task R:e85d97df8f66

[20140929T23:26:25.415Z| info|srvengxen02|28792610
unix-RPC|session.login_with_password D:ced9199f4e0c|xapi] Session.create
trackid=9624f0c2f5e5bd3038fb6a99acc9fabb pool=false uname=root
is_local_superuser=true auth_user_sid=
parent=trackid=9834f5af41c964e225f24279aefe4e49

[20140929T23:26:25.423Z|debug|srvengxen02|28792610
unix-RPC|session.login_with_password D:ced9199f4e0c|xapi] Attempting to
open /var/xapi/xapi

[20140929T23:26:25.424Z| info|srvengxen02|28792518 inet-RPC|sm_exec
D:f9b7a7e773dc|xapi] Session.destroy
trackid=359335e97d06233dc28a816141253bbd

[20140929T23:26:25.429Z|debug|srvengxen02|28792518 inet-RPC|SR.scan
R:e85d97df8f66|xapi] Unmarking SR after SR.scan
(task=OpaqueRef:e85d97df-8f66-9c31-cbd9-c8957ad49af3)

[20140929T23:26:25.433Z|debug|srvengxen02|28792611
unix-RPC||dummytaskhelper] task dispatch:host.get_other_config
D:0e4ea6af7e73 created by task R:50e59a397731

[20140929T23:26:25.435Z|debug|srvengxen02|28792612
unix-RPC||dummytaskhelper] task dispatch:session.get_uuid D:195d11136faa
created by task D:ced9199f4e0c

[20140929T23:26:25.493Z|debug|srvengxen02|28792614
unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:9dc0edeee20c
created by task R:50e59a397731

[20140929T23:26:25.508Z|debug|srvengxen02|28792616
unix-RPC||dummytaskhelper] task dispatch:VDI.get_all_records_where
D:903ce3656dc9 created by task R:50e59a397731

[20140929T23:26:25.528Z|debug|srvengxen02|28792520 inet-RPC|VBD.create
R:f1336eb3be75|audit] VBD.create: VM =
'71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'; VDI =
'a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48'

[20140929T23:26:25.551Z|debug|srvengxen02|28792520 inet-RPC|VBD.create
R:f1336eb3be75|xapi] VBD.create (device = 1; uuid =
6609b989-ec81-10c1-8b00-b1fb1eb3885f; ref =
OpaqueRef:50aad4c1-6cfa-cd28-5788-ef75a7124b8a)

[20140929T23:26:25.584Z|debug|srvengxen02|28792518
inet-RPC|host.call_plugin R:c855f78ec429|audit] Host.call_plugin host =
'63befa52-4c03-460a-9557-9100d51cedaf (srvengxen02)'; plugin = 'echo'; fn =
'main'; args = [  ]

[20140929T23:26:25.602Z|debug|srvengxen02|28792621
unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:6ba0551a82ed
created by task R:50e59a397731

[20140929T23:26:25.638Z|debug|srvengxen02|28792623
unix-RPC||dummytaskhelper] task dispatch:SR.set_virtual_allocation
D:8058d66fa46e created by task R:50e59a397731

[20140929T23:26:25.648Z|debug|srvengxen02|28792520 inet-RPC|VBD.create
R:ef5d48345ac5|audit] VBD.create: VM =
'71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'; VDI = 'invalid'

[20140929T23:26:25.655Z|debug|srvengxen02|28792520 inet-RPC|VBD.create
R:ef5d48345ac5|xapi] VBD.create (device = 3; uuid =
d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41; ref =
OpaqueRef:a73083d7-8947-953d-ee0f-7f6861395417)

[20140929T23:26:25.662Z|debug|srvengxen02|28792625
unix-RPC||dummytaskhelper] task dispatch:SR.set_physical_size
D:98208d41d23a created by task R:50e59a397731

[20140929T23:26:25.713Z|debug|srvengxen02|28792627
unix-RPC||dummytaskhelper] task dispatch:SR.set_physical_utilisation
D:2473b2fa3810 created by task R:50e59a397731

[20140929T23:26:25.766Z|debug|srvengxen02|28792629
unix-RPC||dummytaskhelper] task dispatch:SR.get_by_uuid D:9789f2f4d40b
created by task R:50e59a397731

[20140929T23:26:25.783Z|debug|srvengxen02|28792518 inet-RPC|SR.scan
R:74ead907ad3a|audit] SR.scan: SR = '1058d9b9-4dde-473b-72d6-5e56f1141f96
(17b0a8a5-2376-3d11-b60e-31eebeafb217)'

[20140929T23:26:25.786Z|debug|srvengxen02|28792518 inet-RPC|SR.scan
R:74ead907ad3a|xapi] Marking SR for SR.scan
(task=OpaqueRef:74ead907-ad3a-01c8-9021-b5a1a0e52ee3)

[20140929T23:26:25.790Z|debug|srvengxen02|28792630
unix-RPC||dummytaskhelper] task dispatch:VDI.get_all_records_where
D:557e5dbbb33a created by task R:50e59a397731

[20140929T23:26:25.802Z|debug|srvengxen02|28792518 inet-RPC|SR.scan
R:74ead907ad3a|sm] SM nfs sr_scan
sr=OpaqueRef:a920ca88-cf2f-f50a-faf5-9b17c5740433

[20140929T23:26:25.831Z| info|srvengxen02|28792518 inet-RPC|sm_exec
D:2211094a1f86|xapi] Session.create
trackid=53c2c5386accf7c5f10e4d69510fcede pool=false uname=
is_local_superuser=true auth_user_sid=
parent=trackid=9834f5af41c964e225f24279aefe4e49

[20140929T23:26:25.834Z|debug|srvengxen02|28792518 inet-RPC|sm_exec
D:2211094a1f86|xapi] Attempting to open /var/xapi/xapi

[20140929T23:26:25.838Z|debug|srvengxen02|28792632
unix-RPC||dummytaskhelper] task dispatch:session.get_uuid D:a1be6478ee18
created by task D:2211094a1f86

[20140929T23:26:25.888Z|debug|srvengxen02|28792520 inet-RPC|VM.destroy
R:b8d3f07a5356|audit] VM.destroy: VM =
'71314961-a1bf-689e-eaec-73b9e3639db8 (i-3-98-VM)'


On Mon, Sep 29, 2014 at 4:53 PM, Carlos Reategui <cr...@gmail.com>
wrote:

> Following up on my earlier email regarding errors in my logs it appears
> things are not as great as I thought.  Trying to launch instances is not
> working.  Please help.
> thanks,
> Carlos
>
> ACS: 4.3.1
> Hosts: XenServer 6.2
> Network: Basic Shared Network no SG
>
> Things appear ok up until it tries to create the VIF.  Here are the logs:
>
> 2014-09-29 16:26:24,816 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Executing request
>
> 2014-09-29 16:26:25,003 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) 1. The VM i-3-98-VM is in Starting state.
>
> 2014-09-29 16:26:25,174 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Created VM
> 71314961-a1bf-689e-eaec-73b9e3639db8 for i-3-98-VM
>
> 2014-09-29 16:26:25,405 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 9297b527-7b1f-600c-0d55-8486a8bd35d7
> created for com.cloud.agent.api.to.DiskTO@53d6031b
>
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-399:ctx-73a60525) Seq 2-868943177: Response Received:
>
> 2014-09-29 16:26:25,509 DEBUG [c.c.a.t.Request]
> (StatsCollector-3:ctx-13616221) Seq 2-868943177: Received:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, {
> GetStorageStatsAnswer } }
>
> 2014-09-29 16:26:25,512 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-392:ctx-401c432d) Seq 2-868943179: Executing request
>
> 2014-09-29 16:26:25,618 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD 6609b989-ec81-10c1-8b00-b1fb1eb3885f
> created for com.cloud.agent.api.to.DiskTO@7fbb227a
>
> 2014-09-29 16:26:25,658 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221) ===START===  172.30.36.159 -- GET
> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>
> 2014-09-29 16:26:25,679 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-12:ctx-a4bf4221 ctx-d566be7f) ===END===  172.30.36.159 --
> GET
> command=queryAsyncJobResult&jobId=f38a8e56-9a85-48aa-9da2-d498d3179634&response=json&sessionkey=UWhJaGdVTH3zXZ9WFdv4EwAlqA4%3D&_=1412033185658
>
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) VBD d47f3673-7dc8-68ff-7eb7-fcd6ba8b0c41
> created for com.cloud.agent.api.to.DiskTO@194e84ba
>
> 2014-09-29 16:26:25,735 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Creating VIF for i-3-98-VM on nic
> [Nic:Guest-172.30.45.143-null]
>
> 2014-09-29 16:26:25,834 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Catch Exception: class
> java.lang.NullPointerException due to java.lang.NullPointerException
>
> java.lang.NullPointerException
>
>         at
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
>
>         at
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>
>         at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>
>         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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
>
> 2014-09-29 16:26:25,835 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to start i-3-98-VM due to
>
> java.lang.NullPointerException
>
>         at
> com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:173)
>
>         at
> com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:228)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:1035)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1088)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1718)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>
>         at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>
>         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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
>
> 2014-09-29 16:26:26,052 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>
>         at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>
>         at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
>
>         at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>
>         at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>
>         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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
>
> 2014-09-29 16:26:26,092 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>
>         at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>
>         at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
>
>         at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>
>         at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>
>         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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
>
> 2014-09-29 16:26:26,137 WARN  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) Unable to clean up VBD due to
>
> You gave an invalid object reference.  The object may have recently been
> deleted.  The class parameter gives the type of reference given, and the
> handle parameter echoes the bad value given.
>
>         at com.xensource.xenapi.Types.checkResponse(Types.java:209)
>
>         at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
>
>         at com.xensource.xenapi.VBD.unplug(VBD.java:1059)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.handleVmStartFailure(CitrixResourceBase.java:1462)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1800)
>
>         at
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:545)
>
>         at
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>
>         at
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>
>         at
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>
>         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
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.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:745)
>
> 2014-09-29 16:26:26,138 DEBUG [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-235:ctx-7f8db7ac) The VM is in stopped state, detected problem
> during startup : i-3-98-VM
>
> 2014-09-29 16:26:26,138 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Response Received:
>
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (DirectAgent-235:ctx-7f8db7ac) Seq 2-868943178: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":98,"name":"i-3-98-VM","bootloader":"PyGrub","type":"User","cpus":1,"minSpeed":2000,"maxSpeed":2000,"minRam":1782579200,"maxRam":1782579200,"arch":"x86_64","os":"CentOS
> 5.7
> (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":true,"enableDynamicallyScaleVm":false,"vncPassword":"a19a39dac48334d5","params":{"hypervisortoolsversion":"xenserver56"},"uuid":"c474454f-4772-4479-b9a5-3829c97006e0","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d348a1d2-18ea-4043-b868-18d3cf8ce21f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
> "}},"name":"ROOT-98","size":10737418240,"path":"18801349-c195-468a-99db-67534434d137","volumeId":124,"vmName":"i-3-
> 98-VM
> ","accountId":3,"format":"VHD","id":124,"deviceId":0,"hypervisorType":"XenServer"}},"diskSeq":0,"path":"18801349-c195-468a-99db-67534434d137","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"10737418240"}},{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"9d70a3ed-9737-4a34-8a87-048c067deae0","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b0a8a5-2376-3d11-b60e-31eebeafb217","id":202,"poolType":"NetworkFilesystem","host":"172.30.19.1","path":"/export/primary","port":2049,"url":"NetworkFilesystem://
> 172.30.19.1//export/primary/?ROLE=Primary&STOREUUID=17b0a8a5-2376-3d11-b60e-31eebeafb217
> "}},"name":"DATA-98","size":5368709120,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","volumeId":125,"vmName":"i-3-
> 98-VM","accountId":3,"format":"VHD","id":125,"deviceId":1,"hypervisorType":"XenServer"}},"diskSeq":1,"path":"a343a4a0-1a7c-45b6-8e64-1e1ed1bdfd48","type":"DATADISK","_details":{"managed":"false","storagePort":"2049","storageHost":"172.30.19.1","volumeSize":"5368709120"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"a98bcc83-4cbe-41e3-a992-1bd162883816","ip":"172.30.45.143","netmask":"255.255.255.0","gateway":"172.30.45.1","mac":"06:4f:1e:00:00:41","dns1":"172.30.20.176","dns2":"172.30.20.175","broadcastType":"Vlan","type":"Guest","isSecurityGroupEnabled":false}],"vcpuMaxLimit":16},"_iqnToPath":{},"result":false,"details":"Unable
> to start i-3-98-VM due to ","wait":0}}] }
>
> 2014-09-29 16:26:26,141 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943178: Received:  {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StartAnswer }
> }
>
> 2014-09-29 16:26:26,144 INFO  [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Unable to start VM on
> Host[-2-Routing] due to Unable to start i-3-98-VM due to
>
> 2014-09-29 16:26:26,147 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Cleaning up resources for the
> vm VM[User|sununxcld19] in Starting state
>
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Sending  { Cmd
> , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
> 98-VM","wait":0}}] }
>
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Executing:  {
> Cmd , MgmtId: 233845174730255, via: 2(srvengxen02), Ver: v1, Flags: 100011,
> [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-3-
> 98-VM","wait":0}}] }
>
> 2014-09-29 16:26:26,150 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Executing request
>
> 2014-09-29 16:26:26,310 INFO  [c.c.h.x.r.CitrixResourceBase]
> (DirectAgent-236:ctx-234da2e1) VM does not exist on
> XenServer63befa52-4c03-460a-9557-9100d51cedaf
>
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Response Received:
>
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (DirectAgent-236:ctx-234da2e1) Seq 2-868943180: Processing:  { Ans: ,
> MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM does not
> exist","wait":0}}] }
>
> 2014-09-29 16:26:26,310 DEBUG [c.c.a.t.Request]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Seq 2-868943180: Received:  {
> Ans: , MgmtId: 233845174730255, via: 2, Ver: v1, Flags: 10, { StopAnswer } }
>
> 2014-09-29 16:26:26,319 DEBUG [c.c.n.NetworkModelImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Service SecurityGroup is not
> supported in the network id=204
>
> 2014-09-29 16:26:26,321 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Changing active number of nics
> for network id=204 on -1
>
> 2014-09-29 16:26:26,326 DEBUG [o.a.c.e.o.NetworkOrchestrator]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Asking VirtualRouter to release
> NicProfile[127-98-c794b1fc-374c-4d69-a469-5ec708074d02-172.30.45.143-null
>
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully released network
> resources for the vm VM[User|sununxcld19]
>
> 2014-09-29 16:26:26,326 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Successfully cleanued up
> resources for the vm VM[User|sununxcld19] in Starting state
>
> 2014-09-29 16:26:26,330 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Job-Executor-24:ctx-38a388ee ctx-b9ffa188) Root volume is ready, need to
> place VM in volume's cluster
>
>