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

aws-node does not perform ip unassignment properly #1344

Closed
wants to merge 3 commits into from
Closed

aws-node does not perform ip unassignment properly #1344

wants to merge 3 commits into from

Conversation

sanicheev
Copy link

@sanicheev sanicheev commented Jan 5, 2021

Wrong assumptions were made.
Will open another PR to deal with this issue

Sometimes aws-node pod from aws-node daemonset does not perform unassignment of non-existing docker containers.
This commit marks IPAMKey data structures where ContainerID is empty as unassigned.

Example of ipamd output:
"192.168.9.204": {
  "Address": "192.168.9.204",
  "IPAMKey": {
    "containerID": "d74e85090b40c25325b82289ad335287ab9467784ea4014052e49f3032c4e9e8",
    "ifName": "unknown",
    "networkName": "_migrated-from-cri"
  },
  "UnassignedTime": "0001-01-01T00:00:00Z"
},
"192.168.9.25": {
  "Address": "192.168.9.25",
  "IPAMKey": {
    "containerID": "",
    "ifName": "",
    "networkName": ""
  },
  "UnassignedTime": "0001-01-01T00:00:00Z"
},
"192.168.9.46": {
  "Address": "192.168.9.46",
  "IPAMKey": {
    "containerID": "",
    "ifName": "",
    "networkName": ""
  },
  "UnassignedTime": "0001-01-01T00:00:00Z"
},

Eventually we are facing situation when we have free IP addresses but because ipamd thinks it is still assigned we are not able to add new containers.
After we re-deploy aws-node daemonset everything is back to normal again for couple of days.
@sanicheev
Copy link
Author

I am worried about counters such as:
ds.assigned
ds.total

Please let me know if you foresee any issues with this change as i am not be able to see all of the consequences.

@sanicheev sanicheev closed this Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants