suecodelabs / cnfuzz

Breaking Cloud Native Web APIs in their natural habitat.
Apache License 2.0
35 stars 2 forks source link

Controller tries to launch fuzzing job multiple times #19

Open pcktdmp opened 2 years ago

pcktdmp commented 2 years ago
{"level":"info","ts":1647336674.4652436,"caller":"kubernetes/event_handler.go:106","msg":"start fuzzing of todo-api-64c68bdf9b-ph5ff"}
{"level":"error","ts":1647336674.6302495,"caller":"kubernetes/event_handler.go:112","msg":"error while starting new fuzzing job: jobs.batch \"cnfuzz-todo-api-64c68bdf9b-ph5ff\" already exists","stacktrace":"github.com/suecodelabs/cnfuzz/src/kubernetes.HandlePodEvent\n\t/fuzzer/src/kubernetes/event_handler.go:112\ngithub.com/suecodelabs/cnfuzz/src/kubernetes.EventHandler.OnAdd\n\t/fuzzer/src/kubernetes/event_handler.go:37\nk8s.io/client-go/tools/cache.(*processorListener).run.func1\n\t/go/pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/shared_informer.go:787\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.23.0/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.23.0/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.23.0/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/go/pkg/mod/k8s.io/apimachinery@v0.23.0/pkg/util/wait/wait.go:90\nk8s.io/client-go/tools/cache.(*processorListener).run\n\t/go/pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/shared_informer.go:781\nk8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.23.0/pkg/util/wait/wait.go:73"}
pcktdmp commented 2 years ago

This is probably due to failing healthz / readyz check and no persistent image hash store.

pcktdmp commented 2 years ago

Confirmed that this is the case, the need for Redis becomes larger.