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

Runhouse ssh into local clusters #1012

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Runhouse ssh into local clusters #1012

merged 1 commit into from
Jul 17, 2024

Conversation

carolineechen
Copy link
Collaborator

No description provided.

Copy link
Collaborator Author

carolineechen commented Jul 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @carolineechen and the rest of your teammates on Graphite 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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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

Copy link
Collaborator Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh true good call

runhouse/main.py Outdated Show resolved Hide resolved
runhouse/main.py Outdated Show resolved Hide resolved
@carolineechen carolineechen merged commit 845e5c9 into main Jul 17, 2024
11 of 12 checks passed
@carolineechen carolineechen deleted the cc/ssh-local branch July 17, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants