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 98
98
owner 'root'
99
99
group 'root'
100
100
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' ] )
102
103
end
Original file line number Diff line number Diff line change 8
8
cached ( :python_version ) { '3.9.20' }
9
9
cached ( :system_pyenv_root ) { 'system_pyenv_root' }
10
10
cached ( :virtualenv_path ) { "system_pyenv_root/versions/#{ python_version } /envs/cfn_bootstrap_virtualenv" }
11
+ cached ( :timeout ) { 1800 }
11
12
12
13
context "when cfn_bootstrap virtualenv not installed yet" do
13
14
cached ( :chef_run ) do
14
15
runner = runner ( platform : platform , version : version ) do |node |
15
16
node . override [ 'cluster' ] [ 'system_pyenv_root' ] = system_pyenv_root
16
17
node . override [ 'cluster' ] [ 'region' ] = 'non_china'
18
+ node . override [ 'cluster' ] [ 'compute_node_bootstrap_timeout' ] = timeout
17
19
end
18
20
runner . converge ( described_recipe )
19
21
end
79
81
owner : 'root' ,
80
82
group : 'root' ,
81
83
mode : '0744' ,
82
- variables : { cfn_bootstrap_virtualenv_path : virtualenv_path }
84
+ variables : { cfn_bootstrap_virtualenv_path : virtualenv_path , node_bootstrap_timeout : timeout }
83
85
)
84
86
end
85
87
end
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -ex
2
+ set -x
3
3
4
4
# This script is used to run cfn-hup is a way that is suitable to be managed by supervisord.
5
5
# In particular, cfn-hup is executed in no-daemon mode.
9
9
[ -f /etc/profile.d/proxy.sh ] && . /etc/profile.d/proxy.sh
10
10
11
11
while 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
13
13
sleep 60
14
14
done
You can’t perform that action at this time.
0 commit comments