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

Cleanup ports after IPAM failure #259

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

phoracek
Copy link
Member

@phoracek phoracek commented Jan 4, 2023

What this PR does / why we need it:

While most of the configuration gets cleaned up on ADD failure through
the removal of containers netns, OVS ports do not.

In case port attachment succeeded but the following IPAM configuration
failed, we end up with the port left behind.

With this patch, the port gets explicitly deleted on IPAM failure.

This fixes #258

Release note:

Cleanup after IPAM failure

Signed-off-by: Petr Horáček <phoracek@redhat.com>
While most of the configuration gets cleaned up on ADD failure through
the removal of containers netns, OVS ports do not.

In case port attachment succeeded but the following IPAM configuration
failed, we end up with the port left behind.

With this patch, the port gets explicitly deleted on IPAM failure.

Signed-off-by: Petr Horáček <phoracek@redhat.com>
@phoracek phoracek added the bug Something isn't working label Jan 4, 2023
@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 4, 2023
@qinqon
Copy link
Member

qinqon commented Jan 4, 2023

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2023
@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: phoracek, qinqon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bug Something isn't working dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Host local IPAM configured with erroneous NAD results in stale ovs ports
3 participants