diff --git a/ironic/conductor/allocations.py b/ironic/conductor/allocations.py index 5c1a7024a21..216a4cb6f1f 100644 --- a/ironic/conductor/allocations.py +++ b/ironic/conductor/allocations.py @@ -90,6 +90,8 @@ def _allocation_failed(allocation, reason): allocation.state = states.ERROR allocation.last_error = str(reason) allocation.save() + except exception.AllocationNotFound as exc: + LOG.debug('Not saving a failed allocation: %s', exc) except Exception: LOG.exception('Could not save the failed allocation %s', allocation.uuid)