Bug 1881979: Fixes gateway mode parameters for OVN#801
Bug 1881979: Fixes gateway mode parameters for OVN#801openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
We have now switched back to using local gateway mode in ovn-kubernetes. This is currently forced in ovn-k8s with a hack. This patch sets it correctly in CNO and we will revert the hack in ovn-k8s. Additionally, this passes the gateway-interface of "none" when ovs-configuration is not available. This allows us to do upgrade via openshift/ovn-kubernetes#281 Signed-off-by: Tim Rozet <trozet@redhat.com>
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhat, trozet The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
10 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
There was a problem hiding this comment.
So the idea is that in the 4.5 node case, this would make ovn-kubernetes move eth0 into br-ex itself rather than us doing it in ovs-configuration.service, but we expect that to work fine for this limited case for the duration of the upgrade?
Considering all the cases:
- 4.5 node, 4.5 CNO, 4.5 OVS - obviously that works
4.5 node, 4.6 CNO, 4.5 OVS - CNO will specify--gateway-mode local(because the node is 4.5), OVS will use old-style local gateway mode (because it's 4.5), it works4.5 node, 4.5 CNO, 4.6 OVS - CNO will specify--gateway-mode local(because it's 4.5), OVS will use new-style local gateway mode and manually moveeth0intobr-ex, it works- 4.5 node, 4.6 CNO, 4.6 OVS - CNO will specify
--gateway-mode local(because the node is 4.5), OVS will use new-style local gateway mode and manually moveeth0intobr-ex, it works - 4.6 node, either CNO or OVS is 4.5 - this wouldn't work but we don't believe that can happen
- 4.6 node, 4.6 CNO, 4.6 OVS - obviously that works
| gateway_mode_flags="--gateway-mode local --gateway-interface br-ex" | ||
| else | ||
| gateway_mode_flags="--gateway-mode local" | ||
| gateway_mode_flags="--gateway-mode local --gateway-interface none" |
There was a problem hiding this comment.
When the docs talk about "If none specified", it means "if you don't specify it", not "if you specify none". This will tell it to look for an interface named none and fail if it's not found.
oh... also, those can't happen. I mean, we could have a cluster with a 4.6 CNO and 4.5 OVN, but the OVN pods in that case would be using the configuration that had been generated by the 4.5 CNO still. And there's no way to have 4.5 CNO and 4.6 OVN at all |
No, the idea here is we don't want ovn-kubernetes to move any interface into OVS. in a 4.5-> 4.6 upgrade case, CNO gets upgraded before MCO. Meaning that this will happen:
|
|
oh, sorry, I missed that there was a linked ovn-kubernetes PR |
|
@trozet: This pull request references Bugzilla bug 1881979, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@trozet: All pull requests linked via external trackers have merged: Bugzilla bug 1881979 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We have now switched back to using local gateway mode in ovn-kubernetes.
This is currently forced in ovn-k8s with a hack. This patch sets it
correctly in CNO and we will revert the hack in ovn-k8s.
Additionally, this passes the gateway-interface of "none" when
ovs-configuration is not available. This allows us to do upgrade via
openshift/ovn-kubernetes#281
Signed-off-by: Tim Rozet trozet@redhat.com