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

[easy-ssh] exit when targeted instance unreachable #563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KeitaW
Copy link
Collaborator

@KeitaW KeitaW commented Feb 21, 2025

This PR proposes easy-ssh.sh script to exit with error when targeted instance is unreachable.

Before:

❯ ./easy-ssh.sh -c controller-machine --region us-east-2 "ml-cluster-p5en"

=================================================

==== 🚀 HyperPod Cluster Easy SSH Script! 🚀 ====


=================================================

An error occurred (ResourceNotFound) when calling the DescribeCluster operation: Cluster with name ml-cluster-p5en not found

An error occurred (ResourceNotFound) when calling the ListClusterNodes operation: Cluster with name ml-cluster-p5en not found
Cluster id: 
Instance id: 
Node Group: controller-machine
Would you like to add ml-cluster-p5en to  ~/.ssh/config (yes/no)?
> 

After:

 ./easy-ssh.sh -c controller-machine --region us-east-2 "ml-cluster-p5en"

=================================================

==== 🚀 HyperPod Cluster Easy SSH Script! 🚀 ====


=================================================

An error occurred (ResourceNotFound) when calling the DescribeCluster operation: Cluster with name ml-cluster-p5en not found

An error occurred (ResourceNotFound) when calling the ListClusterNodes operation: Cluster with name ml-cluster-p5en not found
Error: Cluster or instance not found for the specified cluster name (ml-cluster-p5en). Exiting.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@KeitaW KeitaW requested a review from amanshanbhag February 21, 2025 00:46
@KeitaW KeitaW self-assigned this Feb 21, 2025
@KeitaW KeitaW changed the title exit when targeted instance unreachable [easy-ssh] exit when targeted instance unreachable Feb 21, 2025
@KeitaW KeitaW requested a review from nghtm February 21, 2025 00:54
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.

1 participant