Delete hm port on unit removal - part 3

This is Zaza functional test for lp:1915512. Add a unit and then remove a unit,
then query the list of ports to check that the port has been deleted.

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/787700
This commit is contained in:
Zhang Hua
2021-10-12 19:11:38 +08:00
parent d353f3c25b
commit 825cc8b266
@@ -114,9 +114,6 @@ class CharmOperationTest(test_utils.OpenStackBaseTest):
resp = neutron_client.list_ports(tags='charm-octavia')
neutron_ip_list = []
for port in resp['ports']:
# one new DOWN port may be created when deleting one octavia unit
if port['status'] == 'DOWN':
continue
for ip_info in port['fixed_ips']:
neutron_ip_list.append(ip_info['ip_address'])
return neutron_ip_list