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

Can't define a cluster with zero compute nodes #76

Open
sjpb opened this issue Dec 17, 2020 · 1 comment
Open

Can't define a cluster with zero compute nodes #76

sjpb opened this issue Dec 17, 2020 · 1 comment

Comments

@sjpb
Copy link
Collaborator

sjpb commented Dec 17, 2020

This would be useful for e.g. packer build pipelines if you want to stand up the login/control node first. But the templating fix for #51 means that an error gets thrown if there are no hosts in a group/partition, to avoid nodes getting defined with no cpu info. I guess the correct approach is to skip writing the Node/Partition info for that group entirely, possibly warning that that has been done?

@sjpb
Copy link
Collaborator Author

sjpb commented Jan 8, 2021

Sort-of fixed in 29e81be - if a group is empty it will now just skip it, but if a group is non-empty at least one host from it must still be in the play.

Not creating the slurm partition if a group has no nodes in the play doesn't really make sense IMO; you'd still have to rerun at some point with nodes in the play to create the correct conf. We'll see what actual usage is.

The alternative is to provide some other mechanism of defining the cpu/memory info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant