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.
Reviewed: https:/ /review. opendev. org/737990 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a6a48e876c9 c4f9a218de88227 0ef098d46bf767
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit a6a48e876c9c4f9 a218de882270ef0 98d46bf767
Author: Balazs Gibizer <email address hidden>
Date: Fri Jun 19 11:18:04 2020 +0200
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.
Change-Id: Id1bbc955a9099d e1abc11b9063fe1 77896646d03 3616a682d294f8f 638dea6baf)
Related-Bug: #1878024
Closes-Bug: #1884214
(cherry picked from commit a85753778f710f0