RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2118195 - Update CentOS Stream 8's virt-what to 1.25
Summary: Update CentOS Stream 8's virt-what to 1.25
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virt-what
Version: CentOS Stream
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: YongkuiGuo
URL:
Whiteboard:
Depends On:
Blocks: 2118997
TreeView+ depends on / blocked
 
Reported: 2022-08-14 23:07 UTC by Steve Mokris
Modified: 2022-11-08 12:24 UTC (History)
11 users (show)

Fixed In Version: virt-what-1.25-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2118997 (view as bug list)
Environment:
Last Closed: 2022-11-08 10:45:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-131061 0 None None None 2022-08-14 23:09:08 UTC
Red Hat Product Errata RHBA-2022:7695 0 None None None 2022-11-08 10:45:39 UTC

Description Steve Mokris 2022-08-14 23:07:25 UTC
Currently, CentOS Stream 8 includes virt-what-1.18 with patches up to 1.22. This version outputs nothing when run inside Illumos/SmartOS LX, so virtual machines are incorrectly identified as bare metal.

virt-what 1.24 includes a patch (https://listman.redhat.com/archives/virt-tools-list/2022-May/017568.html) to support detecting Illumos/SmartOS LX. Could you update the CentOS Stream 8 package to include that patch (or point me to instructions on how to contribute that package update)?

Comment 1 Klaus Heinrich Kiwi 2022-08-16 12:37:51 UTC
Not assigning to anyone yet, but maybe Miroslav could give us some pointers here?

Comment 2 Richard W.M. Jones 2022-08-16 13:28:12 UTC
We could do this for RHEL 8.7 but it's extremely tight, particularly
for QE to do any testing.  Yongkui what do you think?

Otherwise we'd move it to early in RHEL 8.8 cycle, but that would be
in a few months.

Comment 3 YongkuiGuo 2022-08-17 02:10:56 UTC
(In reply to Richard W.M. Jones from comment #2)
> We could do this for RHEL 8.7 but it's extremely tight, particularly
> for QE to do any testing.  Yongkui what do you think?
> 
> Otherwise we'd move it to early in RHEL 8.8 cycle, but that would be
> in a few months.

Hi,rjones 

It's ok from the QE side. In that case, the virt-what version (1.24) in RHEL8.7 will be higher than in RHEL9.1.

Comment 4 Richard W.M. Jones 2022-08-17 09:33:22 UTC
(In reply to YongkuiGuo from comment #3)
> It's ok from the QE side. In that case, the virt-what version (1.24) in
> RHEL8.7 will be higher than in RHEL9.1.

That will break the upgrade path (LEAPP) so we can't actually do that,
unless we also upgrade virt-what in RHEL 9.1.  We don't have a bug for
that (but bug 2114997 is the latest there).

Comment 5 YongkuiGuo 2022-08-18 08:28:11 UTC
The gating tests passed on AWS(x86_64 and aarch64), ESXi, Hyper-V, KVM, nested KVM and TCG (https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/47185433).

Comment 6 YongkuiGuo 2022-08-18 09:25:57 UTC
Test passed on GCE x86_64 env:

[root@wshi-yoguo ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 Beta (Ootpa)
[root@wshi-yoguo ~]# rpm -q virt-what
virt-what-1.25-1.el8.x86_64
[root@wshi-yoguo ~]# virt-what
google_cloud
kvm

Comment 7 Richard W.M. Jones 2022-08-18 09:47:20 UTC
Steve, please check the packages here fix the problem for you:

http://oirase.annexia.org/tmp/bz2118195/virt-what-1.25-1.el8/

Comment 8 minl 2022-08-18 10:53:57 UTC
Test passed on Nutanix VM:

[root@minl-8 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 Beta (Ootpa)
[root@minl-8 ~]# rpm -qa virt-what
virt-what-1.25-1.el8.x86_64
[root@minl-8 ~]# virt-what --version
1.25
[root@minl-8 ~]# virt-what
nutanix_ahv
redhat
kvm

Comment 11 Steve Mokris 2022-08-19 14:54:26 UTC
Looks good.  I just tested on CentOS Stream 8 running in a Illumos LX zone on SmartOS build 20220310T212952Z, and the new package correctly identifies that it's virtualized (not bare metal) and correctly identifies the type of virtualization.  Thanks for your work on this.

---

Test results:


Old package — ⚠️ identifies virtualization as "lxc", which is an incorrect type, but at least it doesn't claim it's bare metal:

# dnf list installed virt-what
virt-what.x86_64      1.18-13.el8      @baseos
# virt-what
lxc


Latest public package — ❌ incorrectly claims it's bare metal:

# dnf update virt-what
# dnf list installed virt-what
virt-what.x86_64      1.18-14.el8      @baseos
# virt-what
(outputs nothing, indicating bare metal)


Temporary package built for this issue — ✅ correctly identifies the type of virtualization:

# curl -OL http://oirase.annexia.org/tmp/bz2118195/virt-what-1.25-1.el8/virt-what-1.25-1.el8.x86_64.rpm
# dnf install virt-what-1.25-1.el8.x86_64.rpm
# dnf list installed virt-what
virt-what.x86_64      1.25-1.el8       @@commandline
# virt-what
illumos-lx

Comment 12 Richard W.M. Jones 2022-08-19 15:29:45 UTC
Thanks for testing it.  This should be the new package that appears
in RHEL 8.7 when it is released, assuming no other problems are found.

Comment 13 YongkuiGuo 2022-08-22 02:15:19 UTC
Verified this bug according to the above test results.

Comment 15 errata-xmlrpc 2022-11-08 10:45:31 UTC
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 (virt-what bug fix and enhancement update), 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/RHBA-2022:7695


Note You need to log in before you can comment on or make changes to this bug.