cinder/cinder/volume/flows
Mohammed Naser f62f8abad1 Move disk space check to run when needed
At the moment, the check for disk space when booting from an image
currently happens regardless if the backend supports cloning or not.

This means that even if a backend can clone the image directly, the
control plane must have enough disk to download the entire image
which can be unreasonable in backend such as RBD.

This patch moves the code which checks for enough disk space to be
in the same function that effectively downloads the image, ensuring
that it only runs when an image has to be downloaded and avoiding
the check if the backend successfully cloned the image.

Closes-Bug: #1744383
Change-Id: Ibfd6f40e8b8ab88d4ec76e9ac27617a0f97b6c29
2018-01-19 14:13:11 -08:00
..
api Fix create from snapshot and source volume 2017-12-07 22:23:55 -05:00
manager Move disk space check to run when needed 2018-01-19 14:13:11 -08:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
common.py Enable H904 check 2017-07-05 21:27:05 -04:00