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 1168495 - Improve the error info when pass guest doesn't exist on rhev to remote-viewer
Summary: Improve the error info when pass guest doesn't exist on rhev to remote-viewer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-viewer
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Grunt
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-27 06:59 UTC by tingting zheng
Modified: 2015-03-05 13:40 UTC (History)
10 users (show)

Fixed In Version: virt-viewer-0.6.0-12.el
Doc Type: Bug Fix
Doc Text:
Cause: Try to connect to a non-existent VM is treated as an error. Consequence: A critical is displayed in the terminal. Fix: Decrease the severity level to warning instead of a critical. Result: No critical error is displayed to the user.
Clone Of:
Environment:
Last Closed: 2015-03-05 13:40:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0295 0 normal SHIPPED_LIVE virt-viewer bug fix and enhancement update 2015-03-05 17:33:00 UTC

Description tingting zheng 2014-11-27 06:59:36 UTC
Description
Improve the error info when pass guest doesn't exist on rhev to remote-viewer

Version:
virt-viewer-0.6.0-11.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a guest on rhev(rhevm.example.com), and add user "admin" to virtual machine permissions
2. On remote-viewer client,pass an guest name which doesn't exist,eg:test doesn't exist on rhev.
# wget http://rhevm.example.com/ca.crt
# remote-viewer --ovirt-ca-file=ca.crt ovirt://admin%40internal.com/test
3.After input the right password,an dialog will pop out with error:"Could't open Ovirt session".
In the console,error info shows as below:
(remote-viewer:32390): remote-viewer-CRITICAL **: create_ovirt_session: assertion 'vm != NULL' failed


Actual results:
In step 3,the error info is quite confusing and not clear,actually users just pass guest which doesn't exist on rhev instead of NULL guest.

Expected results:
Improve the error info in step 3 to be more clear and not so confusing.

Additional info:

Comment 2 Christophe Fergeau 2014-11-27 09:29:52 UTC
Upstream is now showing a dialog to select the VM to connect to when an invalid VM name is given. I thought before that there had been a patch to give a better error when giving an invalid VM name, but I haven't been able to find it.

Comment 4 tingting zheng 2014-12-01 02:44:16 UTC
Tested with:
virt-viewer-0.6.0-12.el7.x86_64

Following the steps in description:

On remote-viewer client,pass an guest name which doesn't exist,eg:test doesn't exist on rhev.

After input the right password,an dialog will pop out with error:"Could't open Ovirt session".
In the console,No error info shows as description.

Refer to the above comments,move the bug to VERIFIED.

Comment 6 errata-xmlrpc 2015-03-05 13:40:17 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.

https://rhn.redhat.com/errata/RHBA-2015-0295.html


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