nova/nova/virt/libvirt
Balazs Gibizer f26823c780 Guard against missing image cache directory
The original fix of bug 1878024 missed an edge case where on a fresh
hypervisor the image cache directory hasn't been created yet. That
directory is only created when the first image is downloaded.

This patch makes sure that if the cache dir hasn't been created yet then
0 disk is reserved for the cache usage instead of raising and logging an
exception.

Conflicts:
  nova/virt/libvirt/imagecache.py due to
  I3c49825ac0d70152b6c8ee4c8ca01546265f4b80 not in stable/train

FileNotFoundError -> OSError changes in the test file is due to py2.7
does not have FileNotFoundError.

Change-Id: Id1bbc955a9099de1abc11b9063fe177896646d03
Related-Bug: #1878024
Closes-Bug: #1884214
(cherry picked from commit a85753778f)
(cherry picked from commit a6a48e876c)
2020-07-03 12:00:36 +02:00
..
storage Merge "rbd: use MAX_AVAIL stat for reporting bytes available" 2019-08-29 13:49:46 +00:00
volume libvirt: use native AIO mode for StorPool Cinder volumes. 2019-08-27 15:21:51 +03:00
__init__.py
blockinfo.py Add reminder to update corresponding glance docs 2019-09-13 10:59:42 +01:00
config.py Create a controller for qga when SEV is used 2019-12-12 15:19:00 +00:00
designer.py Switch to uses_virtio to enable iommu driver for AMD SEV 2019-12-12 15:18:43 +00:00
driver.py libvirt: Don't delete disks on shared storage during evacuate 2020-06-10 00:43:31 +00:00
firewall.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
guest.py Avoid logging traceback when detach device not found 2019-07-19 00:04:37 +00:00
host.py libvirt: check job status for VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED event 2019-12-29 13:59:43 +00:00
imagebackend.py Make RBD imagebackend flatten method idempotent 2020-02-13 14:29:39 +00:00
imagecache.py Guard against missing image cache directory 2020-07-03 12:00:36 +02:00
instancejobtracker.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
migration.py libvirt: check job status for VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED event 2019-12-29 13:59:43 +00:00
utils.py libvirt: Provide the backing file format when creating qcow2 disks 2020-03-02 14:51:21 +00:00
vif.py Revert "vif: Resolve a TODO and update another" 2019-10-23 15:28:14 +00:00