[virt-tools-list] problem with virt-install host ubuntu

Cole Robinson crobinso at redhat.com
Thu May 21 18:42:42 UTC 2015


On 05/21/2015 02:33 PM, zach villers wrote:
> Hello,
> 
> 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/lib/libvirt/images/dummy.qcow2,size=8 -l
> http://pubmirrors.dal.corespace.com/centos/7/isos/x86_64/ --dry-run
> 
> 
> 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  
> 
> If this is solely a ubuntu issue, I apologize for not researching further. I did not see a bug matching this issue on bugzilla
> and didnt want to report it without asking around.
> 
> Sorry - just noticed on your site that this might be fixed with virt-manager 1.2?

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

Thanks,
Cole




More information about the virt-tools-list mailing list