Bug warning: Installing NetBox DNS 1.7.0, 1.6.0 and 1.5.12 can cause data loss! #887
peteeckel
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
There is a serious bug in the migration
0033_remove_ptr_from_inactive_zonesintroduced in commit 035d6c2 that makes it do exactly the opposite of what it is supposed to do.Running that migration results in deleting managed PTR records from active zones instead of doing the same for inactive zones. Anyone who installed 1.7.0, 1.6.0 or 1.5.12 and ran the migrations will be affected by this.
To remedy the issue, run the management command
cleanup_database:Depending on the number of address records affected, this can take some time. It doesn't matter if you install the new release first or not, the data migration will not be run again and once the management command has finished the missing PTR records will have been recreated.
Please accept my sincere apologies if that happened to you.
The faulty releases have been yanked from PyPI and new releases 1.7.2, 1.6.1 and 1.5.14 have been provided in their place.
All reactions