Bug 707352

Summary: virt-what returns "" on an i386 guest hosted by an x86_64 machine emulating i686 arch
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: virt-whatAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-25 09:34:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 675214    
Attachments:
Description Flags
Addvanced Setting -> i686 none

Description John Sefler 2011-05-24 19:30:33 UTC
Created attachment 500681 [details]
Addvanced Setting -> i686

Description of problem:
As part of the subscription-manager testing, we depend on virt-what to tell us what virt is running.  In the following corner case, virt-what returns "" when we expect it to return "kvm".

Version-Release number of selected component (if applicable):
[root@jsefler-rhel57-beta12-i386 ~]# rpm -q virt-what
virt-what-1.9-1.3.el5


How reproducible:


Steps to Reproduce:
1. On an x86_64 host, use virt-manager to build a KVM guest from a RHEL57 i386 iso.
   For example: http://download.devel.redhat.com/rel-eng/RHEL5.7-Server-20110518.0/5/i386/iso2/RHEL5.7-Server-20110518.0-i386-DVD.iso
2. While setting up the kvm guest with virt-manager, there is an "Advanced option" to set the Architecture.  Set it to i686 (KEY TO THIS BUG)  See attachment
3. Once provisioned. run virt-what
  
Actual results:
[root@jsefler-rhel57-beta12-i386 ~]#  virt-what
[root@jsefler-rhel57-beta12-i386 ~]# 


Expected results:
[root@jsefler-rhel57-beta12-i386 ~]#  virt-what
kvm
[root@jsefler-rhel57-beta12-i386 ~]# 

Additional info:

Comment 1 Richard W.M. Jones 2011-05-24 21:02:48 UTC
Thanks, possibly a dup of bug 647862.  I'm going to take a look
at these bugs tomorrow.

Comment 2 Richard W.M. Jones 2011-05-25 09:34:36 UTC
Marking this as a dup for now.  I'll also be cloning
that bug for RHEL 5 and possibly for RHEL 6.1 z-stream too.

*** This bug has been marked as a duplicate of bug 647862 ***

Comment 3 Richard W.M. Jones 2011-05-25 14:42:36 UTC
Please test the fixed package provided here:
https://bugzilla.redhat.com/show_bug.cgi?id=707523

Comment 4 John Sefler 2011-06-02 21:06:08 UTC
Recreating problem...
[root@localhost ~]# rpm -q virt-what
virt-what-1.9-1.3.el5
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-262.el5 #1 SMP Mon May 16 17:46:41 EDT 2011 i686 athlon i386 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.7 Beta (Tikanga)
[root@localhost ~]# virt-what 
[root@localhost ~]# 

^^^ Problem recreated (Expected virt-what to return "kvm")


Verifying fix by installing virt-what-1.10-1.el5.i386.rpm as indicated in bug 707523....
[root@localhost ~]# rpm -Uvh http://porkchop.devel.redhat.com/rel-eng/RHEL-5.7-Server-Snapshot-2.0/tree-i386/Server/virt-what-1.10-1.el5.i386.rpm
Retrieving http://porkchop.devel.redhat.com/rel-eng/RHEL-5.7-Server-Snapshot-2.0/tree-i386/Server/virt-what-1.10-1.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:virt-what              ########################################### [100%]
[root@localhost ~]# rpm -q virt-what
virt-what-1.10-1.el5
[root@localhost ~]# virt-what
kvm
[root@localhost ~]# 

^^^ Verified Fix