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 1115237 - spice connection break while set_password with sasl enabled
Summary: spice connection break while set_password with sasl enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1115291
TreeView+ depends on / blocked
 
Reported: 2014-07-02 02:29 UTC by mazhang
Modified: 2016-09-20 04:41 UTC (History)
10 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.454.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-22 06:05:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1115291 0 medium CLOSED Print wrong authentication in "info spice" output 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2015:1275 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2015-07-20 17:49:16 UTC

Internal Links: 1115291

Description mazhang 2014-07-02 02:29:22 UTC
Description of problem:
spice connection break while set_password with sasl enabled.

Version-Release number of selected component (if applicable):

Host:
qemu-kvm-tools-0.12.1.2-2.428.el6.x86_64
qemu-kvm-0.12.1.2-2.428.el6.x86_64
qemu-img-0.12.1.2-2.428.el6.x86_64
gpxe-roms-qemu-0.9.7-6.11.el6.noarch
qemu-kvm-debuginfo-0.12.1.2-2.428.el6.x86_64

Client:
virt-viewer-0.6.0-9.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Boot vm with sasl enabled.
/usr/libexec/qemu-kvm \
-M pc \
-cpu Nehalem \
-m 1G \
-smp 4,sockets=2,cores=2,threads=1,maxcpus=160 \
-enable-kvm \
-name rhel6.6 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \
-k en-us \
-rtc base=localtime,clock=host,driftfix=slew \
-nodefaults \
-monitor stdio \
-qmp tcp:0:6666,server,nowait \
-boot menu=on \
-chardev socket,id=seabios,path=/tmp/seabios,server,nowait \
-device isa-debugcon,chardev=seabios,iobase=0x402 -device sga \
-serial unix:/tmp/monitor-unix,server,nowait \
-drive file=/home/rhel7-64.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads \
-device virtio-blk-pci,scsi=off,bus=pci.0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=0 \
-usb \
-device usb-tablet \
-vga qxl \
-spice port=5900,sasl,disable-ticketing \

2. Connect to guest.

3. set password.
{ "execute": "set_password", "arguments": { "protocol": "spice", "password": "secret" } }                        
{"timestamp": {"seconds": 1404267762, "microseconds": 528864}, "event": "SPICE_DISCONNECTED", "data": {"server": {"port": "5900", "family": "ipv4", "host": "10.66.111.180"}, "client": {"port": "50043", "family": "ipv4", "host": "10.66.82.225"}}}
{"timestamp": {"seconds": 1404267762, "microseconds": 530282}, "event": "__com.redhat_SPICE_DISCONNECTED", "data": {"server": {"auth": "none", "port": "5900", "family": "ipv4", "host": "10.66.111.180"}, "client": {"port": "50041", "family": "ipv4", "host": "10.66.82.225"}}}
{"timestamp": {"seconds": 1404267762, "microseconds": 530526}, "event": "SPICE_DISCONNECTED", "data": {"server": {"port": "5900", "family": "ipv4", "host": "10.66.111.180"}, "client": {"port": "50041", "family": "ipv4", "host": "10.66.82.225"}}}
{"return": {}}
{"timestamp": {"seconds": 1404267762, "microseconds": 530990}, "event": "SPICE_DISCONNECTED", "data": {"server": {"port": "5900", "family": "ipv4", "host": "10.66.111.180"}, "client": {"port": "50044", "family": "ipv4", "host": "10.66.82.225"}}}
{"timestamp": {"seconds": 1404267762, "microseconds": 531270}, "event": "SPICE_DISCONNECTED", "data": {"server": {"port": "5900", "family": "ipv4", "host": "10.66.111.180"}, "client": {"port": "50042", "family": "ipv4", "host": "10.66.82.225"}}}


Actual results:
Connection break.

Expected results:
Throw an error.

Additional info:

Comment 1 mazhang 2014-07-02 02:51:09 UTC
spice-server-0.12.4-9.el6.x86_64

Comment 3 Gerd Hoffmann 2014-07-02 11:17:54 UTC
http://patchwork.ozlabs.org/patch/366322/

Comment 4 Gerd Hoffmann 2014-08-28 15:08:35 UTC
upstream commit b1ea7b79e1675355ea7abe2548ad71dcf7d64b60

Comment 6 Gerd Hoffmann 2015-02-18 13:08:22 UTC
patches posted

Comment 7 Jeff Nelson 2015-02-24 21:33:52 UTC
Fix included in qemu-kvm-0.12.1.2-2.454.el6

Comment 9 mazhang 2015-02-28 08:29:32 UTC
Partly reproduce this bug with old qemu-kvm, then test on fixed version.

For the old version, qemu-kvm set_passwd silent fails when sasl is enabled.
qemu-kvm-0.12.1.2-2.428.el6.x86_64
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}, "capabilities": []}}
{"execute":"qmp_capabilities"}
{"return": {}}
{ "execute": "set_password", "arguments": { "protocol": "spice", "password": "secret" } }
{"return": {}}

For the fixed version, qmp throw an error.
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2-2.454.el6)"}, "capabilities": []}}
{"execute":"qmp_capabilities"}
{"return": {}}
{ "execute": "set_password", "arguments": { "protocol": "spice", "password": "secret" } }
{"error": {"class": "SetPasswdFailed", "desc": "Could not set password", "data": {}}}

So this bug has been fixed.
If any problem please let me know.

Thanks,
Mazhang.

Comment 11 errata-xmlrpc 2015-07-22 06:05:40 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-1275.html


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