File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
cookbooks/aws-parallelcluster-environment Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 9898 owner 'root'
9999 group 'root'
100100 mode '0744'
101- variables ( cfn_bootstrap_virtualenv_path : virtualenv_path )
101+ variables ( cfn_bootstrap_virtualenv_path : virtualenv_path ,
102+ node_bootstrap_timeout : node [ 'cluster' ] [ 'compute_node_bootstrap_timeout' ] || node [ 'cluster' ] [ 'Timeout' ] )
102103end
Original file line number Diff line number Diff line change 88 cached ( :python_version ) { '3.9.20' }
99 cached ( :system_pyenv_root ) { 'system_pyenv_root' }
1010 cached ( :virtualenv_path ) { "system_pyenv_root/versions/#{ python_version } /envs/cfn_bootstrap_virtualenv" }
11+ cached ( :timeout ) { 1800 }
1112
1213 context "when cfn_bootstrap virtualenv not installed yet" do
1314 cached ( :chef_run ) do
1415 runner = runner ( platform : platform , version : version ) do |node |
1516 node . override [ 'cluster' ] [ 'system_pyenv_root' ] = system_pyenv_root
1617 node . override [ 'cluster' ] [ 'region' ] = 'non_china'
18+ node . override [ 'cluster' ] [ 'compute_node_bootstrap_timeout' ] = timeout
1719 end
1820 runner . converge ( described_recipe )
1921 end
7981 owner : 'root' ,
8082 group : 'root' ,
8183 mode : '0744' ,
82- variables : { cfn_bootstrap_virtualenv_path : virtualenv_path }
84+ variables : { cfn_bootstrap_virtualenv_path : virtualenv_path , node_bootstrap_timeout : timeout }
8385 )
8486 end
8587 end
Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -ex
2+ set -x
33
44# This script is used to run cfn-hup is a way that is suitable to be managed by supervisord.
55# In particular, cfn-hup is executed in no-daemon mode.
99[ -f /etc/profile.d/proxy.sh ] && . /etc/profile.d/proxy.sh
1010
1111while true ; do
12- < %= @cfn_bootstrap_virtualenv_path %> /bin/cfn-hup --no-daemon --verbose
12+ timeout < %= @node_bootstrap_timeout % > < %= @cfn_bootstrap_virtualenv_path %> /bin/cfn-hup --no-daemon --verbose
1313 sleep 60
1414done
You can’t perform that action at this time.
0 commit comments