Hi All,

Router programming fails with latest master build,  VR configuration fails 
while calling "SetupGuestNetworkCommand" with error "Failed to prepare VR 
command due to Can not find nic with mac 02:00:7d:56:00:02 for VM r-16-VM"

>From Agent
------------------

2014-07-25 16:25:38,061 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) 
Request:Seq 2-4214524826288652384:  {
Cmd , MgmtId: 29066118877352, via: 2, Ver: v1, Flags: 100111, 
[{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.1.1.1","networkDomain":"vpc.vpn","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"pxeDisable":true,"nicUuid":"bad86d37-eedb-4c0b-8752-0631d5e74f1a","uuid":"b34acc98-77d7-4aa6-9a97-4417b1d1f579","ip":"10.1.1.1","netmask":"255.255.255.192","gateway":"10.1.1.1","mac":"02:00:7d:56:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2352","isolationUri":"vlan://2352","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.1.1.1","guest.vlan.tag":"2352","guest.network.gateway":"10.1.1.1","guest.bridge":"10.1.1.63","router.ip":"169.254.2.226","router.name":"r-16-VM"},"wait":0}}]
 }
2014-07-25 16:25:38,062 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) 
Processing command: com.cloud.agent.api.SetupGuestNetworkCommand
2014-07-25 16:25:38,071 ERROR [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-1:null) Failed to prepare VR command due to Can not find 
nic with mac 02:00:7d:56:00:02 for VM r-16-VM
2014-07-25 16:25:38,071 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) 
Seq 2-4214524826288652384:  { Ans: , MgmtId: 29066118877352, via: 2, Ver: v1, 
Flags: 110, [{"com.cloud.agent.api.Answer":{"result":false,"details":"Can not 
find nic with mac 02:00:7d:56:00:02 for VM r-16-VM","wait":0}}] }
2014-07-25 16:25:38,171 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
Request:Seq 2-4214524826288652385:  { Cmd , MgmtId: 29066118877352, via: 2, 
Ver: v1, Flags: 100111, 
[{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.1.1.1","networkDomain":"vpc.vpn","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"pxeDisable":true,"nicUuid":"bad86d37-eedb-4c0b-8752-0631d5e74f1a","uuid":"b34acc98-77d7-4aa6-9a97-4417b1d1f579","ip":"10.1.1.1","netmask":"255.255.255.192","gateway":"10.1.1.1","mac":"02:00:7d:56:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://2352","isolationUri":"vlan://2352","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.1.1.1","guest.vlan.tag":"2352","guest.network.gateway":"10.1.1.1","guest.bridge":"10.1.1.63","router.ip":"169.254.2.226","router.name":"r-16-VM"},"wait":0}}]
 }
2014-07-25 16:25:38,172 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
Processing command: com.cloud.agent.api.SetupGuestNetworkCommand
2014-07-25 16:25:38,180 ERROR [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) Failed to prepare VR command due to Can not find 
nic with mac 02:00:7d:56:00:02 for VM r-16-VM
2014-07-25 16:25:38,181 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
Seq 2-4214524826288652385:  { Ans: , MgmtId: 29066118877352, via: 2, Ver: v1, 
Flags: 110, [{"com.cloud.agent.api.Answer":{"result":false,"details":"Can not 
find nic with mac 02:00:7d:56:00:02 for VM r-16-VM","wait":0}}] }


You will get below NPE while trying to deploy a VM with this router

2014-07-27 06:43:23,185 WARN  [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-161:ctx-0bd6e9e3 job-1985/job-1986 ctx-d6950844) Failed to 
add router VM[DomainRouter|r-268-VM] to network Ntwk[341|Guest|11] due to
java.lang.NullPointerException
        at 
org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.createNicForVm(NetworkOrchestrator.java:3066)
        at 
com.cloud.vm.VirtualMachineManagerImpl.orchestrateAddVmToNetwork(VirtualMachineManagerImpl.java:3409)
        at 
com.cloud.vm.VirtualMachineManagerImpl.addVmToNetwork(VirtualMachineManagerImpl.java:3355)
        at 
com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.addVpcRouterToGuestNetwork(VpcVirtualNetworkApplianceManagerImpl.java:267)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy189.addVpcRouterToGuestNetwork(Unknown Source)
        at 
com.cloud.network.element.VpcVirtualRouterElement.implement(VpcVirtualRouterElement.java:187)
        at 
org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.implementNetworkElementsAndResources(NetworkOrchestrator.java:1088)
        at 
org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.implementNetwork(NetworkOrchestrator.java:995)
        at 
org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.prepare(NetworkOrchestrator.java:1282)
        at 
com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:985)
        at 
com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:5146)
        at sun.reflect.GeneratedMethodAccessor294.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
        at 
com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5302


Regards,
Rayees

Reply via email to