Pub.C. wait_for_ssh fix code after system check loop #23159
Draft
+19
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR's primary scope, in sync with the PR 23141, is to address ssh
pubkey issue
, fixing some points, improving the routines to address eventual errors detected during the elaboration and adding ssh debugging.The basic points here managed in
wait_for_ssh
are:a) exclude user’s known_hosts when missing;
b) merge exit_code and exit_ssh results, for the final check;
c) add ssh debugging on error;
d) fix successful result for wait_stop case too;
e) simplify in last record_info the ‘result’ ok/fail.
More VRs coming
~~
NOTE: exit error in L491 is for testing purpose and will be removed soon.