-
Notifications
You must be signed in to change notification settings - Fork 109
[release-3.9][DFSM]Using .login_nodes_keys_sync_file to be used during Init and Update phase of the clusters #2677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-3.9 #2677 +/- ##
============================================
Coverage 76.48% 76.48%
============================================
Files 22 22
Lines 2220 2220
============================================
Hits 1698 1698
Misses 522 522
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
6581944 to
4a516c2
Compare
| default['cluster']['scheduler_queue_name'] = nil | ||
|
|
||
| default['cluster']['head_node_home_path'] = '/home' | ||
| default['cluster']['shared_dir_compute'] = node['cluster']['shared_dir'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4a516c2 to
cfaa6b3
Compare
| code "[[ \"$(cat #{path})\" == \"#{cluster_config_version}\" ]] || exit 1" | ||
| Chef::Log.info("Wait for synchronization file at #{path} to exist") | ||
| file path do | ||
| action :touch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the touch action expected to fail if the file does not exist?
Asking because the Linux touch command succeeds even if file do not exist.
If it fails on non existance then we are good
f3e162d to
3a36bf7
Compare
| bash "Wait for synchronization file at #{path} to be written for version #{cluster_config_version}" do | ||
| code "[[ \"$(cat #{path})\" == \"#{cluster_config_version}\" ]] || exit 1" | ||
| bash "Wait for synchronization file at #{path} to exist" do | ||
| code "[[ -e #{path} ]]; echo $? || exit 1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Can we do:
code "[[ -e #{path} ]] || exit 1"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
…date phase of the clusters
3a36bf7 to
d4826a2
Compare
Description of changes
[DFSM]Using .login_nodes_keys_sync_file to be used during Init and Update phase of the clusters
Bug:
Introduced in #2671 and #2672
The file we create
/opt/parallelcluster/shared_login_nodes/.login_nodes_keys_sync_fileas part of sync during cluster never gets updated when we Stop-Start the Cluster.This file needs to be updated or any new Login Nodes which are launched after update of the Cluster, goes through the Init phase and wait for the content to be the latest.
Tests
develop #2678
References
Checklist
developadd the branch name as prefix in the PR title (e.g.[release-3.6]).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.