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

Stateless-lb: Disable old interfaces with same subnet as new #404

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

uablrek
Copy link
Contributor

@uablrek uablrek commented Apr 19, 2023

Description

When a new interface is detected any existing interface with the same subnet is disabled

Issue link

#392

Checklist

  • Purpose
    • Bug fix
    • New functionality
    • Documentation
    • Refactoring
    • CI
  • Test
    • Unit test
    • E2E Test
    • Tested manually
  • Introduce a breaking change
    • Yes (description required)
    • No

@uablrek
Copy link
Contributor Author

uablrek commented Apr 19, 2023

Log:

{
  "severity": "info",
  "timestamp": "2023-04-19T07:19:24.99+00:00",
  "service_id": "Meridio-LB",
  "message": "Interface replaced",
  "version": "1.0.0",
  "extra_data": {
    "class": "SimpleNetworkService",
    "old": {
      "Name": "load-balan-4fa1",
      "LocalIPs": [
        "172.17.4.4/24",
        "fd00::ac11:404/120"
      ],
      "NeighborIPs": [
        "172.17.4.5/24",
        "fd00::ac11:405/120"
      ],
      "Gateways": null,
      "InterfaceType": 0
    },
    "new": {
      "Name": "load-balan-5d5e",
      "LocalIPs": [
        "172.17.4.10/24",
        "fd00::ac11:40a/120"
      ],
      "NeighborIPs": [
        "172.17.4.11/24",
        "fd00::ac11:40b/120"
      ],
      "Gateways": null,
      "InterfaceType": 0
    }
  }
}

This appears multiple time for some reason. In my 5-node xcluster it appears 12 times on a node reboot

@uablrek uablrek requested review from zolug and LionelJouin April 19, 2023 07:35
@uablrek
Copy link
Contributor Author

uablrek commented Apr 19, 2023

Log commands:

kubectl logs -c stateless-lb ... | jq 'select(.message == "Interface replaced")'
kubectl logs -c stateless-lb ... | jq .message | grep 'Interface replaced' | wc -l

Copy link
Member

@LionelJouin LionelJouin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, it works (but should be fixed in NSM, not Meridio)

@uablrek
Copy link
Contributor Author

uablrek commented Apr 20, 2023

Tested, it works (but should be fixed in NSM, not Meridio)

Right 😒 Should I merge anyway?

@zolug
Copy link
Collaborator

zolug commented Apr 20, 2023

Works for me as well.
IMHO we should merge it.

@uablrek uablrek merged commit 3e95ee7 into master Apr 20, 2023
@uablrek uablrek deleted the uablrek-ifdown-in-lb branch April 21, 2023 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants