Skip to content

Conversation

@hgreebe
Copy link
Contributor

@hgreebe hgreebe commented Aug 14, 2024

Description of changes

  • Set default node package for build image command
  • So that build-image command can be run without having to specify custom packages in ADC

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hgreebe hgreebe requested review from a team as code owners August 14, 2024 16:33
Comment on lines -31 to -33
if aws_region.start_with?("us-iso") && !node['cluster']['custom_awsbatchcli_package'].empty?
node.default['cluster']['custom_awsbatchcli_package'] = "#{node['cluster']['artifacts_s3_url']}/dependencies/awsbatch/aws-parallelcluster.tgz"
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is only removing the code enough? In the below code, it will try to install from pip and will fail, right

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I know we dont even support Batch scheduler in ADC

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it skips the whole install part for aws batch in ADC due to this line: return if aws_region.start_with?("us-iso")

node.default['cluster']['custom_node_package'] = "#{node['cluster']['artifacts_s3_url']}/dependencies/node/aws-parallelcluster-node.tgz"
node_package = "aws-parallelcluster-node-#{node['cluster']['parallelcluster-node-version']}.tgz"

node.default['cluster']['custom_node_package'] = "#{node['cluster']['s3_url']}/parallelcluster/#{node['cluster']['parallelcluster-node-version']}/node/#{node_package}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we making changes in the S3 location to upload default Node package in this location. As I dont see node package in s3 for other regions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when we release in adc, we will also have to release a node and cookbook package so that they can use those for build image. I think we have a similar path where we have been publish the cookbook in s3 in commercial.

@hgreebe hgreebe enabled auto-merge (squash) August 14, 2024 17:24
@hgreebe hgreebe merged commit 854261b into aws:release-3.10 Aug 14, 2024
hgreebe added a commit to hgreebe/aws-parallelcluster-cookbook that referenced this pull request Sep 5, 2024
hgreebe added a commit to hgreebe/aws-parallelcluster-cookbook that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants