Skip to content

Run upgrade.sh without database changes #17136

@PieterL75

Description

@PieterL75

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 implementstatus: backlogAwaiting selection for worktype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions