@@ -15,10 +15,20 @@ function test_ovn {
1515
1616 # List OVN NB/SB entries
1717 echo " OVN NB DB entries:"
18- sudo ${container_engine} exec ovn_northd ovn-nbctl --db " $ovn_nb_connection " show
18+ # TODO(mnasiadka): Remove the first part of conditional in G cycle
19+ if [ $IS_UPGRADE == " yes" ]; then
20+ sudo ${container_engine} exec ovn_northd ovn-nbctl --db " $ovn_nb_connection " show
21+ else
22+ sudo ${container_engine} exec ovn_northd ovn-nbctl show
23+ fi
1924
2025 echo " OVN SB DB entries:"
21- sudo ${container_engine} exec ovn_northd ovn-sbctl --db " $ovn_sb_connection " show
26+ # TODO(mnasiadka): Remove the first part of conditional in G cycle
27+ if [ $IS_UPGRADE == " yes" ]; then
28+ sudo ${container_engine} exec ovn_northd ovn-sbctl --db " $ovn_sb_connection " show
29+ else
30+ sudo ${container_engine} exec ovn_northd ovn-sbctl show
31+ fi
2232
2333 OVNNB_STATUS=$( sudo ${container_engine} exec ovn_nb_db ovs-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/status OVN_Northbound)
2434 OVNSB_STATUS=$( sudo ${container_engine} exec ovn_sb_db ovs-appctl -t /var/run/ovn/ovnsb_db.ctl cluster/status OVN_Southbound)
@@ -92,9 +102,20 @@ function test_octavia {
92102 openstack floating ip set $lb_fip --port $lb_port_id
93103
94104 echo " OVN NB entries for LB:"
95- sudo ${container_engine} exec ovn_northd ovn-nbctl --db " $ovn_nb_connection " list load_balancer
105+ # TODO(mnasiadka): Remove the first part of conditional in G cycle
106+ if [ $IS_UPGRADE == " yes" ]; then
107+ sudo ${container_engine} exec ovn_northd ovn-nbctl --db " $ovn_nb_connection " list load_balancer
108+ else
109+ sudo ${container_engine} exec ovn_northd ovn-nbctl list load_balancer
110+ fi
111+
96112 echo " OVN NB entries for NAT:"
97- sudo ${container_engine} exec ovn_northd ovn-nbctl --db " $ovn_nb_connection " list nat
113+ # TODO(mnasiadka): Remove the first part of conditional in G cycle
114+ if [ $IS_UPGRADE == " yes" ]; then
115+ sudo ${container_engine} exec ovn_northd ovn-nbctl --db " $ovn_nb_connection " list nat
116+ else
117+ sudo ${container_engine} exec ovn_northd ovn-nbctl list nat
118+ fi
98119
99120 echo " Attempt to access the load balanced HTTP server."
100121 attempts=12
0 commit comments