Skip to content

Commit 0432d01

Browse files
authored
Release 1.5.2
2 parents be9bda1 + 9a85915 commit 0432d01

32 files changed

+139
-126
lines changed

.kitchen.cloud.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ driver_config:
1515

1616
provisioner:
1717
name: chef_zero
18-
require_chef_omnibus: 12.19.36
18+
require_chef_omnibus: 14.2.0
1919
retry_on_exit_code:
2020
- 35 # 35 is the exit code signaling that the node is rebooting
2121
max_retries: 1
@@ -28,7 +28,7 @@ platforms:
2828
- name: amazon-linux-latest
2929
driver_plugin: ec2
3030
driver_config:
31-
image_id: ami-55ef662f
31+
image_id: <%= ENV['ALINUX_IMAGE_ID'] || "ami-55ef662f" %>
3232
block_device_mappings:
3333
- device_name: /dev/xvda
3434
ebs:
@@ -89,7 +89,7 @@ platforms:
8989
- name: centos-6-minimal
9090
driver_plugin: ec2
9191
driver_config:
92-
image_id: ami-9ff841e5
92+
image_id: <%= ENV['CENTOS6_IMAGE_ID'] || "ami-44f1aa3e" %>
9393
block_device_mappings:
9494
- device_name: /dev/sda1
9595
ebs:
@@ -150,7 +150,7 @@ platforms:
150150
- name: centos-7-minimal
151151
driver_plugin: ec2
152152
driver_config:
153-
image_id: ami-01098c7b
153+
image_id: <%= ENV['CENTOS7_IMAGE_ID'] || "ami-06fea57c" %>
154154
block_device_mappings:
155155
- device_name: /dev/sda1
156156
ebs:
@@ -211,7 +211,7 @@ platforms:
211211
- name: ubuntu-14-04-lts
212212
driver_plugin: ec2
213213
driver_config:
214-
image_id: ami-c29e1cb8
214+
image_id: <%= ENV['UBUNTU1404_IMAGE_ID'] || "ami-c29e1cb8" %>
215215
block_device_mappings:
216216
- device_name: /dev/sda1
217217
ebs:
@@ -272,7 +272,7 @@ platforms:
272272
- name: ubuntu-16-04-lts
273273
driver_plugin: ec2
274274
driver_config:
275-
image_id: ami-aa2ea6d0
275+
image_id: <%= ENV['UBUNTU1604_IMAGE_ID'] || "ami-aa2ea6d0" %>
276276
block_device_mappings:
277277
- device_name: /dev/sda1
278278
ebs:

.kitchen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ driver:
44

55
provisioner:
66
name: chef_zero
7-
require_chef_omnibus: 12.19.36
7+
require_chef_omnibus: 14.2.0
88

99
platforms:
1010
- name: centos-6.6

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ cfncluster-cookbook CHANGELOG
33

44
This file is used to list changes made in each version of the cfncluster cookbook.
55

6+
1.5.2
7+
-----
8+
9+
- Fix bug that prevented c5d/m5d instances from working
10+
- Set CPU as a consumable resource in slurm config
11+
612
1.5.1
713
-----
814

9-
Major new features/updates:
15+
Major new features/updates:
1016

1117
- Added parameter to specify custom cfncluster-node package
1218

@@ -27,21 +33,21 @@ Major new features/updates:
2733
1.4.0
2834
-----
2935

30-
Major new features/updates:
36+
Major new features/updates:
3137

3238
- Updated to Amazon Linux 2017.09.1
3339
- Applied patches to Ubuntu 16.04
3440
- Applied patches to Ubuntu 14.04
3541
- Updated to Centos 7.4
3642
- Upgraded Centos 6 AMI
37-
- Updated to Nvidia driver 384
43+
- Updated to Nvidia driver 384
3844
- Updated to CUDA 9
39-
- Updated to latest cfncluster-node 1.4.2
45+
- Updated to latest cfncluster-node 1.4.2
4046

4147
Bug fixes/minor improvements:
4248

4349
- Added support for NVMe-based instance store
44-
- Fixed ganglia plotting issue on ubuntu
50+
- Fixed ganglia plotting issue on ubuntu
4551
- Fixed slow SLURM scaling times on systemd platforms.
4652

4753
1.3.2

amis/build_ami.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public=$3
2525
build_date=$4
2626

2727
available_os="centos6 centos7 alinux ubuntu1404 ubuntu1604"
28-
available_regions="eu-west-1,eu-west-2,eu-west-3,ap-southeast-1,ap-southeast-2,eu-central-1,ap-northeast-1,ap-northeast-2,ap-northeast-3,us-west-2,sa-east-1,us-west-1,us-east-2,ap-south-1,ca-central-1"
28+
available_regions="$(aws ec2 --region us-east-1 describe-regions --query Regions[].RegionName --output text | tr '\t' ',')"
2929
cwd="$(dirname $0)"
3030
export VENDOR_PATH="${cwd}/../../vendor/cookbooks"
3131

amis/build_env_setup.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
#!/bin/bash
22

33
# This script sets up environment for building cfncluster ami
4-
# Launch Ec2 machine with amazon linux and run this script
4+
# Launch EC2 machine with amazon linux and run this script
55

66
# Get latest packages and Development tools
77
sudo yum -y update
88
sudo yum -y groupinstall 'Development Tools'
99

10-
# Get chefdk - As of now we use 1.4.3
11-
# Verify cookbook chef version in metadata.rb file
12-
# In case you see version mismatch, Please install
13-
# chefdk version referred in metadata file
14-
wget https://packages.chef.io/files/stable/chefdk/1.4.3/el/7/chefdk-1.4.3-1.el7.x86_64.rpm
15-
sudo rpm --install chefdk-1.4.3-1.el7.x86_64.rpm
10+
# Get chefdk
11+
# Verify cookbook chef version in packer_variables.json file
12+
wget https://packages.chef.io/files/stable/chefdk/3.0.36/el/7/chefdk-3.0.36-1.el7.x86_64.rpm
13+
sudo rpm --install chefdk-3.0.36-1.el7.x86_64.rpm
1614
chef -v
1715

1816
# Get Packer - tool used to build ami
19-
# As of now we use 1.1.1
20-
wget https://releases.hashicorp.com/packer/1.1.1/packer_1.1.1_linux_amd64.zip
21-
unzip packer_1.1.1_linux_amd64.zip
17+
wget https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_linux_amd64.zip
18+
unzip packer_1.2.4_linux_amd64.zip
2219
# Copy packer to PATH
2320
sudo cp packer /usr/local/bin/
2421
packer --version
@@ -28,7 +25,7 @@ packer --version
2825
# git clone https://github.com/awslabs/cfncluster-cookbook.git
2926
# cd cfncluster-cookbook
3027

31-
# Run ami builder script
28+
# Run ami builder script
3229
# ./build_ami.sh <operating_system> <region> <public/private>
3330
# example
3431
# ./build_ami.sh all us-east-1 private

amis/centos-upgrade-first-stage.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,12 @@ set +e
7676
echo "Disabling SELinux"
7777
sudo /bin/sed -r -i -e 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
7878

79-
# Updating GRUB to blacklist the neuvou driver (so the nVidia driver can
80-
# install) and turning off ifnames, because a bunch of the scripts expect
81-
# to find eth0. Should handle the eth naming better, but that's todo.
79+
# Updating GRUB to blacklist the nouveau driver (so the nVidia driver can install)
8280
echo "Updating Grub command line"
8381
if test $is_centos6 -eq 1; then
84-
sudo grubby --update-kernel=ALL --args="net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0"
82+
sudo grubby --update-kernel=ALL --args="rd.driver.blacklist=nouveau nouveau.modeset=0"
8583
else
86-
sudo /bin/sed -r -i -e 's/GRUB_CMDLINE_LINUX="(.*)"/GRUB_CMDLINE_LINUX="\1 net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0"/' /etc/default/grub
84+
sudo /bin/sed -r -i -e 's/GRUB_CMDLINE_LINUX="(.*)"/GRUB_CMDLINE_LINUX="\1 rd.driver.blacklist=nouveau nouveau.modeset=0"/' /etc/default/grub
8785
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
8886
fi
8987

amis/packer_alinux.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"nvidia_enabled" : "{{env `NVIDIA_ENABLED`}}",
1313
"instance_type" : "{{env `AWS_FLAVOR_ID`}}",
1414
"subnet_id" : "{{env `AWS_SUBNET_ID`}}",
15-
"vpc_id" : "{{env `AWS_VPC_ID`}}"
15+
"vpc_id" : "{{env `AWS_VPC_ID`}}",
16+
"ami_name_prefix" : "{{env `AMI_NAME_PREFIX`}}"
1617
},
1718
"builders" : [
1819
{
@@ -24,7 +25,7 @@
2425
"instance_type" : "{{user `instance_type`}}",
2526
"ssh_username" : "ec2-user",
2627
"ssh_pty" : true,
27-
"ami_name" : "cfncluster-{{user `cfncluster_version`}}-amzn-hvm-{{user `build_date`}}",
28+
"ami_name" : "{{user `ami_name_prefix`}}cfncluster-{{user `cfncluster_version`}}-amzn-hvm-{{user `build_date`}}",
2829
"subnet_id" : "{{user `subnet_id`}}",
2930
"vpc_id" : "{{user `vpc_id`}}",
3031
"skip_region_validation" : true,

amis/packer_centos6.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"nvidia_enabled" : "{{env `NVIDIA_ENABLED`}}",
1313
"instance_type" : "{{env `AWS_FLAVOR_ID`}}",
1414
"subnet_id" : "{{env `AWS_SUBNET_ID`}}",
15-
"vpc_id" : "{{env `AWS_VPC_ID`}}"
15+
"vpc_id" : "{{env `AWS_VPC_ID`}}",
16+
"ami_name_prefix" : "{{env `AMI_NAME_PREFIX`}}"
1617
},
1718
"builders" : [
1819
{
@@ -24,7 +25,7 @@
2425
"instance_type" : "{{user `instance_type`}}",
2526
"ssh_username" : "centos",
2627
"ssh_pty" : true,
27-
"ami_name" : "cfncluster-{{user `cfncluster_version`}}-centos6-hvm-{{user `build_date`}}",
28+
"ami_name" : "{{user `ami_name_prefix`}}cfncluster-{{user `cfncluster_version`}}-centos6-hvm-{{user `build_date`}}",
2829
"subnet_id" : "{{user `subnet_id`}}",
2930
"vpc_id" : "{{user `vpc_id`}}",
3031
"skip_region_validation" : true,

amis/packer_centos7.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"nvidia_enabled" : "{{env `NVIDIA_ENABLED`}}",
1313
"instance_type" : "{{env `AWS_FLAVOR_ID`}}",
1414
"subnet_id" : "{{env `AWS_SUBNET_ID`}}",
15-
"vpc_id" : "{{env `AWS_VPC_ID`}}"
15+
"vpc_id" : "{{env `AWS_VPC_ID`}}",
16+
"ami_name_prefix" : "{{env `AMI_NAME_PREFIX`}}"
1617
},
1718
"builders" : [
1819
{
@@ -24,7 +25,7 @@
2425
"instance_type" : "{{user `instance_type`}}",
2526
"ssh_username" : "centos",
2627
"ssh_pty" : true,
27-
"ami_name" : "cfncluster-{{user `cfncluster_version`}}-centos7-hvm-{{user `build_date`}}",
28+
"ami_name" : "{{user `ami_name_prefix`}}cfncluster-{{user `cfncluster_version`}}-centos7-hvm-{{user `build_date`}}",
2829
"subnet_id" : "{{user `subnet_id`}}",
2930
"vpc_id" : "{{user `vpc_id`}}",
3031
"skip_region_validation" : true,

amis/packer_ubuntu1404.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"nvidia_enabled" : "{{env `NVIDIA_ENABLED`}}",
1313
"instance_type" : "{{env `AWS_FLAVOR_ID`}}",
1414
"subnet_id" : "{{env `AWS_SUBNET_ID`}}",
15-
"vpc_id" : "{{env `AWS_VPC_ID`}}"
15+
"vpc_id" : "{{env `AWS_VPC_ID`}}",
16+
"ami_name_prefix" : "{{env `AMI_NAME_PREFIX`}}"
1617
},
1718
"builders" : [
1819
{
@@ -24,7 +25,7 @@
2425
"instance_type" : "{{user `instance_type`}}",
2526
"ssh_username" : "ubuntu",
2627
"ssh_pty" : true,
27-
"ami_name" : "cfncluster-{{user `cfncluster_version`}}-ubuntu-1404-lts-hvm-{{user `build_date`}}",
28+
"ami_name" : "{{user `ami_name_prefix`}}cfncluster-{{user `cfncluster_version`}}-ubuntu-1404-lts-hvm-{{user `build_date`}}",
2829
"subnet_id" : "{{user `subnet_id`}}",
2930
"vpc_id" : "{{user `vpc_id`}}",
3031
"skip_region_validation" : true,

0 commit comments

Comments
 (0)