Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validator to fail when a user is not using a custom ami and is using an instance_type that is not supported by openRM #6006

Merged
merged 5 commits into from
Jan 16, 2024

Conversation

hgreebe
Copy link
Contributor

@hgreebe hgreebe commented Jan 11, 2024

Description of changes

  • Add validator to fail when a user is not using a custom ami and is using an instance_type that is not supported by openRM
  • Update changelog to reflect which instances are not longer supported

Tests

  • Tried launching a cluster with the following configurations to see if the validator work as intended
    • p3 instance_type in the head node
    • p2 instance_type in one of the compute nodes
    • c5 instance_type in both the head and compute nodes

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

@hgreebe hgreebe marked this pull request as ready for review January 11, 2024 18:52
@hgreebe hgreebe requested review from a team as code owners January 11, 2024 18:52
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (70ebb8c) 90.18% compared to head (a0d1e41) 90.18%.
Report is 3 commits behind head on develop.

❗ Current head a0d1e41 differs from pull request most recent head 48be6c2. Consider uploading reports for the commit 48be6c2 to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6006   +/-   ##
========================================
  Coverage    90.18%   90.18%           
========================================
  Files          180      180           
  Lines        15776    15784    +8     
========================================
+ Hits         14227    14235    +8     
  Misses        1549     1549           
Flag Coverage Δ
unittests 90.18% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@himani2411 himani2411 added the 3.x label Jan 11, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
cli/src/pcluster/validators/ec2_validators.py Outdated Show resolved Hide resolved
cli/src/pcluster/validators/ec2_validators.py Outdated Show resolved Hide resolved
@hgreebe hgreebe force-pushed the develop branch 2 times, most recently from 79ff565 to d65ff9c Compare January 12, 2024 15:28
CHANGELOG.md Outdated Show resolved Hide resolved
cli/src/pcluster/validators/ec2_validators.py Outdated Show resolved Hide resolved
@hgreebe hgreebe force-pushed the develop branch 2 times, most recently from 388d363 to 135e9b5 Compare January 12, 2024 16:52
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
enrico-usai
enrico-usai previously approved these changes Jan 16, 2024
):
self._add_failure(
f"The instance type '{instance_type}' is not supported by NVIDIA OpenRM drivers. "
f"OpenRM can only be used on any Turing or later GPU architectures. "
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: you can remove the f from the lines where there are no variables to replace.

@hgreebe hgreebe enabled auto-merge (squash) January 16, 2024 14:34
@hgreebe hgreebe merged commit 2b10b88 into aws:develop Jan 16, 2024
26 checks passed
enrico-usai pushed a commit to enrico-usai/aws-parallelcluster that referenced this pull request Jan 16, 2024
…ing an instance_type that is not supported by openRM (aws#6006)

* Add validator to fail when a customer is not using a custom ami and is using an instance_type that is not supported by openRM

* Update changelog to reflect which instances are not supported with the OpenRM Drivers

* Add a constant for supported NVIDIA OpenRM Architecture and the unsupport instance types

* Improve CHANGELOG

Signed-off-by: Enrico Usai <[email protected]>
lukeseawalker pushed a commit to lukeseawalker/aws-parallelcluster that referenced this pull request Jan 17, 2024
…ing an instance_type that is not supported by openRM (aws#6006)

* Add validator to fail when a customer is not using a custom ami and is using an instance_type that is not supported by openRM

* Update changelog to reflect which instances are not supported with the OpenRM Drivers

* Add a constant for supported NVIDIA OpenRM Architecture and the unsupport instance types

* Improve CHANGELOG
enrico-usai pushed a commit that referenced this pull request Jan 18, 2024
…ing an instance_type that is not supported by openRM (#6006)

* Add validator to fail when a customer is not using a custom ami and is using an instance_type that is not supported by openRM

* Update changelog to reflect which instances are not supported with the OpenRM Drivers

* Add a constant for supported NVIDIA OpenRM Architecture and the unsupport instance types

* Improve CHANGELOG

Signed-off-by: Enrico Usai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants