networktocode / ntc-netbox-plugin-onboarding

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

Newly added onboard tasks do not start after adding them. #116

Closed mattwalter-cadenzallc closed 3 years ago

mattwalter-cadenzallc commented 3 years ago

Environment

Newly added onboard tasks do not start after adding them.

Steps to Reproduce

  1. Add device onboard task
  2. Review onboard tasks and see no status.

Expected Behavior

Onboard task to start and process.

Observed Behavior

Onboard task does not start after adding.

Admin -> Background Tasks -> Default Queue -> shows failed jobs with message: RuntimeError: Model class netbox_onboarding.models.OnboardingTask doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

dgarros commented 3 years ago

@mattwalter-cadenzallc looks like the onboarding plugin package is not properly installed on the worker. have you restarted the worker(s) after the installation of the plugin ?

mattwalter-cadenzallc commented 3 years ago

Correct - it's been restarted.

mattwalter-cadenzallc commented 3 years ago

@dgarros Thanks for the help in troubleshooting this... my error was this:

I am using the netbox-docker project for this deployment and moved my volume definitions into docker-compose.override.yml and did not carry over the netbox-worker -> netbox yaml anchors that keeps netbox-worker using the same volumes as netbox container. So while the ntc_onboarding module was present in worker, it wasn't in the configuration to load.