Bug 696195

Summary: JobServer's qmf methods are not callable from qpid-tool
Product: Red Hat Enterprise Linux 6 Reporter: Ted Ross <tross>
Component: qpid-toolsAssignee: Ted Ross <tross>
Status: CLOSED ERRATA QA Contact: Martin Kudlej <mkudlej>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0CC: freznice, gsim, iboverma, jneedle, matt, mkudlej, pmackinn, syeghiay, tross
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-tools-0.10-3.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 693847 Environment:
Last Closed: 2011-05-19 14:28:13 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: 693847    
Bug Blocks: 695728    

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