Bug 1746399
| Summary: | [s390x] Composer, qcow2 image: No zIPL section in IPL2 record. | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Alexander Todorov <atodorov> | ||||||||||||
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Release Test Team <release-test-team-automation> | ||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||
| Priority: | unspecified | ||||||||||||||
| Version: | 8.1 | CC: | cohuck, dzheng, knoel, smitterl, thuth, wchadwic | ||||||||||||
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
||||||||||||
| Target Release: | 8.2 | ||||||||||||||
| Hardware: | s390x | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||
| Clone Of: | Environment: | ||||||||||||||
| Last Closed: | 2021-01-29 07:43:47 UTC | Type: | Bug | ||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||
| Documentation: | --- | CRM: | |||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
| Embargoed: | |||||||||||||||
| Bug Depends On: | |||||||||||||||
| Bug Blocks: | 1673744, 1746404 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Alexander Todorov
2019-08-28 11:20:07 UTC
Please attach the anaconda logs from the compose, I'm especially interested in program.log to see what the bootloader install looks like. Looking at STDOUT: LOADPARM=[ ] STDOUT: Using virtio-blk. STDOUT: Using guessed DASD geometry. STDOUT: Using ECKD scheme (block size 4096), CDL STDOUT: STDOUT: ! No zIPL section in IPL2 record. ! this smells like a missing zipl invocation somewhere. Is the code building the qcow2 image calling zipl after the kernel has been installed? FWIW, I've reproduce the problem (with "composer-cli compose start example-atlas qcow2" as described in https://bugzilla.redhat.com/show_bug.cgi?id=1746404#c7 ) and had a closer look at the produced image. Indeed, zipl is missing here - there is no /etc/zipl.conf installed in the image. I had to add that file manually, adjust /boot/loader/entries/*.conf, re-create the initrd with dracut and run "zipl" manually. Then the image was finally bootable. Created attachment 1611128 [details]
program.log
Created attachment 1611129 [details]
anaconda.log
Created attachment 1611130 [details]
lvm.log
Created attachment 1611131 [details]
packaging.log
Created attachment 1611132 [details]
storage.log
https://bugzilla.redhat.com/show_bug.cgi?id=1746424 is likely the root cause of this, it wasn't copying the config file. Looking at this again I realize that it is different from the live-iso case. Comment 7 indicates that it is possible to get the image bootable with some manual intervention. These steps should be handled by Anaconda. After some digging around I discovered that installing the bootload was disabled because of rhbz#1019502, ends up there is a check for s390 image installation in pyanaconda/bootloader/execution.py that has been in place since 2013. If I disable the check in pyanaconda/bootloader/execution.py the qcow2 image is now bootable, but it isn't a working system. Once it hits dracut it cannot find the root disk, and it looks like there are no disks attached at all. Bootup is also very slow, even when passing --rng=/dev/urandom to virt-install, and once you get to the dracut shell there are almost no modules loaded. I've been booting the disk.qcow2 with: virt-install --debug --name f32 --memory 2048 --disk /var/lib/lorax/composer/results/UUID/disk.qcow2 --import --rng=/dev/urandom I'm fairly sure these problems are all things that Anaconda needs to solve (at the least, re-enabling bootloader install to s390 disk images) so I'm moving this bug over there. I've tested with a current snapshot from February and the image gets build and boots. Fails with a dracut timeout but there is no error about zIPL anymore. Moving to VERIFIED. (In reply to Alexander Todorov from comment #21) > I've tested with a current snapshot from February and the image gets build > and boots. Fails with a dracut timeout but there is no error about zIPL > anymore. Moving to VERIFIED. Looks like this bug is in VERIFIED since 11 months already - I guess it just has not been auto-closed because there was no errata in this case. Let's close it manually now. |