16c2c8b3ee
If an instance is deleted before it is scheduled, the BDM clean-up code uses the mappings from the build request as they don't exist in the database yet. When using the older attachment flow with reserve_volume, there is no attachment_id bound to the block device mapping and because it is not loaded from database but rather from the build request, accessing the attachment_id field raises an exception with 'attachment_id not lazy-loadable' If we did a new style attach, _validate_bdm will add the attachment_id from Cinder. If we did not, then this patch will make sure to set it to 'None' to avoid raising an exception when checking if we have an attachment_id set in the BDM clean-up code Change-Id: I3cc775fc7dafe691b97a15e50ae2e93c92f355be Closes-Bug: #1750666 |
||
---|---|---|
.. | ||
__init__.py | ||
test_flavor_manage.py | ||
test_interfaces.py | ||
test_secgroup.py | ||
test_servers.py |