Skip to content
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

Fix host selection bug for deprecated [runtime][<task>][remote]host syntax #4570

Merged
merged 5 commits into from
Jan 17, 2022

Conversation

MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Jan 6, 2022

These changes close #4569

Prevent Cylc from incorrectly falling back to localhost if a host specified by [runtime][<task>][remote]host is unreachable.

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg and conda-environment.yml.
  • Appropriate tests are included (functional).
  • Appropriate change log entry included.
  • No documentation update required.

Avoid selecting localhost if host specified using deprecated `[runtime][<task>][remote]host` can't be reached
@MetRonnie MetRonnie added bug Something is wrong :( intelligent-host-selection labels Jan 6, 2022
@MetRonnie MetRonnie added this to the cylc-8.0rc1 milestone Jan 6, 2022
@MetRonnie MetRonnie self-assigned this Jan 6, 2022
@@ -288,16 +288,18 @@ def submit_task_jobs(self, workflow, itasks, curve_auth,

# Get another platform, if task config platform is a group
use_next_platform_in_group = False
try:
platform = get_platform(
itask.tdef.rtconfig['platform'],
Copy link
Member Author

Choose a reason for hiding this comment

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

Problem was itask.tdef.rtconfig['platform'] is None so get_platform() fell back to the localhost platform

Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

  • Read code.
  • New test makes sense.
  • New test fails on master and passes on branch.

@MetRonnie MetRonnie changed the title Fix host selection bug for Cylc 7 [runtime][<task>][remote]host syntax Fix host selection bug for deprecated [runtime][<task>][remote]host syntax Jan 11, 2022
@oliver-sanders oliver-sanders merged commit 760b077 into cylc:master Jan 17, 2022
@MetRonnie MetRonnie deleted the host-select-bug branch January 17, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

platform: submits to localhost if remotehost not in known_hosts
3 participants