Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eni: Fix unexpected IP release when agent restarts #9888

Commits on Mar 17, 2020

  1. eni: Fix unexpected IP release when agent restarts

    When cilium agent in eni mode restarts, ciliumnode custom resource
    is cleared and refilled by several updates. Specifically,
    Status.IPAM.Used map which holds all used IPs is first updated
    to an empty map before endpoints finish restoration.
    
    This becomes critical if `--aws-release-excess-ips` is enabled
    since cilium operator treats empty IPAM.Used map as no address used
    hence releases addresses arbitraryly, causing restored endpoints
    disconnected.
    
    This patch fixes this by combining per endpoint update requests
    into one update request after all endpoint restoration finishes so
    that Status.IPAM.Used keeps the desired state during agent restart.
    
    Signed-off-by: Jaff Cheng <jaff.cheng.sh@gmail.com>
    jaffcheng committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    66e4e47 View commit details
    Browse the repository at this point in the history