Bug 1241902 - "cannot concatenate 'str' and 'exceptions.ValueError' objects" when creating New VM without valid OS type
Summary: "cannot concatenate 'str' and 'exceptions.ValueError' objects" when creating ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 22
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-10 11:30 UTC by Jonathan Wakely
Modified: 2015-08-18 05:14 UTC (History)
3 users (show)

Fixed In Version: virt-manager-1.2.1-2.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-18 05:14:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot (28.96 KB, image/png)
2015-07-10 11:30 UTC, Jonathan Wakely
no flags Details

Description Jonathan Wakely 2015-07-10 11:30:49 UTC
Created attachment 1050654 [details]
screenshot

Description of problem:


Version-Release number of selected component (if applicable):



How reproducible:

Always

Steps to Reproduce:
1. In virt-manager create new VM from local install media, choose path to some ISO
2. Uncheck "Automatically detect operating system based on install media"
3. Choose OS type: UNIX (first select "Show all OS options" then choose "UNIX") pick any version.
4. Check "Automatically detect ..." again
5. Uncheck it again (Version will now be blank)
6. Click "> Forward"

Actual results:

Blank version cause a python exception to be shown with the exceedingly unhelpful message:

  Error setting installer parameters.
  cannot concatenate 'str' and 'exceptions.ValueError' objects


Expected results:

An error with more context, maybe pointing out that Version cannot be left blank. Or alternatively, don't forget the previously selected value for the Version field blank after checking/unchecking the "Automatically detect..." checkbox.

Comment 1 Cole Robinson 2015-08-10 17:05:35 UTC
Thanks for the simple reproducer! Fixed upstream now:

commit cca72a73c496b715bc90ee277291d0cbcf6d1771
Author: Cole Robinson <crobinso>
Date:   Mon Aug 10 12:56:11 2015 -0400

    create: Fix backtrace when reporting OS error (bz 1241902)

Comment 2 Fedora Update System 2015-08-11 20:12:02 UTC
virt-manager-1.2.1-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/virt-manager-1.2.1-2.fc22

Comment 3 Fedora Update System 2015-08-13 16:53:55 UTC
Package virt-manager-1.2.1-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-1.2.1-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-13390/virt-manager-1.2.1-2.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-08-18 05:14:27 UTC
virt-manager-1.2.1-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


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