test_gateway_chassis_with_bridge_mappings is incomplete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Fix Released
|
Undecided
|
Flavio Fernandes |
Bug Description
The functional test test_gateway_
It essentially does:
openstack router set router1 --external-gateway public_net1
openstack router set router1 --external-gateway public_net2
openstack router set router1 --external-gateway public_net3
It should also unset in between the sets, to exercise
update router where gateway is cleared.
openstack router set router1 --external-gateway public_net1
openstack router unset router1 --external-gateway
openstack router set router1 --external-gateway public_net2
openstack router set router1 --external-gateway public_net3
The test is located at:
One way to run it is by invoking the command on a 'stacked' system:
cd /opt/stack/
tox -e dsvm-functional -- \
networking_
Changed in networking-ovn: | |
assignee: | nobody → Flavio Fernandes (ffernand) |
summary: |
- test_gateway_chassis_with_bridge_mappings is wrong + test_gateway_chassis_with_bridge_mappings is incomplete |
description: | updated |
description: | updated |
description: | updated |
tags: | added: networking-ovn-proactive-backport-potential |
Steps to exercise this codepath:
PRJ=$(openstack project show demo -f value -c id)
openstack router create --project $PRJ router2 >/dev/null
RTR=$(openstack router show router2 -f value -c id)
# this external network may already exist.. network- type flat --provider- physical- network public >/dev/null 2>&1 || true ID=$(openstack network show public -f value -c id)
openstack network create public --external --default --provider-
EXT_NET_
openstack network create --external --provider- network- type geneve public2 >/dev/null 2>&1 ID2=$(openstack network show public2 -f value -c id)
EXT_NET_
openstack subnet create --ip-version 4 --network $EXT_NET_ID2 --subnet-range 192.168.111.0/24 --no-dhcp public2-subnet1 >/dev/null
openstack router set --external-gateway $EXT_NET_ID $RTR
openstack router show $RTR | grep -i external
openstack router set --external-gateway $EXT_NET_ID2 $RTR
openstack router show $RTR | grep -i external
openstack router unset --external-gateway $RTR
openstack router show $RTR | grep -i external