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

Add retry for ssh connection to EC2 instance #83

Open
ckunki opened this issue Nov 29, 2023 · 0 comments
Open

Add retry for ssh connection to EC2 instance #83

ckunki opened this issue Nov 29, 2023 · 0 comments
Labels
refactoring Code improvement without behavior change

Comments

@ckunki
Copy link
Contributor

ckunki commented Nov 29, 2023

Currently if EC2 instance has not completed startup ssh connection fails with

fatal: [ec2-3-70-126-165.eu-central-1.compute.amazonaws.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host ec2-3-70-126-165.eu-central-1.compute.amazonaws.com port 22: Connection timed out", "unreachable": true}
[09:14:25] ERROR edss-setup - Install dependencies failed. run_setup_ec2_and_install_dependencies.py:59

Additionally log message should be formatted differently to allow easier copy and paste without the reference to position in the source code.
Currently:

INFO edss-setup - You can now login to the ec2 machine with 'ssh -i /tmp/tmp9yasuz8a
run_setup_ec2_and_install_dependencies.py:62
[email protected]'

Proposal: Use Print instead of log

User needs to retry

Proposal:

  • Add retry mehcanism, see ITDE
@ckunki ckunki added the feature Product feature label Nov 29, 2023
@redcatbear redcatbear added refactoring Code improvement without behavior change and removed feature Product feature labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code improvement without behavior change
Projects
None yet
Development

No branches or pull requests

2 participants