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 1115291 - Print wrong authentication in "info spice" output
Summary: Print wrong authentication in "info spice" output
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: 1115237
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-02 06:53 UTC by mazhang
Modified: 2016-09-20 04:41 UTC (History)
13 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:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1115237 0 medium CLOSED spice connection break while set_password with sasl enabled 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: 1115237

Description mazhang 2014-07-02 06:53:03 UTC
Description of problem:
Print wrong authentication in "info spice" output.

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
spice-server-0.12.4-9.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Boot guest with sasl enable.
-vga qxl \
-spice port=5900,sasl,disable-ticketing \

2.Connect to guest

3.Query spice
(qemu) info spice
Server:
     migrated: false
     address: 0.0.0.0:5900
        auth: none          <--- should be "sasl".
Channels: none

{"execute":"query-spice"}
{"return": {"migrated": false, "enabled": true, "auth": "none", "port": 5900, "host": "0.0.0.0", "channels": []}}

Actual results:
Print authentication is "none"

Expected results:
Print "sasl".

Additional info:

Comment 2 Ronen Hod 2014-07-10 08:49:45 UTC
Gerd has a patch, deferring to 6.7.

Comment 4 Gerd Hoffmann 2015-02-18 13:10:07 UTC
patch for bug 1115237 fixes this one too.

Comment 5 Gerd Hoffmann 2015-03-06 11:45:51 UTC
qemu-kvm-0.12.1.2-2.454.el6 includes bug 1115237 fix, please test.

Comment 8 Qian Guo 2015-03-11 07:07:54 UTC
Try to test it with latest qemu-kvm build:

qemu-kvm-0.12.1.2-2.456.el6.x86_64

Steps:
1.Boot guest with sasl for spice
# /usr/libexec/qemu-kvm -cpu Penryn -enable-kvm -m 1024 -smp 2,sockets=1,cores=2,threads=1 -name rhel7base  -drive file=/home/rhel6.7cp1.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 -boot menu=on -monitor stdio  -nodefaults -nodefconfig \

-spice port=5900,sasl,disable-ticketing \
-vga qxl \

-global qxl-vga.vram_size=67108864 \
-global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -qmp unix:/tmp/q1,server,nowait

2.Check spice info:

(qemu) info spice
Server:
     migrated: false
     address: *:5900
        auth: none
Channels: none
(qemu) 

{"execute":"query-spice"}
{"return": {"migrated": false, "enabled": true, "auth": "none", "port": 5900, "host": "*", "channels": []}}


So this bug is not fixed

Comment 9 Qian Guo 2015-03-11 07:17:41 UTC
Additional info:

1. the spice server build:
spice-server-0.12.4-11.el6.x86_64

Hi, Gerd

Could you help check this bug?

Thanks

Comment 10 Gerd Hoffmann 2015-03-11 15:19:06 UTC
> -spice port=5900,sasl,disable-ticketing \

Two contradicting auth schemes specified.
Please drop "disable-ticketing" here.

Comment 11 Qian Guo 2015-03-12 03:01:07 UTC
Reproduced this bug with qemu-kvm-0.12.1.2-2.450.el6.x86_64

Steps:
1.Boot guest with spice and sasl auth:
# /usr/libexec/qemu-kvm -cpu Penryn -enable-kvm -m 1024 -smp 2,sockets=1,cores=2,threads=1 -name rhel7base  -drive file=/home/rhel6.7cp1.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 -boot menu=on -monitor stdio  -nodefaults -nodefconfig -spice port=5900,sasl -vga qxl -global qxl-vga.vram_size=67108864 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -qmp unix:/tmp/q1,server,nowait

Result:
(qemu) info spice
Server:
     migrated: false
     address: *:5900
        auth: spice
Channels: none


{"execute":"query-spice"}
{"return": {"migrated": false, "enabled": true, "auth": "spice", "port": 5900, "host": "*", "channels": []}}

So this bug is reproduced

Verify this bug with qemu-kvm-0.12.1.2-2.457.el6.x86_64

Steps as above

Result:
(qemu) 
(qemu) info spice
Server:
     migrated: false
     address: *:5900
        auth: sasl
Channels: none

{"execute":"query-spice"}
{"return": {"migrated": false, "enabled": true, "auth": "sasl", "port": 5900, "host": "*", "channels": []}}



So this bug is fixed

Comment 13 errata-xmlrpc 2015-07-22 06:05:47 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.