Closed david-martin closed 5 years ago
@pb82 for thoughts on this error in the grafana operator. The operator is using the image quay.io/integreatly/grafana-operator:0.0.1
{"level":"error","ts":1548454449.445631,"logger":"kubebuilder.controller","caller":"<autogenerated>:1","msg":"Reconciler error","Controller":"grafana-controller","Request":"middleware-monitoring/application-monitoring","error":"open ./templates/grafana-serviceaccount.yaml: no such file or directory","stacktrace":"github.com/integr8ly/grafana-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/Users/peter/work/go/src/github.com/integr8ly/grafana-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/integr8ly/grafana-operator/vendor/sigs.k8s.io/controller-runtime/pkg/runtime/log.(*DelegatingLogger).Error\n\t<autogenerated>:1\ngithub.com/integr8ly/grafana-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/Users/peter/work/go/src/github.com/integr8ly/grafana-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:209\ngithub.com/integr8ly/grafana-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/Users/peter/work/go/src/github.com/integr8ly/grafana-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157\ngithub.com/integr8ly/grafana-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/Users/peter/work/go/src/github.com/integr8ly/grafana-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/integr8ly/grafana-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/Users/peter/work/go/src/github.com/integr8ly/grafana-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/integr8ly/grafana-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/Users/peter/work/go/src/github.com/integr8ly/grafana-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
Looks like files are in the right place in the image though
/ $ ls -la /usr/local/bin/templates/
total 32
drwxr-xr-x 2 root root 246 Jan 25 10:44 .
drwxr-xr-x 1 root root 30 Jan 25 10:44 ..
-rw-r--r-- 1 root root 1170 Jan 25 10:43 grafana-config.yaml
-rw-r--r-- 1 root root 123 Jan 25 10:43 grafana-dashboards.yaml
-rw-r--r-- 1 root root 562 Jan 25 10:43 grafana-datasources.yaml
-rw-r--r-- 1 root root 2399 Jan 25 10:43 grafana-deployment.yaml
-rw-r--r-- 1 root root 299 Jan 25 10:43 grafana-providers.yaml
-rw-r--r-- 1 root root 267 Jan 25 10:43 grafana-route.yaml
-rw-r--r-- 1 root root 271 Jan 25 10:43 grafana-service.yaml
-rw-r--r-- 1 root root 132 Jan 25 10:43 grafana-serviceaccount.yaml
@david-martin Yes, i've seen this before. It could be that the workdir of the container is not the one where the binary is located. I've updated the operator deployment to set an explicit template path: https://github.com/integr8ly/grafana-operator/blob/master/deploy/operator.yaml#L34. That should fix it.
superceded by #3
Verify steps
The middleware-monitoring namespace should eventually reconcile with below pods:
NOTE There should also be a
grafana
pod, but there is an error in the grafana operator logs at present (see comment below for more info)TODO