Skip to content

Commit 1cf7dfb

Browse files
committed
[Test] Skip CloudWatch config on AL2023 Docker containers to prevent CloudWatch agent configuration errors on AL2023 Docker environments used for testing.
This is also aligned with the existing condition to skip the same configurations for RHEL on Dopcker for testing.
1 parent 48044c2 commit 1cf7dfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbooks/aws-parallelcluster-environment/resources/cloudwatch/partial/_cloudwatch_common.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def package_path
161161
'CW_LOGS_CONFIGS_PATH' => config_data_path
162162
)
163163
command "#{cookbook_virtualenv_path}/bin/python #{validator_script_path}"
164-
end unless redhat_on_docker?
164+
end unless redhat_on_docker? || alinux2023_on_docker?
165165

166166
CW_AGENT_CONFIG_JSON = '/etc/parallelcluster/amazon-cloudwatch-agent/amazon-cloudwatch-agent.json'
167167

@@ -179,7 +179,7 @@ def package_path
179179
command "#{cookbook_virtualenv_path}/bin/python #{config_script_path} "\
180180
"--platform #{node['platform']} --config $CONFIG_DATA_PATH --log-group $LOG_GROUP_NAME "\
181181
"--scheduler $SCHEDULER --node-role $NODE_ROLE"
182-
end unless redhat_on_docker?
182+
end unless redhat_on_docker? || alinux2023_on_docker?
183183

184184
execute "cloudwatch-agent-start" do
185185
user 'root'

0 commit comments

Comments
 (0)