hv1_hostname could be empty because it may be assigned before SB is updated, so adding ovn-sbctl wait-until fixes it.
Signed-off-by: Han Zhou <[email protected]> --- tests/ovn.at | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ovn.at b/tests/ovn.at index 4a53165..d044674 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -9260,6 +9260,7 @@ ovs-vsctl add-br br-phys ovn_attach n1 br-phys 192.168.0.11 ovs-vsctl -- add-port br-int hv1-vif0 -- set Interface hv1-vif0 ofport-request=1 +ovn-sbctl wait-until chassis hv1 hv1_hostname=$(ovn-sbctl --bare --columns hostname find Chassis name=hv1) echo "hv1_hostname=${hv1_hostname}" ovn-nbctl --wait=hv --timeout=3 lsp-set-options lsp0 requested-chassis=${hv1_hostname} -- 2.1.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
