Bug 729643

Summary: virt-install fails with TypeError when initrd-inject is used
Product: Red Hat Enterprise Linux 6 Reporter: Richard Marko <rmarko>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.2CC: hjiang, jberan, mjenner, mzhan, rwu, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 16:17:15 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:
Attachments:
Description Flags
output of virt-install none

Description Richard Marko 2011-08-10 12:57:27 UTC
Created attachment 517596 [details]
output of virt-install

Description of problem:
Running following command results in traceback.

virt-install --debug --name "VM" --ram "4196" --location "http://download.fedoraproject.org/pub/fedora/linux/releases/15/Fedora/x86_64/os/" --disk path=$DISK --initrd-inject=./anaconda-ks.cfg --extra-args "ks=file:/anaconda-ks.cfg"


Version-Release number of selected component (if applicable):
virtinst 0.600.0-2.el6, python 2.6.6-25.el6

How reproducible:
Always

Actual results:
TypeError: coercing to Unicode: need string or buffer, NoneType found

Expected results:
VM installed

Additional info:
Works fine on 6.1 (virtinst 0.500.5-3.el6, python 2.6.6-20.el6)

Comment 2 Cole Robinson 2011-08-23 19:53:45 UTC
Thanks for the report, fixed upstream:

http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=b7054426336929abb0ab0d822ad208a11d418904

Comment 3 Cole Robinson 2011-08-30 19:08:49 UTC
Fixed in python-virtinst-0.600.0-3.el6

Comment 5 Huming Jiang 2011-09-02 06:30:23 UTC
Reproduced with the following components:
libvirt-0.9.4-7.el6.x86_64
python-virtinst-0.600.0-2.el6.noarch

Verified with the following components:
libvirt-0.9.4-7.el6.x86_64
python-virtinst-0.600.0-3.el6.noarch
kernel-2.6.32-191.el6.x86_64
qemu-kvm-0.12.1.2-2.184.el6.x86_64
virt-manager-0.9.0-6.el6.x86_64

Steps:

   1. virt-install --debug -n vm -r 1024 -l http://download.englab.nay.redhat.com/pub/rhel/released/RHEL-6/6.1/Server/x86_64/os/ --disk path=/var/lib/libvirt/images/vm.img,size=5 --initrd-inject=/opt/ks-aj-RHEL6u1-Server-x64-2.6.32-131.0.15-qemu-kvm-0.12.1.2-2.160.el6-libvirt-0.8.7-18.el6-minimal-released.cfg --extra-args ks=http://home.englab.nay.redhat.com/~nzhang/http/ks-rhel6u1-x86_64.cfg
      ...
      (The guest will be automatically installed with no error.)

So move the status of this bug to verified.

Comment 6 Cole Robinson 2011-11-07 16:54:23 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 7 errata-xmlrpc 2011-12-06 16:17:15 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.

http://rhn.redhat.com/errata/RHBA-2011-1643.html