-
Notifications
You must be signed in to change notification settings - Fork 104
Retrying remote-init on failure from restart #7379
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
base: 8.6.x
Are you sure you want to change the base?
Changes from 4 commits
9702055
1a7638f
6c50e04
f46f5d0
55b1537
27cd576
9764301
ccbefa3
700d50e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -921,20 +921,27 @@ def manage_remote_init(self): | |
|
|
||
| * Called within the main loop. | ||
| * Starts file installation when Remote init is complete. | ||
| * Removes complete installations or installations encountering SSH | ||
| error (remote init will take place on next job submission). | ||
| * Retries remote init/file install on SSH failure (255). | ||
| * Removes complete or fatally failed installations. | ||
| * The bad_hosts logic already handles unreachable hosts. | ||
| """ | ||
| for install_target, platform in list(self.incomplete_ri_map.items()): | ||
| status = self.task_job_mgr.task_remote_mgr.remote_init_map[ | ||
| install_target] | ||
| remote_mgr = self.task_job_mgr.task_remote_mgr | ||
| status = remote_mgr.remote_init_map[install_target] | ||
| if status == REMOTE_INIT_DONE: | ||
| self.task_job_mgr.task_remote_mgr.file_install(platform) | ||
| if status in [REMOTE_FILE_INSTALL_DONE, | ||
| REMOTE_INIT_255, | ||
| REMOTE_FILE_INSTALL_255, | ||
| REMOTE_INIT_FAILED, | ||
| REMOTE_FILE_INSTALL_FAILED]: | ||
| # Remove install target | ||
| remote_mgr.file_install(platform) | ||
| elif status == REMOTE_INIT_255: | ||
| # Remote init failed due to unreachable host, retry. | ||
| del remote_mgr.remote_init_map[install_target] | ||
| remote_mgr.remote_init(platform) | ||
| elif status == REMOTE_FILE_INSTALL_255: | ||
| # File install failed due to unreachable host, retry. | ||
| del remote_mgr.remote_init_map[install_target] | ||
| remote_mgr.file_install(platform) | ||
|
samuel-denton marked this conversation as resolved.
Comment on lines
+933
to
+938
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have gotta feeling that deleting the I.e, For Do we need to delete the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure, ill have a play.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you are correct. |
||
| elif status in [REMOTE_FILE_INSTALL_DONE, | ||
| REMOTE_INIT_FAILED, | ||
| REMOTE_FILE_INSTALL_FAILED]: | ||
| # Complete or fatally failed, remove install target. | ||
| self.incomplete_ri_map.pop(install_target) | ||
|
|
||
| def _load_task_run_times(self, row_idx, row): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.