Allow NetBox to start cleanly if incompatible plugins are present #18535
Labels
status: needs triage
This issue is awaiting triage by a maintainer
type: feature
Introduction of new functionality to the application
NetBox version
v4.2.2
Feature type
Data model extension
Proposed functionality
Currently we raise an
ImproperlyConfigured
exception and refuse to start NetBox at all if any plugin hasmin_version
ormax_version
specified such that the installed version of NetBox is outside the compatible range.Proposal is to allow NetBox to recognize incompatible plugins at startup and skip loading them (while emitting an appropriate warning), rather than raising an exception.
This should probably be done with a custom exception type that inherits from
ImproperlyConfigured
so that these exceptions can be caught separately.Use case
It is not always easy to upgrade plugins at the same time as a NetBox installation, or a plugin might not yet be updated to the current NetBox version; this often leads to support issues where plugins must be painstakingly removed from the local configuration during an upgrade. This change would make it possible for plugins' published compatibility ranges to be enforced through the invalid plugins simply being disabled rather than interfering with the overall application's startup.
Note that plugins will need to be more diligent about defining
max_version
and pinning it to the most recent NetBox release against which it has been tested.Database changes
N/A
External dependencies
N/A
The text was updated successfully, but these errors were encountered: