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

node annotations: add k8s.ovn.org/node-mgmt-port-info and provide mgmt ip address #4760

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flavio-fernandes
Copy link
Contributor

@flavio-fernandes flavio-fernandes commented Oct 8, 2024

Instead of making an assumption about the IP address on ovn-k8s-mp0, where it is expected to be the second IP of node-subnet for the default/primary network, it is better to provide this information through an annotation.

  k8s.ovn.org/node-mgmt-port-info: {
     "default": {
                "ip-addresses": [ "10.192.13.2/26" ],
     }
  }

In the future, we may entertain moving mac addresses and other properties to this, but that is no longer
part of this PR (Ref: https://github.com/flavio-fernandes/ovn-kubernetes/tree/mgmt-port-info.mac_and_vf).

@flavio-fernandes flavio-fernandes requested a review from a team as a code owner October 8, 2024 02:48
@github-actions github-actions bot added the area/unit-testing Issues related to adding/updating unit tests label Oct 8, 2024
@flavio-fernandes flavio-fernandes force-pushed the mgmt-port-info branch 4 times, most recently from bd0d5ee to ce1a828 Compare October 14, 2024 23:22
@flavio-fernandes flavio-fernandes changed the title [WIP] node annotations: add k8s.ovn.org/node-mgmt-port-info node annotations: add k8s.ovn.org/node-mgmt-port-info and provide mgmt ip address Oct 15, 2024
// "l2-network": {
// "ip-addresses": [ "10.200.10.2/26" ],
// "mac-address": "5e:52:2a:c0:98:f4"
// }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: for this PR, only the ip-addresses attribute is being implemented. We chose to defer handling the other two as they are currently redundant. Also, mac addresses (plural) is new so it is a bit of a churn to change that yet again.

@flavio-fernandes
Copy link
Contributor Author

Known Flake: #4432
FLAKE: External Gateway With Admin Policy Based External Route CRs e2e multiple external gateway validation Should validate ICMP connectivity to multiple external gateways for an ECMP scenario IPV4

Instead of making an assumption about the IP address on
ovn-k8s-mp0, where it is expected to be the second IP of
node-subnet for the default/primary network, it is better
to provide this information through an annotation.

  k8s.ovn.org/node-mgmt-port-info: {
     "default": {
                "ip-addresses": [ "10.192.13.2/26" ],
     }
  }

Signed-off-by: Flavio Fernandes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/unit-testing Issues related to adding/updating unit tests feature/nodes
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant