Add periodic logs during database mechanism
This patch will help operator and developer who can follow actions during checking server status and service status of creating/deleting mechanism. Change-Id: I479628d66a9016750a21d9846358406e097525e5
This commit is contained in:
parent
1b159c7d6a
commit
6c50dec163
@ -746,6 +746,8 @@ class FreshInstanceTasks(FreshInstance, NotifyMixin, ConfigurationMixin):
|
||||
"""
|
||||
service = InstanceServiceStatus.find_by(instance_id=self.id)
|
||||
status = service.get_status()
|
||||
LOG.debug("Service status of instance %(instance)s is %(status)s",
|
||||
{"instance": self.id, "status": status})
|
||||
if (status == rd_instance.ServiceStatuses.RUNNING or
|
||||
status == rd_instance.ServiceStatuses.INSTANCE_READY):
|
||||
return True
|
||||
@ -758,6 +760,7 @@ class FreshInstanceTasks(FreshInstance, NotifyMixin, ConfigurationMixin):
|
||||
c_id = self.db_info.compute_instance_id
|
||||
server = self.nova_client.servers.get(c_id)
|
||||
server_status = server.status
|
||||
LOG.debug("Server status of instance %s is %s", self.id, server_status)
|
||||
if server_status in [InstanceStatus.ERROR,
|
||||
InstanceStatus.FAILED]:
|
||||
server_fault_message = 'No fault found'
|
||||
|
Loading…
Reference in New Issue
Block a user