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

Use "ip netns exec" instead of "nsenter" to handle pod restart in network-chaos but for 2.14.X #703

Open
wants to merge 2 commits into
base: v2.14.x
Choose a base branch
from

Conversation

Calvinaud
Copy link
Contributor

This PR is duplicate of #702 but for 2.14.X

  • Replacing the nsenter command by ip netns exec
  • Updating helper pod definition to mount the hostPath /var/run/netns
  • Updating Dockerfile to add ip binary to experiments/helper pod.

What this PR does / why we need it:

Updating network-chaos to use the netns instead of the procedure to inject/remove chaos so the network-chaos can handle pod restart.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #591

Special notes for your reviewer:

I think this PR will need "requires-upgrade".

Checklist:

  • Fixes pod-network-loss: cleanup fails because target pod has been restarted #591
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests
  • E2E run Required for the changes

Added getNetNS function to retrieve netns id
Updating network helper to include host mount /var/run/netns

Signed-off-by: Calvin Audier <[email protected]>
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.

1 participant