You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Daan Hoogland <DH...@schubergphilis.com> on 2013/04/29 10:04:17 UTC

help debugging vpc creation code wanted

LS,

I have changed a lot of files making vlan a broadcast uri instead of a number. I have probably broken something or in the best case omitted a needed change to complete this. The result is a null pointer exception during the creation/connecting of a vif:

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-36:) Unable to assign public IP address due to java.lang.NullPointerException
java.lang.NullPointerException
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.getVifByMac(CitrixResourceBase.java:4068)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.assignVPCPublicIpAddress(CitrixResourceBase.java:2208)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:7976)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:581)
       at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
       at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
ERROR [xen.resource.CitrixResourceBase] (DirectAgent-36:) Ip Assoc failure on applying one ip due to exception:
java.lang.Exception: Unable to assign public IP address due to java.lang.NullPointerException
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.assignVPCPublicIpAddress(CitrixResourceBase.java:2249)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:7976)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:581)
       at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
       at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)

Now I want to track back to where this ip is created to find out why it does not contain a mac-address. Looking in the database it does contain a mac address. I am guessing someone knows or can give me a pointer; What in the above stack can lead to the provisioning code that I should adjust?

Thanks,
Daan Hoogland

RE: help debugging vpc creation code wanted

Posted by Daan Hoogland <DH...@schubergphilis.com>.
I guess the answer is:

Trace back to a command object
Find the places such a command is created
Then find the creation of the faulty part of it

Thanks,
Daan Hoogland

-----Original Message-----
From: Daan Hoogland [mailto:DHoogland@schubergphilis.com] 
Sent: maandag 29 april 2013 10:04
To: dev@cloudstack.apache.org
Subject: help debugging vpc creation code wanted

LS,

I have changed a lot of files making vlan a broadcast uri instead of a number. I have probably broken something or in the best case omitted a needed change to complete this. The result is a null pointer exception during the creation/connecting of a vif:

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-36:) Unable to assign public IP address due to java.lang.NullPointerException java.lang.NullPointerException
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.getVifByMac(CitrixResourceBase.java:4068)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.assignVPCPublicIpAddress(CitrixResourceBase.java:2208)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:7976)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:581)
       at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
       at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source) ERROR [xen.resource.CitrixResourceBase] (DirectAgent-36:) Ip Assoc failure on applying one ip due to exception:
java.lang.Exception: Unable to assign public IP address due to java.lang.NullPointerException
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.assignVPCPublicIpAddress(CitrixResourceBase.java:2249)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:7976)
       at com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:581)
       at com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
       at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)

Now I want to track back to where this ip is created to find out why it does not contain a mac-address. Looking in the database it does contain a mac address. I am guessing someone knows or can give me a pointer; What in the above stack can lead to the provisioning code that I should adjust?

Thanks,
Daan Hoogland