Skip to content

Commit c08823a

Browse files
committed
Add ubuntu 2404 kitchen tests
1 parent a954609 commit c08823a

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

kitchen.docker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ platforms:
6060
base_os: ubuntu2204
6161
# 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.
6262
kernel_release: '5.15.0-1028-aws'
63+
- name: ubuntu2404
64+
driver:
65+
image: <% if ENV['KITCHEN_UBUNTU2404_IMAGE'] %> <%= ENV['KITCHEN_UBUNTU2404_IMAGE'] %> <% else %> dokken/ubuntu-24.04 <% end %>
66+
attributes:
67+
cluster:
68+
base_os: ubuntu2404
69+
# 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.
70+
kernel_release: '5.15.0-1028-aws'
6371
- name: rhel8
6472
driver:
6573
image: <% if ENV['KITCHEN_RHEL8_IMAGE'] %> <%= ENV['KITCHEN_RHEL8_IMAGE'] %> <% else %> registry.access.redhat.com/ubi8/ubi <% end %>

kitchen.ec2.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,29 @@ platforms:
289289
attributes:
290290
cluster:
291291
base_os: ubuntu2204
292+
- name: ubuntu2404
293+
driver_plugin: ec2
294+
driver:
295+
<% if ENV['KITCHEN_UBUNTU2404_AMI'] %>
296+
# Use the Ubuntu 22 AMI most similar to the base AMI used to build the ParallelCluster image
297+
image_id: <%= ENV['KITCHEN_UBUNTU2204_AMI'] %>
298+
<% else %>
299+
image_search:
300+
name: <% if ENV['KITCHEN_PHASE']=='install' %>ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-<% if ENV['KITCHEN_ARCHITECTURE'] == 'x86_64' %>amd64<% else %>arm64<% end %>-server-<% else %><%= pcluster_prefix %>-ubuntu-2404-lts-hvm-*<% end %>
301+
architecture: <%= ENV['KITCHEN_ARCHITECTURE'] %>
302+
<% end %>
303+
block_device_mappings:
304+
- device_name: /dev/sda1
305+
ebs:
306+
volume_size: <% if (ENV['KITCHEN_VOLUME_SIZE'] || '') == '' %> 40 <% else %> <%= ENV['KITCHEN_VOLUME_SIZE'] %> <% end %>
307+
volume_type: gp3
308+
delete_on_termination: true
309+
<% %w(a b c d e f g h i j k l m n o p q r s t u v w x).each_with_index do | c, i | %>
310+
- device_name: /dev/xvdb<%= c %>
311+
virtual_name: ephemeral<%= i %>
312+
<% end %>
313+
transport:
314+
username: ubuntu
315+
attributes:
316+
cluster:
317+
base_os: ubuntu2404

0 commit comments

Comments
 (0)