-
Notifications
You must be signed in to change notification settings - Fork 109
[SlurmTopo] Use --force-configuration option for creating topology configuration
#3008
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,8 @@ | |
| command "#{cookbook_virtualenv_path}/bin/python #{node['cluster']['scripts_dir']}/slurm/pcluster_topology_generator.py"\ | ||
| " --output-file #{node['cluster']['slurm']['install_dir']}/etc/topology.conf"\ | ||
| " --block-sizes #{node['cluster']['p6egb200_block_sizes']}"\ | ||
| " --input-file #{node['cluster']['cluster_config_path']}" | ||
| " --input-file #{node['cluster']['cluster_config_path']}"\ | ||
| "#{topology_generator_extra_args}" | ||
| not_if { node['cluster']['p6egb200_block_sizes'].nil? } | ||
| end | ||
| end | ||
|
|
@@ -48,8 +49,9 @@ | |
| command "#{cookbook_virtualenv_path}/bin/python #{node['cluster']['scripts_dir']}/slurm/pcluster_topology_generator.py"\ | ||
| " --output-file #{node['cluster']['slurm']['install_dir']}/etc/topology.conf"\ | ||
| " --input-file #{node['cluster']['cluster_config_path']}"\ | ||
| "#{topology_generator_command_args}" | ||
| not_if { ::File.exist?(node['cluster']['previous_cluster_config_path']) && topology_generator_command_args.nil? } | ||
| "#{topology_generator_command_args}"\ | ||
| "#{topology_generator_extra_args}" | ||
| not_if { topology_generator_command_args.nil? } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We dont need to check the existence of this file. And this is the check which is causing the errors in our integ tests as ['cluster']['previous_cluster_config_path'] will exist in every update
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add a followup PR to solve the update cluster issue as this doesnt solve it |
||
| end | ||
| end | ||
|
|
||
|
|
@@ -68,3 +70,9 @@ def topology_generator_command_args | |
| " --block-sizes #{node['cluster']['p6egb200_block_sizes']}" | ||
| end | ||
| end | ||
|
|
||
| def topology_generator_extra_args | ||
| if ['true', 'yes', true].include?(node['cluster']['slurm']['block_topology']['force_configuration']) | ||
| " --force-configuration" | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # This file is automatically generated by pcluster | ||
|
|
||
| BlockName=Block1 Nodes=multiple_spot-st-multiplespot-2-[1-9] | ||
| BlockName=Block2 Nodes=gpu-st-gpu-p3dn24xlarge-[1-9] | ||
| BlockName=Block3 Nodes=capacity-block-queue1-st-cb-gb200-1-[1-9] | ||
| BlockName=Block4 Nodes=capacity-block-queue1-st-fleet-no-res-[1-18] | ||
| BlockName=Block5 Nodes=capacity-block-queue2-st-cb-gb200-2-[1-18] | ||
| BlockName=Block6 Nodes=capacity-block-queue2-st-cb-gb200-3-[1-9] | ||
| BlockSizes=9,18 |
Uh oh!
There was an error while loading. Please reload this page.