Skip to content

Commit 3c86d47

Browse files
committed
Clarify usage of kernel_release cluster attribute
Since the kernel version of the docker images is not in the expected pattern, we set a fake kernel value in the `kitchen.docker.yml`to permit to install Lustre on docker. Signed-off-by: Enrico Usai <[email protected]>
1 parent cb60957 commit 3c86d47

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

cookbooks/aws-parallelcluster-environment/attributes/environment.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
default['cluster']['nfs']['threads'] = [[node['cpu']['cores'].to_i * 4, 8].max, 256].min
77

88
# Kernel release version used to select Lustre version
9+
# This is a mechanism used to mock kernel release on docker system-tests, see kitchen.docker.yml:
10+
# when kernel_release is defined, it will be used, otherwise the release version will be taken from ohai.
911
default['cluster']['kernel_release'] = node['kernel']['release'] unless default['cluster'].key?('kernel_release')
1012

1113
# CloudWatch

kitchen.docker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,29 @@ platforms:
3838
attributes:
3939
cluster:
4040
base_os: alinux2
41-
kernel_release: '5.10.157-139.675.amzn2.fake-value'
4241
- name: centos7
4342
driver:
4443
image: <% if ENV['KITCHEN_CENTOS7_IMAGE'] %> <%= ENV['KITCHEN_CENTOS7_IMAGE'] %> <% else %> dokken/centos-7 <% end %>
4544
attributes:
4645
cluster:
4746
base_os: centos7
47+
# Since the kernel version of the docker images is not in the expected pattern, set a fake kernel value to permit to install Lustre on docker.
4848
kernel_release: '3.10.0-1160.76.1.el7.fake-value'
4949
- name: ubuntu2004
5050
driver:
5151
image: <% if ENV['KITCHEN_UBUNTU2004_IMAGE'] %> <%= ENV['KITCHEN_UBUNTU2004_IMAGE'] %> <% else %> dokken/ubuntu-20.04 <% end %>
5252
attributes:
5353
cluster:
5454
base_os: ubuntu2004
55+
# Since the kernel version of the docker images is not compatible (6.2.0-1016-azure), set a fake kernel value to permit to install Lustre on docker.
5556
kernel_release: '5.15.0-1028-aws'
5657
- name: ubuntu2204
5758
driver:
5859
image: <% if ENV['KITCHEN_UBUNTU2204_IMAGE'] %> <%= ENV['KITCHEN_UBUNTU2204_IMAGE'] %> <% else %> dokken/ubuntu-22.04 <% end %>
5960
attributes:
6061
cluster:
6162
base_os: ubuntu2204
63+
# Since the kernel version of the docker images is not compatible (6.2.0-1016-azure), set a fake kernel value to permit to install Lustre on docker.
6264
kernel_release: '5.15.0-1028-aws'
6365
- name: rhel8
6466
driver:
@@ -68,11 +70,15 @@ platforms:
6870
attributes:
6971
cluster:
7072
base_os: rhel8
73+
# Since the kernel version of the docker images is not in the expected pattern, set a fake kernel value to permit to install Lustre on docker.
74+
# Specific kernel versions are not compatible with Lustre.
7175
kernel_release: '4.18.0-477.13.1.el8_7.fake-value' # Use 477 version to match 8.8 kernel version available on docker
7276
- name: rocky8
7377
driver:
7478
image: <% if ENV['KITCHEN_ROCKY8_IMAGE'] %> <%= ENV['KITCHEN_ROCKY8_IMAGE'] %> <% else %> dokken/rockylinux-8 <% end %>
7579
attributes:
7680
cluster:
7781
base_os: rocky8
82+
# Since the kernel version of the docker images is not in the expected pattern, set a fake kernel value to permit to install Lustre on docker.
83+
# Specific kernel versions are not compatible with Lustre.
7884
kernel_release: '4.18.0-477.10.1.el8_8.fake-value'

0 commit comments

Comments
 (0)