Description of problem: ovn-controller is crashing. It can be reproduced as: ovn-sbctl chassis-add foo geneve 127.0.0.2 foo_uuid=$(ovn-sbctl --bare --columns=_uuid find chassis name=foo) ovn-sbctl set chassis $foo_uuid other_config:ovn-chassis-mac-mappings="foo" After the last command, ovn-controller's crashes on all the chassis. The issue seems to be already reported u/s a while back - https://www.mail-archive.com/ovs-discuss@openvswitch.org/msg08052.html Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Patch posted https://patchwork.ozlabs.org/project/ovn/patch/20220510053936.71276-1-amusil@redhat.com/
### Reproduced on [root@bz-2082341 ~]# rpm -qa |grep -E 'ovn|openvswitch' openvswitch-selinux-extra-policy-1.0-28.el8fdp.noarch ovn-2021-21.12.0-11.el8fdp.x86_64 ovn-2021-central-21.12.0-11.el8fdp.x86_64 ovn-2021-host-21.12.0-11.el8fdp.x86_64 openvswitch2.15-2.15.0-93.el8fdp.x86_64 systemctl start ovn-northd ovn-nbctl set-connection ptcp:6641 ovn-sbctl set-connection ptcp:6642 systemctl start openvswitch ovs-vsctl set open . external_ids:system-id=hv1 ovs-vsctl set open . external_ids:ovn-remote=tcp:42.42.42.1:6642 ovs-vsctl set open . external_ids:ovn-encap-type=geneve ovs-vsctl set open . external_ids:ovn-encap-ip=42.42.42.1 systemctl start ovn-controller pid=$(cat /run/ovn/ovn-controller.pid) ovn-sbctl chassis-add foo geneve 127.0.0.2 ovn-sbctl set chassis foo other_config:ovn-chassis-mac-mappings="invalid1,invalid2,br1:00:00:00:00:00:00" ovn-nbctl --wait=hv sync # will halt on buggy versions ^C ### have to terminate the command manually using ctrl+c [root@bz-2082341 ~]# ps $pid |grep $pid ### ovn-controler does not exist [root@bz-2082341 ~]# ### Verified on [root@bz-2082341 ~]# rpm -qa |grep -E 'ovn|openvswitch' openvswitch-selinux-extra-policy-1.0-28.el8fdp.noarch ovn-2021-21.12.0-73.el8fdp.x86_64 ovn-2021-central-21.12.0-73.el8fdp.x86_64 ovn-2021-host-21.12.0-73.el8fdp.x86_64 openvswitch2.15-2.15.0-93.el8fdp.x86_64 ovn-nbctl --wait=hv sync # does not halt [root@bz-2082341 ~]# ps $pid |grep $pid ### ovn-controler running as normal 68879 ? S<sl 0:00 ovn-controller unix:/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --user openvswitch:openvswitch --no-chdir --log-file=/var/log/ovn/ovn-controller.log --pidfile=/run/ovn/ovn-controller.pid --detach [root@bz-2082341 ~]# ###Also verified on [root@bz-2082341 ~]# rpm -qa |grep -E 'ovn|openvswitch' openvswitch-selinux-extra-policy-1.0-28.el8fdp.noarch ovn22.03-22.03.0-52.el8fdp.x86_64 ovn22.03-host-22.03.0-52.el8fdp.x86_64 openvswitch2.15-2.15.0-93.el8fdp.x86_64 ovn22.03-central-22.03.0-52.el8fdp.x86_64 ###And verified on [root@bz-2082341 ~]# rpm -qa |grep -E 'ovn|openvswitch' openvswitch-selinux-extra-policy-1.0-31.el9fdp.noarch openvswitch2.16-2.16.0-52.el9fdp.x86_64 ovn22.03-22.03.0-52.el9fdp.x86_64 ovn22.03-central-22.03.0-52.el9fdp.x86_64 ovn22.03-host-22.03.0-52.el9fdp.x86_64
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 (ovn bug fix and enhancement 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:5446