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

Panic on retry #218

Closed
nabokihms opened this issue Dec 5, 2020 · 1 comment · Fixed by #219 or flant/addon-operator#156
Closed

Panic on retry #218

nabokihms opened this issue Dec 5, 2020 · 1 comment · Fixed by #219 or flant/addon-operator#156
Milestone

Comments

@nabokihms
Copy link
Member

nabokihms commented Dec 5, 2020

It is probably related to the new exponential backoff feature.

The shell-operator pod crashes with panic after some retry attempts. The logs are from an addon-operator, but hook retries cause the same panic.

{"binding":"ReloadAllModules","event.type":"OperatorStartup","level":"error","module":"istio","module.state":"failed","msg":"ModuleRun failed. Requeue task to retry after delay. Failed count is 36. Error: helm upgrade failed: exit status 1:\n Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: Secret \"registry\" in namespace \"sample-myrev\" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \"app.kubernetes.io/managed-by\": must be set to \"Helm\"; annotation validation error: missing key \"meta.helm.sh/release-name\": must be set to \"istio\"; annotation validation error: missing key \"meta.helm.sh/release-namespace\": must be set to \"system\"","operator.component":"taskRunner","queue":"main","task.id":"60561c82-ad02-4543-a8bd-045fb5a81566","time":"2020-12-05T05:59:49Z"}
panic: non-positive interval for NewTicker

goroutine 145 [running]:
time.NewTicker(0x8000000145214600, 0x10c0761fb00)
	/usr/lib/go/src/time/tick.go:23 +0x147
github.com/flant/shell-operator/pkg/task/queue.(*TaskQueue).waitForTask(0xc000becb40, 0x8000000145214600, 0x2654ae2, 0x21)
	/usr/local/go/pkg/mod/github.com/flant/[email protected]/pkg/task/queue/task_queue.go:427 +0x247
github.com/flant/shell-operator/pkg/task/queue.(*TaskQueue).Start.func1(0xc000becb40)
	/usr/local/go/pkg/mod/github.com/flant/[email protected]/pkg/task/queue/task_queue.go:325 +0x166
created by github.com/flant/shell-operator/pkg/task/queue.(*TaskQueue).Start
	/usr/local/go/pkg/mod/github.com/flant/[email protected]/pkg/task/queue/task_queue.go:320 +0x4f
@diafour
Copy link
Contributor

diafour commented Dec 5, 2020

Nice...

    Test_Delay: delay_test.go:13: Delay for 32 retry: 32s
    Test_Delay: delay_test.go:13: Delay for 33 retry: 32s
    Test_Delay: delay_test.go:13: Delay for 34 retry: 32s
    Test_Delay: delay_test.go:13: Delay for 35 retry: -2562047h47m10.9s
    Test_Delay: delay_test.go:13: Delay for 36 retry: -2562047h47m11.2s
    Test_Delay: delay_test.go:13: Delay for 37 retry: -2562047h47m11.3s

🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants