Bug 2596 - Update request : python-virtinst
Summary: Update request : python-virtinst
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
: 2594 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-02 17:50 CEST by Michael Scherer
Modified: 2011-09-18 02:45 CEST (History)
5 users (show)

See Also:
Source RPM: python-virtinst
CVE:
Status comment:


Attachments

Description Michael Scherer 2011-09-02 17:50:44 CEST
Python-virtinst tools do not work on Mageia 1, due to a incorrect patch causing python errors :

+ virt-install --connect=qemu:///system --network=bridge:br0 --initrd-inject=/export/fed-minimal.ks '--extra-args=ks=file:/fed-minimal.ks       console=tty0 console=ttyS0,115200' --name=f15testbox --disk /var/lib/libvirt/images/f15testbox.img,size=20 --ram 2048 --vcpus=2 --check-cpu --accelerate --hvm --location= --nographics
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 36, in <module>
    import virtinst
  File "/usr/lib/python2.7/site-packages/virtinst/__init__.py", line 32, in <module>
    from Guest import Guest, XenGuest
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 40, in <module>
    import DistroInstaller
  File "/usr/lib/python2.7/site-packages/virtinst/DistroInstaller.py", line 31, in <module>
    import OSDistro
  File "/usr/lib/python2.7/site-packages/virtinst/OSDistro.py", line 1019
    versionfile = fetcher.acquireFile("VERSION", progresscb)
                         
The patch have been removed from the package. As the package is noarch, just a test on one arch should be sufficient.
See also  bug 1028. See also http://kashyapc.wordpress.com/2011/08/18/unattended-guest-install-with-a-local-kickstart/ for a quick blog post on how to use it.

Advisory 
A patch to add the support of Mageia on python-virtinst have been found to be incorrect. This update fix the
package by disabling the patch.
Comment 1 Samuel Verschelde 2011-09-05 12:17:28 CEST
*** Bug 2594 has been marked as a duplicate of this bug. ***

CC: (none) => stormi

Comment 2 Dave Hodgins 2011-09-06 04:58:30 CEST
Should add a requires libvirt-utils.

I can't test this on my old i586 system, as I get
ERROR    Host does not support virtualization type 'hvm'

CC: (none) => davidwhodgins

Comment 3 Michael Scherer 2011-09-06 11:15:54 CEST
Why add a requires ? 
python-virtinst can be used on remote libvirtd so a local libvirt installation is not needed ( ie, you can run python-virtinst on i586, and do the computing on a remote system ).
Comment 4 Dave Hodgins 2011-09-06 20:35:54 CEST
When I first tried to run virt-install, it failed, as it couldn't connect
to libvirtd.  I had to install libvirt-utils and start the libvirtd service,
before it tried to run, though it then failed due to my old cpu not
supporting virtualization.

I didn't realize it could connect to a libvirtd on a remote system.
Thanks for the clarification.
Comment 5 Michael Scherer 2011-09-06 22:46:49 CEST
Also, as stormi discovered, libvirtd ( and the aformentioned script ) do not work if qemu s not installed ( again, libvirt can use xen, vbox, or lxc, so there is no requires on anything ), so test if it is installed ( the error message is the same as you ).

Any system less than 3/4 years old should be ok ( I run it on my 2008 macbook, for the reference ).
Comment 6 claire robinson 2011-09-16 16:34:16 CEST
This took some fiddling but tested ok x86_64 using the link given. 

As it is noarch is this sufficient?

CC: (none) => eeeemail

Comment 7 Samuel Verschelde 2011-09-16 22:47:28 CEST
(In reply to comment #6)
> This took some fiddling but tested ok x86_64 using the link given. 
> 
> As it is noarch is this sufficient?

Per the policy, no, but if we allow ourselves to do an exception, given that it works on x86_64 and given the nature of the patch misc has applied, I think it is safe to push it now.
Comment 8 Dave Hodgins 2011-09-17 00:45:32 CEST
While I can't actually run the program, I can confirm that it installs ok on
i586, and only fails on my system due to the cpu not supporting virtualization.

Can someone from the sysadmin team push the srpm
python-virtinst-0.500.6-4.1.mga1.src.rpm
from Core Updates Testing to Core Updates.

Advisory:
python-virtinst, a python module for starting Xen guest installations,
in Mageia 1 contains a patch that prevents the module from running.
This update fixes the package by disabling the patch.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 9 Samuel Verschelde 2011-09-17 08:29:11 CEST
The RPM summary of this package in Mageia 1, "Python modules for starting Xen guest installations" is wrong (that of cauldron is better: "Python modules for starting libvirt based guest installations")

This doesn't block the current update, it only changes the advisory:

Advisory:
In Mageia 1 python-virtinst, a collection of python modules for starting libvirt based guest installations, contains a Mageia-specific patch that prevents the module from running.
This update fixes the package by disabling the patch.
Comment 10 D Morgan 2011-09-18 02:45:56 CEST
update pushed.

Status: NEW => RESOLVED
CC: (none) => dmorganec
Resolution: (none) => FIXED


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