You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a dashboard is moved to another folder, a file with a different name is being created when creating a backup.
However, the old file will not be removed, leading to errors during import.
It has to be noted that we use GCS as a storage.
To Reproduce
We use GCS as a remote storage
Create a dashboard
Create a backup
Move the dashboard
Create another backup
You will see that the dashboard is now existing twice in GCS with two different filenames.
This leads to an error during restore Board with same UID was already processed.
Expected behavior
The old file should be deleted.
Debugging Data (please complete the following information):
gdg version
0.7.1
gdg tools devel srvinfo (If you are able to connect to your grafana instance)
Hmm, I'm not sure this is a bug exactly. There's plenty of times where you want the local or gcs storage to persist and your final upload is a union of the two folders. I'm not opposed to have a feature flag that will remove the dashboards folder prior to download to reset the state and ensure it's a 1-1 mirror of upstream.
Keep in mind another pattern of using this, is to have the git data (aka local/cloud storage) as a source of truth so local file system would trump anything on grafana. You're using it in a way that's flipped. That's perfectly fine but I think turning on that behavior should be optional.
This wouldn't be much of a problem if the upload wouldn't stop after occurring a duplicate ID.
We use this currently as a replication mechanism between a MySQL backed instance and two disk backed instances. Every time a user renames or moves a dashboard the upload breaks until we delete the old dashboard.
At the moment we solve this with a lifecycle rule, but until this rule hits, the sync is broken.
Suggestion:
If a duplicate ID is detected, use the more recent dashboard, warn about the issue, and continue the upload. As this might not be desirable for all use-cases, such a feature could be enabled through a flag similar to --skip-confirmation. Maybe something like --fix-duplicate-ids?
Describe the bug
When a dashboard is moved to another folder, a file with a different name is being created when creating a backup.
However, the old file will not be removed, leading to errors during import.
It has to be noted that we use GCS as a storage.
To Reproduce
You will see that the dashboard is now existing twice in GCS with two different filenames.
This leads to an error during restore
Board with same UID was already processed.
Expected behavior
The old file should be deleted.
Debugging Data (please complete the following information):
The text was updated successfully, but these errors were encountered: