adop-docker-compose
adop-docker-compose copied to clipboard
Pre-creation network access validation
I've heard about some folk having a bad experience spinning up ADOP from a location with various ports blocked. Has anyone experienced this and if so what failed and when? Obviously if we can move the failures earlier in provisioning people will be happier.
@kramos I also find ports to be the biggest problem.
- Docker daemon port (TCP 2376) is often blocked - fails at docker-compose stage.
- SSH port blocked - fails at docker installation stage after docker-machine has created an instance.
This is unrelated to the ADOP provisioning process, but features of the release note are also sometimes blocked (see Accenture#nginx-28 ).
How about something like this: curl portquiz.net:2376 || echo ERROR: cannot connect outbound on port 2376 so won’t be able to access Docker. && exit 1 Only snag is if portquiz.net is down or blocked you could get a false negative.
@RobertNorthard @kramos
Bash has the capability to access TCP and UDP ports...
as per my raspberry pi:
pi@raspberrypi:~ $ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_6.7p1 Raspbian-5+deb8u3
^C
So we can potentially use this to see if we get a response from said ports right?
@kramos I'm facing the same issue, both when I execute from my mac and when I execute from an EC2 instance. Mac:
Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "54.174.11.10:2376": dial tcp 54.174.11.10:2376: getsockopt: connection refused
EC2, has a slightly different error (connection reset by peer)
Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "54.211.158.163:2376": read tcp 172.31.19.184:39556->54.211.158.163:2376: read: connection reset by peer
Both machines have said port open... thoughts?
@chad-mott can you reach port 2376 on the target instance from the host you're running the command from?
Yes, and after some extensive troubleshooting, still having the same error. I suspect it has to do with updating docker-machine to the latest version, though I'm not certain. I am using the very latest of docker, docker-compose, and docker-machine.
also, not in the readme, but ./adop compose -i localhost init from a running instance works
FYI, this works now using docker machine v0.9.0-rc2 To validate, I downgraded back to 0.8.2, and it failed again.