-
Notifications
You must be signed in to change notification settings - Fork 21
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
icingadb-migrate: can't insert because key constraint fails "fk_history_flapping_history" #553
Comments
Cut off start events as in my linked PR can't be a problem: icingadb/cmd/icingadb-migrate/convert.go Lines 421 to 426 in 5ea6831
I'm afraid I don't have any explanation for this. |
I found the missing puzzle piece: there is no inconsistency in the IDO data causing this, the issue is in the migration tool when setting So for example, this freshly generated flapping history table:
Combined with this setting in the config:
Is what can be used to reproduce the error. |
Thanks for your work. |
Describe the bug
I wanted to migrate my IDO from 1. Januar 2021 until I started the icingadb (maybe more after that). But the icingadb-migrate tool stops with an Insert issue and so I can not migrate the important downtime and state infos. Here is the output from my last start with using the already created cache file.
Possible Reason
I am not sure, which entries lead to this error, but my best guess is, that it is a flapping entry which has a deleted host. Thats why he can not insert a line in the icingadb because the host isn't migrated because it is deleted.
Workaround
Sure I could drop the flapping entrys in IDO, that would probaly fix this issue. But I think this could happens to more people.
Possible Fix
When the Host is deleted don't migrate his flapping history or also migrate the deleted host.
Environment
The text was updated successfully, but these errors were encountered: