-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
complexity: lowRequires minimal effort to implementRequires minimal effort to implementstatus: backlogAwaiting selection for workAwaiting selection for worktype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Milestone
Description
NetBox version
v4.0.8
Feature type
Change to existing functionality
Proposed functionality
When an instance of NetBox is set to 'readonly', then the upgrade.sh should not perform any write operations to the database.
This can be either done by an 'option' (./upgrade.sh readony) or by a setting in the configuration.py that is read out.
Use case
I have 2 instances of my netbox running. One production with a write-enabled database and one for DR.
The database is replicated using postgres WAL into the DR location.
There the database is readonly for NetBox.
When I want upgrade the DR instance, I have to modify the upgrade.sh, so that all database commands are excluded (migrations, trace_paths, reindex, clearsessions, clearcache).
Database changes
No response
External dependencies
No response
Metadata
Metadata
Assignees
Labels
complexity: lowRequires minimal effort to implementRequires minimal effort to implementstatus: backlogAwaiting selection for workAwaiting selection for worktype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application