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
Bug 1922997: Connect default NIC to cluster network #2384
Bug 1922997: Connect default NIC to cluster network #2384
Conversation
@pliurh: This pull request references Bugzilla bug 1922997, which is invalid:
Comment In 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. |
/bugzilla refresh |
@pliurh: This pull request references Bugzilla bug 1922997, 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
In 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. |
/retest |
/cc @trozet @danwinship |
/retest |
4 similar comments
/retest |
/retest |
/retest |
/retest |
@@ -280,6 +280,7 @@ contents: | |||
# Remove OVS bridge "br-ex". Use the default NIC for cluster network. | |||
|
|||
if nmcli connection show ovs-port-phys0 &> /dev/null; then | |||
iface=$(nmcli connection show ovs-port-phys0 | grep connection.interface-name| awk '{print $2}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use get-values?
nmcli --get-values connection.interface-name connection show ovs-port-phys0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -302,4 +303,8 @@ contents: | |||
rm -f /etc/NetworkManager/system-connections/{br-ex,ovs-if-br-ex,ovs-port-br-ex,ovs-if-phys0,ovs-port-phys0}.nmconnection | |||
# remove bridges created by ovn-kubernetes, try to delete br-ex again in case NM fail to talk to ovsdb | |||
ovs-vsctl --timeout=30 --if-exists del-br br-int -- --if-exists del-br br-local -- --if-exists del-br br-ex | |||
|
|||
if [ "$iface" != "" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe if [ -n "$iface" ]; then
but really we should be using [[
with bash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Syntax Error! Why aren't we running shellcheck on this! if [ -z "$vlan_id"]; then
|
Connect default NIC to cluster network, if it is not triggered automantically.
7cec5eb
to
5971cfa
Compare
/retest |
2 similar comments
/retest |
/retest |
/retest |
@trozet PTAL |
/retest |
/lgtm |
/assign @sinnykumari |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pliurh, rbbratta, sinnykumari 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 |
@pliurh: All pull requests linked via external trackers have merged: Bugzilla bug 1922997 has been moved to the MODIFIED state. In 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. |
/cherry-pick release-4.7 |
@pliurh: new pull request created: #2427 In 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. |
- What I did
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1922997
- How to verify it
Conduct SDN migration, then rollback
- Description for the changelog
Connect default NIC to cluster network if it is not triggered automatically, after rolling back to ovn-kubernetes.