Bug 1168632

Summary: Fix kickstart for virt-p2v
Product: Red Hat Enterprise Linux 7 Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: codong, dyuan, huzhan, juzhou, leiwang, lkong, mbooth, mzhan, ptoscano, tzheng, wshi, yuliu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: p2v
Fixed In Version: libguestfs-1.28.1-1.15.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 13:47:37 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: 1168626    

Description Richard W.M. Jones 2014-11-27 12:57:49 UTC
Description of problem:

Some upstream fixes have happened to the virt-p2v kickstart
since RHEL 7.1 was branched.  Commits which are necessary are:

commit c64467a4c1a31de1134084a15a4acb841557140f
Author: Richard W.M. Jones <rjones>
Date:   Thu Nov 20 22:22:49 2014 +0000

    p2v: Include version and md5sum in kickstart.
    
    Include the version of virt-p2v and its MD5 checksum in the source
    kickstart.  This is useful for working out which version of virt-p2v
    the kickstart corresponds to.

commit 8efbe49df6d53666bd5a6031f45f45ceb1408fb8
Author: Richard W.M. Jones <rjones>
Date:   Tue Oct 28 11:21:08 2014 +0000

    p2v: kickstart: Add rpm to list of packages.
    
    Avoids RHBZ#1089566.

commit 26952db56ffab1bc93c7f57c43e785f62d44854f
Author: Richard W.M. Jones <rjones>
Date:   Tue Oct 28 11:20:30 2014 +0000

    p2v: kickstart: Remove 'install' line.
    
    'install' is the default operation, it doesn't have to be specified.

commit c48114cd24d630ac66bd683c3593c33d43f712a6
Author: Richard W.M. Jones <rjones>
Date:   Tue Oct 28 09:00:29 2014 +0000

    p2v: kickstart: Add firewalld to the ISO to allow firewall to be enabled.

commit 439bf5e42ac5396eed8911e2d2698ceb4603f0a8
Author: Richard W.M. Jones <rjones>
Date:   Tue Oct 28 08:55:46 2014 +0000

    p2v: kickstart: Name the ISO 'virt-p2v'.

Version-Release number of selected component (if applicable):

libguestfs-1.28.1-1.14.el7

How reproducible:

100%

Steps to Reproduce:
1. Run: virt-p2v-make-kickstart -o p2v.ks rhel
2. Examine the 'p2v.ks' output file.

Actual results:

The changes noted above won't appear in the kickstart file.

Comment 2 tingting zheng 2014-12-10 07:09:00 UTC
Tested with:
virt-v2v-1.28.1-1.16.el7.x86_64
libguestfs-1.28.1-1.16.el7.x86_64

Steps:
1.#virt-p2v-make-kickstart -o p2v.ks rhel
2.Check the p2v.ks file.

The version and md5sum have been included in kickstart,see below contents:
# Generated by virt-p2v-make-kickstart 1.28.1.                  
# md5(virt-p2v) = 0ee464fef61b494f0f03c46d0815ed6f  

Add rpm to list of packages,see below contents:
# rpm must be installed, else you'll hit RHBZ#1089566. 
rpm

Add firewalld to the ISO to allow firewall to be enabled,see below contents.
# Required to run firewall --enabled kickstart command
firewalld      

Also checked "install" line has been removed from p2v.ks.

Refer to the above comments,move the bug to VERIFIED.

Comment 4 errata-xmlrpc 2015-03-05 13:47:37 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, 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://rhn.redhat.com/errata/RHBA-2015-0303.html