-
Notifications
You must be signed in to change notification settings - Fork 37
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
Runhouse ssh into local clusters #1012
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @carolineechen and the rest of your teammates on Graphite |
address=resource_handle.head_ip, | ||
ssh_user=resource_handle.ssh_user or "ubuntu", | ||
ssh_port=resource_handle.stable_ssh_ports[0] or DEFAULT_SSH_PORT, | ||
ssh_private_key=OnDemandCluster.DEFAULT_KEYFILE, |
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.
does this support relative key paths?
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.
both relative and absolute seem to work
if not c.is_shared: | ||
if up: | ||
try: | ||
c.up_if_not() |
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.
c.up_if_not() | |
c = c.up_if_not() |
might be an edge case, but if the cluster isn't actually up and we do bring it back, we don't want to be storing stale IPs, which returning the updated cluster object prevents
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.
it looks like up_if_not
and up
does directly update the fields of the original cluster object, even if we don't reassign it with the new returned object
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.
oh true good call
ae7c983
to
91072f7
Compare
91072f7
to
b1b5fda
Compare
No description provided.