Merge "Add server_id in exception ServerUnreachable"
This commit is contained in:
commit
5ba5d648f6
@ -359,7 +359,7 @@ class BaseV2ComputeTest(api_version_utils.BaseMicroversionTest,
|
||||
for address in addresses:
|
||||
if address['version'] == CONF.validation.ip_version_for_ssh:
|
||||
return address['addr']
|
||||
raise exceptions.ServerUnreachable()
|
||||
raise exceptions.ServerUnreachable(server_id=server['id'])
|
||||
else:
|
||||
raise exceptions.InvalidConfiguration()
|
||||
|
||||
|
@ -63,7 +63,8 @@ class StackBuildErrorException(exceptions.TempestException):
|
||||
|
||||
|
||||
class ServerUnreachable(exceptions.TempestException):
|
||||
message = "The server is not reachable via the configured network"
|
||||
message = ("Server %(server_id)s is not reachable via "
|
||||
"the configured network")
|
||||
|
||||
|
||||
# NOTE(andreaf) This exception is added here to facilitate the migration
|
||||
|
@ -664,7 +664,7 @@ class ScenarioTest(tempest.test.BaseTestCase):
|
||||
for address in addresses:
|
||||
if address['version'] == CONF.validation.ip_version_for_ssh:
|
||||
return address['addr']
|
||||
raise exceptions.ServerUnreachable()
|
||||
raise exceptions.ServerUnreachable(server_id=server['id'])
|
||||
else:
|
||||
raise exceptions.InvalidConfiguration()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user