Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 515268

Summary: RFE: API: Support notification of VNC/SPICE client disconnect/connect events
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Berrangé <berrange>
Component: libvirtAssignee: Daniel Berrangé <berrange>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: danken, hbrock, jialiu, mjenner, veillard, xen-maint
Target Milestone: betaKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.0-1.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-02 19:24:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 549759    
Bug Blocks:    

Description Daniel Berrangé 2009-08-03 14:57:10 UTC
Description of problem:
Management apps need to know when a VNC/SPICE client connects/disconnects to/from a QEMU instance. 

libvirt API needs to be extended to allow notification callbacks for this information. The QEMU driver needs to be extended to understand the RHEL-custom and/or QEMU upstream (if implemented) monitor event syntax.

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

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 RHEL Program Management 2009-08-03 15:19:35 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Dan Kenigsberg 2009-10-13 17:06:26 UTC
*** Bug 528755 has been marked as a duplicate of this bug. ***

Comment 7 Daniel Berrangé 2010-03-19 15:43:17 UTC
Posted as part of this thread

http://www.redhat.com/archives/libvir-list/2010-March/msg00804.html

This patch does VNC events:

http://www.redhat.com/archives/libvir-list/2010-March/msg00817.html

Can be extended for SPICE events in similar way.

Comment 9 Daniel Berrangé 2010-04-12 18:56:13 UTC
The SPICE events are now also included

http://post-office.corp.redhat.com/archives/rhvirt-patches/2010-April/msg00544.html

Comment 10 Daniel Veillard 2010-04-12 20:33:30 UTC
libvirt-0.8.0-1.el6 has been built in RHEL-6-candidate with the fixes,

Daniel

Comment 13 Johnny Liu 2010-06-22 10:08:21 UTC
Verified the defect with libvirt-0.8.1-9.el6.x86_64, and PASSED.


1. Start a domain with vnc/spice graphic:
For vnc:
...
    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' keymap='en-us'/>
...
For spice:
...
<graphics type='spice' port='5900' autoport='no' keymap='en-us'/>
...

2. In a terminal, run the following python script to check the output about vnc event:
# python /usr/share/doc/libvirt-python-0.8.1/events-python/event-test.py

3. Use virt-viewer or spicec client to connect/disconnect guest desktop

4. On the terminal, the following python script output about vnc event is seen:
For vnc:
...
myDomainEventGraphicsCallback: Domain demo(2) 0 none
myDomainEventGraphicsCallback: Domain demo(2) 1 none
myDomainEventGraphicsCallback: Domain demo(2) 2 none
...
For spice:
...
myDomainEventGraphicsCallback: Domain demo(3) 0 none
myDomainEventGraphicsCallback: Domain demo(3) 1 none
myDomainEventGraphicsCallback: Domain demo(3) 2 none
...

Comment 14 releng-rhel@redhat.com 2010-07-02 19:24:22 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.