Adding instance ID to DNS error message.
Currently the message is unhelpful as it gets lost in all the other messages. This adds the instance ID so that ops can track down the failed instance and correct it. Change-Id: If9d256bf971b056a6636568efe788c7cb2c2ef5f Fixes: bug 1154798
This commit is contained in:
parent
2187352dad
commit
c791fe8df1
@ -74,7 +74,7 @@ class FreshInstanceTasks(FreshInstance):
|
||||
try:
|
||||
self._create_dns_entry()
|
||||
except Exception as e:
|
||||
msg = "Error creating DNS entry for instance."
|
||||
msg = "Error creating DNS entry for instance: %s" % self.id
|
||||
err = inst_models.InstanceTasks.BUILDING_ERROR_DNS
|
||||
self._log_and_raise(e, msg, err)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user