Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Pre-creation network access validation #172

Open
kramos opened this issue Dec 9, 2016 · 8 comments
Open

Pre-creation network access validation #172

kramos opened this issue Dec 9, 2016 · 8 comments

Comments

@kramos
Copy link
Contributor

kramos commented Dec 9, 2016

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.

@RobertNorthard
Copy link
Contributor

RobertNorthard commented Dec 9, 2016

@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 ).

@kramos
Copy link
Contributor Author

kramos commented Dec 9, 2016

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.

@luismsousa
Copy link
Contributor

luismsousa commented Dec 10, 2016

@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?

@ghost
Copy link

ghost commented Dec 20, 2016

@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?

@luismsousa
Copy link
Contributor

@chad-mott can you reach port 2376 on the target instance from the host you're running the command from?

@ghost
Copy link

ghost commented Dec 20, 2016 via email

@ghost
Copy link

ghost commented Dec 20, 2016

also, not in the readme, but ./adop compose -i localhost init from a running instance works

@chadmott
Copy link

FYI, this works now using docker machine v0.9.0-rc2
To validate, I downgraded back to 0.8.2, and it failed again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants