Skip to content

Instantly share code, notes, and snippets.

@bemeyert
Created December 1, 2021 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bemeyert/75c2b61f5ae1c13bd890bfba0b0f0f6d to your computer and use it in GitHub Desktop.
Save bemeyert/75c2b61f5ae1c13bd890bfba0b0f0f6d to your computer and use it in GitHub Desktop.
Sonobuoy 0.55.1 with cluster-inventory 0.0.2
# Command and output
sonobuoy run --sonobuoy-image=docker-registry.domain.de/sonobuoy/sonobuoy:v0.55.1 --wait=5 --plugin-image=cluster-inventory:docker-registry.domain.de/sonobuoy/cluster-inventory:v0.0.2@sha256:d7e75bedf1a28e01a852ee5f3f458a0cfd5b01aec905e8168ef299a230b6fef0 --plugin=https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/main/cluster-inventory/cluster-inventory.yaml
INFO[0000] create request issued name=sonobuoy namespace= resource=namespaces
INFO[0000] create request issued name=sonobuoy-serviceaccount namespace=sonobuoy resource=serviceaccounts
INFO[0000] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterrolebindings
INFO[0000] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterroles
INFO[0000] create request issued name=sonobuoy-config-cm namespace=sonobuoy resource=configmaps
INFO[0000] create request issued name=sonobuoy-plugins-cm namespace=sonobuoy resource=configmaps
INFO[0000] create request issued name=sonobuoy namespace=sonobuoy resource=pods
INFO[0000] create request issued name=sonobuoy-aggregator namespace=sonobuoy resource=services
10:58:32 PLUGIN NODE STATUS RESULT PROGRESS
10:58:32 cluster-inventory global running
10:58:32
10:58:32 Sonobuoy is still running. Runs can take 60 minutes or more depending on cluster and plugin configuration.
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
ERRO[0301] error attempting to run sonobuoy: waiting for run to finish: timed out waiting for the condition
######
# Logs of cluster-plugin
######
$ sonobuoy logs -p cluster-inventory
namespace="sonobuoy" pod="sonobuoy-cluster-inventory-job-344054916a894458" container="plugin"
Using CNI config file /etc/cni/net.d/10-canal.conflist
./
./results.tar.gz
./json_results.json
./sonobuoy_results.yaml
tar: .: file changed as we read it
namespace="sonobuoy" pod="sonobuoy-cluster-inventory-job-344054916a894458" container="sonobuoy-worker"
time="2021-12-01T09:59:06Z" level=trace msg="Invoked command global with args [] and flags [level=trace logtostderr=true v=6]"
time="2021-12-01T09:59:06Z" level=info msg="Waiting for waitfile" waitfile=/tmp/sonobuoy/done
time="2021-12-01T09:59:06Z" level=info msg="Starting to listen on port 8099 for progress updates and will relay them to https://[10.10.10.10]:8080/api/v1/progress/global/cluster-inventory"
time="2021-12-01T09:59:08Z" level=info msg="Detected done file, transmitting result file" resultFile=/tmp/results/results.tar.gz
time="2021-12-01T09:59:08Z" level=error msg="error gathering host data: open /tmp/results/results.tar.gz: no such file or directory" trace="open /tmp/results/results.tar.gz: no such file or directory\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.handleWaitFile.func2\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/worker.go:205\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.DoRequest\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/request.go:57\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.handleWaitFile\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/worker.go:203\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.GatherResults\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/worker.go:133\ngithub.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app.runGather\n\t/go/src/github.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app/worker.go:189\ngithub.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app.runGatherGlobal\n\t/go/src/github.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app/worker.go:129\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:826\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864\nmain.main\n\t/go/src/github.com/vmware-tanzu/sonobuoy/main.go:27\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\nerror gathering host data\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.DoRequest\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/request.go:59\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.handleWaitFile\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/worker.go:203\ngithub.com/vmware-tanzu/sonobuoy/pkg/worker.GatherResults\n\t/go/src/github.com/vmware-tanzu/sonobuoy/pkg/worker/worker.go:133\ngithub.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app.runGather\n\t/go/src/github.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app/worker.go:189\ngithub.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app.runGatherGlobal\n\t/go/src/github.com/vmware-tanzu/sonobuoy/cmd/sonobuoy/app/worker.go:129\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:826\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864\nmain.main\n\t/go/src/github.com/vmware-tanzu/sonobuoy/main.go:27\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"
time="2021-12-01T09:59:08Z" level=error msg="error entry for attempt: 1, verb: PUT, time: 2021-12-01 09:59:08.929099456 +0000 UTC m=+2.041463026, URL: https://[10.10.10.10]:8080/api/v1/results/global/cluster-inventory" trace="error entry for attempt: 1, verb: PUT, time: 2021-12-01 09:59:08.929099456 +0000 UTC m=+2.041463026, URL: https://[10.10.10.10]:8080/api/v1/results/global/cluster-inventory"
time="2021-12-01T09:59:09Z" level=error msg="error entry for attempt: 2, verb: PUT, time: 2021-12-01 09:59:09.932324198 +0000 UTC m=+3.044687767, URL: https://[10.10.10.10]:8080/api/v1/results/global/cluster-inventory" trace="error entry for attempt: 2, verb: PUT, time: 2021-12-01 09:59:09.932324198 +0000 UTC m=+3.044687767, URL: https://[10.10.10.10]:8080/api/v1/results/global/cluster-inventory"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment