[torquedev] [Bug 138] New: pbs TCL scheduler command "pbsalterjob" fails to alter job attributes

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Wed Jun 22 13:13:39 MDT 2011


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=138

           Summary: pbs TCL scheduler command "pbsalterjob" fails to alter
                    job attributes
           Product: TORQUE
           Version: 2.4.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: pbs_sched
        AssignedTo: jrosenquist at adaptivecomputing.com
        ReportedBy: kl.vanw at gmail.com
                CC: torquedev at supercluster.org
   Estimated Hours: 0.0


Overview

The pbsalterjob command provided by the TCL version of pbs_sched fails to
change job attributes. This applies to versions 2.4.12, 2.5.6, and 3.0.1

Steps to Reproduce

1) Build tcl version of the scheduler

2) Include a call to pbsalterjob in the sched_tcl script which attempts to
modify an attribute. For example:

pbsalterjob $jobid {{Job_Name not_used new_job_name}}

Actual Results

A PBS server internal error (15011) is generated with the text value e.g.
"Job_Name.not_used".

Expected Results

pbsalterjob should change the job attribute.

Solution:

Set the attribute's "op" value to SET in the PBS_AlterJob function in
pbs_tclWrap.c:

# diff -c pbs_tclWrap.c pbs_tclWrap.c.fixed
*** pbs_tclWrap.c       2011-06-22 15:16:21.000000000 -0400
--- pbs_tclWrap.c.fixed 2011-06-22 10:19:31.000000000 -0400
***************
*** 1250,1255 ****
--- 1250,1256 ----
      atp->resource = strdup(Tcl_GetStringFromObj(indp[1], NULL));
      atp->value = strdup(Tcl_GetStringFromObj(indp[2], NULL));
      atp->next = attrs;
+     atp->op = SET;
      attrs = atp;
      }

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list