Open troyfitzwater opened 1 year ago
hey @troyfitzwater,
This action uses docker and AFAIK self-hosted runners can't run docker stuff, yet: https://github.com/actions/runner/issues/406
Might that be the issue?
Hmm, I'm not sure how to confirm if that's what the issue is.
Its running on a Linux VM that has Docker installed. I might be misunderstanding, but I thought this last bullet confirmed that it should be possible in this particular scenario: https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#requirements-for-self-hosted-runner-machines
Yeah, I get the same idea from that last bullet, too.
Looking at the output, it feels like an actual connectivity issue in the container. And you know, most of the time it is about DNS.
Can you try creating a container on the VM that runs the action and try to send a request from the container manually yourself? Something like this should work:
$ docker run --rm -it th0th/rancher-redeploy-workload:0.9.2 bash
# apk update && apk add curl
# curl <rancher_url>
Yeah, looks like a connectivity issue. Was unable to curl or ping Rancher. Running that container with --network="host" I can at least ping rancher, but I'm running into SSL issues when trying to curl it.
curl: (60) SSL certificate problem: unable to get local issuer certificate
So we've narrowed it down to a connectivity issue, but I'm not quite sure where to go from here. What are your thoughts?
Hmm, is it an issue only within this container? Or any container on that VM? Or maybe even the VM can't connect to the rancher?
Can you try to curl
directly from VM, without any container?
Can you please trying creating another container on the VM (with a different image), and try connecting from there?
$ docker run --rm -it ubuntu bash
# curl <rancher_url>
Looks like the VM itself can't connect to Rancher. I'm unable to curl
Rancher directly from the VM, and wasn't able to from other containers, either.
At this point, it looks like the issue isn't with this Action, so you could go ahead and close this, if you want. Although, any insight into what I should look into next would be much appreciated, because I would love to get this working :)
Let's figure it out together :)
First, make sure that DNS resolves correctly. Run this on the VM and your own computer, too. And compare the outputs.
$ dig <rancher_domain>
The outputs should be the same. If they are different, it might mean the DNS on the VM is misconfigured.
If the DNS checks, there might be a firewall issue. Is it possible that access to rancher instance is restricted to access from certain IP addresses?
My redeployment workload is hitting a timeout error when it gets to the Post step. Here's what I'm seeing in my logs:
This is on a self-hosted runner because I'm running Rancher on-prem. I can ping the host successfully without any timeouts.
Here's my config:
Let me know if I can provide any additional information.