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

Failing at the network step #670

Open
adamcooper1386 opened this issue May 17, 2021 · 1 comment
Open

Failing at the network step #670

adamcooper1386 opened this issue May 17, 2021 · 1 comment

Comments

@adamcooper1386
Copy link

Not sure this is the right place to put this, as I doubt it is an issue with the cf_runner, but I can't seem to get past the network test step. I ran the verbose and this is the log. I don't understand what is happening. Kubectl works using my .kube/config. The kubernetes host is correct, and I've checked the firewall rule on the master node to allow all egress traffic.

`adam$ codefresh runner init --verbose
Previous installation state:
✘ run cluster acceptance tests
◼ generate new agent name
◼ create new agent
◼ install new agent
◼ generate new runtime name
◼ create new runtime
◼ update runtime environment images with docker-registry url
◼ update runtime environment with env vars and resources
◼ set new runtime as default
◼ add cluster integration
◼ install runtime
◼ install app-proxy
◼ update runtime environment app proxy ip
◼ update agent with new runtime
◼ attach runtime to agent
◼ install cluster monitoring
◼ generate helm value files
◼ create test pipeline
◼ execute test pipeline
? Detected previous incomplete installation, do you want to resume this installation? Yes

Installation options summary:
1. Kubernetes Context: kubernetes-admin@kubernetes
2. Kubernetes Namespace: codefresh
3. Set this as default account runtime-environment: true
4. Execute demo pipeline after install: true
5. HTTP proxy: none
6. HTTPS proxy: none
7. No proxy: none

executing step: run cluster acceptance tests
Path to kubeconfig not set, using:
Using agent's token
Testing requirements
Running acceptance tests
Running acceptance tests
Running acceptance tests
Running acceptance tests
Skipping parsing, pattern does not match ..network-tester.yaml - role-binding.engine.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - role.re.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - secret.dind-volume-provisioner.vp.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - service-account.app-proxy.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - service-account.engine.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - cron-job.dind-volume-cleanup.vp.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - daemonset.dind-lv-monitor.vp.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - deployment.monitor.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - service-account.re.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - venonaconf.secret.venona.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - cluster-role-binding.dind-volume-provisioner.vp.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - deployment.app-proxy.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - rolebinding.monitor.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - codefresh-certs-server-secret.re.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - dind-daemon-conf.re.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - storageclass.dind-volume-provisioner.vp.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - secret.venona.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - dind-headless-service.re.yaml
parsing template pod.network-tester.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - role.engine.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - cluster-role-binding.venona.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - deployment.dind-volume-provisioner.vp.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - secret.runtime-attach.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - service.monitor.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - ingress.app-proxy.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - role-binding.re.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - rollback-serviceaccount.monitor.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - cluster-role.app-proxy.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - deployment.venona.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - service.app-proxy.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - rollback-role-binding.monitor.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - service-account.dind-volume-provisioner.vp.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - service-account.monitor.yaml
Skipping parsing, pattern does not match ..network-tester.yaml - cluster-role-binding.app-proxy.yaml
Skipping parsing, pattern does not match .
.network-tester.yaml - cluster-role.dind-volume-provisioner.vp.yaml
Skipping parsing, pattern does not match .*.network-tester.yaml - role.monitor.yaml
Deserializing template pod.network-tester.yaml apiVersion: v1
kind: Pod
metadata:
name: cf-venona-network-tester
namespace: codefresh
labels:
app: runner
version: 1.6.5
spec:
containers:

  • name: cf-venona-network-tester
    image: quay.io/codefresh/cf-venona-network-tester:latest
    imagePullPolicy: Always
    restartPolicy: Never
    resources:
    limits:
    cpu: 400m
    memory: 500Mi
    requests:
    cpu: 200m
    memory: 300Mi
    env:
    • name: KUBERNETES_HOST
      value: "https://144.202.125.224:6443"
    • name: URLS
      value: "https://g.codefresh.io,quay.io,https://codefresh-prod-public-builds-1.firebaseio.com"
    • name: DEBUG
      value: '1'
    • name: IN_CLUSTER
      value: '1'
      deserializing template success pod.network-tester.yaml group=
      Pod "cf-venona-network-tester" created
      Running network tests...
      Waiting for network tester to finish
      Network tester pod: running
      Waiting for network tester to finish
      Network tester pod: running
      Waiting for network tester to finish
      Network tester pod: running
      Waiting for network tester to finish
      Network tester pod: running
      Waiting for network tester to finish
      Network tester pod: running
      Waiting for network tester to finish
      Network tester pod: running
      Waiting for network tester to finish
      Network tester pod: terminated
      testing: https://g.codefresh.io
      curl: (6) Could not resolve host: g.codefresh.io
      can't reach: https://g.codefresh.io
      testing: quay.io
      curl: (6) Could not resolve host: quay.io
      can't reach: quay.io
      testing: https://codefresh-prod-public-builds-1.firebaseio.com
      curl: (6) Could not resolve host: codefresh-prod-public-builds-1.firebaseio.com
      can't reach: https://codefresh-prod-public-builds-1.firebaseio.com
      testing connectivity to kubernetes apiserver at: https://144.202.125.224:6443
      curl: (22) The requested URL returned error: 403
      success: kubernetes apiserver
      network test failed!
      Network tests failed with: curl: (6) Could not resolve host: g.codefresh.io
      curl: (6) Could not resolve host: quay.io
      curl: (6) Could not resolve host: codefresh-prod-public-builds-1.firebaseio.com
      Skipping parsing, pattern does not match ..network-tester.yaml - deployment.app-proxy.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - ingress.app-proxy.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - rolebinding.monitor.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - rollback-role-binding.monitor.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - service.monitor.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - cluster-role-binding.dind-volume-provisioner.vp.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - codefresh-certs-server-secret.re.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - role.re.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - service-account.dind-volume-provisioner.vp.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - cluster-role.app-proxy.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - dind-daemon-conf.re.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - service-account.monitor.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - cron-job.dind-volume-cleanup.vp.yaml
      parsing template pod.network-tester.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - role-binding.engine.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - role.engine.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - cluster-role-binding.venona.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - service-account.engine.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - service-account.re.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - service-account.app-proxy.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - deployment.venona.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - role-binding.re.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - rollback-serviceaccount.monitor.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - storageclass.dind-volume-provisioner.vp.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - venonaconf.secret.venona.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - daemonset.dind-lv-monitor.vp.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - cluster-role.dind-volume-provisioner.vp.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - deployment.dind-volume-provisioner.vp.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - role.monitor.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - secret.dind-volume-provisioner.vp.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - secret.runtime-attach.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - service.app-proxy.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - cluster-role-binding.app-proxy.yaml
      Skipping parsing, pattern does not match ..network-tester.yaml - dind-headless-service.re.yaml
      Skipping parsing, pattern does not match .
      .network-tester.yaml - secret.venona.yaml
      Skipping parsing, pattern does not match .*.network-tester.yaml - deployment.monitor.yaml
      Deserializing template pod.network-tester.yaml apiVersion: v1
      kind: Pod
      metadata:
      name: cf-venona-network-tester
      namespace: codefresh
      labels:
      app: runner
      version: 1.6.5
      spec:
      containers:
  • name: cf-venona-network-tester
    image: quay.io/codefresh/cf-venona-network-tester:latest
    imagePullPolicy: Always
    restartPolicy: Never
    resources:
    limits:
    cpu: 400m
    memory: 500Mi
    requests:
    cpu: 200m
    memory: 300Mi
    env:
  • If you are using a proxy, run again with the correct http proxy environment variables.
  • Make sure that cluster host address in your kubeconfig is accessible from inside the cluster,
    or specify a different one with: --set-value KubernetesHost=.
    For more details run again with --verbose
    Error: Failed to run cluster acceptance tests: Component exited with status code 1

If you had any issues with the installation please report them at: https://github.com/codefresh-io/cli/issues/new`

@manuel-cuevas
Copy link

This error is because you didn’t open some port in your firewall. These ports are required https://github.com/flannel-io/flannel/blob/master/Documentation/troubleshooting.md#firewalls

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

No branches or pull requests

2 participants