Opened 13 years ago

Closed 7 years ago

Last modified 7 years ago

#359 closed defect (fixed)

IZ2060: qstat -pri -xml reports data imcompletely

Reported by: ovid Owned by: Dave Love <d.love@…>
Priority: low Milestone:
Component: sge Version: 6.0u4
Severity: Keywords: Sun clients
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2060]

        Issue #:      2060             Platform:     Sun      Reporter: ovid (ovid)
       Component:     gridengine          OS:        All
     Subcomponent:    clients          Version:      6.0u4       CC:    None defined
        Status:       NEW              Priority:     P4
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    roland (roland)
      QA Contact:     roland
          URL:
       * Summary:     qstat -pri -xml reports data imcompletely
   Status whiteboard:
      Attachments:

     Issue 2060 blocks:
   Votes for issue 2060:


   Opened: Tue May 23 15:06:00 -0700 2006 
------------------------


Plain output of qstat -pri looks like this:


sgetest@dt218-123# qstat -pri
job-ID  prior   nurg    npprior ntckts   ppri name       user         state
submit/start at     queue                          slots ja-task-ID
----------------------------------------------------------------------------------------------------------------------------------------------------
   6794 0.50500 0.00000 0.50000 0.50000     0 SEQUENTIAL sgetest      r
05/23/2006 13:51:28 all.q@dt218-123                    1
   6795 0.50500 0.00000 0.50000 0.50000     0 ARRAY      sgetest      r
05/23/2006 13:51:28 all.q@dt218-123                    1 3
   6799 0.45617 0.00000 0.45117 0.50000  -100 PENDING    sgetest      r
05/23/2006 13:51:28 all.q@dt218-123                    1 1
   6799 0.45617 0.00000 0.45117 0.50000  -100 PENDING    sgetest      r
05/23/2006 13:51:28 all.q@dt218-123                    1 4


The same output in XML format looks like this:

sgetest@dt218-123# qstat -pri -xml
<?xml version='1.0'?>
<job_info  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <queue_info>
    <job_list state="running">
      <JB_job_number>6794</JB_job_number>
      <JAT_prio>0.50500</JAT_prio>
      <JB_nppri>0.50000</JB_nppri>
      <JB_priority>0</JB_priority>
      <JB_name>SEQUENTIAL</JB_name>
      <JB_owner>sgetest</JB_owner>
      <state>r</state>
      <JAT_start_time>05/23/2006 13:51:28</JAT_start_time>
      <queue_name>all.q@dt218-123</queue_name>
      <slots>1</slots>
    </job_list>
    <job_list state="running">
      <JB_job_number>6795</JB_job_number>
      <JAT_prio>0.50500</JAT_prio>
      <JB_nppri>0.50000</JB_nppri>
      <JB_priority>0</JB_priority>
      <JB_name>ARRAY</JB_name>
      <JB_owner>sgetest</JB_owner>
      <state>r</state>
      <JAT_start_time>05/23/2006 13:51:28</JAT_start_time>
      <queue_name>all.q@dt218-123</queue_name>
      <slots>1</slots>
      <tasks>3</tasks>
    </job_list>


Note that the XML output lacks the nurg and ntckts columns!

Change History (2)

comment:1 Changed 7 years ago by Dave Love <d.love@…>

  • Owner set to Dave Love <d.love@…>
  • Resolution set to fixed
  • Status changed from new to closed

In [4326/sge]:

Fix #359: correct qstat -pri -xml
Also ensure optional attribute order agrees with schema.

comment:2 Changed 7 years ago by Dave Love <d.love@…>

In 4358/sge:

Correct fix for #359 to avoid possible qmaster crash
Refs #359

Note: See TracTickets for help on using tickets.