[GE issues] [Issue 2954] New - Problems with JSV

ddavies ddavies at plxtech.com
Fri Mar 13 15:21:35 GMT 2009


    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

http://gridengine.sunsource.net/issues/show_bug.cgi?id=2954
                 Issue #|2954
                 Summary|Problems with JSV 
               Component|gridengine
                 Version|6.2u2
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|communication
             Assigned to|ernst
             Reported by|ddavies






------- Additional comments from ddavies at sunsource.net Fri Mar 13 08:21:33 -0700 2009 -------
Hi,

I don't think it's possible to add a custom complex variable to a command through JSV in 6_2u2.

In fact there seem to be a few issues with JSV from these observations.
1) q_hard/q_soft as specified at http://72.5.124.69/d?isplay/gridengine62u?2/Submit+Parameters do not work. Below is the output 
to /tmp/jsv.log from the command "qsub -q single -b y sleep 10"

>>> START
<<< SEND ENV
<<< STARTED
>>> PARAM VERSION 1.0
>>> PARAM CONTEXT server
>>> PARAM CLIENT qmaster
>>> PARAM USER davidd
>>> PARAM GROUP eng
>>> PARAM JOB_ID 673
>>> PARAM CMDNAME sleep
>>> PARAM CMDARGS 1
>>> PARAM CMDARG0 10
>>> PARAM A sge
>>> PARAM b y
>>> PARAM cwd /apps/ENGPOOL/davidd?/grid_with_siriusdma?/PEX/verif/niva/siri?usdma/vcore/log
>>> PARAM j y
>>> PARAM M davidd at kauai.plxtech.com
>>> PARAM N sleep
>>> PARAM l_hard single
>>> BEGIN
<<< PARAM pe_name urgent
<<< PARAM pe_min 4
<<< PARAM pe_max 4
<<< LOG INFO DD Debug: -pe_name urgent 4 was added
<<< RESULT STATE CORRECT Job was modified before it was accepted



Notice that "-q single" ended up as "l_hard" instead of "q_hard".

The three lines following "BEGIN" came from this portion of my jsv.pl that does manage to find the "-q single" (not through q_hard) and 
apply the "-pe" params I wanted:

--- snippet ---
   if (exists $params{l_hard}) {
       my %tmp = %{$params{l_hard}};
       my @tmp_keys = keys %tmp;
       foreach my $tmp_key (@tmp_keys) {
       if($tmp_key =~ /single/|/gatesim/) {
           #print DEBUG_FILE "Single queue is used\n";
               jsv_sub_add_param('p?e_name','urgent');
               jsv_set_param('pe_min',4);
               jsv_set_param('pe_max',4);
               jsv_log_info('DD Debug: -pe_name urgent 4 was added');
               $do_correct = 1;
       }
------ End snippet -------


But, I can't add "-l vl=1" as I can with the "pe" params. I get the following error from adding this to my jsv.pl:

----- Begin snippet ----
if($tmp_key =~ /single/|/gatesim/) {
   jsv_sub_add_param('l?_hard','vcs_lic',1);?
   jsv_log_info('DD Debug: Tried to add vl=1');
   $do_correct = 1;
}
---- End snippet ------


Error from qsub is:
Unable to run job: unknown resource "single".
Exiting.


The /tmp/jsv.log shows why:

--- Begin snippet from jsv.log ----
>>> BEGIN
<<< PARAM pe_name urgent
<<< PARAM pe_min 4
<<< PARAM pe_max 4
<<< LOG INFO DD Debug: -pe_name urgent 4 was added
<<< PARAM l_hard single,vcs_lic=1
<<< LOG INFO DD Debug: Tried to add vl=1
<<< RESULT STATE CORRECT Job was modified before it was accepted

----- End snippet -------

Look at how it combined "single,vcs_lic=1" into "l_hard".

Doesn't it appear there is a problem with JSV?

Regards,
Dave Davies

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=129963

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list