Skip to content

Commit 01679a2

Browse files
Fix python version for cfn_bootstrap_virtualenv to 3.7.14 for a bug in aws-cfn-bootstrap-py3-latest.tar.gz
When the bug has been solved the version can be realigned to the `python-version`. Signed-off-by: Francesco Giordano <[email protected]>
1 parent 43e79e9 commit 01679a2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

attributes/default.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939

4040
# Python Version
4141
default['cluster']['python-version'] = '3.9.13'
42+
# FIXME: Python Version cfn_bootstrap_virtualenv due to a bug with cfn-hup
43+
default['cluster']['python-version-cfn_bootstrap_virtualenv'] = '3.7.14'
4244
# plcuster-specific pyenv system installation root
4345
default['cluster']['system_pyenv_root'] = "#{node['cluster']['base_dir']}/pyenv"
4446
# Virtualenv Cookbook Name
@@ -56,7 +58,7 @@
5658
# AWSBatch Virtualenv Path
5759
default['cluster']['awsbatch_virtualenv_path'] = "#{node['cluster']['system_pyenv_root']}/versions/#{node['cluster']['python-version']}/envs/#{node['cluster']['awsbatch_virtualenv']}"
5860
# cfn-bootstrap Virtualenv Path
59-
default['cluster']['cfn_bootstrap_virtualenv_path'] = "#{node['cluster']['system_pyenv_root']}/versions/#{node['cluster']['python-version']}/envs/#{node['cluster']['cfn_bootstrap_virtualenv']}"
61+
default['cluster']['cfn_bootstrap_virtualenv_path'] = "#{node['cluster']['system_pyenv_root']}/versions/#{node['cluster']['python-version-cfn_bootstrap_virtualenv']}/envs/#{node['cluster']['cfn_bootstrap_virtualenv']}"
6062

6163
# Intel Packages
6264
default['cluster']['psxe']['version'] = '2020.4-17'

cookbooks/aws-parallelcluster-install/recipes/python.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
prefix node['cluster']['system_pyenv_root']
2020
end
2121

22+
# FIXME: Python install for cfn_bootstrap_virtualenv due to a bug with cfn-hup
23+
install_pyenv node['cluster']['python-version-cfn_bootstrap_virtualenv'] do
24+
prefix node['cluster']['system_pyenv_root']
25+
end
26+
2227
activate_virtual_env node['cluster']['cookbook_virtualenv'] do
2328
pyenv_path node['cluster']['cookbook_virtualenv_path']
2429
python_version node['cluster']['python-version']
@@ -42,7 +47,7 @@
4247
# Install cfn_bootstrap virtualenv
4348
activate_virtual_env node['cluster']['cfn_bootstrap_virtualenv'] do
4449
pyenv_path node['cluster']['cfn_bootstrap_virtualenv_path']
45-
python_version node['cluster']['python-version']
50+
python_version node['cluster']['python-version-cfn_bootstrap_virtualenv']
4651
not_if { ::File.exist?("#{node['cluster']['cfn_bootstrap_virtualenv_path']}/bin/activate") }
4752
end
4853

0 commit comments

Comments
 (0)