Bug 825600
Summary: | spice client could not disconnect after update graphics with connected='disconnect' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | yanbing du <ydu> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | acathrow, dallan, dyasny, dyuan, mzhan, zhpeng, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.13-3.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:15:41 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: |
Description
yanbing du
2012-05-28 03:03:43 UTC
Are we sure this is libvirt specific, eg does this work with commandline/qemu - (In reply to comment #2) > Are we sure this is libvirt specific, eg does this work with > commandline/qemu - In fact, this feature work with qemu, you can reference to bug 707212 - support connected paramater in set_password. "when issueing a setVmTicket with a spice connection there is an additional parameter available in qemu that determines the behavior with an existing client." libvirt add this parameter to export it in libvirt side. In fact, it works well when update the graphics with different password, but fail with the same password. Fixed upstream: commit e0f0131d33e283f1b76c05eb7bef4bbbb3f2fd72 Author: Peter Krempa <pkrempa> Date: Thu Jun 14 14:48:42 2012 +0200 qemu: Enable disconnecting SPICE clients without changing password Libvirt updates the configuration of SPICE server only when something changes. This is unfortunate when the user wants to disconnect a existing spice session when the connected attribute is already "disconnect". This patch modifies the conditions for calling the password updater to be called when nothing changes, but the connected attribute is already "disconnect". can reproduce with libvirt-0.9.10-21.el6 verify with: libvirt-0.9.13-3.el6.x86_64 spice-gtk-0.11-11.el6.x86_64 spice-server-0.10.1-10.el6.x86_64 step: 1:prepare a guest with spice,and set spice password to 'redhat' 2:virsh dumpxml $guest --security-info ...... <graphics type='spice' port='5900' tlsPort='5907' autoport='yes' listen='0.0.0.0' keymap='en-us' passwd='redhat' passwdValidTo='2022-02-27T19:46:10' connected='disconnect'> <listen type='address' address='0.0.0.0'/> <channel name='main' mode='secure'/> <channel name='inputs' mode='secure'/> </graphics> ...... 3:start the guest and connect the console with virt-viewer or spicec: remote-viewer spice://127.0.0.1/?port=5900\&tls-port=5907 --spice-host-subject="C=IL,L=Raanana,O=Red Hat,CN=my server" --spice-ca-file='/etc/pki/libvirt-spice/ca-cert.pem' or spicec -h 127.0.0.1 -p 5900 -s 5907 -w redhat --host-subject "C=IL,L=Raanana,O=Red Hat,CN=my server" --ca-file '/etc/pki/libvirt-spice/ca-cert.pem' 4:prepare a xml #cat spice-new.xml <graphics type='spice' port='5900' tlsPort='5907' autoport='yes' listen='0.0.0.0' keymap='en-us' passwd='redhat' passwdValidTo='2022-02-27T19:46:10' connected='disconnect'> <listen type='address' address='0.0.0.0'/> <channel name='main' mode='secure'/> <channel name='inputs' mode='secure'/> </graphics> 5:update the guest with the xml # virsh update-device $guest spcie-new.xml Device updated successfully with the same password , after updating device , spice console gets disconnected. verification passed. 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/RHSA-2013-0276.html |