Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159881 Details for
Bug 249094
virt-manager starts domU install even though error with duplicate name exists
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Aggressively free domain pointer in libvirt
virrt-manager-0.4.0-release-deleted-domain.patch (text/plain), 1.71 KB, created by
Hugh Brock
on 2007-07-24 19:45:00 UTC
(
hide
)
Description:
Aggressively free domain pointer in libvirt
Filename:
MIME Type:
Creator:
Hugh Brock
Created:
2007-07-24 19:45:00 UTC
Size:
1.71 KB
patch
obsolete
>diff -ruN virt-manager-0.4.0.orig/src/virtManager/connection.py virt-manager-0.4.0/src/virtManager/connection.py >--- virt-manager-0.4.0.orig/src/virtManager/connection.py 2007-04-16 09:31:47.000000000 -0400 >+++ virt-manager-0.4.0/src/virtManager/connection.py 2007-07-24 15:34:26.000000000 -0400 >@@ -407,6 +407,7 @@ > curUUIDs[uuid] = vm > else: > vm = self.vms[uuid] >+ vm.release_handle() > vm.set_handle(rawvm) > curUUIDs[uuid] = vm > #print "Mere state change " + str(vm) >@@ -427,6 +428,7 @@ > # Inform everyone what changed > for uuid in oldUUIDs: > self.emit("vm-removed", self.uri, uuid) >+ oldUUIDs[uuid].release_handle() > > for uuid in newUUIDs: > self.emit("vm-added", self.uri, uuid) >diff -ruN virt-manager-0.4.0.orig/src/virtManager/domain.py virt-manager-0.4.0/src/virtManager/domain.py >--- virt-manager-0.4.0.orig/src/virtManager/domain.py 2007-07-24 15:30:55.000000000 -0400 >+++ virt-manager-0.4.0/src/virtManager/domain.py 2007-07-24 15:35:45.000000000 -0400 >@@ -51,6 +51,20 @@ > self.xml = self.vm.XMLDesc(0) > return self.xml > >+ def release_handle(self): >+ # HACK: Force free the virtDomainPtr C object since we >+ # can't rely on timely GC. Use try...except block to >+ # protect in case internals of libvirt python change >+ # in the future >+ try: >+ import libvirtmod >+ if self.vm._o is not None: >+ libvirtmod.virDomainFree(self.vm._o) >+ self.vm._o = None >+ except: >+ pass >+ self.vm = None >+ > def set_handle(self, vm): > self.vm = vm >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249094
: 159881