Closed citananda closed 4 years ago
So after some investigations, here are my conclusions.
step-build-and-push error
because the pod can't connect to buildkit pod (transport: error while dialing: dial tcp 10.43.144.230:8080: i/o timeout)telnet 10.43.189.55 8080
Trying 10.43.189.55...
Connected to 10.43.189.55.
Escape character is '^]'.
linkerd-proxy-injector-888fbb9f6-ln885 proxy-injector time="2020-04-18T07:33:55Z" level=warning msg="couldn't retrieve parent object my-project-cicd-taskrun-my-app-cicd-v0qt9fd-62004-1ab0c; error: rpc error: code = Unimplemented desc = unimplemented resource type: taskrun"
linkerd-proxy-injector-888fbb9f6-ln885 proxy-injector time="2020-04-18T07:33:55Z" level=info msg="skipped pod/my-app-cicd-v0qt9fd-62004-1ab0c-pod-53fd4c: neither the namespace nor the pod have the annotation \"linkerd.io/inject:enabled\""
I tried to add the annotation "linkerd.io/inject:enabled" on the namespace my-project-cicd without success, I got the same result.
3.2. It can be a connectivity problem on the buildkit side
I tried to telnet 10.43.189.55 8080
from a pod of another namespace, but it is failing
At that point, I am lost because I don't know exactly what is the purpose of each part of Rio pods and Rancher system.
Can someone guide me please ?
By adding the annotation linkerd.io/inject: enabled
to the namespace my-project-cicd, I have got a different result:
+ my-project-cicd my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d › linkerd-proxy
+ my-project-cicd my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d › step-build-and-push
+ my-project-cicd my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d › step-git-source-source-9hvjn
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy time="2020-04-18T08:14:23Z" level=info msg="running version stable-2.6.1"
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002185s] linkerd2_proxy Admin interface on 0.0.0.0:4191
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002206s] linkerd2_proxy Inbound interface on 0.0.0.0:4143
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002211s] linkerd2_proxy Outbound interface on 127.0.0.1:4140
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002214s] linkerd2_proxy Tap interface on 0.0.0.0:4190
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002217s] linkerd2_proxy Local identity is my-app-cicd-v0mhrdm-62004-1ab0c.my-project-cicd.serviceaccount.identity.linkerd.cluster.local
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002221s] linkerd2_proxy Identity verified via linkerd-identity.linkerd.svc.cluster.local:8080 (linkerd-identity.linkerd.serviceaccount.identity.linkerd.cluster.local)
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy INFO [ 0.002225s] linkerd2_proxy Destinations resolved via linkerd-dst.linkerd.svc.cluster.local:8086 (linkerd-destination.linkerd.serviceaccount.identity.linkerd.cluster.local)
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy ERR! [ 3.003656s] linkerd2_proxy_identity::certify Failed to certify identity: grpc-status: Unknown, grpc-message: "the request could not be dispatched in a timely fashion"
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy ERR! [ 16.005634s] linkerd2_proxy_identity::certify Failed to certify identity: grpc-status: Unknown, grpc-message: "the request could not be dispatched in a timely fashion"
my-app-cicd-v0mhrdm-62004-1ab0c-pod-83cc1d linkerd-proxy ERR! [ 29.007782s] linkerd2_proxy_identity::certify Failed to certify identity: grpc-status: Unknown, grpc-message: "the request could not be dispatched in a timely fashion"
So I uninstalled, checked that no ressource was missed, reinstalled with the last Rio version (v0.7.1-rc1).
Everything worked find, no problem during install, all pods are on.
BUT the command rio run -p 80:8080 https://github.com/rancher/rio-demo
returns
tender-raman https://tender-raman-v0-default.5g85ga.on-rio.io:31737 80:8080 1 100% 6 minutes ago tender-raman-v0xjrg2: not ready; ImageReady: "step-build-and-push" exited with code 1 (image: "docker-pullable://moby/buildkit@sha256:0cf100454dd25079ce79b7417add2ae7ba55c1d4dfa512fd26e7259eac696732"); for logs run: kubectl -n default logs tender-raman-v0xjrg2-ee709-4e40c-pod-61998b -c step-build-and-push(Failed); tender-raman-v0xjrg2 build failed: "step-build-and-push" exited with code 1 (image: "docker-pullable://moby/buildkit@sha256:0cf100454dd25079ce79b7417add2ae7ba55c1d4dfa512fd26e7259eac696732"); for logs run: kubectl -n default logs tender-raman-v0xjrg2-ee709-4e40c-pod-61998b -c step-build-and-push
So I am stucked on step-build-and-push with the error kubectl -n default logs tender-raman-v0xjrg2-ee709-4e40c-pod-61998b -c step-build-and-push
:
error: failed to get status: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: error while dialing: dial tcp 10.43.199.245:8080: i/o timeout"
kubectl get services --all-namespaces | grep 10.43.199.245
returns:
telnet 10.43.199.245 8080
returns
Trying 10.43.199.245...
Connected to 10.43.199.245.
Escape character is '^]'.
Please help me to understand what is going on
Finally, I find the solution to develop my own CICD scripts, waiting for a stable release. Anyway, thanks for your help
Describe the bug The image is not building and I got the message
The ip 10.43.144.230:8080 is Buildkit, and from the node, I can telnet it
telnet 10.43.98.4 8080
To Reproduce I am not able to reply to that question. My cluster was working fine, then I observe that all linkerd pods were not working anymore (details here: https://github.com/rancher/rio/issues/1028 and https://github.com/rancher/rio/issues/1029) so I decided to uninstall and reinstall rio. It worked fine and now all containers are ok.
Expected behavior Image should be build and push to registry. It was working before I uninstall and reinstall
Kubernetes version & type (GKE, on-prem):
kubectl version
Type: Rio version:
rio info
Additional context
kubectl get service --all-namespaces
output: