Bug 1749865
| Summary: | virt-install should pick up the most generic tree when using `--install os` | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Katerina Koukiou <kkoukiou> | ||||
| Component: | virt-manager | Assignee: | Fabiano Fidêncio <fidencio> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 8.1 | CC: | fidencio, jsuchane, juzhou, mzhan, tzheng, xiaodwan | ||||
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
||||
| Target Release: | 8.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | virt-manager-2.2.1-3.el8 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-04-28 16:00:39 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: | 1780529 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Katerina Koukiou
2019-09-06 15:44:26 UTC
I can reproduce with: virt-manager-2.2.1-2.el8.noarch virt-install-2.2.1-2.el8.noarch Steps: $ virt-install --name fedora-29 --install os=fedora29 Using fedora29 --location https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os Using fedora29 default --memory 2048 Using fedora29 default --disk size=20 Starting install... ... Result: The Workstation tree is used. A workaround: We can customize the install tree during installation, see screenshot-1, thanks Created attachment 1613018 [details]
screenshot-1 for URL customize
We have PR opened for this issue: https://github.com/virt-manager/virt-manager/pull/51 master: 0f1acc9f8f392eaf5edd30 d6d97c658771f75d2a1fdf I can reproduce with package: virt-install-2.2.1-2.el8.noarch virt-manager-2.2.1-2.el8.noarch Details please see Comment 1. Then try to verify with new build: virt-manager-2.2.1-3.el8.noarch virt-install-2.2.1-3.el8.noarch libvirt-4.5.0-36.module+el8.2.0+4817+92ef2d83.x86_64 osinfo-db-20190611-1.el8.noarch osinfo-db-tools-1.5.0-4.el8.x86_64 Steps: Scenario-1: Install a fedora29 os with default profile. # virt-install --name fedora-29-unattend --install os=fedora29 --unattend Using fedora29 --location https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/os Using fedora29 default --memory 2048 Using fedora29 default --disk size=20 Starting install... WARNING Using unattended profile 'desktop' ... Result: The "Server" tree is used: https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/os Scenario-2: Install a fedora29 os with 'jeos' profile. # # virt-install --name fedora-29-jeos --install os=fedora29 --unattend profile=jeos,admin-password-file=/tmp/admin-password-file,user-password-file=/tmp/user-password-file Using fedora29 --location https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/x86_64/os Using fedora29 default --memory 2048 Using fedora29 default --disk size=20 Starting install... ... Result: The "Server" tree is used, it's as expected. Scenario-3: Install a fedora29 os with 'desktop' profile. # virt-install --name fedora-29-desktop --install os=fedora29 --unattend profile=desktop Using fedora29 --location https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/os Using fedora29 default --memory 2048 Using fedora29 default --disk size=20 Starting install... ... Result: The "Workstation" tree is used, it's as expected. @Fabiano Fidêncio, Please help me have a look of result for Scenario-1. If I don't set value for "profile", virt-install will default to 'desktop' from manual page. # man virt-install profile= Choose which libosinfo unattended profile to use. Most distros have a 'desktop' and a 'jeos' profile. virt-install will default to 'desktop' if this is unspecified. It conflicts with the code or the content should be updated. # vim /usr/share/virt-manager/virtinst/osdict.py 595 def _get_generic_location(self, treelist, arch, profile): 596 if not hasattr(Libosinfo.Tree, "get_os_variants"): 597 for tree in treelist: ... 607 elif not profile: 608 profile = "Everything" And there is no 'Everything' related URL in file:/usr/share/osinfo/os/fedoraproject.org/fedora-29.xml How about I file a bug against "osinfo-db" to request, thanks. (In reply to zhoujunqin from comment #6) > I can reproduce with package: > virt-install-2.2.1-2.el8.noarch > virt-manager-2.2.1-2.el8.noarch > > Details please see Comment 1. > > Then try to verify with new build: > virt-manager-2.2.1-3.el8.noarch > virt-install-2.2.1-3.el8.noarch > libvirt-4.5.0-36.module+el8.2.0+4817+92ef2d83.x86_64 > osinfo-db-20190611-1.el8.noarch > osinfo-db-tools-1.5.0-4.el8.x86_64 > > Steps: > Scenario-1: Install a fedora29 os with default profile. > > # virt-install --name fedora-29-unattend --install os=fedora29 --unattend > Using fedora29 --location > https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/ > x86_64/os > Using fedora29 default --memory 2048 > Using fedora29 default --disk size=20 > > Starting install... > WARNING Using unattended profile 'desktop' Yes, this is wrong. And it should be solved on osinfo-db, by adding the needed information there. > ... > > Result: The "Server" tree is used: > https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/ > x86_64/os > > Scenario-2: Install a fedora29 os with 'jeos' profile. > > # # virt-install --name fedora-29-jeos --install os=fedora29 --unattend > profile=jeos,admin-password-file=/tmp/admin-password-file,user-password- > file=/tmp/user-password-file > Using fedora29 --location > https://download.fedoraproject.org/pub/fedora/linux/releases/29/Server/ > x86_64/os > Using fedora29 default --memory 2048 > Using fedora29 default --disk size=20 > > Starting install... > ... > > Result: The "Server" tree is used, it's as expected. This is right! > > Scenario-3: Install a fedora29 os with 'desktop' profile. > > # virt-install --name fedora-29-desktop --install os=fedora29 --unattend > profile=desktop > Using fedora29 --location > https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/ > x86_64/os > Using fedora29 default --memory 2048 > Using fedora29 default --disk size=20 > > Starting install... > ... > > Result: The "Workstation" tree is used, it's as expected. > This is also right! > > > > @Fabiano Fidêncio, Please help me have a look of result for Scenario-1. > > If I don't set value for "profile", virt-install will default to 'desktop' > from manual page. > > # man virt-install > profile= > Choose which libosinfo unattended profile to use. Most > distros have a 'desktop' and a 'jeos' profile. virt-install will default to > 'desktop' if this is unspecified. > > It conflicts with the code or the content should be updated. > > # vim /usr/share/virt-manager/virtinst/osdict.py > > 595 def _get_generic_location(self, treelist, arch, profile): > 596 if not hasattr(Libosinfo.Tree, "get_os_variants"): > 597 for tree in treelist: > ... > 607 elif not profile: > 608 profile = "Everything" > > And there is no 'Everything' related URL in > file:/usr/share/osinfo/os/fedoraproject.org/fedora-29.xml > How about I file a bug against "osinfo-db" to request, thanks. So, it does not conflict as: - Everything has the suitable packages for doing a Workstation installation; - Fedora decided to not provide Workstation trees anymore, resulting on apps having to use th "Everything" one. As mentioned above and suggested by you. we should have an up-to-date osinfo-db there. I've created a bug asking for osinfo-db rebase (https://bugzilla.redhat.com/show_bug.cgi?id=1780529) and my plan is: - Do a build right now with the new osinfo-db; - Do another build, by the last possible moment, updating osinfo-db again in order to ensure we have the most relevant updates there; Does this sound reasonable? Thanks a lot for bringing this up. Hi Fabiano Fidêncio, Your answer is very clear for me, I agree. > - Do a build right now with the new osinfo-db; I can use it to verify this bug. > - Do another build, by the last possible moment, updating osinfo-db again in order to ensure we have the most relevant updates there; Yes, we can also use this version when we do regression testing, thanks. Verify with latest osinfo-db version again: virt-manager-2.2.1-3.el8.noarch virt-install-2.2.1-3.el8.noarch osinfo-db-20191125-1.el8.noarch Steps: Scenario-1: Install a fedora29 os with default profile. # virt-install --name fedora-29-unattend --install os=fedora29 --unattend Using fedora29 --location https://download.fedoraproject.org/pub/fedora/linux/releases/29/Everything/x86_64/os Using fedora29 default --memory 2048 Using fedora29 default --disk size=20 Starting install... WARNING Using unattended profile 'desktop' Retrieving file vmlinuz... | 8.2 MB 00:02 Retrieving file initrd.img... | 63 MB 00:18 Allocating 'fedora-29-unattend.qcow2' | 20 GB 00:00 Gtk-Message: 11:30:48.124: Failed to load module "pk-gtk-module" Gtk-Message: 11:30:48.130: Failed to load module "pk-gtk-module" Result: The "Everything" tree is used, and it uses unattended profile 'desktop'" by default, it's as expected. And another two scenarios are PASS in Comment 6. So I move this bug from ON_QA to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:1697 |