Comment 11 for bug 1798688

Revision history for this message
Matt Riedemann (mriedem) wrote :

It looks like the compute manager doesn't remove the allocations for the shelved instances until after updating the status to SHELVED_OFFLOADED, so it's possible we're hitting a race where tempest sees the instance is shelved, and then immediately unshelves it before we've removed the allocations during shelve...otherwise I can't explain how we go down this patch in the scheduler during the unshelve:

https://github.com/openstack/nova/blob/e27905f482ba26d2bbf3ae5d948dee37523042d5/nova/scheduler/client/report.py#L1824

Since for a shelved offloaded server there should not be any existing allocations.