Red Hat Bugzilla – Bug 517293
virt-manager storage browser ISO/disk callback mixup
Last modified: 2009-09-18 12:23:20 EDT
Created attachment 357309 [details]
This patch fixes it for me.
Description of problem:
When creating a new guest, using the local file browser to select an ISO image and then a local file browser to select storage for the guest, the pathname is not filled into the widget. (From debugging, I can see that the iso browser callback gets called again instead.)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.New, choose a name, install from local media
2.Use ISO image, click Browse, then Browse Local, select an ISO file
3.Choose OS type and version
4.Accept defaults for RAM and CPU
5.Select managed or other existing storage, click Browse, then Browse Local
6.Select a file.
Text entry box remains empty, clicking Forward gives error "A storage path must be specified".
Entry box contains selected pathname.
Good catch Tim
Problem is obvious from the code:
def browse_iso(self, ignore1=None, ignore2=None):
self._browse_file(_("Locate ISO Image"),
def browse_storage(self, ignore1):
self._browse_file(_("Locate existing storage"),
def _browse_file(self, dialog_name, callback, folder=None, is_media=False):
if self.storage_browser == None:
self.storage_browser = vmmStorageBrowser(self.config, self.conn,
browse_iso() gets called first, creating the storage browser and setting the ISO callback, then browse_storage() gets called re-using the storage browser with the wrong callback
With virt-manager-0.8.0-2.fc12 "browse" iso image pops up
"Choose Storage Volume". Sounds like the same thing?
(In reply to comment #2)
> With virt-manager-0.8.0-2.fc12 "browse" iso image pops up
> "Choose Storage Volume". Sounds like the same thing?
No, that's as designed - the problem we're talking about here is if you then use the Browse Local button in that dialog
*** Bug 521672 has been marked as a duplicate of this bug. ***
Thanks for the patch, I've pushed a similar fix upstream now:
Fixed in virt-manager-0.8.0-3.fc12
> Fixed in virt-manager-0.8.0-3.fc12
Unfortunately not - I still see the volume dialog
when I try to browse for a local iso image.
(In reply to comment #6)
> > Fixed in virt-manager-0.8.0-3.fc12
> Unfortunately not - I still see the volume dialog
> when I try to browse for a local iso image.
That is intentional, and not what this bug is tracking. You can still launch a local file browser from the 'volume' dialog with the 'Browse Local' button.
The 'volume' dialog is needed if users want to install a remote VM, or access media that is shared via a libvirt storage pool, but not directly accessible by the regular user.