Remove obsolete automatic legacy DHCP/DNS database migration #25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Remove the obsolete automatic legacy DHCP/DNS database conversion. The user explicitly stated that this migration is unnecessary and requested its removal.
The scope is the legacy conversion introduced with the dnsmasq-to-Kea/Knot transition, including the automatic rewriting of existing desired and committed configuration during database opening. Current native Kea/Knot functionality and data structures must remain usable.
Observed problem
During #17 validation (PR #24), starting the current agent on RZ-VM automatically upgraded both existing databases from schema 13 to 15 before checking mandatory native DHCP/DNS binaries. Startup then failed because Kea was absent. Restoring the original executable restored API availability but did not undo the database changes. Automatic private schema-13 backups exist; no database rollback or native package upgrade has been authorized or performed.
A read-only comparison of 66 tables per database found only expected migration changes: additional migration/native bookkeeping, DHCP/DNS version metadata, an absent DNS configuration rewritten as explicitly disabled, and the corresponding committed-state rewrite. Authentication, credentials, sessions, keys, preferences and unrelated configuration matched their backups. There were no DHCP pools or static leases to convert on this device.
Relevant code
internal/storage/migrate.go: invokes the DHCP/DNS-specific preparation and conversion while opening the store.internal/storage/dhcp_dns_migration.go:prepareDHCPDNSMigrationandmigrateDHCPDNS, migration backups, desired-state conversion, DNS default seeding and committed-state rewriting.internal/storage/dhcp_dns_history.go: related legacy/history conversion paths.internal/storage/schema/014_*and015_*: native bookkeeping and legacy activation-state transformations.pkg/models:MigrateDHCPDNSJSONand its startup/import/restore callers.internal/api/server.goandinternal/api/dhcp_dns_recovery.go: database construction currently precedes native runtime prerequisite checks.Requested change
Acceptance
Relationship to current work
This is a separate task from external notifications (#17 / PR #24). RZ-VM notification runtime validation remains blocked by its older native runtime and the migration aftermath. No package installation, database-file replacement, factory reset or acceptance waiver is authorized merely by creating this issue.