Bug 752322

Summary: Suspended jobs should be displayed in condor_q summary line
Product: Red Hat Enterprise MRG Reporter: Daniel Horák <dahorak>
Component: condorAssignee: Timothy St. Clair <tstclair>
Status: CLOSED ERRATA QA Contact: Martin Kudlej <mkudlej>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: ltoscano, matt, mkudlej, tstclair
Target Milestone: 2.1.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: condor-7.6.5-0.9 Doc Type: Bug Fix
Doc Text:
C: Run condor_q via the command line when there are suspended jobs C: There is no summary information for suspended jobs F: Add summary information for all job states R: condor_q will now display summary information for all job states
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-06 18:17:57 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: 756255, 765607    

Description Daniel Horák 2011-11-09 07:32:15 UTC
Description of problem:
Command condor_q counts suspended jobs as running (in summary line). 

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

How reproducible:
100%

Steps to Reproduce:
1. Submit several jobs
2. Suspend some of then.
3. run condor_q and look to last line. 
  
Actual results:
There is no item "suspended".
  5 jobs; 4 idle, 1 running, 0 held

Expected results:
  5 jobs; 4 idle, 0 running, 0 held, 1 suspended

Additional info:
Bug about suspending and continuing jobs via commands: bug 635012.

Comment 1 Matthew Farrellee 2011-11-22 00:26:58 UTC
Bonus - why aren't removed or completed jobs displayed?

Comment 2 Timothy St. Clair 2011-11-22 18:07:19 UTC
new output will look something like *this: 

 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               
  49.1   tstclair       11/22 12:03   0+00:00:00 X  0   97.7 sleep 600         
  49.2   tstclair       11/22 12:03   0+00:02:36 S  0   97.7 sleep 600         
  49.3   tstclair       11/22 12:03   0+00:02:36 S  0   97.7 sleep 600         
  49.4   tstclair       11/22 12:03   0+00:02:35 S  0   4.2  sleep 600         
  49.5   tstclair       11/22 12:03   0+00:00:53 S  0   4.2  sleep 600         
  49.6   tstclair       11/22 12:03   0+00:00:00 I  0   0.0  sleep 600         
  49.7   tstclair       11/22 12:03   0+00:00:00 I  0   0.0  sleep 600         
  49.8   tstclair       11/22 12:03   0+00:00:00 I  0   0.0  sleep 600         
  49.9   tstclair       11/22 12:03   0+00:00:00 I  0   0.0  sleep 600         

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

Comment 5 Matthew Farrellee 2011-11-22 21:16:59 UTC
(In reply to comment #2)
> new output will look something like *this: 
[snip]
> 9 jobs; 0 completed, 1 removed, 4 idle, 0 running, 0 held, 4 suspended

One suggestion, even though no one should be doing it, consider putting the new fields after idle/running/held for the poor, brave souls who are parsing condor_q output.

Comment 7 Timothy St. Clair 2011-12-14 17:50:55 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:
C: Run condor_q via the command line when there are suspended jobs
C: There is no summary information for suspended jobs
F: Add summary information for all job states
R: condor_q will now display summary information for all job states

Comment 9 Martin Kudlej 2012-01-06 14:52:32 UTC
Tested on RHEL 5.7/6.2 x i386/x86_64 with condor-7.6.5-0.11 and it works. -->VERIFIED

Comment 10 errata-xmlrpc 2012-02-06 18:17:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0100.html