[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14936389#comment-14936389
 ] 

Jayapal Reddy commented on CLOUDSTACK-8876:
-------------------------------------------

Below is the fix diff for this issue. I don't have the time to run the tests on 
it. I am unassinging it, some one can pick it up.


diff --git a/server/src/com/cloud/network/IpAddressManagerImpl.java 
b/server/src/com/cloud/network/IpAddressManagerImpl.java
index 28df971..46e0614 100644
--- a/server/src/com/cloud/network/IpAddressManagerImpl.java
+++ b/server/src/com/cloud/network/IpAddressManagerImpl.java
@@ -456,6 +456,12 @@ public class IpAddressManagerImpl extends ManagerBase 
implements IpAddressManage
                     }
                 } else {
                     if (activeCount != null && activeCount > 0) {
+                        if (network.getVpcId() != null) {
+                            // If there are more than one ip in the vpc tier 
network and services configured on it.
+                            // restart network with cleanup case, on network 
reprogramming this needs to be return true
+                            // because on the VR ips has removed.
+                            return true;
+                        }
                         continue;
                     } else if (addCount != null && addCount.longValue() == 
totalCount.longValue()) {
                         s_logger.trace("All rules are in Add state, have to 
assiciate IP with the backend");

>  VPC tier network restart, missing ip on VR interface
> -----------------------------------------------------
>
>                 Key: CLOUDSTACK-8876
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8876
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Network Devices
>    Affects Versions: 4.5.0
>            Reporter: Jayapal Reddy
>            Assignee: Jayapal Reddy
>            Priority: Blocker
>             Fix For: 4.6.0
>
>
> Reproducing steps:
> 1. Create a vpc and deploy a vm in tier.
> 2. Acquire a public ip and configure PF rule
> 3. check that the VR interface has two ip addresses.
> 4. Restart the tier network with cleanup.
> 5. After restart in VR interface ip (PF rule configured) is missed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to