Make cells use Fault obj for create
Add support into InstanceFault.create() to handle where we need to duplicate any faults in the API cells. Convert the cells code to use InstanceFault.create() NOTE: This happens to fix an oversight where we accidentally left the update_cells=False kwarg off of the db call in the cells code. Change-Id: Iec11b8259aaecba055a6d5636ab60dfa0dbb6c83
This commit is contained in:
parent
b547d03b6c
commit
e3589fb706
@ -1828,15 +1828,9 @@ def aggregate_host_delete(context, aggregate_id, host):
|
||||
####################
|
||||
|
||||
|
||||
def instance_fault_create(context, values, update_cells=True):
|
||||
def instance_fault_create(context, values):
|
||||
"""Create a new Instance Fault."""
|
||||
rv = IMPL.instance_fault_create(context, values)
|
||||
if update_cells:
|
||||
try:
|
||||
cells_rpcapi.CellsAPI().instance_fault_create_at_top(context, rv)
|
||||
except Exception:
|
||||
LOG.exception(_("Failed to notify cells of instance fault"))
|
||||
return rv
|
||||
return IMPL.instance_fault_create(context, values)
|
||||
|
||||
|
||||
def instance_fault_get_by_instance_uuids(context, instance_uuids):
|
||||
|
Loading…
Reference in New Issue
Block a user