Project

General

Profile

Bug #11581

Several issues with cron type scripts

Added by Parag Mhashilkar over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Parag Mhashilkar
Category:
-
Target version:
Start date:
02/02/2016
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:

HEPCloud

Duration:

Description

  • The script isn't landing as an executable
  • STARTD_CRON_<JobName>_CWD is quoted but needs be unquoted
  • The arguments to the STARTD_CRON_<JobName>_ARGS are in the wrong order
  • The quoting and escaping of quoting is wrong

History

#1 Updated by Parag Mhashilkar over 4 years ago

  • Description updated (diff)

#2 Updated by Parag Mhashilkar over 4 years ago

  • Assignee set to Parag Mhashilkar
  • Priority changed from Normal to High

Configuration setting that fails:

    <file absfname="/etc/gwms-frontend/check-preemption.sh" after_entry="True" comment="Check for preemption" const="True" executable="True" period="20" untar="False" wrapper="False">
        <untar_options cond_attr="TRUE"/>
    </file>
Effective fixes to condor config and elsewhere to make it work
  • STARTD_CRON_GLIDEIN_PS1_ARGS = glidein_config client_group GLIDEIN_PS1 /home/scratchgwms/glide_f5hWog/client_group_main/check-preemption.sh
  • STARTD_CRON_GLIDEIN_PS1_CWD = /home/scratchgwms/glide_f5hWog
  • +x the executable
  • publish LAST \""$s_fname"\" in the script_wrapper.sh
#!/bin/bash

#script_wrapper.sh

wget -q http://169.254.169.254/latest/meta-data/spot/termination-time -O /dev/null

if [ $? -eq 0 ]
then
    killall -TERM glidein_startup.sh
fi

#3 Updated by Parag Mhashilkar over 4 years ago

  • Assignee changed from Parag Mhashilkar to Marco Mambelli

Script is indeed made executable before executing and this is not the problem. Apart from first bullet fixed everything else. Changes are in v3/11581 for review

#4 Updated by Parag Mhashilkar over 4 years ago

  • Status changed from New to Feedback

#5 Updated by Parag Mhashilkar over 4 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Marco Mambelli to Parag Mhashilkar

Merged it back after addressing the feedback

#6 Updated by Parag Mhashilkar over 4 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF