Project

General

Profile

Bug #1140

[virt-install] Error pops up after click on Forward in wizard when creating new VM

nRoof - about 6 years ago - . Updated almost 6 years ago.

Status:
fixed
Priority:
bug
Assignee:
-
% Done:

100%


Description

Steps to reproduce:
1. Open virt-manager and make sure that the connection is added (for example, QEMU/KVM).
2. Click to create new VM (either using the appropriate button from the toolbar, or using File - New Virtual Machine).
3. Click Forward in the appeared popup (it doesn't matter which one of the radio-button options is selected).

Expected results:
The next screen is shown, it's possible to successfully create a new VM using this wizard.

Actual results:
The following error message is shown:

Error setting up default devices:'_OsVariant' object has no attribute '_get_urldistro'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1681, in _build_guest
    guest.add_default_devices()
  File "/usr/share/virt-manager/virtinst/guest.py", line 636, in add_default_devices
    self.add_default_channels()
  File "/usr/share/virt-manager/virtinst/guest.py", line 611, in add_default_channels
    self._os_object.supports_qemu_ga() and
  File "/usr/share/virt-manager/virtinst/guest.py", line 228, in _get_os_object
    self._set_os_object(None)
  File "/usr/share/virt-manager/virtinst/guest.py", line 222, in _set_os_object
    obj = OSDB.lookup_os(variant)
  File "/usr/share/virt-manager/virtinst/osdict.py", line 179, in lookup_os
    return self._all_variants.get(key)
  File "/usr/share/virt-manager/virtinst/osdict.py", line 162, in _all_variants
    allvariants = self._make_default_variants()
  File "/usr/share/virt-manager/virtinst/osdict.py", line 145, in _make_default_variants
    v = _OsVariant(None)
  File "/usr/share/virt-manager/virtinst/osdict.py", line 230, in __init__
    self.urldistro = self._get_urldistro()
AttributeError: '_OsVariant' object has no attribute '_get_urldistro'


Related issues

Related to Packages - Freedom Issue #1130: [virt-install] non-fsdg compliant distros and OS with libvirt+qemu-headlessfixed2016-10-28

Actions

History

#1

Updated by nRoof about 6 years ago

It seems that the issue is caused by the removal _get_urldistro in the following commit:
https://git.parabola.nu/abslibre.git/commit/?id=c3b38983c0582c49cb517d676f263d3e3a8eb2ba

#2

Updated by Anonymous about 6 years ago

  • Assignee set to Anonymous
#3

Updated by Anonymous about 6 years ago

  • Subject changed from [virt-manager] Error pops up after click on Forward in wizard when creating new VM to [virt-install] Error pops up after click on Forward in wizard when creating new VM
#4

Updated by Megver83 about 6 years ago

I've also get that error recently. Solved by installing community/virt-manager.

#5

Updated by Anonymous about 6 years ago

  • Status changed from open to in progress

i pushed a new revision to [libre-testing], could you test it to see if works well?

#6

Updated by nRoof about 6 years ago

Updated virt-install from [libre-testing], and now it shows another error:

Error setting up default devices:'_OsVariant' object has no attribute 'supports_qemu_ga'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1681, in _build_guest
    guest.add_default_devices()
  File "/usr/share/virt-manager/virtinst/guest.py", line 636, in add_default_devices
    self.add_default_channels()
  File "/usr/share/virt-manager/virtinst/guest.py", line 611, in add_default_channels
    self._os_object.supports_qemu_ga() and
AttributeError: '_OsVariant' object has no attribute 'supports_qemu_ga'
#7

Updated by nRoof about 6 years ago

Unable to reproduce the issue with the steps from the Description after todays update of virt-install from [libre].

But if the user proceeds to the end of the wizard and clicks Finish, then the following error pops up. It seems it doesn't matter which entries were made on all the steps of the wizard.

Unable to complete install: ''_OsVariant' object has no attribute 'is_windows''

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2276, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 441, in start_install
    self.set_install_defaults()
  File "/usr/share/virt-manager/virtinst/guest.py", line 545, in set_install_defaults
    self._set_defaults()
  File "/usr/share/virt-manager/virtinst/guest.py", line 665, in _set_defaults
    self._set_clock_defaults()
  File "/usr/share/virt-manager/virtinst/guest.py", line 708, in _set_clock_defaults
    self.clock.offset = self._os_object.get_clock()
  File "/usr/share/virt-manager/virtinst/osdict.py", line 324, in get_clock
    if self.is_windows() or self._family in ['solaris']:
AttributeError: '_OsVariant' object has no attribute 'is_windows'
#8

Updated by Anonymous almost 6 years ago

Temporary solution with the previous version, virt-install Version 1.4.0-2. Downgrade

#9

Updated by Anonymous almost 6 years ago

nRoof wrote:

Updated virt-install from [libre-testing], and now it shows another error:

[...]

Test the latest revision (1.4.0-2.parabola4) from [libre-testing] and let me know if works well.

#10

Updated by Anonymous almost 6 years ago

  • Related to Freedom Issue #1130: [virt-install] non-fsdg compliant distros and OS with libvirt+qemu-headless added
#11

Updated by Anonymous almost 6 years ago

  • % Done changed from 0 to 100
  • Status changed from in progress to fixed

Also available in: Atom PDF