Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: Unclear error info shows when creating guest with an existing name
Product: Red Hat Enterprise Linux 6 Reporter: tingting zheng <tzheng>
Component: virt-managerAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.6CC: codong, dyuan, gscrivan, juzhou, lcui, mzhan, rbalakri, zsong
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-0.9.0-21.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 06:26:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1000980    

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