[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Weave scope installed on KubeSpray v1.19'ed CRI cluster not showing any info / CRI example returns errors #3903

Open
DanPhonovation opened this issue May 6, 2022 · 0 comments

Comments

@DanPhonovation
Copy link

What you expected to happen?

UI to show useful information

What happened?

UI is launched but does not show useful information. Pod agents report:

warning: I'm not PID 1, I'm PID 7643
/sbin/runsvdir started
time="2022-05-06T13:12:59Z" level=info msg="publishing to: weave-scope-app.weave.svc.cluster.local.:80"
<probe> INFO: 2022/05/06 13:12:59.001888 Basic authentication disabled
<probe> INFO: 2022/05/06 13:12:59.010662 command line args: --mode=probe --probe- --probe.docker=true --probe.docker.bridge=docker0 --probe.kubernetes.role=host weave-scope-app.weave.svc.cluster.local.:80
<probe> INFO: 2022/05/06 13:12:59.010875 probe starting, version 1.13.2, ID 102fff7950eb5114
<probe> ERRO: 2022/05/06 13:12:59.011483 Error getting docker bridge ip: route ip+net: no such network interface
<probe> WARN: 2022/05/06 13:12:59.023101 Cannot resolve 'weave-scope-app.weave.svc.cluster.local.': lookup weave-scope-app.weave.svc.cluster.local. on 169.254.25.10:53: no such host
<probe> WARN: 2022/05/06 13:12:59.043891 Error setting up the eBPF tracker, falling back to proc scanning: kernel not supported: got kernel 3.10.0-1160.15.2.el7.x86_64 but need kernel >=4.4
<probe> WARN: 2022/05/06 13:12:59.050029 Error collecting weave status, backing off 10s: Get "http://127.0.0.1:6784/report": dial tcp 127.0.0.1:6784: connect: connection refused. If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.
<probe> ERRO: 2022/05/06 13:12:59.052905 docker registry: cannot connect to Docker endpoint
<probe> WARN: 2022/05/06 13:13:09.051776 Error collecting weave status, backing off 20s: Get "http://127.0.0.1:6784/report": dial tcp 127.0.0.1:6784: connect: connection refused. If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.
<probe> ERRO: 2022/05/06 13:13:09.053332 docker registry: cannot connect to Docker endpoint
<probe> ERRO: 2022/05/06 13:13:19.054800 docker registry: cannot connect to Docker e

How to reproduce it?

Follow K8 installation instructions at https://www.weave.works/docs/scope/latest/installing/#k8s and kubectl apply examples/k8s.yml

I also noticed the cri example however I get errors deploying it as well:

kubectl apply -f examples/cri

clusterrolebinding.rbac.authorization.k8s.io/weave-scope unchanged
clusterrole.rbac.authorization.k8s.io/weave-scope unchanged
namespace/weave unchanged
serviceaccount/weave-scope unchanged
service/weave-scope-app unchanged
error validating "examples/cri/deploy.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false
error validating "examples/cri/ds.yaml": error validating data: ValidationError(DaemonSet.spec): missing required field "selector" in io.k8s.api.apps.v1.DaemonSetSpec; if you choose to ignore these errors, turn validation off with --validate=false

kubectl apply -f examples/cri --validate=false

clusterrolebinding.rbac.authorization.k8s.io/weave-scope unchanged
clusterrole.rbac.authorization.k8s.io/weave-scope unchanged
namespace/weave unchanged
serviceaccount/weave-scope unchanged
service/weave-scope-app unchanged
Error from server (Invalid): error when creating "examples/cri/deploy.yaml": Deployment.apps "weave-scope-app" is invalid: [spec.selector: Required value, spec.template.metadata.labels: Invalid value: map[string]string{"app":"weave-scope", "name":"weave-scope-app", "weave-cloud-component":"scope", "weave-scope-component":"app"}: `selector` does not match template `labels`]
Error from server (Invalid): error when creating "examples/cri/ds.yaml": DaemonSet.apps "weave-scope-agent" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"app":"weave-scope", "name":"weave-scope-agent", "weave-cloud-component":"scope", "weave-scope-component":"agent"}: `selector` does not match template `labels`

Versions:

kubectl version:

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1-5-g76a04fc", GitCommit:"c66c03f", GitTreeState:"clean", BuildDate:"2021-02-03T17:42:23Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:15:20Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
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

1 participant