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

ASF GitHub Bot commented on CLOUDSTACK-9317:
--------------------------------------------

Github user jayapalu commented on the issue:

    https://github.com/apache/cloudstack/pull/1450
  
    I tested this patch with below steps. It is not removing the ip addresses 
on the VR interface. Some times observed that even there is one ip with static 
nat but the interface got removed.
    
    Steps to test this:
    1. Configure additional public subnet  and acquire 4 ip addresses
    2. Enabled static nat on the 4 public ip addresses.
    3. Go to VR console and see the new public interface created and ips are 
configured on the interface.
    4. Disable static on all 4 public addresses (disable from UI  one by one 
quickly)
         expected: inteface should get removed from the VR. But the interface 
is there in VR
    
    In another case in step4 disable static nat on only 3 public ip addresses. 
    expected: interface with one ip supposed to be there. But the interface is 
deleted


> Disabling static NAT on many IPs can leave wrong IPs on the router
> ------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9317
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9317
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server, Virtual Router
>    Affects Versions: 4.7.0, 4.7.1, 4.7.2
>            Reporter: Jeff Hair
>
> The current behavior of enabling or disabling static NAT will call the apply 
> IP associations method in the management server. The method is not 
> thread-safe. If it's called from multiple threads, each thread will load up 
> the list of public IPs in different states (add or revoke)--correct for the 
> thread, but not correct overall. Depending on execution order on the virtual 
> router, the router can end up with public IPs assigned to it that are not 
> supposed to be on it anymore. When another account acquires the same IP, this 
> of course leads to network problems.
> The problem has been in CS since at least 4.2, and likely affects all 
> recently released versions. Affected version is set to 4.7.x because that's 
> what we verified against.



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

Reply via email to