flaky test: ovn-controller update network name option for localnet port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ovn (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Full log: https:/
The actual test appears to succeed, but in some situations ovs-vswitchd will log a WARN during teardown:
./ovn.at:35715: check_logs "
$error
/connection failed (No such file or directory)/d
/has no network name*/d
/receive tunnel port not found*/d
/Failed to locate tunnel to reach main chassis/d
" $sbox
--- /dev/null 2024-05-19 10:34:30.132000000 +0000
+++ /<<PKGBUILDDIR>
@@ -0,0 +1 @@
+2024-05-
To me this looks benign, and I suggest we just ignore this warning during tear down.
# -*- compilation -*-
485. ovn.at:35715: testing ovn-controller update network_name option for localnet port -- parallelization=yes -- ovn_monitor_all=yes ...
creating ovn-sb database
ovsdb-server -vjsonrpc --remote=
creating ovn-nb database
ovsdb-server -vjsonrpc --remote=
starting northd
ovn-northd --n-threads=4 -vjsonrpc --ovnnb-
2024-05-
e573e254-
ovn-macros.at:311: waiting until TCP_PORT=`sed -n 's/.*0:.*: listening on port \([0-9]*\)$/\1/p' "$d/ovn-
ovn-macros.at:311: wait succeeded immediately
adding simulator 'main'
ovsdb-server --remote=
ovs-vswitchd --enable-
adding simulator 'hv1'
ovsdb-server --remote=
ovs-vswitchd --enable-
ovs-vsctl add-br br-int
./ovn-macros.
ovs-vsctl add-br br-int-2
./ovn-macros.
ovs-vsctl add-br br-phys-1
./ovn-macros.
ovs-vsctl add-br br-phys-2
./ovn-macros.
ovs-vsctl add-br br-phys-3
./ovn-macros.
ovs-vsctl set open . external-
./ovn-macros.
ovn-controller --enable-
ovs-vsctl: no key "ovn-encap-
ovs-vsctl: no key "ovn-encap-ip-hv1" in Open_vSwitch record "." column external_ids
Waiting until ip in sb Encap with chassis_name=hv1 type=geneve is 192.168.1.1...
ovn-macros.at:639: waiting until
found=
found=$(for d in $found; do echo $d; done | sort)
test "$expected" = "$found"
...
ovn-macros.at:639: wait succeeded immediately
Waiting until ip in sb Encap with chassis_name=hv1 type=vxlan is 192.168.1.1...
ovn-macros.at:639: waiting until
found=
found=$(for d in $found; do echo $d; done | sort)
test "$expected" = "$found"
...
ovn-macros.at:639: wait succeeded immediately
ovs-vsctl -- add-port br-int vif1 -- set interface vif1 external-
./ovn-macros.
ovn-nbctl ls-add ls
./ovn-macros.
ovn-nbctl lsp-add ls lp1
./ovn-macros.
ovn-nbctl lsp-set-addresses lp1 00:00:00:00:00:01 10.0.0.1
./ovn-macros.
ovn-nbctl lsp-add ls ln_port
./ovn-macros.
ovn-nbctl lsp-set-addresses ln_port unknown
./ovn-macros.
ovn-nbctl lsp-set-type ln_port localnet
./ovn-macros.
ovn-nbctl lsp-set-options ln_port network_name=phys-1
./ovn-macros.
Waiting until 0 rows in nb Logical_Switch_Port with up!=true type=""...
ovn-macros.at:585: waiting until test $count = $(count_rows $db:$table $a $b $c $d $e)...
ovn-macros.at:585: wait succeeded immediately
Waiting until 0 rows in nb Logical_Switch_Port with up!=true type=router...
ovn-macros.at:585: waiting until test $count = $(count_rows $db:$table $a $b $c $d $e)...
ovn-macros.at:585: wait succeeded immediately
ovn-nbctl --wait=hv sync
./ovn-macros.
ovn-appctl -t ovn-controller debug/ignore-
./ovn-macros.
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl --columns _uuid --bare find Port name=patch-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl list-ports br-int | grep patch-br-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl --columns _uuid --bare find Port name=patch-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl list-ports br-phys-1 | grep patch-ln_
...
ovn.at:35715: wait succeeded immediately
ovn-appctl debug/pause
./ovn-macros.
ovn-nbctl lsp-set-options ln_port network_name=phys-3
./ovn-macros.
ovs-vsctl -- add-port br-int-2 fake-int-
./ovn-macros.
ovs-vsctl -- add-port br-phys-2 fake-phys-
./ovn-macros.
ovn-appctl debug/resume
./ovn-macros.
ovn-nbctl --wait=hv sync
./ovn-macros.
ovn.at:35715: waiting until
test 0 = $(ovs-vsctl list-ports br-phys-1 | grep patch-ln_
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl --columns _uuid --bare find Port name=patch-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl list-ports br-int | grep patch-br-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl --columns _uuid --bare find Port name=patch-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl list-ports br-phys-3 | grep patch-ln_
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl --columns _uuid --bare find Port name=fake-
...
ovn.at:35715: wait succeeded immediately
ovn.at:35715: waiting until
test 1 = $(ovs-vsctl --columns _uuid --bare find Port name=fake-
...
ovn.at:35715: wait succeeded immediately
hv1: clean up sandbox
./ovn.at:35715: test -e $OVS_RUNDIR/
./ovn.at:35715: ovs-appctl --timeout=10 -t ovn-controller exit
ovn.at:35715: waiting while kill -0 $TMPPID 2>/dev/null...
ovn.at:35715: wait succeeded quickly
hv1: clean up vswitch
./ovn.at:35715: test -e $OVS_RUNDIR/
./ovn.at:35715: ovs-appctl --timeout=10 -t ovs-vswitchd exit --cleanup
ovn.at:35715: waiting while kill -0 $TMPPID 2>/dev/null...
ovn.at:35715: wait succeeded quickly
./ovn.at:35715: test -e $OVS_RUNDIR/
./ovn.at:35715: ovs-appctl --timeout=10 -t ovsdb-server exit
ovn.at:35715: waiting while kill -0 $TMPPID 2>/dev/null...
ovn.at:35715: wait succeeded quickly
./ovn.at:35715: check_logs "
$error
/connection failed (No such file or directory)/d
/has no network name*/d
/receive tunnel port not found*/d
/Failed to locate tunnel to reach main chassis/d
" $sbox
--- /dev/null 2024-05-19 10:34:30.132000000 +0000
+++ /<<PKGBUILDDIR>
@@ -0,0 +1 @@
+2024-05-
485. ovn.at:35715: 485. ovn-controller update network_name option for localnet port -- parallelization=yes -- ovn_monitor_all=yes (ovn.at:35715): FAILED (ovn.at:35715)