cloudfoundry-incubator / kubecf

Cloud Foundry on Kubernetes
Apache License 2.0
115 stars 62 forks source link

Eirini on K3s #1691

Open cosmo83 opened 3 years ago

cosmo83 commented 3 years ago

Describe the bug Not able to pull the image from BITS Servie

To Reproduce Install Kubecf with eirini enabled on K3S (or any non-kind kubernetes cluster)

Expected behavior When i do a cf-push, eirini should be able to pull the image and run the same.

Environment

I have the eirini enabled in as : features: eirini: enabled: true

The following is the error iam getting

opensuse@kubecf-master:~/imp> kubectl get events -n eirini LAST SEEN TYPE REASON OBJECT MESSAGE 38m Normal BackOff pod/cf-nodejs-infra-828661607d-0 Back-off pulling image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11" 32m Warning Failed pod/cf-nodejs-infra-828661607d-0 Error: ImagePullBackOff 30m Normal Pulling pod/cf-nodejs-infra-828661607d-0 Pulling image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11" 30m Warning Failed pod/cf-nodejs-infra-828661607d-0 Failed to pull image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11": rpc error: code = Unknown desc = failed to pull and unpack image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11": failed to resolve reference "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11": failed to do request: Head "http://127.0.0.1:31666/v2/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84/manifests/6667c518fcc65682bcdc720461d4276514b27c11": dial tcp 127.0.0.1:31666: connect: no route to host 30m Warning Failed pod/cf-nodejs-infra-828661607d-0 Error: ErrImagePull 30m Warning Failed pod/cf-nodejs-infra-828661607d-0 Error: ImagePullBackOff 27m Normal BackOff pod/cf-nodejs-infra-828661607d-0 Back-off pulling image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11" 21m Normal Pulling pod/cf-nodejs-infra-828661607d-0 Pulling image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11" 20m Warning Failed pod/cf-nodejs-infra-828661607d-0 Failed to pull image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11": rpc error: code = Unknown desc = failed to pull and unpack image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11": failed to resolve reference "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11": failed to do request: Head "http://127.0.0.1:31666/v2/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84/manifests/6667c518fcc65682bcdc720461d4276514b27c11": dial tcp 127.0.0.1:31666: connect: no route to host 20m Warning Failed pod/cf-nodejs-infra-828661607d-0 Error: ErrImagePull 17m Warning Failed pod/cf-nodejs-infra-828661607d-0 Error: ImagePullBackOff 2m28s Normal BackOff pod/cf-nodejs-infra-828661607d-0 Back-off pulling image "127.0.0.1:31666/cloudfoundry/a29481f1-46b8-4c6a-a836-bb9308a2ed84:6667c518fcc65682bcdc720461d4276514b27c11"

opensuse@kubecf-master:~/imp> kubectl get pods -A | grep bits kubecf bits-5df96ff556-d86hf 1/1 Running 0 10h

cosmo83 commented 3 years ago

Can anyone help me .. I have reimplementedm evverything again. Even added the cert into system , but still getting the following error whn iam doing a cf push. Am i missing something ?

28s Warning Failed pod/cf-nodejs-infra-077fe681a3-0 Failed to pull image "127.0.0.1:31666/cloudfoundry/fa11eddc-4343-4b92-b3d7-5cb51d1736de:9551daf4d47dd0beff98dfe0ae153a390203d5d1": rpc error: code = Unknown desc = failed to pull and unpack image "127.0.0.1:31666/cloudfoundry/fa11eddc-4343-4b92-b3d7-5cb51d1736de:9551daf4d47dd0beff98dfe0ae153a390203d5d1": failed to resolve reference "127.0.0.1:31666/cloudfoundry/fa11eddc-4343-4b92-b3d7-5cb51d1736de:9551daf4d47dd0beff98dfe0ae153a390203d5d1": unexpected status code [manifests 9551daf4d47dd0beff98dfe0ae153a390203d5d1]: 400 Bad Request 28s Warning Failed pod/cf-nodejs-infra-077fe681a3-0 Error: ErrImagePull 3s Warning Failed pod/cf-nodejs-infra-077fe681a3-0 Error: ImagePullBackOff 3s Normal BackOff pod/cf-nodejs-infra-077fe681a3-0 Back-off pulling image "127.0.0.1:31666/cloudfoundry/fa11eddc-4343-4b92-b3d7-5cb51d1736de:9551daf4d47dd0beff98dfe0ae153a390203d5d1"