When file-backed memory is configured, it is the only "memory" reported
by nova and used by instances, with RAM used in caching capacity. We
should be warning users of this and insisting they explicitly configure
the '[DEFAULT] reserved_host_memory_mb' config option to 0. However,
doing so now would be breaking change. Instead, start logging a warning
instead, failing only for the truly broken combination of reserving more
file-backed memory than we have allocated.
Change-Id: I9619338ad0f60253b628d96543f8ce3ac86242e3
Signed-off-by: Stephen Finucane <email address hidden>
Closes-Bug: #1882821
(cherry picked from commit 3b99747b42e460567d52cc6d748396cb349d56b8)
Reviewed: https:/ /review. opendev. org/736219 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9d3ebd58aa6 a7514ab4db40198 0848570415706a
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 9d3ebd58aa6a751 4ab4db401980848 570415706a
Author: Stephen Finucane <email address hidden>
Date: Tue Jun 9 18:38:10 2020 +0100
libvirt: Don't allow "reserving" file-backed memory
When file-backed memory is configured, it is the only "memory" reported host_memory_ mb' config option to 0. However,
by nova and used by instances, with RAM used in caching capacity. We
should be warning users of this and insisting they explicitly configure
the '[DEFAULT] reserved_
doing so now would be breaking change. Instead, start logging a warning
instead, failing only for the truly broken combination of reserving more
file-backed memory than we have allocated.
Change-Id: I9619338ad0f602 53b628d96543f8c e3ac86242e3 67d52cc6d748396 cb349d56b8)
Signed-off-by: Stephen Finucane <email address hidden>
Closes-Bug: #1882821
(cherry picked from commit 3b99747b42e4605