Open
Description
openedon Mar 8, 2023
Describe the bug
node scan Pod is in CrashLoopBackOff.
To Reproduce
Steps to reproduce the behavior:
- Deploy operator on KinD cluster running on Podman
- Wait for node scan Pod to be created.
- Note the error
Expected behavior
Node scan should succeed.
Screenshots or CLI Output
k -n mondoo-operator logs pod/mondoo-client-node-kind-control-plane-27971334-vj4z9
→ loaded configuration from /etc/opt/mondoo/mondoo.yml using source --config
→ load inventory inventory-file=/etc/opt/mondoo/inventory.yml
→ using service account credentials
→ discover related assets for 1 asset(s)
→ load fs mountdir=/mnt/host
→ resolved assets resolved-assets=1
→ load fs mountdir=/mnt/host
x cannot get inode for fd error="processes> could not run command: provider does not implement RunCommand"
x cannot get inode for fd error="processes> could not run command: provider does not implement RunCommand"
panic: runtime error: index out of range [1] with length 1
goroutine 136 [running]:
go.mondoo.com/cnquery/resources/packs/k8s.mergeFlagsIntoConfig(0x9267200?, 0xc0017bf080?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/resources/packs/k8s/kubelet_flags.go:52 +0x33b
go.mondoo.com/cnquery/resources/packs/k8s.(*mqlK8sKubelet).createConfiguration(0x851fc60?, 0xc00302abd0?, {0xc003018a59, 0x1c}, {0x7fef00d44558, 0xc0001cbdb0}, 0x1)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/resources/packs/k8s/kubelet.go:112 +0x205
go.mondoo.com/cnquery/resources/packs/k8s.(*mqlK8sKubelet).init(0xc002d69708, 0xc002d69700)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/resources/packs/k8s/kubelet.go:75 +0x43f
go.mondoo.com/cnquery/resources/packs/k8s.newK8sKubelet(0xc000e68280, 0x0?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/resources/packs/k8s/k8s.lr.go:1953 +0xcf
go.mondoo.com/cnquery/resources.(*Runtime).CreateResourceWithID(0xc000e68280, {0xc002c36730?, 0x0?}, {0x0, 0x0}, {0xec1ec90, 0x0, 0x0})
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/resources/runtime.go:192 +0x34c
go.mondoo.com/cnquery/resources.(*Runtime).CreateResource(...)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/resources/runtime.go:223
go.mondoo.com/cnquery/llx.(*blockExecutor).createResource(0xc002dd3500, {0xc002c36730, 0xb}, 0xb?, 0xc0030241e0?, 0x5dea360?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:679 +0x12c
go.mondoo.com/cnquery/llx.(*blockExecutor).runGlobalFunction(0xc002dd3500, 0xc002c40550, 0xea62040, 0x2?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:724 +0x2af
go.mondoo.com/cnquery/llx.(*blockExecutor).runFunction(0xc002dd3500?, 0xc002c405a0?, 0x0?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:750 +0xfd
go.mondoo.com/cnquery/llx.(*blockExecutor).runChunk(0xc002dd3500, 0x5dea52e?, 0x100000001?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:781 +0x25e
go.mondoo.com/cnquery/llx.(*blockExecutor).runRef(0xc00301f660?, 0x864a600?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:806 +0xef
go.mondoo.com/cnquery/llx.(*blockExecutor).runChain(0xc002dd3500, 0x929b0eb?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:838 +0xa6
go.mondoo.com/cnquery/llx.(*blockExecutor).run(0xc002dd3500)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:351 +0x2d7
go.mondoo.com/cnquery/llx.(*MQLExecutorV2).Run(0xc002c3e780?)
/home/benr/go/pkg/mod/go.mondoo.com/cnquery@v0.0.0-20230302155222-816a37323d3f/llx/llx.go:283 +0x59
go.mondoo.com/cnspec/policy/executor/internal.(*executionManager).executeCodeBundle(0xc002cad310, 0xc002bb1ae0, 0x65736e6f6d656164?, {0x0, 0x0})
/home/benr/actions-runner/_work/cnspec/cnspec/policy/executor/internal/execution_manager.go:164 +0x357
go.mondoo.com/cnspec/policy/executor/internal.(*executionManager).Start.func1()
/home/benr/actions-runner/_work/cnspec/cnspec/policy/executor/internal/execution_manager.go:85 +0x1cb
created by go.mondoo.com/cnspec/policy/executor/internal.(*executionManager).Start
Desktop (please complete the following information):
- kind v0.17.0 go1.19.2 linux/amd64
- podman version Version: 3.4.4
API Version: 3.4.4
Go Version: go1.17.3
Built: Thu Jan 1 01:00:00 1970
OS/Arch: linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels