The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1779121 - [OVN] ovn-controller: Add command to trigger a full recompute.
Summary: [OVN] ovn-controller: Add command to trigger a full recompute.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.12
Version: FDP 19.G
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dumitru Ceara
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks: 1779124
TreeView+ depends on / blocked
 
Reported: 2019-12-03 10:57 UTC by Dumitru Ceara
Modified: 2020-01-21 06:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1779124 (view as bug list)
Environment:
Last Closed: 2020-01-21 06:20:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0167 0 None None None 2020-01-21 06:20:23 UTC

Description Dumitru Ceara 2019-12-03 10:57:19 UTC
Description of problem:
In case the incremental processing code in ovn-controller hits a bug and the state is inconsistent there's no way to trigger a full recompute that would properly install all flows.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. ovn-appctl -t ovn-controller recompute
2.
3.

Actual results:
Command doesn't exist.

Expected results:
The command should run and force a full recompute in ovn-controller.


Additional info:

Comment 3 Jianlin Shi 2019-12-30 03:15:16 UTC
Verified on ovn2.11.1-24:


server:

[root@dell-per740-12 bz1779124]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.11-central-2.11.1-24.el8fdp.x86_64
ovn2.11-2.11.1-24.el8fdp.x86_64
openvswitch2.11-2.11.0-35.el8fdp.x86_64
ovn2.11-host-2.11.1-24.el8fdp.x86_64
openvswitch-selinux-extra-policy-1.0-19.el8fdp.noarch
[root@dell-per740-12 bz1779124]# cat setup.sh 
#!/bin/bash

systemctl start openvswitch
systemctl start ovn-northd
ovn-nbctl set-connection ptcp:6641
ovn-sbctl set-connection ptcp:6642

ovs-vsctl set open . external_ids:system-id=hv1 external_ids:ovn-remote=tcp:20.0.30.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.30.25
systemctl restart ovn-controller

ip netns add server0
ip link add veth0_s0 netns server0 type veth peer name veth0_s0_p
ip netns exec server0 ip link set lo up
ip netns exec server0 ip link set veth0_s0 up
ip netns exec server0 ip link set veth0_s0 address 00:00:00:01:01:02
ip netns exec server0 ip addr add 192.168.1.1/24 dev veth0_s0

ovs-vsctl add-port br-int veth0_s0_p
ip link set veth0_s0_p up
ovs-vsctl set interface veth0_s0_p external_ids:iface-id=ls1p1

ovn-nbctl ls-add ls1
ovn-nbctl lsp-add ls1 ls1p1
ovn-nbctl lsp-set-addresses ls1p1 00:00:00:01:01:02

ovn-nbctl lsp-add ls1 ls1p2
ovn-nbctl lsp-set-addresses ls1p2 00:00:00:01:02:02

client:
[root@hp-dl380pg8-12 bz1779124]# rpm -qa | grep -E "openvswitch|ovn"                                                                                                                          
openvswitch2.11-2.11.0-35.el7fdp.x86_64
ovn2.11-2.11.1-24.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
ovn2.11-host-2.11.1-24.el7fdp.x86_64
ovn2.11-central-2.11.1-24.el7fdp.x86_64
[root@hp-dl380pg8-12 bz1779124]# cat setup.sh 
#!/bin/bash

systemctl start openvswitch
ovs-vsctl set open . external_ids:system-id=hv0 external_ids:ovn-remote=tcp:20.0.30.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.30.26
systemctl restart ovn-controller

ip netns add client0
ip link add veth0_c0 netns client0 type veth peer name veth0_c0_p
ip netns exec client0 ip link set lo up
ip netns exec client0 ip link set veth0_c0 up
ip netns exec client0 ip link set veth0_c0 address 00:00:00:01:02:02
ip netns exec client0 ip addr add 192.168.1.2/24 dev veth0_c0

ovs-vsctl add-port br-int veth0_c0_p
ip link set veth0_c0_p up
ovs-vsctl set interface veth0_c0_p external_ids:iface-id=ls1p2


recompute on server:

[root@hp-dl380pg8-12 bz1779124]# ovs-appctl -t ovn-controller recompute                                                                                                                       
[root@hp-dl380pg8-12 bz1779124]# ip netns exec client0 ping 192.168.1.1 -c 5
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.31 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.212 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.184 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.202 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.190 ms

recompute on client:
[root@hp-dl380pg8-12 bz1779124]# ovs-appctl -t ovn-controller recompute                                                                                                                       
[root@hp-dl380pg8-12 bz1779124]# ip netns exec client0 ping 192.168.1.1 -c 5
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.31 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.212 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.184 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.202 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.190 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.184/0.421/1.318/0.448 ms

Comment 4 Jianlin Shi 2019-12-30 03:39:30 UTC
Verified on 2.12.0-19:

server:

[root@hp-dl380pg8-12 bz1779124]# ovn-appctl -t ovn-controller recompute
[root@hp-dl380pg8-12 bz1779124]# ip netns exec client0 ping 192.168.1.1 -c 5
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.220 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.197 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.200 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.195 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.200 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.195/0.202/0.220/0.015 ms
[root@hp-dl380pg8-12 bz1779124]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.12-central-2.12.0-19.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
ovn2.12-2.12.0-19.el7fdp.x86_64
ovn2.12-host-2.12.0-19.el7fdp.x86_64
openvswitch2.12-2.12.0-12.el7fdp.x86_64

client:

[root@hp-dl380pg8-12 bz1779124]# ovn-appctl -t ovn-controller recompute
[root@hp-dl380pg8-12 bz1779124]# ip netns exec client0 ping 192.168.1.1 -c 5
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.220 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.197 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.200 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.195 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.200 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.195/0.202/0.220/0.015 ms
[root@hp-dl380pg8-12 bz1779124]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.12-central-2.12.0-19.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-14.el7fdp.noarch
ovn2.12-2.12.0-19.el7fdp.x86_64
ovn2.12-host-2.12.0-19.el7fdp.x86_64
openvswitch2.12-2.12.0-12.el7fdp.x86_64

Comment 6 errata-xmlrpc 2020-01-21 06:20:15 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, 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:0167


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