error creating new machine with "Fedora20+" profile
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | One Hundred Papercuts |
Medium
|
Unassigned | ||
| | virt-manager (Ubuntu) |
Medium
|
Unassigned | ||
| | Utopic |
Undecided
|
Unassigned | ||
| | Vivid |
Undecided
|
Unassigned | ||
| | Wily |
Medium
|
Unassigned | ||
Bug Description
error creating new machine with "Fedora20+" profile
in the wizard:
using local ISO install image
selecting OS Linux/Fedora 20 or later
and any storage option
error message then is
Installation could not be completed: «global name 'fetcher' is not defined»
Traceback (most recent call last):
File "/usr/share/
callback(
File "/usr/share/
guest.
File "/usr/share/
self.
File "/usr/share/
util.
File "/usr/share/
self.
File "/usr/share/
dev = self._prepare_
File "/usr/share/
store = urlfetcher.
File "/usr/share/
if store.isValidSt
File "/usr/share/
elif fetcher.
NameError: global name 'fetcher' is not defined
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: virt-manager 1:1.0.1-0ubuntu2
ProcVersionSign
Uname: Linux 3.16.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Nov 11 23:21:49 2014
InstallationDate: Installed on 2013-01-08 (672 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: Upgraded to utopic on 2014-10-23 (19 days ago)
The attachment "virt-manager-
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| strowi (forums-hasnoname) wrote : | #4 |
Hi,
i still get the same error in 14.10 when trying to install from network via HTTP-Url..
| Seyeong Kim (xtrusia) wrote : | #5 |
Hello
after revert attached patch ( fetcher -> self.fetcher )
it works
| Launchpad Janitor (janitor) wrote : | #6 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in virt-manager (Ubuntu): | |
| status: | New → Confirmed |
| Sergiu Bivol (sergiu-bivol) wrote : | #7 |
Same here, with profile „Microsoft Windows 7 (or later)”.
-------
Unable to complete install: 'global name 'fetcher' is not defined'
Traceback (most recent call last):
File "/usr/share/
callback(
File "/usr/share/
guest.
File "/usr/share/
self.
File "/usr/share/
util.
File "/usr/share/
self.
File "/usr/share/
dev = self._prepare_
File "/usr/share/
store = urlfetcher.
File "/usr/share/
if store.isValidSt
File "/usr/share/
elif fetcher.
NameError: global name 'fetcher' is not defined
| description: | updated |
| Changed in hundredpapercuts: | |
| status: | New → Confirmed |
| Changed in virt-manager (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in hundredpapercuts: | |
| importance: | Undecided → Medium |
| Hagen Kuehn (hag-k) wrote : | #8 |
I think I got to the bottom of it.
Short version:
If the ".treeinfo" file is missing from the repository, the error "ERROR global name 'fetcher' is not defined" is encountered.
Long version:
I had used wget to download the Centos 7 packages from a website mirror to keep them on my local HTTP server. What it didn't copy were the hidden files.
When I encountered this error I found this bug report and could successfully work around/ solve this problem by applying the above "virt-manager-
Later then I realized that the PXE installer reports a 404 error for the ".treeinfo" file. I then downloaded the ".treeinfo" from the repository and also reverted the "urlfetcher.py" to its original code line. Now the error was not encountered anymore.
In the light of this, I presume that there is the possiblity that the others encountered this error because of the the missing ".treeinfo" file.
| Serge Hallyn (serge-hallyn) wrote : | #9 |
Thanks for the information. That may weed out quite a few of the datapoints, although the 'global name fetcher not defined' error still looks related-
I upgraded to 15.04beta and face this issue again
virt-manager 1:1.0.1-4ubuntu2
It is just a problem with this single profile. Other profiles do work.
Traceback (most recent call last):
File "/usr/share/
callback(
File "/usr/share/
guest.
File "/usr/share/
noboot)
File "/usr/share/
dom = self.conn.
File "/usr/lib/
if ret is None:raise libvirtError(
libvirtError: internal error: process exited while connecting to monitor: 2015-02-
The path /var/lib/
| Serge Hallyn (serge-hallyn) wrote : | #11 |
@Christian,
was that comment meant for another bug?
No, meant for this report.
| Serge Hallyn (serge-hallyn) wrote : | #13 |
Ok - it seems like a very different bug, as there is no reference to 'fetcher' or urlfetcher.py in the error output.
| Zach Villers (zachvatwork) wrote : | #14 |
I am also getting this error with virt-install
When running the following in ubuntu 15.04;
virt-install -n dummy -r 512 --vcpus=1 --os-type=linux
--os-variant=rhel7 -w bridge:virbr0 --disk
path=/var/
http://
I am given "ERROR global name 'fetcher' is not defined."
Enabling debug shows ( snipped output )
[Thu, 21 May 2015 14:20:07 virt-install 13914] ERROR (cli:235) global
name 'fetcher' is not defined
[Thu, 21 May 2015 14:20:07 virt-install 13914] DEBUG (cli:237)
Traceback (most recent call last):
File "/usr/share/
sys.
File "/usr/share/
guest = build_guest_
File "/usr/share/
build_guest_
get_
File "/usr/share/
get_install_media
validate_
File "/usr/share/
validate_
guest.
File "/usr/share/
in check_location
urlfetcher.
File "/usr/share/
detectMediaDistro
store = getDistroStore(
File "/usr/share/
getDistroStore
if store.isValidSt
File "/usr/share/
isValidStore
elif fetcher.
NameError: global name 'fetcher' is not defined
My python-fu is quite weak and I can't figure this out. I was able to
run
> python setup.py test_urls
Some URLs Errored, 1 failed, many passed.
The packages associated for ubuntu 15.04 are;
ii virt-manager 1:1.0.1-5ubuntu all desktop application for managing virtual mach
ii virtinst 1:1.0.1-5ubuntu all
For what it's worth. I install virt-manager 1.2 from source (required an additional library libosinfo-
I contacted the owner of the package and was told "
I think this is an ubuntu specific bug, either a botched backport or some
broken custom patch they have, since I don't see code like that in v1.0.1
virt-manager. I'd suggest filing a bug with them"
| Zach Villers (zachvatwork) wrote : | #15 |
Sorry - also wanted to say that the patch listed above does not work for me.
| Marc Deslauriers (mdeslaur) wrote : | #16 |
This is caused by the debian/
| Changed in virt-manager (Ubuntu Utopic): | |
| status: | New → Confirmed |
| Changed in virt-manager (Ubuntu Vivid): | |
| status: | New → Confirmed |
| Changed in virt-manager (Ubuntu Utopic): | |
| status: | Confirmed → Won't Fix |
| Changed in virt-manager (Ubuntu Wily): | |
| status: | Confirmed → Triaged |
| Changed in virt-manager (Ubuntu Vivid): | |
| status: | Confirmed → Triaged |
Attached a fixed version of 9004_ubuntu_
Rebuilding with this patch, I was able to install a Fedora 23 machine, as well as Ubuntu 15.10


This patch gets me past the error (but to some socket error)