RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1093980 - Unclear error info shows when creating guest with an existing name
Summary: Unclear error info shows when creating guest with an existing name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Giuseppe Scrivano
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1000980
TreeView+ depends on / blocked
 
Reported: 2014-05-04 04:37 UTC by tingting zheng
Modified: 2015-03-05 09:02 UTC (History)
8 users (show)

Fixed In Version: virt-manager-0.9.0-21.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-14 06:26:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1447 0 normal SHIPPED_LIVE virt-manager bug fix and enhancement update 2014-10-14 01:05:46 UTC

Description tingting zheng 2014-05-04 04:37:23 UTC
Description
Unclear error info shows when creating guest with an existing name

Version:
virt-manager-0.9.0-20.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Launch virt-manager.
2. Make sure there is a guest,eg:test.
3. Create a new guest,give a name which already exist,eg:test.
4. Click "Forward",error shows:Uncaught error validating install parameters: Gtk.Container.add() argument 1 must be gtk.Widget, not bool
Uncaught error validating install parameters: Gtk.Container.add() argument 1 must be gtk.Widget, not bool

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1469, in validate
    return self.validate_name_page()
  File "/usr/share/virt-manager/virtManager/create.py", line 1491, in validate_name_page
    return self.verr(_("Invalid System Name"), str(e))
  File "/usr/share/virt-manager/virtManager/create.py", line 2154, in verr
    return self.err.val_err(msg, extra)
  File "/usr/share/virt-manager/virtManager/error.py", line 116, in val_err
    self._simple_dialog(dtype, buttons, text1, text2, title, async)
  File "/usr/share/virt-manager/virtManager/error.py", line 110, in _simple_dialog
    sync=not async)
  File "/usr/share/virt-manager/virtManager/error.py", line 40, in _launch_dialog
    dialog.get_content_area().add(widget)
TypeError: Gtk.Container.add() argument 1 must be gtk.Widget, not bool



Actual results:
As description.

Expected results:
Clear error info shows:Guest name 'test' is already in use.

Additional info:

Comment 2 tingting zheng 2014-05-04 06:40:03 UTC
On the latest virt-manager version,for any scenario of maloperation eg:give wrong/invalid value for guest,there is no clear warning/error info,the info is something like description,eg:when input wrong size when creating volume in lvm pool,the error info is:
Uncaught error validating input: Gtk.Container.add() argument 1 must be gtk.Widget, not bool

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createvol.py", line 211, in finish
    if not self.validate():
  File "/usr/share/virt-manager/virtManager/createvol.py", line 268, in validate
    return self.val_err(_("Volume Parameter Error"), str(e))
  File "/usr/share/virt-manager/virtManager/createvol.py", line 280, in val_err
    ret = self.err.val_err(info, details, async=not modal)
  File "/usr/share/virt-manager/virtManager/error.py", line 116, in val_err
    self._simple_dialog(dtype, buttons, text1, text2, title, async)
  File "/usr/share/virt-manager/virtManager/error.py", line 110, in _simple_dialog
    sync=not async)
  File "/usr/share/virt-manager/virtManager/error.py", line 40, in _launch_dialog
    dialog.get_content_area().add(widget)
TypeError: Gtk.Container.add() argument 1 must be gtk.Widget, not bool

Comment 6 tingting zheng 2014-05-07 03:12:35 UTC
Tested the bug with:
virt-manager-0.9.0-21.el6.x86_64

Try to create a guest with the name which already exists,error will show:Guest name 'test' is already in use

Also tested the similar scenario for storage,all error info shows correct,so move the bug to VERIFIED.

Comment 7 errata-xmlrpc 2014-10-14 06:26:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1447.html


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