Clarify "Replicating NetBox" section "Cache Invalidation" #4236

Closed
opened 2025-12-29 18:34:10 +01:00 by adam · 1 comment
Owner

Originally created by @cs-1 on GitHub (Nov 2, 2020).

Originally assigned to: @jeremystretch on GitHub.

Change Type

[X] Addition
[X] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Area

[ ] Installation instructions
[ ] Configuration parameters
[ ] Functionality/features
[ ] REST API
[X] Administration/development
[ ] Other

Proposed Changes

We use a staging server to test changes to NetBox and thus replicate our production server regularly using an Ansible playbook. While implementing the replication I realised that the section "Cache Invalidation" of "Replicating NetBox" needs two changes:

  • It's not entirely clear from the documentation whether to run python3 manage.py invalidate all on the source machine or the destination machine if you're unfamiliar with the internals of NetBox. This should should be explained in this section.
  • The command python3 manage.py invalidate all doesn't work without prior issuing source /opt/netbox/venv/bin/activate. This should be corrected.
Originally created by @cs-1 on GitHub (Nov 2, 2020). Originally assigned to: @jeremystretch on GitHub. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. Please indicate the nature of the change by placing an X in one of the boxes below. --> ### Change Type [X] Addition [X] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) ### Area [ ] Installation instructions [ ] Configuration parameters [ ] Functionality/features [ ] REST API [X] Administration/development [ ] Other <!-- Describe the proposed change(s). --> ### Proposed Changes We use a staging server to test changes to NetBox and thus replicate our production server regularly using an Ansible playbook. While implementing the replication I realised that the section "Cache Invalidation" of "Replicating NetBox" needs two changes: - It's not entirely clear from the documentation whether to run `python3 manage.py invalidate all` on the source machine or the destination machine if you're unfamiliar with the internals of NetBox. This should should be explained in this section. - The command `python3 manage.py invalidate all` doesn't work without prior issuing `source /opt/netbox/venv/bin/activate`. This should be corrected.
adam added the status: acceptedtype: documentation labels 2025-12-29 18:34:10 +01:00
adam closed this issue 2025-12-29 18:34:10 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 5, 2020):

Fixed in b39019ce

@jeremystretch commented on GitHub (Nov 5, 2020): Fixed in b39019ce
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4236