doctl
doctl copied to clipboard
`doctl compute droplet create --wait` is not waiting long enough
Describe the Issue:
I am using GitHub workflows to provision new droplets. After creating the droplet and trying to SSH into it, I always got a connection refused' error. Trying to SSH into the newly created droplet on my local machine worked. Therefore, I thought it had to do with the GitHub environment. Turns out the --wait flag simply does not wait till the server is ready to accept a connection which I expected. It might be no bug but either clearly mention it in the documentation or change the --wait flag to test whether the droplet is ready to accept a connection. The workaround is to naively wait for X seconds after the droplet has been created.
Environment:
- digitalocean/[email protected]
- runs-on: ubuntu-latest