kubectl get pods -n kube-system -lname=weave-net
NAME READY STATUS RESTARTS AGE
weave-net-kdxmc 2/2 Running 1 17m
Running weave status works
weave status
Version: 2.6.4 (up to date; next check at 2020/07/29 14:30:28)
Service: router
Protocol: weave 1..2
Name: 1e:3a:f0:9e:96:b8(giza-apps2-corp-guitar.ams.corp.google.com)
Encryption: enabled
PeerDiscovery: enabled
Targets: 0
Connections: 0
Peers: 1
TrustedSubnets: none
Service: ipam
Status: ready
Range: 192.168.9.0/24
DefaultSubnet: 192.168.9.0/24
Running other subcommands fails with the above error
What happened?
weave status connection
weave container is not present. Have you launched it?
Invalid 'weave status' sub-command: connection
Usage:
weave --help | help
...
It's also inconsistent - running weave status dns only print the error without the usage (although I don't find the usage helpful here).
How to reproduce it?
See above.
Anything else we need to know?
Versions:
$ weave version
weave script 2.6.5
weave 2.6.4
$ docker version
Client: Docker Engine - Community
Version: 19.03.5
API version: 1.40
Go version: go1.12.12
Git commit: 633a0ea838
Built: Wed Nov 13 07:25:58 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.5
API version: 1.40 (minimum version 1.12)
Go version: go1.12.12
Git commit: 633a0ea838
Built: Wed Nov 13 07:24:29 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.10
GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
runc:
Version: 1.0.0-rc8+dev
GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
docker-init:
Version: 0.18.0
GitCommit: fec3683
$ uname -a
Linux xxxxx 5.6.14-2-amd64 #1 SMP Debian 5.6.14-2 (2020-06-20 > 2018) x86_64 GNU/Linux
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:58:53Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:07:13Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
What you expected to happen?
Try to diagnose failures of weave-net in a kubeadm cluster. Downloaded the weave tool as per: https://www.weave.works/docs/net/latest/install/installing-weave/ Weave net is already running:
Running weave status works
Running other subcommands fails with the above error
What happened?
It's also inconsistent - running
weave status dns
only print the error without the usage (although I don't find the usage helpful here).How to reproduce it?
See above.
Anything else we need to know?
Versions:
Logs:
Network: