Bug 1970881
| Summary: | [RHEL-9] virt-install --location fails with Could not find an installable distribution at URL '/var/lib/libvirt/images/boot.iso' | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Petr Zatko <pzatko> | |
| Component: | osinfo-db | Assignee: | Nobody <nobody> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Radek Duda <rduda> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.0 | CC: | abologna, drjones, juzhou, mrezanin, rduda, tpelka, tzheng, virt-maint | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | 9.0 Beta | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | osinfo-db-20210809-1.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1972061 (view as bug list) | Environment: | ||
| Last Closed: | 2021-12-07 21:44:43 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: | 1971841, 1972061 | |||
|
Description
Petr Zatko
2021-06-11 11:44:34 UTC
This seems to work fine on my Fedora 34 machine with virt-install-3.2.0-3.fc34.noarch osinfo-db-20210531-1.fc34.noarch using RHEL-9.0.0-20210613.d.4-x86_64-dvd1.iso as the installation media. @fidencio is it possible that the reporter is missing https://gitlab.com/libosinfo/osinfo-db/-/commit/fc9fadf2400da2970fff8b317eebc73c9e9a1782 or some other similar commit? AFAICT the compose they're using has osinfo-db-20210312-2.el9.noarch which should be new enough, but perhaps I'm missing something? I'd be interested to know: * A link to the problematic ISO * The ouput of `isoinfo -d -i /path/to/iso` Best Regards, Fabiano, The problematic iso is http://download.eng.bos.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.0.0-20210610.2/compose/BaseOS/x86_64/iso/RHEL-9.0.0-20210610.2-BaseOS-x86_64-boot.iso [root@kvm-08-guest38 test]# isoinfo -d -i ./RHEL-9.0.0-20210610.2-BaseOS-x86_64-boot.iso CD-ROM is in ISO 9660 format System id: Volume id: RHEL-9-0-0-BaseOS-x86_64 Volume set id: Publisher id: Data preparer id: XORRISO-1.5.4 2021.01.30.150001, LIBISOBURN-1.5.4, LIBISOFS-1.5.4, LIBBURN-1.5.4 Application id: Copyright File id: Abstract File id: Bibliographic File id: Volume set size is: 1 Volume set sequence number is: 1 Logical block size is: 2048 Volume size is: 360344 El Torito VD version 1 found, boot catalog is in sector 40 Joliet with UCS level 3 found Rock Ridge signatures version 1 found Eltorito validation header: Hid 1 Arch 0 (x86) ID '' Key 55 AA Eltorito defaultboot header: Bootid 88 (bootable) Boot media 0 (No Emulation Boot) Load segment 0 Sys type 0 Nsect 4 Bootoff 1648 5704 I tried the RHEL-9.0.0-20210613.d.4-x86_64-dvd1.iso mentioned in comment 1 and it works fine. And the compose indeed has osinfo-db-20210312-2.el9.noarch Okay, the problem is clear now. The problematic ISO ``` [root@kvm-08-guest38 test]# isoinfo -d -i ./RHEL-9.0.0-20210610.2-BaseOS-x86_64-boot.iso CD-ROM is in ISO 9660 format System id: Volume id: RHEL-9-0-0-BaseOS-x86_64 Volume set id: Publisher id: ``` A good ISO: ``` fidencio@quino /tmp $ isoinfo -d -i RHEL-9.0.0-20210610.2-x86_64-dvd1.iso CD-ROM is in ISO 9660 format System id: LINUX Volume id: RHEL-9-0-0-BaseOS-x86_64 Volume set id: Publisher id: ``` And this is what osinfo-db expects, from https://gitlab.com/libosinfo/osinfo-db/-/blob/master/data/os/redhat.com/rhel-9.0.xml.in#L48-51: ``` <iso> <system-id>LINUX</system-id> <volume-id>RHEL-9-0-(([0-9]|[1-9][0-9])-)?BaseOS-x86_64</volume-id> </iso> ``` The fact they dropped the LINUX from the system-id is a regression that should be treated by the team that takes care of generating those ISOs. We can clearly see that for 8.5 ISOs it's still present:\ ``` fidencio@quino /tmp $ isoinfo -d -i RHEL-8.5.0-20210609.n.3-BaseOS-x86_64-boot.iso CD-ROM is in ISO 9660 format System id: LINUX Volume id: RHEL-8-5-0-BaseOS-x86_64 Volume set id: Publisher id: ``` We can, of course, work this around on osinfo-db. But I'd take the osinfo-db change as a change to work the regression around, not as the proper fix. The proper fix should come from the team generating those images and we better talk to them, while I'll prepare an osinfo-db patch. And here we have the proposed upstream patch for osinfo-db: https://gitlab.com/libosinfo/osinfo-db/-/merge_requests/316 Without the patch: fidencio@quino ~/src/upstream/osinfo-db $ osinfo-detect http://download.eng.bos.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.0.0-20210610.2/compose/BaseOS/x86_64/iso/RHEL-9.0.0-20210610.2-BaseOS-x86_64-boot.iso Media is bootable. With the patch: fidencio@quino ~/src/upstream/osinfo-db $ osinfo-detect http://download.eng.bos.redhat.com/rhel-9/composes/RHEL-9/RHEL-9.0.0-20210610.2/compose/BaseOS/x86_64/iso/RHEL-9.0.0-20210610.2-BaseOS-x86_64-boot.iso Media is bootable. Media is an installer for OS 'Red Hat Enterprise Linux 9.0 (x86_64)' Petr, I've moved this on to osinfo-db and I have assigned it to myself. I'd really ask your help so we can have it cloned to the right component, to the team that's responsible for generating the ISOs. Best Regards, Fabiano, thank you for the quick action, I have cloned the bug against distribution for now, will see how it goes. Hi Fabiano, I have created MR updating osinfo-db to latest version in fedora to fix this issue. Can you check that there's nothing missing: https://gitlab.com/redhat/centos-stream/rpms/osinfo-db/-/merge_requests/2 (In reply to Miroslav Rezanina from comment #8) > Hi Fabiano, > > I have created MR updating osinfo-db to latest version in fedora to fix this > issue. Can you check that there's nothing missing: > > https://gitlab.com/redhat/centos-stream/rpms/osinfo-db/-/merge_requests/2 I just approved it there. Thanks a lot for working on this! tested with osinfo-db-20210809-1.el9.noarch: $ virt-install -l RHEL-9.0.0-20210816.3-BaseOS-x86_64-boot.iso WARNING KVM acceleration not available, using 'qemu' Using default --name rhel9.0 Using rhel9.0 default --memory 1536 Using rhel9.0 default --disk size=20 WARNING Graphics requested but DISPLAY is not set. Not running virt-viewer. WARNING No console to launch for the guest, defaulting to --wait -1 Starting install... Retrieving file vmlinuz... | 10 MB 00:00:00 Retrieving file initrd.img... | 78 MB 00:00:00 Allocating 'rhel9.0.qcow2' | 20 GB 00:00:00 Domain is still running. Installation may be in progress. Waiting for the installation to complete. works ok attaching information about iso used file as well:
$ isoinfo -d -i RHEL-9.0.0-20210816.3-BaseOS-x86_64-boot.iso
CD-ROM is in ISO 9660 format
System id:
Volume id: RHEL-9-0-0-BaseOS-x86_64
Volume set id:
Publisher id:
Data preparer id: XORRISO-1.5.4 2021.01.30.150001, LIBISOBURN-1.5.4, LIBISOFS-1.5.4, LIBBURN-1.5.4
Application id:
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 368836
El Torito VD version 1 found, boot catalog is in sector 40
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found
Eltorito validation header:
Hid 1
Arch 0 (x86)
ID ''
Key 55 AA
Eltorito defaultboot header:
Bootid 88 (bootable)
Boot media 0 (No Emulation Boot)
Load segment 0
Sys type 0
Nsect 4
Bootoff 1648 5704
|