Bug 600488 - Some package indications don't get to the console
Summary: Some package indications don't get to the console
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf
Version: Development
Hardware: All
OS: Linux
Target Milestone: 2.0
: ---
Assignee: Ken Giusti
QA Contact: MRG Quality Engineering
: 602139 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-04 19:49 UTC by Justin Ross
Modified: 2014-07-01 12:22 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2013-02-21 22:06:01 UTC

Attachments (Terms of Use)
proposed fix (28.91 KB, patch)
2010-07-07 18:25 UTC, Ken Giusti
no flags Details | Diff

Description Justin Ross 2010-06-04 19:49:12 UTC
The mrg31 grid is publishing objects under the com.redhat.grid package.  The console, however, never receives a com.redhat.grid package indication.

This code, if run on mrg31, reproduces the problem:


  from qmf.console import *
  import time

  s = Session()


  print s.getPackages()

qpid-tool, however, does see the com.redhat.grid package.

This problem prevents cumin from making any method calls.

Comment 1 Ken Giusti 2010-06-07 13:55:52 UTC
Running on MRG31:

qpid: list
Summary of Objects by Type:
    Package                 Class         Active  Deleted
    com.redhat.grid         scheduler     8       0
    org.apache.qpid.broker  broker        1       0
    org.apache.qpid.broker  vhost         1       0
    org.apache.qpid.broker  exchange      8       0
    org.apache.qpid.broker  queue         604     0
    org.apache.qpid.broker  binding       2396    0
    com.redhat.sesame       sysimage      8       0
    com.redhat.grid         collector     1       0
    org.apache.qpid.broker  connection    596     0
    com.redhat.grid         slot          453     0
    com.redhat.grid         negotiator    1       0
    org.apache.qpid.broker  system        1       0
    com.redhat.grid         submitter     1       0
    com.redhat.rhm.store    store         1       0
    org.apache.qpid.broker  subscription  604     0
    com.redhat.grid         master        9       0
    org.apache.qpid.broker  session       590     0
    org.apache.qpid.broker  agent         6       0
qpid: quit
[root@mrg31 kgiusti]# ./bz600488.py 
['com.redhat.rhm.store', 'com.redhat.sesame', 'org.apache.qpid.broker', 'mrg.grid', 'com.redhat.grid.config']
[root@mrg31 kgiusti]# 

Note the bz600488.py script (reproducter from above comment) gives "mrg.grid" and "com.redhat.grid.config" - which DO NOT appear via qpid-tool.

Comment 2 Ken Giusti 2010-06-10 18:02:42 UTC
Justin has implemented a work around for this, dropping mrg-blocker flag.

Comment 3 Ken Giusti 2010-07-07 18:25:01 UTC
Created attachment 430146 [details]
proposed fix

Proposed fix:

1) add "schema timestamp" to agent heartbeat - update when agent's schema status changes.
2) console detects changes to schema timestamp, sends query for all schema_ids to the agent.
3) agent supports query for schema_id's
4) console stores all known schema ids to schema cache, does not fetch associated schema definition until needed (unchanged).

Comment 4 Ken Giusti 2010-07-12 20:40:59 UTC
Pushed fix upstream.  

Committed revision 963479

Comment 5 Ken Giusti 2010-07-19 15:04:05 UTC
Bug found with last commit - fixed upstream:


applied against original commit (http://svn.apache.org/viewvc?rev=963479&view=rev)

Comment 6 Ken Giusti 2010-07-22 21:52:31 UTC
Change is high-risk for 1.3. The workaround has been implemented and well tested.  Push off to next release.

Comment 7 Jeff Needle 2010-11-05 10:50:21 UTC
If the change was high risk for 1.3, what makes it a viable candidate for

Comment 8 Ted Ross 2010-11-08 19:54:29 UTC
The risk was more related to the the timing of the 1.3 release and less about the content of the change.

jross: Is the workaround still sufficient for this or is there a need to include this bug in the errata?

Comment 9 Ken Giusti 2010-11-24 14:59:44 UTC
Eng Note: the following bugfix also applies to this fix:


Be sure to merge this patch along with the others when/if merging this bug.

Comment 10 Matthew Farrellee 2011-10-27 16:36:08 UTC
When/where was this released?

Comment 11 Justin Ross 2011-11-14 20:36:37 UTC
The fix was released with python-qpid-0.10-1, in mrg 2.0.

Comment 13 Stanislav Graf 2011-11-16 11:31:29 UTC
[Reproduce on RHEL5 x86_64]

# rpm -q condor condor-qmf qmf qpid-cpp-server python-qmf python-condorutils
package python-condorutils is not installed

# qpid-tool
Management Tool for QPID
qpid: list
Summary of Objects by Type:
    Package                 Class         Active  Deleted
    com.redhat.grid         scheduler     1       0
    com.redhat.grid         slot          2       0
    org.apache.qpid.broker  binding       93      0
    com.redhat.grid         jobserver     1       0
    com.redhat.grid         master        1       0
    com.redhat.sesame       sysimage      1       0
    org.apache.qpid.broker  broker        1       0
    com.redhat.grid         negotiator    1       0
    org.apache.qpid.broker  subscription  21      0
    org.apache.qpid.broker  connection    9       0
    org.apache.qpid.broker  session       9       0
    org.apache.qpid.broker  queue         22      0
    org.apache.qpid.broker  exchange      8       0
    org.apache.qpid.broker  vhost         1       0
    org.apache.qpid.broker  system        1       0
    com.redhat.grid         collector     1       0
qpid: schema
QMF Classes:
    Package                 Name                  Kind
    com.redhat.grid         scheduler             object
    com.redhat.grid         jobserver             object
    com.redhat.grid         collector             object
    com.redhat.grid         master                object
    com.redhat.grid         negotiator            object
    com.redhat.grid         slot                  object
    org.apache.qpid.broker  vhost                 object
    org.apache.qpid.broker  bridge                object
    org.apache.qpid.broker  binding               object
    org.apache.qpid.broker  connection            object
    org.apache.qpid.broker  subscription          object
    org.apache.qpid.broker  broker                object
    org.apache.qpid.broker  system                object
    org.apache.qpid.broker  queue                 object
    org.apache.qpid.broker  link                  object
    org.apache.qpid.broker  exchange              object
    org.apache.qpid.broker  session               object
    org.apache.qpid.broker  managementsetupstate  object
    org.apache.qpid.broker  agent                 object
    com.redhat.sesame       sysimage              object
qpid: quit

# python bz600488 

NOT all packages from qpid-tool schema/list are in bz602139.py - expect:
['com.redhat.grid', 'org.apache.qpid.broker', 'com.redhat.sesame']

Comment 15 Stanislav Graf 2011-11-16 12:36:03 UTC
*** Bug 602139 has been marked as a duplicate of this bug. ***

Comment 16 Stanislav Graf 2011-11-16 12:37:00 UTC

MRG2 RHEL5 i386/x86_64

MRG2 RHEL6 i386/x86_64

MRG1 RHEL5 i386/x86_64
not-fixed, FAILED

Comment 17 Stanislav Graf 2011-11-17 10:16:47 UTC
Fixed In Version: python-qmf-0.9.1073306-1
According to Bug 602139, comment 7 - MRG1 has python-qmf-0.7.946106-14.el5

Comment 11 : fixed in python-qpid-0.10-1
According to Bug 602139, comment 6 - MRG2 has python-qpid-0.10-1.el6
According to Bug 602139, comment 5 - MRG2 has python-qpid-0.10-1.el5

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