Unable to deploy Xenial on a s390x KVM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-kernel-tests |
Fix Released
|
High
|
Unassigned | ||
s390-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* chreipl is a tool that can set/change the IPL settings of a guest, meaning what should it boot next upon a reboot call (ie. which device to boot from, or to like dumpkernel, etc). v1.34 has a processing bug, meaning that chreipl does not work with virtio disk drives, as seen in VMs. The fix is to cherrypick a patch which was most likely introduced in teh v1.35 release. Please note the v1.XX series upstream code base is not public, so the patch i'm cherrypicking is a hunk from the diff between xenial and yakkety releases.
[Test Case]
* Use chreipl in a qemu-kvm VM, it should work.
[Regression Potential]
* This changes the codepath, of detecting which drive to use. Other usage by user specified id are not affected, and default usage of chreipl in xenial so far has been on best effort basis (ie. guarded with || true, in d-i) because normally it is trivial to control IPL methods from the underlying hypervisor (HMC, z/VM, qemu/libvirt)
* However, this patch is needed to enable MAAS KVM pods to be able to deploy Xenial guests, as that deployment mechanism depends on working chreipl.
[Other Info]
* Original bug report:
When trying to deploy Xenial on a s390x KVM, the deployment will fail. (it works for B/C)
Looks like it will fail with:
chreipl: Could not find DASD CCW device "virtio0"
curtin: Installation failed with exception: Unexpected error while running command.
Command: chreipl node /dev/vda
Exit code: 1
Reason: -
Stdout: chreipl: Could not find DASD CCW device "virtio0"
Complete output from the MaaS UI:
curtin: Installation started. (18.1-59-
third party drivers not installed or necessary.
Hit:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Fetched 9719 kB in 2s (4674 kB/s)
Reading package lists...
zfs-dkms set on hold.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
crda iw libnl-3-200 libnl-genl-3-200 linux-firmware linux-headers-
linux-
linux-
linux-
wireless-regdb
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
crda iw libnl-3-200 libnl-genl-3-200 linux-firmware linux-generic
linux-
linux-
linux-
wireless-regdb
0 upgraded, 14 newly installed, 0 to remove and 8 not upgraded.
Need to get 74.5 MB of archives.
After this operation, 375 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Fetched 74.5 MB in 0s (86.4 MB/s)
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Selecting previously unselected package libnl-3-200:s390x.
(Reading database ... 25868 files and directories currently installed.)
Preparing to unpack .../libnl-
Unpacking libnl-3-200:s390x (3.2.27-
Selecting previously unselected package libnl-genl-
Preparing to unpack .../libnl-
Unpacking libnl-genl-
Selecting previously unselected package wireless-regdb.
Preparing to unpack .../wireless-
Unpacking wireless-regdb (2018.05.
Selecting previously unselected package iw.
Preparing to unpack .../archives/
Unpacking iw (3.17-1) ...
Selecting previously unselected package crda.
Preparing to unpack .../archives/
Unpacking crda (3.13-1) ...
Selecting previously unselected package linux-firmware.
Preparing to unpack .../linux-
Unpacking linux-firmware (1.157.21) ...
Selecting previously unselected package linux-modules-
Preparing to unpack .../linux-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-
Selecting previously unselected package linux-modules-
Preparing to unpack .../linux-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-generic (4.4.0.145.153) ...
Selecting previously unselected package linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack .../linux-
Unpacking linux-headers-
Selecting previously unselected package linux-generic.
Preparing to unpack .../linux-
Unpacking linux-generic (4.4.0.145.153) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libnl-3-200:s390x (3.2.27-
Setting up libnl-genl-
Setting up wireless-regdb (2018.05.
Setting up iw (3.17-1) ...
Setting up crda (3.13-1) ...
Setting up linux-firmware (1.157.21) ...
Setting up linux-modules-
Setting up linux-image-
I: /boot/vmlinuz.old is now a symlink to vmlinuz-
I: /boot/initrd.
I: /boot/vmlinuz is now a symlink to vmlinuz-
I: /boot/initrd.img is now a symlink to initrd.
Setting up linux-modules-
Setting up linux-image-generic (4.4.0.145.153) ...
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-headers-
Setting up linux-generic (4.4.0.145.153) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for linux-image-
/etc/kernel/
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/
Using config file '/etc/zipl.conf'
Building bootmap in '/boot'
Adding IPL section 'ubuntu' (default)
Preparing boot device: vda (0000).
Done.
/etc/kernel/
Using config file '/etc/zipl.conf'
Building bootmap in '/boot'
Adding IPL section 'ubuntu' (default)
Preparing boot device: vda (0000).
Done.
Using config file '/etc/zipl.conf'
Building bootmap in '/boot'
Adding IPL section 'ubuntu' (default)
Preparing boot device: vda (0000).
Done.
Setting up swapspace version 1, size = 2 GiB (2147479552 bytes)
no label, UUID=91c4722d-
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/
Using config file '/etc/zipl.conf'
Building bootmap in '/boot'
Adding IPL section 'ubuntu' (default)
Preparing boot device: vda (0000).
Done.
--2019-04-17 06:42:38-- http://
Connecting to 10.246.72.3:5248... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2 [text/plain]
Saving to: '/dev/null'
0K 100% 739K=0s
2019-04-17 06:42:38 (739 KB/s) - '/dev/null' saved [2/2]
chreipl: Could not find DASD CCW device "virtio0"
curtin: Installation failed with exception: Unexpected error while running command.
Command: chreipl node /dev/vda
Exit code: 1
Reason: -
Stdout: chreipl: Could not find DASD CCW device "virtio0"
Stderr: ''
MAAS version: 2.5.2 (7523-ge4ecbd54
tags: | added: s390x |
description: | updated |
no longer affects: | maas (Ubuntu Xenial) |
no longer affects: | maas (Ubuntu) |
Changed in ubuntu-kernel-tests: | |
status: | New → In Progress |
Changed in ubuntu-z-systems: | |
status: | New → Fix Released |
This issue is blocking SRU testing on s390x KVM