From 5e809d3c6092131eed5e2ed21bedb2d756d770ff Mon Sep 17 00:00:00 2001 From: Himani Anil Deshpande Date: Wed, 26 Feb 2025 14:20:36 -0500 Subject: [PATCH] Allow overriding of node package only on HeadNode during an Update --- CHANGELOG.md | 2 +- .../recipes/config/update_parallelcluster_node.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecc904e311..89433b3ddf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste **BUG FIXES** - Remove usage of cfn-init for compute node bootstrapping to reduce node scale up time. - +- Fix the execution of overriding aws-parallelcluster-node package only on the head node during update. 3.12.0 ------ diff --git a/cookbooks/aws-parallelcluster-computefleet/recipes/config/update_parallelcluster_node.rb b/cookbooks/aws-parallelcluster-computefleet/recipes/config/update_parallelcluster_node.rb index 463022fc7d..e00f51455b 100644 --- a/cookbooks/aws-parallelcluster-computefleet/recipes/config/update_parallelcluster_node.rb +++ b/cookbooks/aws-parallelcluster-computefleet/recipes/config/update_parallelcluster_node.rb @@ -17,6 +17,8 @@ # REMINDER: the update recipe runs only on the head node and the only supervisord daemon provided by the # aws-parallelcluster-node package on the head node is clustermgtd. Therefore, only this daemon is restarted. +return unless node['cluster']['node_type'] == 'HeadNode' + execute 'stop clustermgtd' do command "#{cookbook_virtualenv_path}/bin/supervisorctl stop clustermgtd" end