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/virt-manager/virt-install", line 875, in <module>
sys.exit(main())
File "/usr/share/virt-manager/virt-install", line 860, in main
guest = build_guest_instance(conn, options, parsermap)
File "/usr/share/virt-manager/virt-install", line 470, in
build_guest_instance
get_install_media(guest, options.location, options.cdrom)
File "/usr/share/virt-manager/virt-install", line 233, in
get_install_media
validate_install_media(guest, location, cdpath, cdinstall)
File "/usr/share/virt-manager/virt-install", line 243, in
validate_install_media
guest.installer.check_location(guest)
File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 471,
in check_location
urlfetcher.detectMediaDistro(guest, self.location)
File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 360, in
detectMediaDistro
store = getDistroStore(guest, fetcher)
File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 338, in
getDistroStore
if store.isValidStore():
File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 960, in
isValidStore
elif fetcher.hasFile("initrd.gz") and fetcher.hasFile("linux"):
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-1.0-0:amd64 (0.2.11-1.1, automatic)) and found other errors trying to verify the source of the .iso, however, I did not get the python global name error that you get from running the ubuntu 15.04 version.
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"
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 lib/libvirt/ images/ dummy.qcow2, size=8 -l pubmirrors. dal.corespace. com/centos/ 7/isos/ x86_64/ --dry-run
--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 virt-manager/ virt-install" , line 875, in <module> exit(main( )) virt-manager/ virt-install" , line 860, in main instance( conn, options, parsermap) virt-manager/ virt-install" , line 470, in instance install_ media(guest, options.location, options.cdrom) virt-manager/ virt-install" , line 233, in install_ media(guest, location, cdpath, cdinstall) virt-manager/ virt-install" , line 243, in install_ media installer. check_location( guest) virt-manager/ virtinst/ distroinstaller .py", line 471, detectMediaDist ro(guest, self.location) virt-manager/ virtinst/ urlfetcher. py", line 360, in guest, fetcher) virt-manager/ virtinst/ urlfetcher. py", line 338, in ore(): virt-manager/ virtinst/ urlfetcher. py", line 960, in hasFile( "initrd. gz") and fetcher. hasFile( "linux" ):
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- 1.0-0:amd64 (0.2.11-1.1, automatic)) and found other errors trying to verify the source of the .iso, however, I did not get the python global name error that you get from running the ubuntu 15.04 version.
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"