cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjeev N (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-2854) [Multiple_IP_Ranges] Failed to create ip alias on VR while deploying guest vm with ip address from new CIDR
Date Wed, 05 Jun 2013 11:08:20 GMT
Sanjeev N created CLOUDSTACK-2854:
-------------------------------------

             Summary: [Multiple_IP_Ranges] Failed to create ip alias on VR while deploying
guest vm with ip address from new CIDR
                 Key: CLOUDSTACK-2854
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2854
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.2.0
         Environment: CloudStack-Beta-4.2-2-rhel6.3.tar.gz
            Reporter: Sanjeev N
            Priority: Blocker
             Fix For: 4.2.0


Failed to create ip alias on VR while deploying guest vm with ip address from new CIDR

Steps to Reproduce:
=================
1.Bring up CS in SG enabled Advanced zone with KVM cluster
2.Add two guest ip ranges with different CIDRs in same vlan
3.Deploy guest vm from the first CIDR
4.Deploy another guest vm from the second CIDR

Expected Result:
==============
Deploying guest vm from the 2nd cidr should create ip alias on VR and vm deployment should
succeed with ip address from the 2nd cidr

Actual Result:
===========
IP alias creation failed on router vm

Observations:
============
Observed NPE while creating ip alias in kvm agent log:
2013-06-05 10:43:47,394 WARN  [resource.virtualnetwork.VirtualRoutingResource] (agentRequest-Handler-1:null)
Exception: null 169.254.0.28 23:10.147.33.130:255.255.255.192-
java.lang.NullPointerException
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:457)
        at com.cloud.utils.script.Script.execute(Script.java:183)
        at com.cloud.utils.script.Script.execute(Script.java:161)
        at com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.execute(VirtualRoutingResource.java:633)
        at com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.executeRequest(VirtualRoutingResource.java:147)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1227)
        at com.cloud.agent.Agent.processRequest(Agent.java:525)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)
        at com.cloud.utils.nio.Task.run(Task.java:83)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2013-06-05 10:43:48,093 WARN  [resource.virtualnetwork.VirtualRoutingResource] (agentRequest-Handler-2:null)
Exception: null 169.254.0.28 23:10.147.33.130:255.255.255.192-
java.lang.NullPointerException
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:457)
        at com.cloud.utils.script.Script.execute(Script.java:183)
        at com.cloud.utils.script.Script.execute(Script.java:161)
        at com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.execute(VirtualRoutingResource.java:633)
        at com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.executeRequest(VirtualRoutingResource.java:147)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1227)
        at com.cloud.agent.Agent.processRequest(Agent.java:525)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)
        at com.cloud.utils.nio.Task.run(Task.java:83)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)

Log snippet from the management server log:
2013-06-05 12:08:28,961 DEBUG [agent.transport.Request] (Job-Executor-13:job-12) Seq 1-2109669471:
Sending  { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 100011, [{"routing.CreateIpAliasCommand":{"routerip":"10.147.33.6","ipAliasTOs":[{"routerip":"10.147.33.130","netmask":"255.255.255.192","alias_count":"23"}],"accessDetails":{"router.guest.ip":"10.147.33.6","zone.network.type":"Advanced","router.name":"r-4-VM","router.ip":"169.254.0.28"},"wait":0}},{"routing.DnsMasqConfigCommand":{"domain":"cs1cloud.internal","dns1":"10.103.128.16","internal_dns1":"10.103.128.16","dnsmasqTOs":[{"routerIp":"10.147.33.6","gateway":"10.147.33.1","netmask":"255.255.255.128","startIpOfSubnet":"10.147.33.1"},{"routerIp":"10.147.33.130","gateway":"10.147.33.129","netmask":"255.255.255.192","startIpOfSubnet":"10.147.33.129"}],"accessDetails":{"router.guest.ip":"10.147.33.6","zone.network.type":"Advanced","router.name":"r-4-VM","router.ip":"169.254.0.28"},"wait":0}}]
}
2013-06-05 12:08:28,968 DEBUG [agent.transport.Request] (AgentManager-Handler-3:null) Seq
1-2109669471: Processing:  { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 10, [{"Answer":{"result":false,"details":"java.lang.NullPointerException\n\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:457)\n\tat com.cloud.utils.script.Script.execute(Script.java:183)\n\tat
com.cloud.utils.script.Script.execute(Script.java:161)\n\tat com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.execute(VirtualRoutingResource.java:633)\n\tat
com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.executeRequest(VirtualRoutingResource.java:147)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1227)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat
com.cloud.utils.nio.Task.run(Task.java:83)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)\n\tat java.lang.Thread.run(Thread.java:679)\n","wait":0}},{"Answer":{"result":false,"details":"Stopped
by previous failure","wait":0}}] }
2013-06-05 12:08:28,969 DEBUG [agent.transport.Request] (Job-Executor-13:job-12) Seq 1-2109669471:
Received:  { Ans: , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 10, { Answer, Answer }
}
2013-06-05 12:08:28,985 ERROR [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-13:job-12)
Failed to start instance VM[User|vm2-s2]
com.cloud.utils.exception.CloudRuntimeException: failed to configure ip alias on the router
as a part of dhcp config
        at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.configDhcpForSubnet(VirtualNetworkApplianceManagerImpl.java:2829)
        at com.cloud.network.element.VirtualRouterElement.configDhcpSupportForSubnet(VirtualRouterElement.java:870)
        at com.cloud.network.NetworkManagerImpl.prepareElement(NetworkManagerImpl.java:1965)
        at com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2080)
        at com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2021)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:842)
        at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:550)
        at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:243)
        at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3340)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2867)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2853)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2013-06-05 12:08:28,994 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-13:job-12)
Cleaning up resources for the vm VM[User|vm2-s2] in Starting state
2013-06-05 12:08:28,997 DEBUG [agent.transport.Request] (Job-Executor-13:job-12) Seq 1-2109669472:
Sending  { Cmd , MgmtId: 6615759585382, via: 1, Ver: v1, Flags: 100111, [{"StopCommand":{"isProxy":false,"vmName":"i-2-5-VM","wait":0}}]
}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message