[
https://issues.apache.org/jira/browse/CLOUDSTACK-7186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077039#comment-14077039
]
Sheng Yang commented on CLOUDSTACK-7186:
----------------------------------------
After 4 hours of "git bisect", found it caused by:
yasker@yasker-devbox:~/develop/cloudstack-oss$ git bisect good
47d6a64b319ab064c4b855346f2bfdb250fb9ad8 is the first bad commit
commit 47d6a64b319ab064c4b855346f2bfdb250fb9ad8
Author: Koushik Das <[email protected]>
Date: Fri Jul 25 15:17:35 2014 +0530
CLOUDSTACK-7182: NPE while trying to deploy VMs in parallel in isolated
network
The following changes are made:
- Check to see if network is implemented changed from 'state ==
Implementing||Implemented' to 'state == Implemented'.
The earlier check was a hack to prevent the issue described below.
- At the time of implementing network (using implementNetwork() method), if
the VR needs to be deployed then
it follows the same path of regular VM deployment. This leads to a nested
call to implementNetwork() while
preparing VR nics. This flow creates issues in dealing with network state
transitions. The original call
puts network in "Implementing" state and then the nested call again tries
to put it into same state resulting
in issues. In order to avoid it, implementNetwork() call for VR is replaced
with below code.
:040000 040000 ec5b50fd35e5b8f9e8128fcd67b1d470e3b0993d
be498171617417358348ad4fcf8f02f946f7a637 M engine
> [Automation] Router programming fails while calling SetupGuestNetworkCommand
> and VM deployment fails
> ----------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7186
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7186
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Virtual Router
> Affects Versions: 4.5.0
> Environment: KVM (not verified with other hyper-visors)
> Master
> Reporter: Rayees Namathponnan
> Assignee: Sheng Yang
> Priority: Blocker
> Fix For: 4.5.0
>
>
> This issue is observed in automation run, failed to configure VR after
> deploying the VM , observed below 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
> Agent log
> Can not find nic with mac 02:00:7d:56:00:02
> 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}}] }
--
This message was sent by Atlassian JIRA
(v6.2#6252)