networktocode / ntc-netbox-plugin-onboarding

A plugin for NetBox to easily onboard new devices.
Other
246 stars 46 forks source link

Specify 2.8.1 as the minimum version #48

Closed lampwins closed 4 years ago

lampwins commented 4 years ago

Environment

Steps to Reproduce

  1. Install NetBox v2.8.0
  2. Install plugin
  3. Attempt to run migrations

Expected Behavior

Migrations to successfully apply.

Observed Behavior

django.db.migrations.exceptions.NodeNotFoundError: Migration netbox_onboarding.0001_initial dependencies reference nonexistent parent node ('dcim', '0105_interface_name_collation')

The issue here is the plugin specifies 0105_interface_name_collation as a dependency in its initial migration. This is likely due to the plugin being initially developed against 2.8.1, as that is the NetBox version where that dependant migration first appeared.

Because people have already installed this plugin in environments, the correct solution here is to specify the plugin's minimum NetBox version to be 2.8.1.

lampwins commented 4 years ago

Additionally, for any users running into this issue, you can simply upgrade your NetBox install to at least 2.8.1.