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)