water-hole / ansible-operator

POC Code for the operator backed by ansible
48 stars 29 forks source link

Stacktrace resource is missing #73

Open honghuac opened 5 years ago

honghuac commented 5 years ago

Attempt to install gogs using Ansible Operator resulted in this error,

{"level":"error","ts":1548832941.763671,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"gogs-controller","request":"ocpadv-gogs-operator/gogs-server","error":"the server could not find the requested resource","stacktrace":"github.com/water-hole/ansible-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/travis/gopath/src/github.com/water-hole/ansible-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/water-hole/ansible-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/travis/gopath/src/github.com/water-hole/ansible-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/water-hole/ansible-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/travis/gopath/src/github.com/water-hole/ansible-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/water-hole/ansible-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/travis/gopath/src/github.com/water-hole/ansible-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/water-hole/ansible-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/travis/gopath/src/github.com/water-hole/ansible-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/water-hole/ansible-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/travis/gopath/src/github.com/water-hole/ansible-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}

cameronkerrnz commented 5 years ago

@honghuac I think this is a duplicate of #70, which has a listed workaround.

https://github.com/water-hole/ansible-operator/commit/c069cb9af8dc82758fbea1240723c3fec3762d61#diff-2801c16178697c1c264821ad53fbd762

The diff makes it much clearer to see what needs to be changed.

Hope that helps, Cameron