Bug 1159903 - /virt/install fails with: Distro 'virtio26' does not exist in our dictionary
Summary: /virt/install fails with: Distro 'virtio26' does not exist in our dictionary
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Beaker
Classification: Retired
Component: tests
Version: 0.18
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-03 14:59 UTC by Jan Stancek
Modified: 2018-02-06 00:41 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-31 13:14:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Stancek 2014-11-03 14:59:20 UTC
Description of problem:
/virt/install fails with compose RHEL-7.1-20141029.0 / virt-install-1.1.0-4.el7.noarch:

[Mon, 03 Nov 2014 09:36:54 virt-install 3730] DEBUG (cli:257)   File "/usr/share/virt-manager/virt-install", line 904, in <module>
    sys.exit(main())
  File "/usr/share/virt-manager/virt-install", line 889, in main
    guest = build_guest_instance(conn, options, parsermap)
  File "/usr/share/virt-manager/virt-install", line 496, in build_guest_instance
    options.distro_variant)
  File "/usr/share/virt-manager/virt-install", line 256, in set_install_media
    fail(_("Error validating install location: %s" % str(e)))
  File "/usr/share/virt-manager/virtinst/cli.py", line 257, in fail
    logging.debug("".join(traceback.format_stack()))

[Mon, 03 Nov 2014 09:36:54 virt-install 3730] ERROR (cli:258) Error validating install location: Distro 'virtio26' does not exist in our dictionary

Version-Release number of selected component (if applicable):
distribution-distribution-virt-install-4.0-85.noarch

How reproducible:
100%

Steps to Reproduce:
1. run /virt/install with compose RHEL-7.1-20141029.0

Actual results:
[Mon, 03 Nov 2014 09:36:54 virt-install 3730] ERROR (cli:258) Error validating install location: Distro 'virtio26' does not exist in our dictionary

Expected results:
guests are installed

Additional info:

Comment 2 Jan Stancek 2014-11-03 15:04:06 UTC
GA distro
----------
# rpm -qa virt-install
virt-install-0.10.0-20.el7.noarch
# virt-install --os-variant list | grep virtio26
virtio26             : Generic 2.6.25 or later kernel with virtio

RHEL-7.1-20141029.0
---------------------
# rpm -qa virt-install
virt-install-1.1.0-4.el7.noarch
# virt-install --os-variant list
ERROR    
...
# osinfo-query os | grep virtio

# osinfo-query os | grep rhel7.0
 rhel7.0              | Red Hat Enterprise Linux 7.0                       | 7.0      | http://redhat.com/rhel/7.0

Comment 5 Jan Stancek 2014-11-11 19:58:54 UTC
I opened identical BZ for virt-manager as well:
Bug 1162800 - Distro 'virtio26' does not exist in our dictionary

Comment 6 Jan Stancek 2014-11-12 10:40:51 UTC
As a workaround, it is possible to override --os-variant from guestargs to value, which latest virt-install allows, e.g. "rhel7".

Comment 7 Cole Robinson 2014-11-16 17:15:49 UTC
Sorry for lack of response. Yeah we switched to libosinfo for our os dictionary in virt-install/virt-manager, but we missed carrying over an alias for the old virtio26 option we used to provide. We need to fix that in virt-install

Comment 8 Jan Stancek 2015-07-31 13:14:46 UTC
This has been fixed on virt-manager side, closing.


Note You need to log in before you can comment on or make changes to this bug.