Bug 2081317 - configure-ovs selects wrong interface on reboot
Summary: configure-ovs selects wrong interface on reboot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.z
Assignee: Andreas Karis
QA Contact: Ross Brattain
URL:
Whiteboard:
Depends On: 2057160
Blocks: 2085413
TreeView+ depends on / blocked
 
Reported: 2022-05-03 12:01 UTC by Andreas Karis
Modified: 2022-05-23 13:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2057160
: 2085413 (view as bug list)
Environment:
Last Closed: 2022-05-23 13:25:12 UTC
Target Upstream Version:
Embargoed:
rbrattai: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-config-operator pull 3131 0 None open [release-4.10] Bug 2081317: configure-ovs.sh: Provide store hint for default route interface 2022-05-03 12:24:36 UTC
Red Hat Product Errata RHBA-2022:2258 0 None None None 2022-05-23 13:25:34 UTC

Comment 3 Ross Brattain 2022-05-11 19:45:08 UTC
Tested on 4.10.0-0.ci.test-2022-05-11-143634-ci-ln-n8z31y2-latest

OSP IPI DHCP with additionalNetworkIDs

May 11 19:09:25.579978 rbratt-o411o8-zh6rh-worker-0-mmcvc systemd[1]: ovs-configuration.service: Succeeded.
May 11 19:09:25.714721 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + ip route show
May 11 19:09:25.580965 rbratt-o411o8-zh6rh-worker-0-mmcvc systemd[1]: Started Configures OVS with proper host networking configuration.
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: default via 192.168.0.1 dev br-ex proto dhcp metric 48
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: default via 10.0.143.254 dev ens4 proto dhcp metric 100
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: default via 10.0.155.254 dev ens5 proto dhcp metric 101
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: 10.0.140.0/22 dev ens4 proto kernel scope link src 10.0.141.179 metric 100
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: 10.0.152.0/22 dev ens5 proto kernel scope link src 10.0.152.229 metric 101
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: 169.254.169.254 via 192.168.0.10 dev br-ex proto dhcp metric 48
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: 169.254.169.254 via 10.0.140.18 dev ens4 proto dhcp metric 100
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: 169.254.169.254 via 10.0.152.23 dev ens5 proto dhcp metric 101
May 11 19:09:25.715311 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: 192.168.0.0/18 dev br-ex proto kernel scope link src 192.168.1.214 metric 48
May 11 19:09:25.581117 rbratt-o411o8-zh6rh-worker-0-mmcvc systemd[1]: ovs-configuration.service: Consumed 2.229s CPU time


May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + '[' OVNKubernetes == OVNKubernetes ']'
May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + ovnk_config_dir=/etc/ovnk
May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + ovnk_var_dir=/var/lib/ovnk
May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + extra_bridge_file=/etc/ovnk/extra_bridge
May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + iface_default_hint_file=/var/lib/ovnk/iface_default_hint
May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + mkdir -p /etc/ovnk
May 11 19:09:17.472891 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + mkdir -p /var/lib/ovnk
May 11 19:09:17.475217 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ get_iface_default_hint /var/lib/ovnk/iface_default_hint
May 11 19:09:17.475217 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ local iface_default_hint_file=/var/lib/ovnk/iface_default_hint
May 11 19:09:17.475217 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ '[' -f /var/lib/ovnk/iface_default_hint ']'
May 11 19:09:17.477996 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: +++ cat /var/lib/ovnk/iface_default_hint
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ local iface_default_hint=ens3
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ '[' ens3 '!=' '' ']'
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ '[' ens3 '!=' br-ex ']'
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ '[' ens3 '!=' br-ex1 ']'
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ '[' -d /sys/class/net/ens3 ']'
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ echo ens3
May 11 19:09:17.478337 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: ++ return
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + iface_default_hint=ens3
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + '[' ens3 == '' ']'
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + '[' -f /var/lib/ovnk/iface_default_hint ']'
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + '[' -f /etc/ovnk/extra_bridge ']'
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + '[' '!' -f /run/configure-ovs-boot-done ']'
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + echo 'Running on boot, restoring previous configuration before proceeding...'
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: Running on boot, restoring previous configuration before proceeding...
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + rollback_nm
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + remove_all_ovn_bridges
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + echo 'Reverting any previous OVS configuration'
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: Reverting any previous OVS configuration
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + remove_ovn_bridges br-ex phys0
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + bridge_name=br-ex
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + port_name=phys0
May 11 19:09:17.480886 rbratt-o411o8-zh6rh-worker-0-mmcvc configure-ovs.sh[1429]: + update_nm_conn_files br-ex phys0

Comment 8 errata-xmlrpc 2022-05-23 13:25:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.10.15 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2258


Note You need to log in before you can comment on or make changes to this bug.