Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronise 2023.1 with upstream #106

Merged
merged 3 commits into from
Sep 16, 2024
Merged

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Sep 9, 2024

This PR contains a snapshot of 2023.1 from upstream stable/2023.1.

notartom and others added 3 commits August 30, 2024 02:03
While we do cache the hosts's capabilities in self._caps in the
libvirt Host object, if we happen to fist call get_capabilities() with
some of our dedicated CPUs offline, libvirt erroneously reports them
as being on socket 0 regardless of their real socket. We would then
cache that topology, thus breaking pretty much all of our NUMA
accounting.

To fix this, this patch makes sure to call get_capabilities()
immediately upon host init, and to power up all our dedicated CPUs
before doing so. That way, we cache their real socket ID.

For testing, because we don't really want to implement a libvirt bug
in our Python libvirt fixture, we make due with a simple unit tests
that asserts that init_host() has powered on the correct CPUs.

Closes-bug: 2077228
Change-Id: I9a2a7614313297f11a55d99fb94916d3583a9504
(cherry picked from commit 79d1f06)
(cherry picked from commit 294444b)
(cherry picked from commit 6448e38)
Since the commit the remove AMI snapshot format special casing
has merged, we're now running the libvirt snapshot tests as expected.
However, for those tests qemu-img binary needs to be installed.
Because these tests have been silently and incorrectly skipped for so long,
they didn't receive the same maintenance as other tests as the failures went unnoticed.

Change-Id: Ia90eedbe35f4ab2b200bdc90e0e35e5a86cc2110
Closes-bug: #2075178
Signed-off-by: Julien Le Jeune <[email protected]>
(cherry picked from commit 0809f75)
(cherry picked from commit cd4e581)
(cherry picked from commit f58e8df)
@priteau priteau closed this Sep 16, 2024
@priteau priteau reopened this Sep 16, 2024
@priteau priteau merged commit 01a28cd into stackhpc/2023.1 Sep 16, 2024
3 checks passed
@priteau priteau deleted the upstream/2023.1-2024-09-09 branch September 16, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants