Skip to content

tests/functional/ppc64: Fixes and improvements for hypervisor tests

Aniket Sahu qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Changes in this series from the cover letter

-----------------------

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.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tests/functional/ppc64: replace deprecated datetime.utcnow()tests/functional/ppc64/test_hv.py+3 -20 replies
2/5tests/functional/ppc64: pin machine types for hypervisor teststests/functional/ppc64/test_hv.py+15 -52 replies
3/5tests/functional/ppc64: add kernel params and early panic detectiontests/functional/ppc64/test_hv.py+20 -100 replies
4/5tests/functional/ppc64: dynamically resolve NVMe device pathtests/functional/ppc64/test_hv.py+78 -90 replies
5/5tests/functional/ppc64: increase timeout for hypervisor teststests/functional/ppc64/meson.build+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] tests/functional/ppc64: Fixes and improvements for hypervisor tests

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(-)
Signature · 1 line
2.52.0