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

Handle race conditions that could leave multiple elastic IPs for a single pod. #278

Open
alex-hunt-materialize opened this issue Oct 3, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@alex-hunt-materialize
Copy link
Collaborator

2022-10-03T19:15:05.094982Z ERROR reconciling object{object.ref=Eip.v1.materialize.cloud/environmentd-0.environment-0d0c8465-02ef-496c-9586-ebbaecd63e0d-0 object.reason=error policy requested retry}:reconcile_eip: eip_operator: error=failed to apply object: Multiple elastic IPs are tagged with this pod's UID.

When reconciling, if there are two AWS EIPs tagged with a pod's UID, we currently just fail.

Instead, we should determine if one is attached to the pod's ENI, and take appropriate action:

  1. If one is attached, delete the others.
  2. If none is attached, delete all but one, and attach that one.
@alex-hunt-materialize alex-hunt-materialize added the bug Something isn't working label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant