The Flat and Lvm backends do not create a 'base image' (the file in the
image cache) when creating an ephemeral or swap disk. However, cache()
expects it to exist when checking if a resize is required.
This change ignores the resize check if the backing file doesn't exist.
This happens to be ok, because ephemeral and swap disks are always
created with the correct target size anyway, and therefore never need
to be resized.
Closes-Bug: 1608934
Co-Authored-By: Matthew Booth <email address hidden>
Change-Id: I46b5658efafe558dd6b28c9910fb8fde830adec0
Fixed in 10.0:
rpodolyaka@ rpodolyaka- pc:~/src/ nova$ git log mirantis/ 10.0/newton --grep= I46b5658efafe55 8dd6b28c9910fb8 fde830adec0 0a62ccd49ea7063 948af6c3b3
commit d0775c50d0c2bd5
Author: Jens Rosenboom <email address hidden>
Date: Mon Aug 15 13:16:58 2016 +0200
Fix resizing in imagebackend. cache()
The Flat and Lvm backends do not create a 'base image' (the file in the
image cache) when creating an ephemeral or swap disk. However, cache()
expects it to exist when checking if a resize is required.
This change ignores the resize check if the backing file doesn't exist.
This happens to be ok, because ephemeral and swap disks are always
created with the correct target size anyway, and therefore never need
to be resized.
Closes-Bug: 1608934 8dd6b28c9910fb8 fde830adec0
Co-Authored-By: Matthew Booth <email address hidden>
Change-Id: I46b5658efafe55