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 1236581 - [libvirt][events] SPICE Graphic events are missing the port of remote/local connections in the 'service' field
Summary: [libvirt][events] SPICE Graphic events are missing the port of remote/local c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1203891 1236585
TreeView+ depends on / blocked
 
Reported: 2015-06-29 13:16 UTC by Vinzenz Feenstra [evilissimo]
Modified: 2016-05-10 19:24 UTC (History)
4 users (show)

Fixed In Version: libvirt-0.10.2-55.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1236585 (view as bug list)
Environment:
Last Closed: 2016-05-10 19:24:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0738 0 normal SHIPPED_LIVE libvirt bug fix update 2016-05-12 18:40:37 UTC

Description Vinzenz Feenstra [evilissimo] 2015-06-29 13:16:03 UTC
Description of problem:
Currently the connected, initialized and disconnected spice events reported by libvirt contain a 'service' field with an empty value.


Actual results:

service field is empty

Expected results:

service field contains the port of the remote and local service

Additional info:


The reason for this is, that the code in libvirt erroneously tries to extract the 'service' field from the event sent through qmp monitor.
The field however on spice events is called 'port'

Comment 1 Peter Krempa 2015-06-30 11:54:21 UTC
Fixed upstream by:

commit 15632a312efea02b9002a230c0dde1d206184eef
Author: Peter Krempa <pkrempa>
Date:   Mon Jun 29 17:03:14 2015 +0200

    qemu: event: Clean up VNC monitor handling
    
    Get rid of spice specific stuff from the handler func and save a few
    lines by reflowing the conditions.

commit 8df888a532db0994519bbe0d9900f622ef3e3922
Author: Peter Krempa <pkrempa>
Date:   Mon Jun 29 16:10:51 2015 +0200

    qemu: event: Properly handle spice events
    
    Spice events have mostly similar information present in the event JSON
    but they differ in the name of the element containing the port.
    
    The JSON event also provides connection ID which might be useful in the
    future.
    
    This patch splits up the event parser code into two functions and the
    SPICE reimplements the event parsing with correct names and drops the
    VNC only stuff.

v1.2.17-rc1-8-g15632a3

Comment 4 yafu 2015-11-11 03:02:12 UTC
Reproduce this bug with libvirt-0.10.2-54.el6.x86_64.


1.Prepare a running guest with spice and vnc graphic:
  #virsh dumpxml rhel6.6
    <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <graphics type='spice' port='5901' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>

2.Remote access from the rhel7 to check the event(rhel6 does not have 'virsh event' command):
  #virsh -c qemu+ssh://10.66.85.72/system event --all --loop

3.Connect to the vm with spice,then close it:
  #remote-viewer spice://10.66.85.72:5900
4.Check the output of step 2:
event 'graphics' for domain rhel6.6: connect local[IPv4 10.66.85.72 ] remote[IPv4 10.66.4.158 ] 
event 'graphics' for domain rhel6.6: initialize local[IPv4 10.66.85.72 ] remote[IPv4 10.66.4.158 ] none
....
event 'graphics' for domain rhel6.6: disconnect local[IPv4 10.66.85.72 ] remote[IPv4 10.66.4.158 ] 

5.Connect to the vm with vnc,then close it:
  #remote-viewer vnc://10.66.85.72:5901

6.Check the output of step2:
event 'graphics' for domain rhel6.6: connect local[IPv4 0.0.0.0 5900] remote[IPv4 10.66.4.158 54173] none
event 'graphics' for domain rhel6.6: initialize local[IPv4 0.0.0.0 5900] remote[IPv4 10.66.4.158 54173] none
event 'graphics' for domain rhel6.6: disconnect local[IPv4 0.0.0.0 5900] remote[IPv4 10.66.4.158 54173] none

As above,spice events miss the port.


Verify this bug with libvirt-0.10.2-55.el6.x86_64.
1.Connect to the vm with spice,then close it:
  #remote-viewer spice://10.66.85.72:5900

2.Check the spice events:
event 'graphics' for domain rhel6.6: connect local[IPv4 10.66.85.72 5901] remote[IPv4 10.66.4.158 51506] 
event 'graphics' for domain rhel6.6: initialize local[IPv4 10.66.85.72 5901] remote[IPv4 10.66.4.158 51506] none
....
event 'graphics' for domain rhel6.6: disconnect local[IPv4 10.66.85.72 5901] remote[IPv4 10.66.4.158 51508] 

3.Connect to the vm with vnc,then close it:
  #remote-viewer vnc://10.66.85.72:5901

4.Check the vnc events:
event 'graphics' for domain rhel6.6: connect local[IPv4 0.0.0.0 5900] remote[IPv4 10.66.4.158 54210] none
event 'graphics' for domain rhel6.6: initialize local[IPv4 0.0.0.0 5900] remote[IPv4 10.66.4.158 54210] none
event 'graphics' for domain rhel6.6: disconnect local[IPv4 0.0.0.0 5900] remote[IPv4 10.66.4.158 54210] none

As above,both spice and vnc events have port,so move this bug to verified.

Comment 6 errata-xmlrpc 2016-05-10 19:24: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-2016-0738.html


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