-
Notifications
You must be signed in to change notification settings - Fork 109
Delete cluster name state file whenever slurm accounting is configured or updated #2994
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 1 commit
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 |
|---|---|---|
|
|
@@ -88,6 +88,15 @@ | |
| retry_delay 10 | ||
| end unless kitchen_test? || (node['cluster']['node_type'] == "ExternalSlurmDbd") | ||
|
|
||
| bash "Remove existing cluster name state file" do | ||
| user 'root' | ||
| group 'root' | ||
| code <<-CLUSTERSTATE | ||
| rm /var/spool/slurm.state/clustername | ||
| CLUSTERSTATE | ||
| only_if { ::File.exist?('/var/spool/slurm.state/clustername') } | ||
|
||
| end | ||
|
|
||
| bash "bootstrap slurm database" do | ||
| user 'root' | ||
| group 'root' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,3 +23,12 @@ | |
| supports restart: false | ||
| action %i(disable stop) | ||
| end | ||
|
|
||
| bash "Remove existing cluster name state file" do | ||
gmarciani marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| user 'root' | ||
| group 'root' | ||
| code <<-CLUSTERSTATE | ||
| rm /var/spool/slurm.state/clustername | ||
| CLUSTERSTATE | ||
| only_if { ::File.exist?('/var/spool/slurm.state/clustername') } | ||
|
||
| end | ||
Uh oh!
There was an error while loading. Please reload this page.