Skip to content

Commit 7285586

Browse files
authored
Merge branch 'develop' into wip/mgiacomo/3120/fix-arm-ubuntu-1211-1
2 parents 485417c + e479a86 commit 7285586

File tree

19 files changed

+86
-57
lines changed

19 files changed

+86
-57
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ aws-parallelcluster-cookbook CHANGELOG
22
======================================
33

44
This file is used to list changes made in each version of the AWS ParallelCluster cookbook.
5+
3.13.0
6+
------
7+
8+
**CHANGES**
9+
- On Ubuntu 22.04, install the Nvidia driver with the same compiler version used to compile the kernel.
510

611
3.12.0
712
------
@@ -25,7 +30,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
2530
- Open MPI: `openmpi40-aws-4.1.7-1` and `openmpi50-aws-5.0.5`
2631
- Auto-restart slurmctld on failure.
2732
- Upgrade mysql-community-client to version 8.0.39.
28-
- On Ubuntu 22.04, install the Nvidia driver with the same compiler version used to compile the kernel.
33+
2934

3035
**BUG FIXES**
3136
- Fix retrieval of regions when managing volumes to correctly handle local zones.

cookbooks/aws-parallelcluster-awsbatch/metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
issues_url 'https://github.com/aws/aws-parallelcluster/issues'
88
source_url 'https://github.com/aws/aws-parallelcluster-cookbook'
99
chef_version '>= 18'
10-
version '3.12.0'
10+
version '3.13.0'
1111

1212
depends 'apt', '~> 7.5.22'
1313
depends 'iptables', '~> 8.0.0'
@@ -17,4 +17,4 @@
1717
depends 'pyenv', '~> 4.2.3'
1818
depends 'yum', '~> 7.4.13'
1919
depends 'yum-epel', '~> 5.0.2'
20-
depends 'aws-parallelcluster-shared', '~> 3.12.0'
20+
depends 'aws-parallelcluster-shared', '~> 3.13.0'

cookbooks/aws-parallelcluster-computefleet/metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
issues_url 'https://github.com/aws/aws-parallelcluster-cookbook/issues'
88
source_url 'https://github.com/aws/aws-parallelcluster-cookbook'
99
chef_version '>= 18'
10-
version '3.12.0'
10+
version '3.13.0'
1111

12-
depends 'aws-parallelcluster-shared', '~> 3.12.0'
12+
depends 'aws-parallelcluster-shared', '~> 3.13.0'

cookbooks/aws-parallelcluster-entrypoints/metadata.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
issues_url 'https://github.com/aws/aws-parallelcluster-cookbook/issues'
88
source_url 'https://github.com/aws/aws-parallelcluster-cookbook'
99
chef_version '>= 18'
10-
version '3.12.0'
10+
version '3.13.0'
1111

12-
depends 'aws-parallelcluster-shared', '~> 3.12.0'
13-
depends 'aws-parallelcluster-platform', '~> 3.12.0'
14-
depends 'aws-parallelcluster-environment', '~> 3.12.0'
15-
depends 'aws-parallelcluster-computefleet', '~> 3.12.0'
16-
depends 'aws-parallelcluster-slurm', '~> 3.12.0'
17-
depends 'aws-parallelcluster-awsbatch', '~> 3.12.0'
12+
depends 'aws-parallelcluster-shared', '~> 3.13.0'
13+
depends 'aws-parallelcluster-platform', '~> 3.13.0'
14+
depends 'aws-parallelcluster-environment', '~> 3.13.0'
15+
depends 'aws-parallelcluster-computefleet', '~> 3.13.0'
16+
depends 'aws-parallelcluster-slurm', '~> 3.13.0'
17+
depends 'aws-parallelcluster-awsbatch', '~> 3.13.0'

cookbooks/aws-parallelcluster-environment/files/amazon-2023/network_interfaces/configure_nw_interface.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ set -ex
44

55
if
66
[ -z "${DEVICE_NAME}" ] || # name of the device
7-
[ -z "${DEVICE_NUMBER}" ] || # number of the device
7+
[ -z "${DEVICE_NUMBER}" ] || # index of the device
8+
[ -z "${NETWORK_CARD_INDEX}" ] || # index of the network card
89
[ -z "${DEVICE_IP_ADDRESS}" ] || # ip of the device
910
[ -z "${MAC}" ] || # mac address of the device
1011
[ -z "${CIDR_BLOCK}" ] # CIDR block of the subnet
1112
then
1213
echo 'One or more environment variables missing'
1314
exit 1
1415
fi
15-
echo "Configuring NIC, Device name: ${DEVICE_NAME}, Device number: ${DEVICE_NUMBER}"
16+
echo "Configuring NIC, Device name: ${DEVICE_NAME}, Device number: ${DEVICE_NUMBER}, Network card index:${NETWORK_CARD_INDEX}"
1617

1718
configuration_directory="/etc/systemd/network"
1819
file_name="70-${DEVICE_NAME}.network"
@@ -23,12 +24,13 @@ fi
2324

2425
cd "$configuration_directory"
2526

26-
ROUTE_TABLE=100${DEVICE_NUMBER}
27+
SUFFIX=$(printf "%03d" $NETWORK_CARD_INDEX)$(printf "%02d" $DEVICE_NUMBER)
28+
ROUTE_TABLE="$(( $SUFFIX + 10 ))"
2729

2830
ln -s /usr/lib/systemd/network/80-ec2.network ${file_name} # Use default EC2 configuration. This include MTU, etc.
2931

3032
/bin/cat <<EOF > ${sub_directory}/eni.conf
31-
# Configuration for ${DEVICE_NUMBER} generated by ParallelCluster
33+
# Configuration for network card: ${NETWORK_CARD_INDEX}, device number: ${DEVICE_NUMBER} generated by ParallelCluster
3234
# This is inspired by https://github.com/amazonlinux/amazon-ec2-net-utils/blob/v2.4.1/lib/lib.sh
3335
[Match]
3436
MACAddress=${MAC}

cookbooks/aws-parallelcluster-environment/files/default/network_interfaces/configure_nw_interface.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -e
1010

1111
if
1212
[ -z "${DEVICE_NAME}" ] || # name of the device
13-
[ -z "${DEVICE_NUMBER}" ] || # number of the device
13+
[ -z "${DEVICE_NUMBER}" ] || # index of the device
14+
[ -z "${NETWORK_CARD_INDEX}" ] || # index of the network card
1415
[ -z "${GW_IP_ADDRESS}" ] || # gateway ip address
1516
[ -z "${DEVICE_IP_ADDRESS}" ] || # ip address to assign to the interface
1617
[ -z "${CIDR_PREFIX_LENGTH}" ] || # the prefix length of the device IP cidr block
@@ -20,9 +21,11 @@ then
2021
exit 1
2122
fi
2223

23-
ROUTE_TABLE="100${DEVICE_NUMBER}"
24+
SUFFIX=$(printf "%03d" $NETWORK_CARD_INDEX)$(printf "%02d" $DEVICE_NUMBER)
2425

25-
echo "Configuring ${DEVICE_NAME} with IP:${DEVICE_IP_ADDRESS} CIDR_PREFIX:${CIDR_PREFIX_LENGTH} NETMASK:${NETMASK} GW:${GW_IP_ADDRESS} ROUTING_TABLE:${ROUTE_TABLE}"
26+
ROUTE_TABLE="$(( $SUFFIX + 10 ))"
27+
28+
echo "Configuring device name: ${DEVICE_NAME} with IP:${DEVICE_IP_ADDRESS} CIDR_PREFIX:${CIDR_PREFIX_LENGTH} NETMASK:${NETMASK} GW:${GW_IP_ADDRESS} ROUTING_TABLE:${ROUTE_TABLE}"
2629

2730
# config file
2831
FILE="/etc/sysconfig/network-scripts/ifcfg-${DEVICE_NAME}"

cookbooks/aws-parallelcluster-environment/files/redhat-8.network_interfaces/configure_nw_interface.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ set -e
1313

1414
if
1515
[ -z "${DEVICE_NAME}" ] || # name of the device
16-
[ -z "${DEVICE_NUMBER}" ] || # number of the device
16+
[ -z "${DEVICE_NUMBER}" ] || # index of the device
17+
[ -z "${NETWORK_CARD_INDEX}" ] || # index of the network card
1718
[ -z "${GW_IP_ADDRESS}" ] || # gateway ip address
1819
[ -z "${DEVICE_IP_ADDRESS}" ] || # ip address to assign to the interface
1920
[ -z "${CIDR_PREFIX_LENGTH}" ] # the prefix length of the device IP cidr block
@@ -23,9 +24,10 @@ then
2324
fi
2425

2526
con_name="System ${DEVICE_NAME}"
26-
route_table="100${DEVICE_NUMBER}"
27-
priority="100${DEVICE_NUMBER}"
28-
metric="100${DEVICE_NUMBER}"
27+
SUFFIX=$(printf "%03d" $NETWORK_CARD_INDEX)$(printf "%02d" $DEVICE_NUMBER)
28+
route_table="$(( $SUFFIX + 10 ))"
29+
priority="${route_table}"
30+
metric="${route_table}"
2931

3032
# Rename connection
3133
original_con_name=`nmcli -t -f GENERAL.CONNECTION device show ${DEVICE_NAME} | cut -f2 -d':'`

cookbooks/aws-parallelcluster-environment/files/rocky/network_interfaces/configure_nw_interface.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ set -e
1313

1414
if
1515
[ -z "${DEVICE_NAME}" ] || # name of the device
16-
[ -z "${DEVICE_NUMBER}" ] || # number of the device
16+
[ -z "${DEVICE_NUMBER}" ] || # index of the device
17+
[ -z "${NETWORK_CARD_INDEX}" ] || # index of the network card
1718
[ -z "${GW_IP_ADDRESS}" ] || # gateway ip address
1819
[ -z "${DEVICE_IP_ADDRESS}" ] || # ip address to assign to the interface
1920
[ -z "${CIDR_PREFIX_LENGTH}" ] # the prefix length of the device IP cidr block
@@ -23,9 +24,10 @@ then
2324
fi
2425

2526
con_name="System ${DEVICE_NAME}"
26-
route_table="100${DEVICE_NUMBER}"
27-
priority="100${DEVICE_NUMBER}"
28-
metric="100${DEVICE_NUMBER}"
27+
SUFFIX=$(printf "%03d" $NETWORK_CARD_INDEX)$(printf "%02d" $DEVICE_NUMBER)
28+
route_table="$(( $SUFFIX + 10 ))"
29+
priority="${route_table}"
30+
metric="${route_table}"
2931

3032
# Rename connection
3133
original_con_name=`nmcli -t -f GENERAL.CONNECTION device show ${DEVICE_NAME} | cut -f2 -d':'`

cookbooks/aws-parallelcluster-environment/files/ubuntu/network_interfaces/configure_nw_interface.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -e
1010

1111
if
1212
[ -z "${DEVICE_NAME}" ] || # name of the device
13-
[ -z "${DEVICE_NUMBER}" ] || # number of the device
13+
[ -z "${DEVICE_NUMBER}" ] || # index of the device
14+
[ -z "${NETWORK_CARD_INDEX}" ] || # index of the network card
1415
[ -z "${GW_IP_ADDRESS}" ] || # gateway ip address
1516
[ -z "${DEVICE_IP_ADDRESS}" ] || # ip address to assign to the interface
1617
[ -z "${CIDR_PREFIX_LENGTH}" ] || # the prefix length of the device IP cidr block
@@ -40,7 +41,8 @@ if [ "${STATIC_IP_CONFIG}" = "" ]
4041
fi
4142

4243
FILE="/etc/netplan/${DEVICE_NAME}.yaml"
43-
ROUTE_TABLE="100${DEVICE_NUMBER}"
44+
SUFFIX=$(printf "%03d" $NETWORK_CARD_INDEX)$(printf "%02d" $DEVICE_NUMBER)
45+
ROUTE_TABLE="$(( $SUFFIX + 10 ))"
4446

4547
echo "Configuring ${DEVICE_NAME} with IP:${DEVICE_IP_ADDRESS} CIDR_PREFIX:${CIDR_PREFIX_LENGTH} NETMASK:${NETMASK} GW:${GW_IP_ADDRESS} ROUTING_TABLE:${ROUTE_TABLE}"
4648

cookbooks/aws-parallelcluster-environment/metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
issues_url 'https://github.com/aws/aws-parallelcluster-cookbook/issues'
88
source_url 'https://github.com/aws/aws-parallelcluster-cookbook'
99
chef_version '>= 18'
10-
version '3.12.0'
10+
version '3.13.0'
1111

1212
depends 'line', '~> 4.5.13'
1313
depends 'nfs', '~> 5.1.2'
1414

15-
depends 'aws-parallelcluster-shared', '~> 3.12.0'
15+
depends 'aws-parallelcluster-shared', '~> 3.13.0'

0 commit comments

Comments
 (0)