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

BUG: 10.88.0.1:5000: connect: connection refused breaking airgap deployment #10

Closed
usrbinkat opened this issue Mar 19, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@usrbinkat
Copy link
Contributor

usrbinkat commented Mar 19, 2021

Nginx unable to pull from cloudctl registry:

TASK [nginx :   TPDK | CloudCtl | RedHat | nginx | cmd:shell.podman.pull | Podman pull image nginx] *******************************************************************************************************************
Friday 19 March 2021  21:37:42 +0000 (0:00:01.903)       0:02:41.642 ********** 
fatal: [pod]: FAILED! => {"changed": true, "cmd": "podman pull quay.io/cloudctl/nginx:latest", "delta": "0:01:00.089388", "end": "2021-03-19 21:38:44.504461", "msg": "non-zero return code", "rc": 125, "start": "2021-03-19 21:37:44.415073", "stderr": "Trying to pull quay.io/cloudctl/nginx:latest...\n  Get \"https://quay.io/v2/\": dial tcp 54.156.10.58:443: i/o timeout\nError: error pulling image \"quay.io/cloudctl/nginx:latest\": unable to pull quay.io/cloudctl/nginx:latest: unable to pull image: Error initializing source docker://quay.io/cloudctl/nginx:latest: (Mirrors also failed: [10.88.0.1:5000/cloudctl/nginx:latest: error pinging docker registry 10.88.0.1:5000: Get \"http://10.88.0.1:5000/v2/\": dial tcp 10.88.0.1:5000: connect: connection refused]): quay.io/cloudctl/nginx:latest: error pinging docker registry quay.io: Get \"https://quay.io/v2/\": dial tcp 54.156.10.58:443: i/o timeout", "stderr_lines": ["Trying to pull quay.io/cloudctl/nginx:latest...", "  Get \"https://quay.io/v2/\": dial tcp 54.156.10.58:443: i/o timeout", "Error: error pulling image \"quay.io/cloudctl/nginx:latest\": unable to pull quay.io/cloudctl/nginx:latest: unable to pull image: Error initializing source docker://quay.io/cloudctl/nginx:latest: (Mirrors also failed: [10.88.0.1:5000/cloudctl/nginx:latest: error pinging docker registry 10.88.0.1:5000: Get \"http://10.88.0.1:5000/v2/\": dial tcp 10.88.0.1:5000: connect: connection refused]): quay.io/cloudctl/nginx:latest: error pinging docker registry quay.io: Get \"https://quay.io/v2/\": dial tcp 54.156.10.58:443: i/o timeout"], "stdout": "", "stdout_lines": []}

workaround:

podman login -u cloudctl -p cloudctl --tls-verify=false 10.0.1.73:5000
podman pull 10.0.1.73:5000/cloudctl/nginx:latest --tls-verify=false
@usrbinkat usrbinkat self-assigned this Mar 19, 2021
@usrbinkat usrbinkat added the bug Something isn't working label Mar 19, 2021
@jlgrock
Copy link

jlgrock commented Mar 20, 2021

Just to clarify, in case others come across this "10.0.1.73" should be replaced with your registry IP address

@jlgrock
Copy link

jlgrock commented Mar 20, 2021

As a note, I also had some issues with SSL certs. I had to update the registries to be insecure. I did the following in the offer container:
vi /etc/containers/registries.conf

Then, I did the commands you mentioned, then I re-executed the
cd /root/platform/iac/sparta && ./site.yml

The downside is that the process of running site.yml logs me out and it will fail on a pull again.

@usrbinkat usrbinkat reopened this Mar 21, 2021
@usrbinkat
Copy link
Contributor Author

usrbinkat commented Mar 21, 2021

@jlgrock join the codectl.slack.com cloudctl channel and we'll polish any remaining rough edges. The issue should have been cleaned up to be zero touch functional with the patch 8c3562a

usrbinkat added a commit to usrbinkat/codectl.github.io that referenced this issue Mar 22, 2021
BUG patch released for CloudCtl/cloudctl#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants