-
Notifications
You must be signed in to change notification settings - Fork 314
Add integration test for scontrol update nodelist sorting bug #4785
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
Add integration test for scontrol update nodelist sorting bug #4785
Conversation
Slurm 22.05 (up to 22.05.7) sorts the nodes in nodelist provided as nodename field to the `scontrol update` command. If `scontrol update nodename=nodelist nodeaddr=nodeaddrlist` is given, this causes a mismatch between the nodenames and the nodeaddrs because the order of nodeaddrlist is not changed to match the reordering of nodelist. The bug above will be fixed in Slurm 22.05.8 and later. The added test checks that the sorting of the nodelist does not happen. Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
41a0d83 to
c3b4c55
Compare
Codecov Report
@@ Coverage Diff @@
## release-3.4 #4785 +/- ##
============================================
Coverage 89.04% 89.04%
============================================
Files 163 163
Lines 14369 14369
============================================
Hits 12795 12795
Misses 1574 1574
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
| assert_that(slurm_commands.get_node_attribute(nodes_in_queue1[0], "NodeAddr")).is_equal_to(nodes_in_queue1[0]) | ||
| assert_that(slurm_commands.get_node_attribute(nodes_in_queue2[0], "NodeAddr")).is_equal_to(nodes_in_queue2[0]) | ||
|
|
||
| remote_command_executor.run_remote_command("sudo systemctl start supervisord") |
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.
if this isn't needed I would remove this
Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
Add integration test for scontrol update nodelist sorting bug Slurm 22.05 (up to 22.05.7) sorts the nodes in nodelist provided as nodename field to the `scontrol update` command. If `scontrol update nodename=nodelist nodeaddr=nodeaddrlist` is given, this causes a mismatch between the nodenames and the nodeaddrs because the order of nodeaddrlist is not changed to match the reordering of nodelist. The bug above will be fixed in Slurm 22.05.8 and later. Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
Add integration test for scontrol update nodelist sorting bug Slurm 22.05 (up to 22.05.7) sorts the nodes in nodelist provided as nodename field to the `scontrol update` command. If `scontrol update nodename=nodelist nodeaddr=nodeaddrlist` is given, this causes a mismatch between the nodenames and the nodeaddrs because the order of nodeaddrlist is not changed to match the reordering of nodelist. The bug above will be fixed in Slurm 22.05.8 and later. Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
Description of changes
Tests
scontrol updatenodelist sorting bug (see Apply Slurm patch to fix scontrol update nodelist sorting aws-parallelcluster-cookbook#1638).References
scontrol updatenodelist sorting bug: Apply Slurm patch to fix scontrol update nodelist sorting aws-parallelcluster-cookbook#1638Checklist
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.