Skip to content

Conversation

dreambeyondorange
Copy link
Contributor

The override_server_template function runs during bootstrapping to set the parameter needed for the OS specific config file. The setup action works locally since that action runs during local tests, but does not work during bootstrapping when the node attributes from the setup action are not present.

Description of changes

  • Describe what you're changing and why you're doing these changes.
  • Link to impacted open issues.

Tests

  • Tested nfs_headnode locally with kitchen

Checklist

  • Make sure you are pointing to the right branch and add a label in the PR title (i.e. 2.x vs 3.x)
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

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

…via override_server_template

The override_server_template function runs during bootstrapping to set the parameter needed for the OS specific config file.
The setup action works locally since that action runs during local tests, but does not work during bootstrapping when the
node attributes from the setup action are not present
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #2391 (bf58c7a) into release-3.7 (a4ce69b) will not change coverage.
The diff coverage is n/a.

❗ Current head bf58c7a differs from pull request most recent head 9e99bff. Consider uploading reports for the commit 9e99bff to get more accurate results

@@             Coverage Diff              @@
##           release-3.7    #2391   +/-   ##
============================================
  Coverage        70.34%   70.34%           
============================================
  Files               13       13           
  Lines             1851     1851           
============================================
  Hits              1302     1302           
  Misses             549      549           
Flag Coverage Δ
unittests 70.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

enrico-usai
enrico-usai previously approved these changes Aug 3, 2023

action_class do
def override_server_template
node.default['nfs']['config']['server_template'] = '/etc/nfs.conf.d/parallelcluster-nfs.conf'
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch!

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably the alternative was to move this override outside of the action class, to be "global".

@dreambeyondorange dreambeyondorange merged commit 6881d0f into aws:release-3.7 Aug 3, 2023
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.

2 participants