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.
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:
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
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.
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
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: