Skip to content

Commit

Permalink
Revert "Upgrade Lambda Runtime for Pcluster Lambda Layer"
Browse files Browse the repository at this point in the history
This reverts commit 9e27d0d

Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster authored and hanwen-pcluste committed Feb 13, 2024
1 parent fec7165 commit 3e9f933
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ CHANGELOG
- Upgrade Slurm to 23.11.3.
- Upgrade NVIDIA driver to version 535.154.05.
- Add support for Python 3.11, 3.12 in pcluster CLI and aws-parallelcluster-batch-cli.
- Upgrade Python to version 3.12 and NodeJS to version 18 in ParallelCluster Lambda Layer.
- Build network interfaces using network card index from `NetworkCardIndex` list of EC2 DescribeInstances response,
instead of looping over `MaximumNetworkCards` range.
- Fail cluster creation when using instance types P3, G3, P2 and G2 because their GPU architecture is not compatible with Open Source Nvidia Drivers (OpenRM) introduced as part of 3.8.0 release.
Expand Down
4 changes: 2 additions & 2 deletions api/infrastructure/parallelcluster-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Resources:
- parallelcluster/${Version}/layers/aws-parallelcluster/lambda-layer.zip
- { Version: !FindInMap [ParallelCluster, Constants, Version]}
CompatibleRuntimes:
- python3.12
- python3.9

# We need to define three AWS::Serverless::Api due to an issue with the handling of AWS::NoValue
# See related GitHub issue: https://github.com/aws/serverless-application-model/issues/1435
Expand Down Expand Up @@ -294,7 +294,7 @@ Resources:
Value: api
- Key: 'parallelcluster:version'
Value: !FindInMap [ParallelCluster, Constants, Version]
Runtime: python3.12
Runtime: python3.9
Handler: pcluster.api.awslambda.entrypoint.lambda_handler
Layers:
- !Ref PclusterLayer
Expand Down
6 changes: 3 additions & 3 deletions cloudformation/custom_resource/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Resources:
- parallelcluster/${Version}/layers/aws-parallelcluster/lambda-layer.zip
- { Version: !FindInMap [ParallelCluster, Constants, Version] }
CompatibleRuntimes:
- python3.12
- python3.9

PclusterPolicies:
Condition: UsePCPolicies
Expand Down Expand Up @@ -340,7 +340,7 @@ Resources:
helper(event, context)
Handler: index.handler
Runtime: python3.12
Runtime: python3.9
Role: !If [CustomRoleCondition, !Ref CustomLambdaRole, !GetAtt PclusterLambdaRole.Arn]
Layers:
- !Ref PclusterLayer
Expand Down Expand Up @@ -394,7 +394,7 @@ Resources:
reason = str(e)
cfnresponse.send(event, context, response_status, {}, event.get('PhysicalResourceId', 'CleanupS3bucketCustomResource'), reason)
Handler: index.handler
Runtime: python3.12
Runtime: python3.9
Role: !If [CustomRoleCondition, !Ref CustomLambdaRole, !GetAtt PclusterLambdaRole.Arn]

CleanupS3bucketCustomResource:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests/conftest_resource_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from tests.common.utils import get_installed_parallelcluster_version

logger = logging.getLogger()
NODE_VERSION = "v18.18.2"
NODE_VERSION = "v16.19.0" # maintenance version compatible with alinux2's GLIBC


def install_pc(basepath, pc_version):
Expand Down

0 comments on commit 3e9f933

Please sign in to comment.