Bug 1850052

Summary: virt-v2v contains broken rhev-apt [rhel-7.8.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: liuzi <zili>
Severity: high Docs Contact:
Priority: high    
Version: 7.7CC: gzaidman, linl, mtessun, mwest, mxie, mzhan, ptoscano, pvlasin, rjones, tgolembi, tzheng, zili
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: libguestfs-1.40.2-9.el7_8.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1753914 Environment:
Last Closed: 2020-08-06 15:37:00 UTC Type: ---
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: 1753914, 1850963    
Bug Blocks:    

Description RAD team bot copy to z-stream 2020-06-23 13:23:24 UTC
This bug has been copied from bug #1753914 and has been proposed to be backported to 7.8 z-stream (EUS).

Comment 5 liuzi 2020-07-13 10:16:02 UTC
Verify the bug with below builds again:
virt-v2v-1.40.2-9.el7_8.1.x86_64
libguestfs-1.40.2-9.el7_8.1.x86_64
libvirt-4.5.0-33.el7_8.1.x86_64
qemu-kvm-rhev-2.12.0-44.el7_8.2.x86_64
nbdkit-1.2.7-2.el7.x86_64
virtio-win-1.9.10-3.el7.noarch
rhv-guest-tools-iso-4.3-13.el7ev

Steps:
1.Log into engine server and upload RHV-toolsSetup_4.3_13.iso to ISO Storage Domain

2.Convert different versions of windows guests to rhv4.3 by virt-v2v
#  virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1  $guest_name  -o rhv-upload -os nfs_data -of raw -b ovirtmgmt -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78   -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -oo rhv-cluster=Default -oo rhv-direct -ip /home/passwd -oo rhv-verifypeer=true -oo rhv-cafile=/home/ca.pem


3.Power on guest on rhv after v2v conversion, check if rhev-apt is installed normally,if certificate of rhev-apt is valid, if guest agents can be installed from RHV-toolsSetup_4.3_13.iso automatically, if there is error info about rhev-apt and guest agents in windows log

Test Result: 
       
Guest		Firstboot	rhv-apt	qemu-ga	 SPICE-ga 	Certificate valid	Show IP info rhv	windows log error
win2019		pass		pass	pass	pass		yes			pass			no
win2016		pass		pass	pass	pass		yes			pass			no
win2012		pass		pass	pass	pass		yes			pass			rhev-apt error
win2012r2       pass            fail	fail	fail	        pass                    fail                    rhev-apt error					
win10-x86_64	pass		pass	pass	pass		pass			pass			rhev-apt error
win10-i386	pass		pass	pass	pass		pass			pass			rhev-apt error
win8.1-i386	pass		pass	pass	pass		pass			pass			rhev-apt error
win8.1-x86_64	pass		pass	pass	pass		pass			pass			rhev-apt error
win2008		pass		pass	pass	pass		pass			pass			rhev-apt error
win2008r2	pass		pass	pass	pass		pass			pass			rhev-apt error
win8-i386	pass		pass	pass	pass		pass			pass			rhev-apt error
win8-x86_64	pass		pass	pass	pass		pass			pass			rhev-apt error


Below is the conclusion for the test result:

 (1)For win2012r2,rhev-apt can't be installed and this problem is already tracked by bug1584678

 (2) Although guest agents can be installed from rhev-guest-tools-iso normally, found a rhev-apt error in some guests' windows log:exit code1641. According to https://bugzilla.redhat.com/show_bug.cgi?id=1753914#c58,it's not a bug.
  
According to above testing,now move the bug from ON_QA to VERIFIED status.

Comment 7 errata-xmlrpc 2020-08-06 15:37:00 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 (libguestfs bug fix 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-2020:3352