You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the function network_name_from_instance() doesn't consider the case where an instance has no networks configured (no ports attached), in that scenario the iterator will raise StopIteration
This change covers the case where an instance has no ports (addresses)
attached making the function network_name_from_instance() raise a
StopIteration since the "addresses" dict is empty.
Traceback (most recent call last):
File "[...]/zaza/openstack/charm_tests/manila/tests.py", line 142, in tearDownClass
fips_reservations += neutron_tests.floating_ips_from_instance(vm)
File "[...[/zaza/openstack/charm_tests/neutron/tests.py", line 1028, in floating_ips_from_instance
return ips_from_instance(instance, 'floating')
File "[...]/zaza/openstack/charm_tests/neutron/tests.py", line 1073, in ips_from_instance
network_name_from_instance(instance)]
File "[...]/zaza/openstack/charm_tests/neutron/tests.py", line 1052, in network_name_from_instance
return next(iter(instance.addresses))
StopIteration
Fixesopenstack-charmers#771
This change covers the case where an instance has no ports (addresses)
attached making the function network_name_from_instance() raise a
StopIteration since the "addresses" dict is empty.
Traceback (most recent call last):
File "[...]/zaza/openstack/charm_tests/manila/tests.py", line 142, in tearDownClass
fips_reservations += neutron_tests.floating_ips_from_instance(vm)
File "[...[/zaza/openstack/charm_tests/neutron/tests.py", line 1028, in floating_ips_from_instance
return ips_from_instance(instance, 'floating')
File "[...]/zaza/openstack/charm_tests/neutron/tests.py", line 1073, in ips_from_instance
network_name_from_instance(instance)]
File "[...]/zaza/openstack/charm_tests/neutron/tests.py", line 1052, in network_name_from_instance
return next(iter(instance.addresses))
StopIteration
Fixesopenstack-charmers#771
the function
network_name_from_instance()
doesn't consider the case where an instance has no networks configured (no ports attached), in that scenario the iterator will raise StopIterationci run failure: https://review.opendev.org/c/openstack/charm-manila/+/841964
The text was updated successfully, but these errors were encountered: