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
[Bug] Dashboards are constantly deleted and re-created #686
Comments
Yeah I manage to recreate this using our image. The funny thing is that also manage to see restarts of the grafana instance. This might have something to do with the grafanadatasource, but I'm unsure. But changing over and running |
I need to run but I think that when defining specific namespaces they all don't get collected in to a single list. @robshelly or @HubertStefanski is this something that you might have time to look in to? If not I will try to look in to it during the weekend but I'm unsure If I will get the time. |
Hello, Do you plan a new operator release soon in order to deliver PR#690 ? |
Sorry for the deplay @JCL38-ORANGE , hopefully I will be able to cut a new release tomorrow: #734. |
Hello,
Did I miss something ? |
@JCL38-ORANGE @NissesSenap @addreas I am experiecing the same issue with v4.3.0 |
This is consistent with what I have observed as well, no longer deleting and recreating, but still submitting and causing new "versions" to be created. Haven't had time to look deeper into it yet, unfortunately. Perhaps this could be a new issue, since the behaviour changed after #690? Edit: ended up digging a bit and got a PR with a fix i think. If you are daring enough an image for testing is here: |
Awesome @addreas! I will verify this tomorrow. And if it looks good i will merge it and cut a new release straight away. |
@addreas I've tested your image and it works like a charm. Well done! Thank you for the quick reaction!
|
I'm with bad news, @addreas
Upd:
|
Describe the bug
When using the
--namespaces
arg, dashboards keep being deleted and re-created during reconciliation.Version
4.1.1
To Reproduce
--namespaces
arg when running the operator. E.g.--namespaces=ns1,ns2
Expected behavior
Dashboards are created only once
Suspect component/Location where the bug might be occuring
My feeling is there might be something in the grafanadashboard_controller.go reconciliation methods causing this. It looks like a separate controller is created for each watched namespace and existing dashboards not found in the current namespace are deleted. Maybe there's some error in the comparison.
Log excerpt
Runtime (please complete the following information):
Additional context
I'm using the Bitnami Helm Chart to install the operator but the arguments added seem consistent with the Operator documentation so I don't think there's an issue in the chart.
One of the watched namespaces currently contains no dashboards but I don't know whether or not that is a prerequisite.
A possible workaround is to scan for dashboards in all namespaces instead using the
--scan-all
argument.Below are the deployment.yaml-files generated by Helm using
--namespaces
and--scan-all
respectively:deployment-namespaces.txt
deployment-scan-all.txt
The text was updated successfully, but these errors were encountered: