[fedora-virt-maint] rpms/python-virtinst/devel virtinst-0.400.3-fix-pci-assign.patch, NONE, 1.1 python-virtinst.spec, 1.67, 1.68
Cole Robinson
crobinso at fedoraproject.org
Wed May 6 16:12:32 UTC 2009
Author: crobinso
Update of /cvs/pkgs/rpms/python-virtinst/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6435
Modified Files:
python-virtinst.spec
Added Files:
virtinst-0.400.3-fix-pci-assign.patch
Log Message:
Fix PCI assignment (bz 499267)
virtinst-0.400.3-fix-pci-assign.patch:
--- NEW FILE virtinst-0.400.3-fix-pci-assign.patch ---
diff -rup virtinst-0.400.3/virtinst/VirtualHostDevice.py new/virtinst/VirtualHostDevice.py
--- virtinst-0.400.3/virtinst/VirtualHostDevice.py 2009-05-06 11:58:57.000000000 -0400
+++ new/virtinst/VirtualHostDevice.py 2009-05-06 11:59:20.000000000 -0400
@@ -201,8 +201,9 @@ class VirtualHostDevicePCI(VirtualHostDe
try:
# Do this as a sanity check, so that we don't fail at domain
# start time
- self._nodedev.dettach()
- self._nodedev.reset()
+ node = conn.nodeDeviceLookupByName(self._nodedev.name)
+ node.dettach()
+ node.reset()
except Exception, e:
raise RuntimeError(_("Could not detach PCI device: %s" % str(e)))
Index: python-virtinst.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-virtinst/devel/python-virtinst.spec,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -p -r1.67 -r1.68
--- python-virtinst.spec 21 Apr 2009 16:19:26 -0000 1.67
+++ python-virtinst.spec 6 May 2009 16:12:02 -0000 1.68
@@ -17,7 +17,7 @@
Summary: Python modules and utilities for installing virtual machines
Name: python-%{appname}
Version: 0.400.3
-Release: 7%{_extra_release}
+Release: 8%{_extra_release}
Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
Patch1: %{appname}-%{version}-fix-virtimage-scratch.patch
Patch2: %{appname}-%{version}-hostdev-libvirt-calls.patch
@@ -31,6 +31,8 @@ Patch6: %{appname}-%{version}-fix-floppy
Patch7: %{appname}-%{version}-updated-trans.patch
# Only throw warnings if we fail to relabel install media (bz 496340)
Patch8: %{appname}-%{version}-selinux-warn.patch
+# Fix PCI assignment detach/reset calls (bz 499267)
+Patch9: %{appname}-%{version}-fix-pci-assign.patch
License: GPLv2+
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -65,6 +67,7 @@ and install new VMs) and virt-clone (clo
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
%build
python setup.py build
@@ -100,6 +103,9 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/virt-convert
%changelog
+* Wed May 06 2009 Cole Robinson <crobinso at redhat.com> - 0.400.3-8.fc12
+- Fix PCI assignment (bz 499267)
+
* Tue Apr 21 2009 Cole Robinson <crobinso at redhat.com> - 0.400.3-7.fc11
- Only warn if selinux labeling appears to be wrong (bz 496340)
More information about the Fedora-virt-maint
mailing list