Bug 1007366 - getSubmissionSummary: doesn't match according parameters
getSubmissionSummary: doesn't match according parameters
Status: CLOSED WONTFIX
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor-aviary (Show other bugs)
Development
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: grid-maint-list
MRG Quality Engineering
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-12 06:44 EDT by Martin Kudlej
Modified: 2016-05-26 15:33 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-05-26 15:33:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Martin Kudlej 2013-09-12 06:44:16 EDT
Description of problem:

I think examples below are self-explained.

$ condor_q

-- Submitter: dhcp-lab-131.englab.brq.redhat.com : <_ip_:54196> : _hostname_
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD
   1.0   test1           9/11 13:38   0+18:34:38 R  0   4.2  sleep 100000
   2.0   test2           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   3.0   test3           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   4.0   test4           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   5.0   test5           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   6.0   test6           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   7.0   test7           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   8.0   test8           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
   9.0   test9           9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000
  10.0   test10          9/11 13:38   0+00:00:00 I  0   0.0  sleep 100000

10 jobs; 0 completed, 0 removed, 9 idle, 1 running, 0 held, 0 suspended
---------------------------------------------

Wrong user:

>>> print id
(SubmissionID){
   name = "/bin/sleep 100000"
   owner = "test3"
   qdate = None
   _pool = None
   _scheduler = None
 }

>>> cl.service.getSubmissionSummary(id)
[(SubmissionSummary){
   id =
      (SubmissionID){
         _scheduler = "_hostname_"
         _pool = "_hostname_"
         name = "/bin/sleep 100000"
         owner = "test1"
         qdate = 1378899520
      }
   status =
      (Status){
         code = "OK"
      }
   completed = 0
   held = 0
   idle = 9
   removed = 0
   running = 1
   suspended = 0
   transferring_output = 0
 }]
---------------------------------------------

It doesn't search according owner.

>>> print id
(SubmissionID){
   name = None
   owner = "test4"
   qdate = None
   _pool = None
   _scheduler = None
 }

>>> cl.service.getSubmissionSummary(id)
[(SubmissionSummary){
   id = ""
   status = 
      (Status){
         code = "NO_MATCH"
         text = "Unable to locate submission"
      }
 }]
---------------------------------------------

It has found just first submission in queue.

>>> cl.service.getSubmissionSummary()
[(SubmissionSummary){
   id = 
      (SubmissionID){
         _scheduler = "_hostname_"
         _pool = "_hostname_"
         name = "/bin/sleep 100000"
         owner = "test1"
         qdate = 1378899520
      }
   status = 
      (Status){
         code = "OK"
      }
   completed = 0
   held = 0
   idle = 9
   removed = 0
   running = 1
   suspended = 0
   transferring_output = 0
 }]


Version-Release number of selected component (if applicable):
condor-aviary-7.8.9-0.4.el6.x86_64
condor-classads-7.8.9-0.4.el6.x86_64
condor-7.8.9-0.4.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. install and configure condor and condor-aviary
2. submit some jobs with different users
3. try to get info via getSubmissionSummary function with various params

Actual results:
It doesn't return correct results.

Expected results:
It will search according various combination of submissionID parameters and it will return correct results.

Additional info:

There is error in aviary_query.log for 
(SubmissionID){
   name = None
   owner = "test4"
   qdate = None
   _pool = None
   _scheduler = None
 }

...
[Thu Sep 12 12:30:57 2013] [debug] phase.c(202) Invoke the handler context_handler within the phase PostDispatch
[Thu Sep 12 12:30:57 2013] [debug] class_loader.c(131) /var/lib/condor/aviary/services/query/libaviary_query_axis.so shared lib loaded successfully
[Thu Sep 12 12:30:57 2013] [error] /builddir/build/BUILD/condor-7.8.9/src/condor_contrib/aviary/codegen/common/src/AviaryCommon_SubmissionSummary.cpp(1255) Nil value found in non-nillable property completed
[Thu Sep 12 12:30:57 2013] [debug] /builddir/build/BUILD/condor-7.8.9/src/condor_contrib/aviary/src/Axis2SoapProvider.cpp(310) Request processed in 0.010 seconds
[Thu Sep 12 12:30:57 2013] [debug] /builddir/build/BUILD/condor-7.8.9/src/condor_contrib/aviary/src/Axis2SoapProvider.cpp(314) Request served successfully
Comment 2 Anne-Louise Tangring 2016-05-26 15:33:20 EDT
MRG-Grid is in maintenance and only customer escalations will be considered. This issue can be reopened if a customer escalation associated with it occurs.

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