yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83093
[Bug 1884214] Re: reserve disk usage for image cache fails on a fresh hypervisor
Reviewed: https://review.opendev.org/736964
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a85753778f710f03616a682d294f8f638dea6baf
Submitter: Zuul
Branch: master
commit a85753778f710f03616a682d294f8f638dea6baf
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxx>
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: Id1bbc955a9099de1abc11b9063fe177896646d03
Related-Bug: #1878024
Closes-Bug: #1884214
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1884214
Title:
reserve disk usage for image cache fails on a fresh hypervisor
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) stein series:
New
Status in OpenStack Compute (nova) train series:
New
Status in OpenStack Compute (nova) ussuri series:
New
Bug description:
If the image cache _base directory does not exists on the hypervisor
yet and [workarounds]/reserve_disk_resource_for_image_cache = True is
set in the nova compute config then nova-compute logs a stack trace
[1] and resource state is not update in placement.
[1] http://paste.openstack.org/show/794993/
This issue was reported originally in
https://bugs.launchpad.net/nova/+bug/1878024 by MarkMielke (mark-
mielke).
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1884214/+subscriptions
References