tests/functional/ppc64/meson.build | 2 +- tests/functional/ppc64/test_hv.py | 140 +++++++++++++++++++++++++---- 2 files changed, 117 insertions(+), 25 deletions(-)
This series fixes several issues in the PPC64 hypervisor functional tests and improves their robustness and reliability. Changes in this series: ----------------------- 1. Replace deprecated datetime.utcnow() with datetime.now(timezone.utc) to avoid deprecation warnings in Python 3.12+. 2. Pin machine types to avoid CPU compatibility issues between the L0 QEMU (which now defaults to power11) and the L1 Alpine guest's packaged QEMU (which doesn't recognize power11). This fixes "Register sync failed" errors in L2. 3. Add kernel command line parameters (console=hvc0 usbcore.nousb) and early panic detection to fail fast when L2 encounters issues, plus retry logic for apk update to handle transient network failures. 4. Dynamically resolve the NVMe device path in L1 instead of hardcoding it, as the device name varies by machine type (nvme0n1 vs nvme1n1). Also adds comprehensive debug logging throughout the test flow and writes the L2 launch command to a script to avoid terminal line-wrap issues. 5. Increase the test timeout from 1000 to 6000 seconds to accommodate the longer runtime due to apk update retries and additional testing. Testing: -------- All tests pass on our PPC64 test machines running Ubuntu 26.04 in an LPAR. Aniket Sahu (3): tests/functional/ppc64: replace deprecated datetime.utcnow() tests/functional/ppc64: add kernel params and early panic detection tests/functional/ppc64: dynamically resolve NVMe device path Misbah Anjum N (2): tests/functional/ppc64: pin machine types for hypervisor tests tests/functional/ppc64: increase timeout for hypervisor tests tests/functional/ppc64/meson.build | 2 +- tests/functional/ppc64/test_hv.py | 140 +++++++++++++++++++++++++---- 2 files changed, 117 insertions(+), 25 deletions(-) -- 2.52.0
Aniket Sahu <asahu1x@linux.ibm.com> writes: > This series fixes several issues in the PPC64 hypervisor functional tests > and improves their robustness and reliability. Just a quick note to say the power hardware we have from OSUL doesn't expose a hypervisor so we can't currently run these tests in the upstream CI. Do you know of any way we could get such hardware added to the CI? Also I should note it would be nice to get: https://gitlab.com/qemu-project/qemu/-/work_items/3207 addressed. Let me know if you need access to the system. > > Changes in this series: > ----------------------- > > 1. Replace deprecated datetime.utcnow() with datetime.now(timezone.utc) > to avoid deprecation warnings in Python 3.12+. > > 2. Pin machine types to avoid CPU compatibility issues between the L0 > QEMU (which now defaults to power11) and the L1 Alpine guest's > packaged QEMU (which doesn't recognize power11). This fixes > "Register sync failed" errors in L2. > > 3. Add kernel command line parameters (console=hvc0 usbcore.nousb) and > early panic detection to fail fast when L2 encounters issues, plus > retry logic for apk update to handle transient network failures. > > 4. Dynamically resolve the NVMe device path in L1 instead of hardcoding > it, as the device name varies by machine type (nvme0n1 vs nvme1n1). > Also adds comprehensive debug logging throughout the test flow and > writes the L2 launch command to a script to avoid terminal line-wrap > issues. > > 5. Increase the test timeout from 1000 to 6000 seconds to accommodate > the longer runtime due to apk update retries and additional testing. > > Testing: > -------- > All tests pass on our PPC64 test machines running Ubuntu 26.04 in an > LPAR. > > Aniket Sahu (3): > tests/functional/ppc64: replace deprecated datetime.utcnow() > tests/functional/ppc64: add kernel params and early panic detection > tests/functional/ppc64: dynamically resolve NVMe device path > > Misbah Anjum N (2): > tests/functional/ppc64: pin machine types for hypervisor tests > tests/functional/ppc64: increase timeout for hypervisor tests > > tests/functional/ppc64/meson.build | 2 +- > tests/functional/ppc64/test_hv.py | 140 +++++++++++++++++++++++++---- > 2 files changed, 117 insertions(+), 25 deletions(-) -- Alex Bennée Virtualisation Tech Lead @ Linaro
On 20/11/26 9:36 PM, Alex Bennée wrote: > Aniket Sahu <asahu1x@linux.ibm.com> writes: > >> This series fixes several issues in the PPC64 hypervisor functional tests >> and improves their robustness and reliability. > Just a quick note to say the power hardware we have from OSUL doesn't > expose a hypervisor so we can't currently run these tests in the > upstream CI. Do you know of any way we could get such hardware added to > the CI? Hypervisor tests are part of the thorough test run (mentioned as hv in the meson.build file), and if I remember correctly, only quick tests are run as part of the CI on gitlab. While the changes I have made would benefit everyone who wants to run hypervisor tests or the thorough test cycle on their machine for ppc64 systems, this mainly helps us target clean CI runs on our internal CI systems. Regarding hardware availability in OSUL, this is something we need to look at and plan for. Will talk with my team about this! > > Also I should note it would be nice to get: > > https://gitlab.com/qemu-project/qemu/-/work_items/3207 > > addressed. Let me know if you need access to the system. Noted, taking a loot at the issue, will correspond via the work item comments if I need a machine. > >> Changes in this series: >> ----------------------- >> >> 1. Replace deprecated datetime.utcnow() with datetime.now(timezone.utc) >> to avoid deprecation warnings in Python 3.12+. >> >> 2. Pin machine types to avoid CPU compatibility issues between the L0 >> QEMU (which now defaults to power11) and the L1 Alpine guest's >> packaged QEMU (which doesn't recognize power11). This fixes >> "Register sync failed" errors in L2. >> >> 3. Add kernel command line parameters (console=hvc0 usbcore.nousb) and >> early panic detection to fail fast when L2 encounters issues, plus >> retry logic for apk update to handle transient network failures. >> >> 4. Dynamically resolve the NVMe device path in L1 instead of hardcoding >> it, as the device name varies by machine type (nvme0n1 vs nvme1n1). >> Also adds comprehensive debug logging throughout the test flow and >> writes the L2 launch command to a script to avoid terminal line-wrap >> issues. >> >> 5. Increase the test timeout from 1000 to 6000 seconds to accommodate >> the longer runtime due to apk update retries and additional testing. >> >> Testing: >> -------- >> All tests pass on our PPC64 test machines running Ubuntu 26.04 in an >> LPAR. >> >> Aniket Sahu (3): >> tests/functional/ppc64: replace deprecated datetime.utcnow() >> tests/functional/ppc64: add kernel params and early panic detection >> tests/functional/ppc64: dynamically resolve NVMe device path >> >> Misbah Anjum N (2): >> tests/functional/ppc64: pin machine types for hypervisor tests >> tests/functional/ppc64: increase timeout for hypervisor tests >> >> tests/functional/ppc64/meson.build | 2 +- >> tests/functional/ppc64/test_hv.py | 140 +++++++++++++++++++++++++---- >> 2 files changed, 117 insertions(+), 25 deletions(-) Regards, Aniket.
© 2016 - 2026 Red Hat, Inc.