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 696195 - JobServer's qmf methods are not callable from qpid-tool
Summary: JobServer's qmf methods are not callable from qpid-tool
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qpid-tools
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Ted Ross
QA Contact: Martin Kudlej
URL:
Whiteboard:
Depends On: 693847
Blocks: 695728
TreeView+ depends on / blocked
 
Reported: 2011-04-13 14:14 UTC by Ted Ross
Modified: 2011-05-19 14:28 UTC (History)
9 users (show)

Fixed In Version: qpid-tools-0.10-3.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 693847
Environment:
Last Closed: 2011-05-19 14:28:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0774 0 normal SHIPPED_LIVE qpid-tools bug fix update 2011-05-18 18:08:29 UTC

Description Ted Ross 2011-04-13 14:14:10 UTC
+++ This bug was initially created as a clone of Bug #693847 +++

Description of problem:

During the bug 692485 verification an issue either in qpid-tool or in JobServer's qmf schema was detected:
JobServer's qmf methods are not callable from qpid-tool.

GetJobSummaries state via qpid-tool:
qpid: call 11414 GetJobSummaries
qpid: OK (0) - {u'Jobs': [{u'ProcId': 0, u'CurrentTime': 1301909239, u'QDate':
1301908659, u'Cmd': '/tmp/.condor_run.28044', u'ClusterId': 2531, u'JobStatus':
2, u'Arguments': '""', u'EnteredCurrentStatus': 1301908670, u'GlobalJobId':
'mrg-qe-05.lab.eng.brq.redhat.com#2531.0#1301908659'}]}


Now I'm trying to call GetJobAd method in qpid-tool:

qpid: call 322 GetJobAd '2531.0'
qpid: Unknown Job Id (65536) - {}

qpid:
qpid: call 322 GetJobAd 2531.0
qpid: invalid conversion: Variant is not a string; use asString() if conversion
is required. (qpid/types/Variant.cpp:569) (7) - {}

qpid: call 322 GetJobAd "2531.0"
qpid: Unknown Job Id (65536) - {}
qpid: 
qpid: call 322 GetJobAd '2531.0'
qpid: Unknown Job Id (65536) - {}

Above tree GetJobAd calls from qpid-tool fail regardless of quoting...


Version-Release number of selected component (if applicable):
condor-7.6.0-0.4.el5
condor-qmf-7.6.0-0.4.el5
qpid-qmf-0.10-2.el5
qpid-cpp-server-0.10-1.el5
qpid-qmf-devel-0.10-2.el5
qpid-tools-0.10-1.el5
qpid-cpp-client-0.10-1.el5
ruby-qpid-qmf-0.10-2.el5
qpid-cpp-client-devel-0.10-1.el5
python-qpid-0.10-1.el5
python-qpid-qmf-0.10-2.el5

How reproducible:
100%

Steps to Reproduce:
1. see lines above or 
https://bugzilla.redhat.com/show_bug.cgi?id=692485#c7
  
Actual results:
qpid-tool is not possible to use for GetJobAd call.

Expected results:
qpid-tool should allow GetJobAd call.

Additional info:

There seems to be no problem with qpid-tool itself as following calls invoking broker agent's method 'reroute' just work:
qpid: call 246 reroute 5 True "amq.topic"
qpid: OK (0) - {}

qpid: call 246 reroute 5 True 'amq.topic'
qpid: OK (0) - {}

qpid: call 246 reroute 5 True amq.topic
qpid: OK (0) - {}

--- Additional comment from freznice on 2011-04-05 14:15:51 EDT ---

Hello Pete,
could you possibly confirm that you see the JobServer's qmf schema is ok and qpid-tool should be able to invoke above method.

I think you mention it at the end of call... If I'm mistaken, then I'm goung to change component for messaging's qpid-tool.

Raising NEEDINFO for Pete.

--- Additional comment from matt on 2011-04-05 14:19:00 EDT ---

Result of discussions is that this likely comes from a qpid-tool change that enabled sending structured arguments, e.g. maps.

qpid-tool has schema information and should either coerce the 2531.0 into a string, or not pass a string containing quotes (either "2531.0" or '2531.0') to the JobServer.

--- Additional comment from freznice on 2011-04-05 14:25:41 EDT ---

Changing the component to qpid-tool (management) including blocker as requested.

--- Additional comment from gsim on 2011-04-06 07:35:57 EDT ---

See https://issues.apache.org/jira/browse/QPID-3190 to which two options for fixing have been linked.

--- Additional comment from gsim on 2011-04-08 06:21:57 EDT ---

Fix committed upstream: http://svn.apache.org/viewvc?rev=1090170&view=rev and in release repo: http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?id=92328a7cb33802982722156f99a050438dedfe3d

Comment 3 Martin Kudlej 2011-04-18 12:52:15 UTC
Tested on x86_64/i386 x RHEL6.1 Beta (Santiago) with:
qpid-cpp-client-0.10-3.el6
qpid-cpp-server-0.10-3.el6
qpid-qmf-0.10-6.el6
python-qpid-0.10-1.el6
condor-classads-7.6.1-0.1.el6
qpid-tools-0.10-3.el6
condor-qmf-7.6.1-0.1.el6
python-qpid-qmf-0.10-6.el6
condor-7.6.1-0.1.el6

with calling method GetJobAd  and it works. But I haven't rights to move this bug to VERIFIED.

Comment 4 errata-xmlrpc 2011-05-19 14:28:13 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/RHBA-2011-0774.html


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