Bug 671319

Summary: Improper error message for unsupported graphics type such as 'rdp', 'desktop'
Product: Red Hat Enterprise Linux 6 Reporter: Cui Chun <ccui>
Component: libvirtAssignee: Osier Yang <jyang>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dallan, dyuan, eblake, jyang, llim, mjenner, mzhan, vbian, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.7-4.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:26:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Cui Chun 2011-01-21 07:20:49 UTC
Description of problem:

libvirt unsupported graphics types include 'sdl', 'rdp', 'desktop'. 

'sdl' error message has been fixed in bug 633326. However, the error message for 'rdp' and 'desktop' are different from 'sdl'  

Version-Release number of selected component (if applicable):
libvirt-0.8.7-3.el6
qemu-kvm-0.12.1.2-2.129.el6


How reproducible:
Always

Steps to Reproduce:

1. Configure rdp and desktop respectively by changing the guest's XML from
    <graphics type='vnc port='-1' autoport='yes' listen='0.0.0.0'
keymap='en-us'/>
to
    <graphics type='rdp'>

    <graphics type='desktop'>

2. Start the guest and check error message


Actual results:

# virsh start cc
error: Failed to start domain cc
error: internal error unsupported graphics type 'desktop'

# virsh start cc
error: Failed to start domain cc
error: internal error unsupported graphics type 'rdp'


Expected results:

Output the uniform error message with 'sdl'.

Additional info:

The error message for 'sdl' are:

# virsh start cc
error: Failed to start domain cc
error: unsupported configuration: sdl not supported by '/usr/libexec/qemu-kvm'

Comment 2 Osier Yang 2011-01-21 08:17:47 UTC
patch posted to upstream to fix the problem:

http://www.redhat.com/archives/libvir-list/2011-January/msg00883.html

Comment 3 Osier Yang 2011-01-27 09:18:05 UTC
http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-January/msg01408.html

patch sent to rhvirt-patches.

Comment 5 Min Zhan 2011-01-28 04:44:02 UTC
Verified with passed with below environment:
# uname -a
Linux dhcp-65-85.nay.redhat.com 2.6.32-99.el6.x86_64 #1 SMP Fri Jan 14 10:46:00 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

libvirt-0.8.7-4.el6.x86_64
kernel-2.6.32-99.el6.x86_64
qemu-kvm-0.12.1.2-2.129.el6.x86_64

-----desktop----
In guest xml
...
 <graphics type='desktop'>
...

# virsh start <guest>
error: Failed to start domain <guest>
error: unsupported configuration: unsupported graphics type 'desktop'

----rdp-------
In guest xml,
...
 <graphics type='rdp'>
...

# virsh start <guest>
error: Failed to start domain <guest>
error: unsupported configuration: unsupported graphics type 'rdp'

Comment 6 Vivian Bian 2011-04-18 06:05:06 UTC
Tested with 
libvirt-0.8.7-17.el6.x86_64
qemu-kvm-0.12.1.2-2.158.el6.x86_64
kernel-2.6.32-131.0.1.el6.x86_64

---error message----
# virsh start cc
error: Failed to start domain cc
error: internal error unsupported graphics type 'desktop'

# virsh start cc
error: Failed to start domain cc
error: internal error unsupported graphics type 'rdp'

# virsh start cc
error: Failed to start domain cc
error: unsupported configuration: sdl not supported by '/usr/libexec/qemu-kvm'

Meet the expected result . So keep the VERIFIED status .

Comment 9 errata-xmlrpc 2011-05-19 13:26:02 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html