archive_deleted_instances is not atomic for insert/delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Surya Seetharaman |
Bug Description
Description
===========
Archive deleted instances first moves deleted rows to the shadow
tables and then deletes the rows from the original tables.
However, because it does 2 different selects (to get the rows to insert
and to delete) we can have the case that a row is not inserted in the
shadow table but removed from the original.
This can happen when there are new deleted rows between the insert and
delete.
Shouldn't we delete explicitly only the IDs that were inserted?
See:
insert = shadow_
query_delete = sql.select(
delete_
(...)
Changed in nova: | |
assignee: | nobody → Belmiro Moreira (moreira-belmiro-email-lists) |
description: | updated |
Changed in nova: | |
assignee: | Belmiro Moreira (moreira-belmiro-email-lists) → Surya Seetharaman (tssurya) |
Changed in nova: | |
importance: | Undecided → Medium |
Set the status to In-progress because this report has an assignee.