Bug 1091113 - virt-install errs with: No option 'version' in section: 'general
virt-install errs with: No option 'version' in section: 'general
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: Virtualization:Tools
Leap 15.0
Other Other
: P3 - Medium : Normal (vote)
: ---
Assigned To: Charles Arnold
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-26 15:59 UTC by Goldwyn Rodrigues
Modified: 2019-03-23 23:46 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Goldwyn Rodrigues 2018-04-26 15:59:26 UTC
Here is the command I used with --debug:

# virt-install --debug -n tw --memory 4096 --vcpus 4 --location /var/lib/libvirt/images/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso --disk path=/var/lib/libvirt/images/tumbly.qcow2,size=64

[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (cli:265) Launched with command line: /usr/share/virt-manager/virt-install --debug -n tw --memory 4096 --vcpus 4 --location /var/lib/libvirt/images/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso --disk path=/var/lib/libvirt/images/tumbly.qcow2,size=64
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (cli:279) Requesting libvirt URI default
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (cli:282) Received libvirt URI qemu:///system
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (virt-install:358) Requesting virt method 'default', hv type 'default'.
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (virt-install:583) Received virt method 'kvm'
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (virt-install:584) Hypervisor name is 'hvm'
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (virt-install:270) Distilled --network options: ['default']
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (virt-install:183) Distilled --disk options: ['path=/var/lib/libvirt/images/tumbly.qcow2,size=64']
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (devicedisk:409) Creating volume 'tumbly.qcow2' on pool 'default'
[Thu, 26 Apr 2018 10:54:09 virt-install 6078] DEBUG (devicedisk:535) disk.set_vol_install: name=tumbly.qcow2 poolxml=
<pool type='dir'>
  <name>default</name>
  <uuid>aa8c87b9-bdce-4440-b9a9-4e14a3a54866</uuid>
  <capacity unit='bytes'>2197945323520</capacity>
  <allocation unit='bytes'>143942406144</allocation>
  <available unit='bytes'>2054002917376</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0711</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (distroinstaller:285) installer.detect_distro returned=opensusetumbleweed
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (guest:254) Setting Guest.os_variant to 'opensusetumbleweed'
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] WARNING (cli:505) Graphics requested but DISPLAY is not set. Not running virt-viewer.
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] WARNING (virt-install:690) No console to launch for the guest, defaulting to --wait -1
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (virt-install:697) Guest.has_install_phase: True

Starting install...
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (guest:1206) Using default_graphics=spice
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (guest:1225) Local connection, disabling spice image compression.
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:57) Using scratchdir=/var/lib/libvirt/boot
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:554) Finding distro store for location=/var/lib/libvirt/images/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:351) Running isoinfo: ['isoinfo', '-J', '-i', '/var/lib/libvirt/images/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso', '-x', '/.treeinfo']
Setting input-charset to 'UTF-8' from locale.
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:90) Fetching URI: /.treeinfo
Retrieving file .treeinfo...                                |  334 B  00:00     
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:165) Saved file to /var/lib/libvirt/boot/virtinst-.treeinfo.4klbk5ti
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:413) treeinfo family=openSUSE Tumbleweed
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:573) variant=opensusetumbleweed has distro=suse, looking for matching distro store to prioritize
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (urlfetcher:584) No matching store found, not prioritizing anything
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (cli:317)   File "/usr/share/virt-manager/virt-install", line 1008, in <module>
    sys.exit(main())
  File "/usr/share/virt-manager/virt-install", line 1002, in main
    start_install(guest, options)
  File "/usr/share/virt-manager/virt-install", line 728, in start_install
    fail(e, do_exit=False)
  File "/usr/share/virt-manager/virtinst/cli.py", line 317, in fail
    logging.debug("".join(traceback.format_stack()))

[Thu, 26 Apr 2018 10:54:10 virt-install 6078] ERROR (cli:318) No option 'version' in section: 'general'
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (cli:320) 
Traceback (most recent call last):
  File "/usr/lib64/python3.6/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.6/collections/__init__.py", line 883, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.6/collections/__init__.py", line 875, in __missing__
    raise KeyError(key)
KeyError: 'version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 707, in start_install
    transient=options.transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 509, in start_install
    self._prepare_install(meter, dry)
  File "/usr/share/virt-manager/virtinst/guest.py", line 316, in _prepare_install
    self.installer.prepare(self, meter)
  File "/usr/share/virt-manager/virtinst/installer.py", line 200, in prepare
    self._prepare(guest, meter)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 222, in _prepare
    self._prepare_kernel_url(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 129, in _prepare_kernel_url
    store = self._get_store(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 116, in _get_store
    self._cached_store = urlfetcher.getDistroStore(guest, fetcher)
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 592, in getDistroStore
    if store.isValidStore():
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 1147, in isValidStore
    version = self.treeinfo.get("general", "version")
  File "/usr/lib64/python3.6/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'version' in section: 'general'
[Thu, 26 Apr 2018 10:54:10 virt-install 6078] DEBUG (cli:331) Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start tw
otherwise, please restart your installation.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start tw
otherwise, please restart your installation.
Comment 1 Goldwyn Rodrigues 2018-04-26 19:09:24 UTC
This happens with Tumbleweed installation only.
Comment 2 Swamp Workflow Management 2018-04-26 22:40:09 UTC
This is an autogenerated message for OBS integration:
This bug (1091113) was mentioned in
https://build.opensuse.org/request/show/601698 Factory / virt-manager
Comment 4 Charles Arnold 2018-04-27 16:54:12 UTC
Fix is now in Factory.
Comment 6 Swamp Workflow Management 2018-07-04 13:12:29 UTC
SUSE-RU-2018:1876-1: An update that has two recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1091113,1098054
CVE References: 
Sources used:
SUSE Linux Enterprise Server 12-SP3 (src):    virt-manager-1.4.1-5.11.1
SUSE Linux Enterprise Desktop 12-SP3 (src):    virt-manager-1.4.1-5.11.1
Comment 7 Swamp Workflow Management 2018-07-05 22:08:42 UTC
openSUSE-RU-2018:1894-1: An update that has two recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1091113,1098054
CVE References: 
Sources used:
openSUSE Leap 42.3 (src):    virt-manager-1.4.1-12.1
Comment 9 Swamp Workflow Management 2019-01-31 23:10:02 UTC
SUSE-RU-2019:0219-1: An update that has 8 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1054986,1067018,1086038,1086715,1091113,1098054,1102101,1120523
CVE References: 
Sources used:
SUSE OpenStack Cloud 7 (src):    libosinfo-0.3.0-15.9.1, virt-manager-1.4.0-21.9.4
SUSE Linux Enterprise Server for SAP 12-SP2 (src):    libosinfo-0.3.0-15.9.1, virt-manager-1.4.0-21.9.4
SUSE Linux Enterprise Server 12-SP2-LTSS (src):    libosinfo-0.3.0-15.9.1, virt-manager-1.4.0-21.9.4
SUSE Linux Enterprise Server 12-SP2-BCL (src):    libosinfo-0.3.0-15.9.1, virt-manager-1.4.0-21.9.4
SUSE Enterprise Storage 4 (src):    libosinfo-0.3.0-15.9.1, virt-manager-1.4.0-21.9.4