nova/nova/tests/unit/conductor
Mohammed Naser 51027abfd6 Store block device mappings in cell0
If an instance fails to get scheduled, it gets buried in cell0 but
none of it's block device mappings are stored.  At the API layer,
Nova reserves and creates attachments for new instances when
it gets a create request so these attachments are orphaned if the
block device mappings are not registered in the database somewhere.

This patch makes sure that if an instance is being buried in cell0,
all of it's block device mappings are recorded as well so they can
be later removed when the instance is deleted.

Conflicts:
      nova/conductor/manager.py

Change-Id: I64074923fb741fbf5459f66b8ab1a23c16f3303f
Related-Bug: #1404867
(cherry picked from commit ad9e2a568f)
2018-02-21 18:11:41 -05:00
..
tasks Workaround missing RequestSpec.project_id when moving an instance 2017-12-20 12:52:34 -05:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_conductor.py Store block device mappings in cell0 2018-02-21 18:11:41 -05:00