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

guest_os_booting: update tests for s390x #5985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smitterl
Copy link
Contributor

@smitterl smitterl commented Nov 7, 2024

The following features are not available on s390x:

  • SMBIOS
  • ACPI
  • fw_cfg
  • USB
  • <boot dev.../>
  • firmware settings
  • SATA

For direct kernel boot, don't use hard coded kernel filename.
In our setup we'll use kernel.img, so just use the filename
from the download url.

Don't use ttyS0, it's the line mode console which is not useful.
Using ttysclp0 is the standard on s390x.

Cover also s390x-specific parameter @loadparm by allowing generically
to run a test command in the booted VM whose output should match an
expected regular expression.

On s390x, the VM will stop if no bootable medium - such as missing cdrom
file - is found.

Some tests were written assuming the VM would use the //os/boot element
instead of the per-device element by trying to remove only that element.
Instead just remove all present boot elements in these cases, no matter
where, the test will define the new one that's relevant for the test
case.

In some boot tests also enable boot for VMs without Secure Boot, where
there's no firmware.

Add test case that attaches same bootable device twice, this had a bug
on s390x recently.

s390x currently doesn't have secure boot. Use the first VM and don't set
os attributes that relate to secure boot on other archs.

Implement logic to actually load into the installer via PXE.
Move s390x PXE setup to provider for reuse in boot order tests.
Allow for pxelinux.cfg without kickstart, for the boot check we don't
need it.
Also, a network boot requires more RAM, so update if configured.

@smitterl smitterl force-pushed the enable_guest_os_booting_s390x branch 3 times, most recently from 42c5da4 to 75582b5 Compare November 13, 2024 16:07
@smitterl smitterl changed the title guest_os_booting: disable test cases on s390x guest_os_booting: update tests for s390x Nov 13, 2024
@smitterl smitterl force-pushed the enable_guest_os_booting_s390x branch 2 times, most recently from 86b1e55 to 658417c Compare November 13, 2024 16:28
@smitterl smitterl force-pushed the enable_guest_os_booting_s390x branch 10 times, most recently from b007c05 to 12b790b Compare December 20, 2024 20:22
The following features are not available on s390x:
* SMBIOS
* ACPI
* fw_cfg
* USB
* <boot dev.../>
* firmware settings
* SATA

For direct kernel boot, don't use hard coded kernel filename.
In our setup we'll use kernel.img, so just use the filename
from the download url.

Don't use ttyS0, it's the line mode console which is not useful.
Using ttysclp0 is the standard on s390x.

Cover also s390x-specific parameter @loadparm by allowing generically
to run a test command in the booted VM whose output should match an
expected regular expression.

On s390x, the VM will stop if no bootable medium - such as missing cdrom
file - is found.

Some tests were written assuming the VM would use the //os/boot element
instead of the per-device element by trying to remove only that element.
Instead just remove all present boot elements in these cases, no matter
where, the test will define the new one that's relevant for the test
case.

In some boot tests also enable boot for VMs without Secure Boot, where
there's no firmware.

Add test case that attaches same bootable device twice, this had a bug
on s390x recently.

s390x currently doesn't have secure boot. Use the first VM and don't set
os attributes that relate to secure boot on other archs.

Implement logic to actually load into the installer via PXE.
Move s390x PXE setup to provider for reuse in boot order tests.
Allow for pxelinux.cfg without kickstart, for the boot check we don't
need it.
Also, a network boot requires more RAM, so update if configured.

Signed-off-by: Sebastian Mitterle <[email protected]>
@smitterl smitterl force-pushed the enable_guest_os_booting_s390x branch from 12b790b to 23a22ab Compare December 20, 2024 20:28
@smitterl smitterl marked this pull request as ready for review December 20, 2024 20:34
@smitterl
Copy link
Contributor Author

JOB ID     : 8199867b88399a62c814678509f70b277b004183
JOB LOG    : /var/log/avocado/job-results/job-2024-12-23T01.19-8199867/job.log
 (01/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.hotplug.disk_device: STARTED
 (01/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.hotplug.disk_device: PASS (19.47 s)
 (02/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.hotplug.usb_device: STARTED
 (02/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.hotplug.usb_device: PASS (78.05 s)
 (03/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.hotplug.filesystem_device: STARTED
 (03/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.hotplug.filesystem_device: PASS (18.03 s)
 (04/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.cdrom.hd_bootable.default: STARTED
 (04/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.cdrom.hd_bootable.default: PASS (19.07 s)
 (05/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.cdrom.hd_bootable.with_loadparm: STARTED
 (05/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.cdrom.hd_bootable.with_loadparm: PASS (48.75 s)
 (06/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.cdrom.cdrom_bootable: STARTED
 (06/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.cdrom.cdrom_bootable: PASS (38.48 s)
 (07/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.network.hd_bootable: STARTED
 (07/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.network.hd_bootable: PASS (19.83 s)
 (08/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.network.network_bootable: STARTED
 (08/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.hd.network.network_bootable: PASS (118.98 s)
 (09/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.hd.hd_bootable.default: STARTED
 (09/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.hd.hd_bootable.default: PASS (19.24 s)
 (10/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.hd.hd_bootable.with_loadparm: STARTED
 (10/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.hd.hd_bootable.with_loadparm: PASS (20.26 s)
 (11/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.hd.cdrom_bootable: STARTED
 (11/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.hd.cdrom_bootable: PASS (38.65 s)
 (12/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.network.cdrom_bootable: STARTED
 (12/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.network.cdrom_bootable: PASS (68.61 s)
 (13/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.network.network_bootable: STARTED
 (13/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.cdrom.network.network_bootable: PASS (59.72 s)
 (14/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.hd.hd_bootable.default: STARTED
 (14/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.hd.hd_bootable.default: PASS (41.31 s)
 (15/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.hd.hd_bootable.with_loadparm: STARTED
 (15/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.hd.hd_bootable.with_loadparm: PASS (71.58 s)
 (16/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.hd.network_bootable: STARTED
 (16/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.hd.network_bootable: PASS (59.77 s)
 (17/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.cdrom.cdrom_bootable: STARTED
 (17/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.cdrom.cdrom_bootable: PASS (55.10 s)
 (18/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.cdrom.network_bootable: STARTED
 (18/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.boot_with_multiple_boot_order.network.cdrom.network_bootable: PASS (89.20 s)
 (19/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.duplicate: STARTED
 (19/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.duplicate: PASS (37.64 s)
 (20/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.with_os_boots: STARTED
 (20/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.with_os_boots: PASS (37.66 s)
 (21/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.minus: STARTED
 (21/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.minus: PASS (37.70 s)
 (22/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.zero: STARTED
 (22/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.zero: PASS (7.79 s)
 (23/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.string: STARTED
 (23/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.setting.negative.string: PASS (8.07 s)
 (24/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.disk_device.default.disk_boot_order.single_disk: STARTED
 (24/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.disk_device.default.disk_boot_order.single_disk: PASS (59.61 s)
 (25/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.disk_device.default.disk_boot_order.multi_disks: STARTED
 (25/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.disk_device.default.disk_boot_order.multi_disks: PASS (24.88 s)
 (26/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.disk_device.default.disk_boot_order.multi_disks_bootable: STARTED
 (26/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.disk_device.default.disk_boot_order.multi_disks_bootable: FAIL: Couldn't boot correctly (240.89 s)
 (27/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.cdrom_device.default.cdrom_boot_order.with_cdrom: STARTED
 (27/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.cdrom_device.default.cdrom_boot_order.with_cdrom: PASS (67.93 s)
 (28/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.cdrom_device.default.cdrom_boot_order.multi_cdroms: STARTED
 (28/28) type_specific.io-github-autotest-libvirt.guest_os_booting.boot_order.cdrom_device.default.cdrom_boot_order.multi_cdroms: PASS (39.93 s)
RESULTS    : PASS 27 | ERROR 0 | FAIL 1 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2024-12-23T01.19-8199867/results.html
JOB TIME   : 1468.37 s

The failing test is a known issue at this point with our current QEMU build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant