Skip to content

Commit 314408f

Browse files
committed
Remove ubuntu2404 from lustre integ tests
1 parent 4fce7fe commit 314408f

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

cli/src/pcluster/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
UNSUPPORTED_OSES_FOR_MICRO_NANO = ["ubuntu2004", "ubuntu2204", "rhel8", "rocky8", "rhel9", "rocky9"]
3939
UNSUPPORTED_OSES_FOR_DCV = ["alinux2023"]
4040
UNSUPPORTED_ARM_OSES_FOR_DCV = ["ubuntu2004"]
41+
UNSUPPORTED_OSES_FOR_LUSTRE = ["ubuntu2404"]
4142
DELETE_POLICY = "Delete"
4243
RETAIN_POLICY = "Retain"
4344
DELETION_POLICIES = [DELETE_POLICY, RETAIN_POLICY]

tests/integration-tests/configs/develop.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -543,65 +543,65 @@ test-suites:
543543
dimensions:
544544
- regions: ["eu-west-2"]
545545
instances: {{ common.INSTANCES_DEFAULT_X86 }}
546-
oss: [{{ OS_X86_6 }}]
546+
oss: [{{ LUSTRE_OS_X86_2 }}]
547547
schedulers: ["slurm"]
548548
- regions: ["eu-north-1"]
549549
instances: {{ common.INSTANCES_DEFAULT_ARM }}
550-
oss: [{{ OS_ARM_1 }}]
550+
oss: [{{ LUSTRE_OS_ARM_1 }}]
551551
schedulers: ["slurm"]
552552
test_fsx_lustre.py::test_fsx_lustre_dra:
553553
dimensions:
554554
- regions: [ "eu-west-2" ]
555555
instances: {{ common.INSTANCES_DEFAULT_X86 }}
556-
oss: [{{ OS_X86_3 }}]
556+
oss: [{{ LUSTRE_OS_X86_3 }}]
557557
schedulers: [ "slurm" ]
558558
- regions: [ "eu-north-1" ]
559559
instances: {{ common.INSTANCES_DEFAULT_ARM }}
560-
oss: [{{ OS_ARM_5 }}]
560+
oss: [{{ LUSTRE_OS_ARM_4 }}]
561561
schedulers: [ "slurm" ]
562562
test_fsx_lustre.py::test_file_cache:
563563
dimensions:
564564
- regions: [ "eu-north-1" ]
565565
instances: {{ common.INSTANCES_DEFAULT_ARM }}
566-
oss: [{{ OS_ARM_7 }}]
566+
oss: [{{ LUSTRE_OS_ARM_3 }}]
567567
schedulers: [ "slurm" ]
568568
# The checks performed in test_multiple_fsx is the same as test_fsx_lustre.
569569
# We should consider this when assigning dimensions to each test.
570570
test_fsx_lustre.py::test_multiple_fsx:
571571
dimensions:
572572
- regions: ["eu-west-2"]
573573
instances: {{ common.INSTANCES_DEFAULT_X86 }}
574-
oss: [{{ OS_X86_0 }}]
574+
oss: [{{ LUSTRE_OS_X86_0 }}]
575575
schedulers: ["slurm"]
576576
- regions: ["eu-west-2"]
577577
instances: {{ common.INSTANCES_DEFAULT_ARM }}
578-
oss: [{{ OS_ARM_2 }}]
578+
oss: [{{ LUSTRE_OS_ARM_2 }}]
579579
schedulers: ["slurm"]
580580
- regions: ["cn-north-1"]
581581
instances: {{ common.INSTANCES_DEFAULT_X86 }}
582-
oss: [{{ OS_X86_4 }}]
582+
oss: [{{ LUSTRE_OS_X86_4 }}]
583583
schedulers: ["slurm"]
584584
- regions: [ "us-gov-west-1" ]
585585
instances: {{ common.INSTANCES_DEFAULT_X86 }}
586-
oss: [{{ OS_X86_6 }}]
586+
oss: [{{ LUSTRE_OS_X86_5 }}]
587587
schedulers: [ "slurm" ]
588588
test_fsx_lustre.py::test_multi_az_fsx:
589589
dimensions:
590590
- regions: ["eu-west-2"]
591591
instances: {{ common.INSTANCES_DEFAULT_X86 }}
592-
oss: [{{ OS_X86_1 }}]
592+
oss: [{{ LUSTRE_OS_X86_1 }}]
593593
schedulers: ["slurm"]
594594
test_fsx_lustre.py::test_fsx_lustre_configuration_options:
595595
dimensions:
596596
- regions: ["us-east-2"]
597597
instances: {{ common.INSTANCES_DEFAULT_X86 }}
598-
oss: [{{ OS_X86_3 }}]
598+
oss: [{{ LUSTRE_OS_X86_3 }}]
599599
schedulers: ["slurm"]
600600
test_fsx_lustre.py::test_fsx_lustre_backup:
601601
dimensions:
602602
- regions: ["us-west-1"]
603603
instances: {{ common.INSTANCES_DEFAULT_ARM }}
604-
oss: [{{ OS_ARM_5 }}]
604+
oss: [{{ LUSTRE_OS_ARM_0 }}]
605605
schedulers: ["slurm"]
606606
# EFS tests can be done in any region.
607607
test_efs.py::test_efs_compute_az:

tests/integration-tests/framework/tests_configuration/config_renderer.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
from jinja2.sandbox import SandboxedEnvironment
2020
from utils import InstanceTypesData
2121

22-
from pcluster.constants import SUPPORTED_OSES, UNSUPPORTED_ARM_OSES_FOR_DCV, UNSUPPORTED_OSES_FOR_DCV
22+
from pcluster.constants import (
23+
SUPPORTED_OSES,
24+
UNSUPPORTED_ARM_OSES_FOR_DCV,
25+
UNSUPPORTED_OSES_FOR_DCV,
26+
UNSUPPORTED_OSES_FOR_LUSTRE,
27+
)
2328

2429

2530
def _get_os_parameters(config=None, args=None):
@@ -52,6 +57,17 @@ def _get_os_parameters(config=None, args=None):
5257
(today_number + index) % len(dcv_available_amis_oss_arm)
5358
]
5459

60+
lustre_supported_oses = [os for os in SUPPORTED_OSES if os not in UNSUPPORTED_OSES_FOR_LUSTRE]
61+
lustre_available_amis_oss_x86 = list(set(lustre_supported_oses) & set(available_amis_oss_x86))
62+
lustre_available_amis_oss_arm = list(set(lustre_supported_oses) & set(available_amis_oss_arm))
63+
for index in range(len(dcv_supported_oses)):
64+
result[f"LUSTRE_OS_X86_{index}"] = lustre_available_amis_oss_x86[
65+
(today_number + index) % len(lustre_available_amis_oss_x86)
66+
]
67+
result[f"LUSTRE_OS_ARM_{index}"] = lustre_available_amis_oss_arm[
68+
(today_number + index) % len(lustre_available_amis_oss_arm)
69+
]
70+
5571
no_rhel_oss = [os for os in SUPPORTED_OSES if "rhel" not in os]
5672
no_rhel_oss_x86 = list(set(no_rhel_oss) & set(available_amis_oss_x86))
5773
no_rhel_oss_arm = list(set(no_rhel_oss) & set(available_amis_oss_arm))

0 commit comments

Comments
 (0)