-
Notifications
You must be signed in to change notification settings - Fork 19
Separate node and partition configuration #183
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ba8a38a
nodegroups using nodesets - doesn't handle empty nodegroups
sjpb 8f9436f
cope with empty nodegroups/partitions
sjpb 0abbf76
make gres work again
sjpb b8c64dc
make node/partition parameters more greppable
sjpb 6dabb2f
use features to simplify nodeset configuration
sjpb ea7902a
add nodegroup.features
sjpb d16b6ba
add validation
sjpb 4f3bbc8
document nodegroup.features to README
sjpb f126bba
add better examples in README
sjpb e993a54
tidy up README
sjpb e41cc84
fix validate task path
sjpb 3440050
fix lint error
sjpb 319ddf3
default partitions to nodegroups to make CI easier
sjpb c8e73ee
update molecule tests for openhpc_nodegroups
sjpb f5d0698
remove checks from runtime now validation defined
sjpb 9f7b19d
fix NodeName= lines missing newlines between them when multiple hostl…
sjpb 02ba27c
remove tests for extra_nodes
sjpb 10a8ace
allow missing inventory groups (as per docs) when validating nodegroups
sjpb 3c706d7
only run validation once
sjpb 03dea2e
remove test14 from CI - extra_nodes feature removed
sjpb 175a1c0
update complex test for new group/partition variables
sjpb 6038a0c
rename openhpc_partitions.groups -> openhpc_partitions.nodegroups f…
sjpb 6be1ed6
output NodeName hostlists on single line to improve large BM schedule…
sjpb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
AutoDetect=off | ||
{% for part in openhpc_slurm_partitions %} | ||
{% set nodelist = [] %} | ||
{% for group in part.get('groups', [part]) %} | ||
{% if 'gres' in group %} | ||
{% for gres in group.gres %} | ||
{% set gres_name, gres_type, _ = gres.conf.split(':') %} | ||
{% set group_name = group.cluster_name|default(openhpc_cluster_name) ~ '_' ~ group.name %} | ||
{% set inventory_group_hosts = groups.get(group_name, []) %} | ||
{% for hostlist in (inventory_group_hosts | hostlist_expression) %} | ||
{% for nodegroup in openhpc_nodegroups %} | ||
{% for gres in nodegroup.gres | default([]) %} | ||
{% set gres_name, gres_type, _ = gres.conf.split(':') %} | ||
{% set inventory_group_name = openhpc_cluster_name ~ '_' ~ nodegroup.name %} | ||
{% set inventory_group_hosts = groups.get(inventory_group_name, []) %} | ||
{% for hostlist in (inventory_group_hosts | hostlist_expression) %} | ||
NodeName={{ hostlist }} Name={{ gres_name }} Type={{ gres_type }} File={{ gres.file }} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %}{# hostlists #} | ||
{% endfor %}{# gres #} | ||
{% endfor %}{# nodegroup #} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.