Skip to content

Conversation

@ddeidda
Copy link
Contributor

@ddeidda ddeidda commented Dec 3, 2020

Compute instance type parameter is not rendered if scheduler is Slurm. This caused the error Parameters: [ComputeInstanceType] must have values in CloudFormation because a value was still expected.
With this commit we set "NONE" as default to prevent this value being silently used as if set by the user.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #2284 (fda018e) into develop (ad70171) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2284   +/-   ##
========================================
  Coverage    62.12%   62.12%           
========================================
  Files           40       40           
  Lines         6149     6149           
========================================
  Hits          3820     3820           
  Misses        2329     2329           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad70171...fda018e. Read the comment docs.

@enrico-usai enrico-usai added the skip-changelog-update Disables the check that enforces changelog updates in PRs label Dec 3, 2020
"MasterInstanceType": {
"Description": "Head node EC2 instance type",
"Type": "String",
"Default": "t2.micro",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove the default for the head node.

"ComputeInstanceType": {
"Description": "ComputeFleet EC2 instance type",
"Type": "String",
"Default": "t2.micro",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can improve the description by highlighting the fact that this parameter is useless for Slurm but needed as CFN param.

We can use NONE instead of t2.micro to avoid hiding other errors. In this way we'll be sure that a value is always passed.

Compute instance type parameter is not rendered if scheduler is Slurm. This caused the error `Parameters: [ComputeInstanceType] must have values` in CloudFormation because a value was still expected.
With this commit we set "NONE" as default to prevent this value being silently used as if set by the user.

Signed-off-by: ddeidda <ddeidda@amazon.com>
@ddeidda ddeidda force-pushed the fix_compute_instance_type_default branch from c5434e1 to fda018e Compare December 3, 2020 12:14
@ddeidda ddeidda changed the title Restore default values in cfn template for Head and Compute nodes Restore default values in cfn template for ComputeInstanceType Dec 3, 2020
@hanwen-pcluste hanwen-pcluste merged commit 57f56b2 into aws:develop Dec 3, 2020
chenwany pushed a commit to chenwany/aws-parallelcluster that referenced this pull request Dec 4, 2020
)

Compute instance type parameter is not rendered if scheduler is Slurm. This caused the error `Parameters: [ComputeInstanceType] must have values` in CloudFormation because a value was still expected.
With this commit we set "NONE" as default to prevent this value being silently used as if set by the user.

Signed-off-by: ddeidda <ddeidda@amazon.com>
chenwany pushed a commit to chenwany/aws-parallelcluster that referenced this pull request Dec 4, 2020
)

Compute instance type parameter is not rendered if scheduler is Slurm. This caused the error `Parameters: [ComputeInstanceType] must have values` in CloudFormation because a value was still expected.
With this commit we set "NONE" as default to prevent this value being silently used as if set by the user.

Signed-off-by: ddeidda <ddeidda@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog-update Disables the check that enforces changelog updates in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants