Skip to content

Commit

Permalink
Merge pull request #2269 from priti-parate/release_1.6
Browse files Browse the repository at this point in the history
fix for slurmctld service which is failed to start after remove node
  • Loading branch information
DeepikaKrishnaiah committed May 22, 2024
2 parents 5435bab + b04881c commit 3b030ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/roles/remove_node/remove_kube_node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
ansible.builtin.set_fact:
node_dict: "{{ node_dict | combine({item.item: {'admin_ip': item.query_result[0].admin_ip,
'kube_override_hostname': (item.query_result[0].service_tag | upper) if (item.query_result[0].service_tag | upper) in kubectl_output.stdout
else ((item.query_result[0].service_tag | lower ) if (item.query_result[0].service_tag | lower) in kubectl_output.stdout
else ((item.query_result[0].service_tag | lower) if (item.query_result[0].service_tag | lower) in kubectl_output.stdout
else (item.query_result[0].admin_ip if item.query_result[0].admin_ip in kubectl_output.stdout
else (item.query_result[0].hostname if item.query_result[0].hostname in kubectl_output.stdout
else (item.query_result[0].node if item.query_result[0].node in kubectl_output.stdout else '')))),
Expand Down
4 changes: 2 additions & 2 deletions utils/roles/remove_node/remove_slurm_node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
- name: Remove hostname from partition details of slurm.conf
ansible.builtin.replace:
path: '{{ conf_path }}'
regexp: '^(PartitionName=.*\s){{ node_hostname }}(\s.*)$'
replace: '\1\2'
regexp: '^(PartitionName=normal Nodes=.*?)({{ node_hostname }},|,{{ node_hostname }})(.*?)'
replace: '\1\3'
failed_when: false
delegate_to: "{{ groups['slurm_control_node'] | first }}"

Expand Down

0 comments on commit 3b030ad

Please sign in to comment.