Allocation healer should ignore deleted instances
Bug #1776743 reported by
Mathieu Gagné
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann |
Bug Description
When running this command:
nova-manage placement heal_allocations
It fails with an InstanceNotFound exception when trying to heal deleted instances.
The healer should ignore deleted instances because there is nothing to heal for them.
To post a comment you must log in.
Traceback: https:/ /gist.github. com/mgagne/ 7511aa1e95f624f 872d988a34a1a55 be
The problem is the InstanceList. get_by_ filters query doesn't exclude deleted instances by default, and doesn't take into account the context. read_deleted value, so we have to explicitly pass a filters={'deleted': False} filter.