Skip to content

1.0.4: Missing migration for sync_enabled field + check_default_hostinterface NotImplementedError #103

Description

@therealiGor

nbxsync version: 1.0.4
NetBox version: [deine Version]
Python version: 3.12

Bug 1: Missing migration for sync_enabled

After upgrading from 1.0.3 to 1.0.4, all synchost jobs fail with:

AttributeError: 'ZabbixServerAssignment' object has no attribute 'sync_enabled'

The field sync_enabled is defined in the model but no migration exists for it in 1.0.4.
The column already exists in the DB (added by a previous version?) but Django's migration
state doesn't know about it.

Fix: A migration adding sync_enabled to ZabbixServerAssignment and ZabbixServer
is missing from the 1.0.4 package.

Bug 2: NotImplementedError for check_default_hostinterface

After fixing Bug 1, synchost jobs fail with:

NotImplementedError: HostSync does not implement `check_default_hostinterface()`.

The method exists in hostsync.py (line 464) but run_zabbix_operation cannot find it
via getattr on the instance.

The method is called in synchost.py line 36:
self.check_default_hostinterface(assignment)

Workaround: Comment out the check_default_hostinterface call in synchost.py.

Workaround for Bug 1: Manually create and --fake apply a migration.

Both bugs together make 1.0.4 completely broken for host syncing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions