Bug 1781223
| Summary: | Dynamic MAC assignments made before generating MAC prefix | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Russell Bryant <rbryant> | ||||
| Component: | ovn2.11 | Assignee: | Dumitru Ceara <dceara> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jianlin Shi <jishi> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | RHEL 8.0 | CC: | ctrautma, dceara, mmichels, tredaelli, william.caban, zzhao | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1794671 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-03-10 10:07:57 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1794671 | ||||||
| Attachments: |
|
||||||
|
Description
Russell Bryant
2019-12-09 14:59:21 UTC
Patch posted here: https://mail.openvswitch.org/pipermail/ovs-dev/2019-December/365776.html In my latest ovn-kubernetes testing, I noticed this issue occurring after an ovn-northd restart. It appears that if you're running ovn-northd in active-active mode, the same MAC resetting would occur the first time a given instance of ovn-northd becomes the leader. Created attachment 1643383 [details]
backport to ovn2.11 branch, applies cleanly after other backports
I've attached a backport that applies cleanly after the other backports applied to ovn2.11.
Please also backport the following patches to assist in debugging similar issues: - https://mail.openvswitch.org/pipermail/ovs-dev/2019-December/365705.html - https://mail.openvswitch.org/pipermail/ovs-dev/2019-December/365664.html - https://mail.openvswitch.org/pipermail/ovs-dev/2019-December/365313.html as there is no log before the fixed version, so can't reproduce on old version.
Verified on ovn2.11.1-32:
#!/bin/bash
systemctl restart openvswitch
systemctl restart ovn-northd
ovn-nbctl set-connection ptcp:6641
ovn-sbctl set-connection ptcp:6642
ovs-vsctl set open . external-ids:system_id=hv0 external-ids:ovn-remote=tcp:20.0.30.26:6642 external-ids:ovn-encap-type=geneve external-ids:ovn-encap-ip=20.0.30.26
systemctl restart ovn-controller
ovn-nbctl ls-add ls1
ovn-nbctl lsp-add ls1 lsp1
ovn-nbctl set Logical-Switch ls1 other_config:subnet=192.168.0.0/16
ovn-nbctl set Logical-switch ls1 other_config:ipv6_prefix=2003::0
ovn-nbctl lsp-set-addresses lsp1 dynamic
ovn-nbctl list logical_switch_port lsp1
[root@hp-dl380pg8-12 bz1781223]# rpm -qa | grep -E "ovn|openvswitch"
ovn2.11-central-2.11.1-32.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
ovn2.11-2.11.1-32.el7fdp.x86_64
ovn2.11-host-2.11.1-32.el7fdp.x86_64
openvswitch2.11-2.11.0-35.el7fdp.x86_64
[root@hp-dl380pg8-12 bz1781223]# ovn-nbctl list nb_global
_uuid : ef4b4f8f-4bba-46fb-a60e-ede49f9d7481
connections : [2cf377e1-489e-49b0-b850-dfe4847b5c91]
external_ids : {}
hv_cfg : 0
ipsec : false
nb_cfg : 0
options : {mac_prefix="ca:8e:0c", svc_monitor_mac="82:f8:6f:cf:3c:97"}
sb_cfg : 0
ssl : []
log from ovn-northd:
[root@hp-dl380pg8-12 bz1781223]# cat /var/log/openvswitch/ovn-northd.log
2020-02-03T02:07:29.758Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-northd.log
2020-02-03T02:07:29.760Z|00002|reconnect|INFO|unix:/run/openvswitch/ovnnb_db.sock: connecting...
2020-02-03T02:07:29.760Z|00003|reconnect|INFO|unix:/run/openvswitch/ovnsb_db.sock: connecting...
2020-02-03T02:07:29.760Z|00004|reconnect|INFO|unix:/run/openvswitch/ovnnb_db.sock: connected
2020-02-03T02:07:29.760Z|00005|reconnect|INFO|unix:/run/openvswitch/ovnsb_db.sock: connected
2020-02-03T02:07:29.760Z|00006|ovn_northd|INFO|ovn-northd lock acquired. This ovn-northd instance is now active.
2020-02-03T02:07:29.853Z|00007|ovn_northd|INFO|Assigned dynamic IPv4 address '192.168.0.2' to port 'lsp1'
2020-02-03T02:07:29.853Z|00008|ovn_northd|INFO|Assigned dynamic MAC address 'ca:8e:0c:a8:00:03' to port 'lsp1'
<=== mac is generated from mac prefix
2020-02-03T02:07:29.853Z|00009|ovn_northd|INFO|Assigned dynamic IPv6 address '2003::c88e:cff:fea8:3' to port 'lsp1'
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, 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-2020:0750 |