Improve test_neutron_agents_are_alive on cloud recovery

Change-Id: I21b3678b0eb0f4db42a84baa78b3de56975f4dc6
changes/69/810169/1
Federico Ressi 1 year ago
parent 4af7676b3a
commit dc1ecea9e6
  1. 4
      tobiko/openstack/tests/_neutron.py

@ -5,6 +5,7 @@ import json
import re
import typing
from keystoneauth1 import exceptions
from oslo_log import log
import tobiko
@ -42,7 +43,8 @@ def test_neutron_agents_are_alive(timeout=300., interval=5.) \
# get Neutron agent list
agents = neutron.list_agents()
except (neutron.ServiceUnavailable,
neutron.NeutronClientException) as ex:
neutron.NeutronClientException,
exceptions.connection.ConnectFailure) as ex:
if attempt.is_last:
raise
else:

Loading…
Cancel
Save