Red Hat Bugzilla – Bug 1313894
nova start fails in case flavor is deleted and archived in OSP 6
Last modified: 2016-03-04 11:00:27 EST
Description of problem:
In case a stopped instance is started after the flavor of it has been deleted and archived, the instance does not start up.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a flavor
2. Create an instance based on the flavor
3. Delete the flavor
4. Stop the instance
5. Start the instance
6. Archive the flavor
7. Stop the instance
8. Start the instance
The instance does not start in Step (8)
The instance should still start.
This scenario does work if OSP 7 is used.
OSP7 specifically addresses this by putting flavor data into the instance record itself. That was a ton of work and definitely not backportable to OSP7. In all time before OSP7, if you actually hard delete the flavor from the database (as you're doing by a delete+archive) then the instance can't start because we have lost vital data about it.
The solution is to never purge flavors in OSP6 and previous.