Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 636850

Summary: QMF: console.py fails to pass v2-style events up to console
Product: Red Hat Enterprise MRG Reporter: Ken Giusti <kgiusti>
Component: qpid-qmfAssignee: Ken Giusti <kgiusti>
Status: CLOSED ERRATA QA Contact: Jan Sarenik <jsarenik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: betaCC: iboverma, jneedle, jsarenik, tross
Target Milestone: 1.3.0.1   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A flaw in the Python QMF console library caused events generated by QMFv2 agents to not be propagated to the application. As a result, events generated by agents could not be seen if they were using the QMFv2 format (i.e. any agent built using the C++ agent API). This update fixes the defect so that events generated by QMFv2 agents are visible from the console API.
Story Points: ---
Clone Of:
: 652090 (view as bug list) Environment:
Last Closed: 2010-11-30 17:50:29 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:    
Bug Blocks: 612222, 652090    

Description Ken Giusti 2010-09-23 13:35:31 UTC
Description of problem:

console.py does not properly send v2-style event indications up to the console event() callback.  V1-style events are not affected.

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


How reproducible:
100%


Steps to Reproduce:
1. pair the console with a v2-only agent (such as the qmf-agent from cpp/examples)
2. configure the console session to receive event callbacks
3. generate an event on the agent (example: invoke the create child method)
  
Actual results:
event callback is not invoked.

Expected results:
event callback should be invoked.

Additional info:

Comment 1 Ken Giusti 2010-09-23 16:29:55 UTC
Fix checked in upstream that will callback event when schema is available:

https://issues.apache.org/jira/browse/QPID-2883

http://svn.apache.org/viewvc?view=revision&revision=1000528

Comment 2 Ken Giusti 2010-09-23 21:20:22 UTC
Additional fix to prevent loss of events while schema request is pending a response:

http://svn.apache.org/viewcvs?view=rev&rev=1000629

Comment 4 Ted Ross 2010-11-10 02:38:57 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: a defect in the Python QMF console library causes events generated by QMFv2 agents to not be propagated to the application.

Consequence: Events generated by agents are not seen if they are using QMFv2 format (i.e. any agent built using the C++ agent API).

Fix: The defect was fixed.

Result: Events from QMFv2 agents are visible from the console API.

Comment 6 Jan Sarenik 2010-11-11 09:27:28 UTC
With python-qmf-0.7.946106-14.el5, the event() is
received by the console when C++ qmf-agent is triggered
to create new child.

Verified so far on RHEL5 x86_64, will verify i386 as well.

Comment 7 Jan Sarenik 2010-11-11 12:48:42 UTC
Though it is noarch, I have verified it also on RHEL5 i386.
  python-qmf-0.7.946106-14.el5

Comment 8 Jan Sarenik 2010-11-11 13:30:20 UTC
BTW, bug 652090 covers verification of RHEL4 packages

Comment 10 errata-xmlrpc 2010-11-30 17:50:29 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0921.html

Comment 11 Martin Prpič 2010-12-01 14:49:13 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,7 +1 @@
-Cause: a defect in the Python QMF console library causes events generated by QMFv2 agents to not be propagated to the application.
+A flaw in the Python QMF console library caused events generated by QMFv2 agents to not be propagated to the application. As a result, events generated by agents could not be seen if they were using the QMFv2 format (i.e. any agent built using the C++ agent API). This update fixes the defect so that events generated by QMFv2 agents are visible from the console API.-
-Consequence: Events generated by agents are not seen if they are using QMFv2 format (i.e. any agent built using the C++ agent API).
-
-Fix: The defect was fixed.
-
-Result: Events from QMFv2 agents are visible from the console API.