Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetBox dropped "clearcache" management command #167

Closed
sleinen opened this issue Jan 30, 2024 · 2 comments
Closed

NetBox dropped "clearcache" management command #167

sleinen opened this issue Jan 30, 2024 · 2 comments

Comments

@sleinen
Copy link
Contributor

sleinen commented Jan 30, 2024

Netbox PR #14461 removed the clearcache management command, as proposed in issue #14458. This change is included in NetBox v3.7.0. The Ansible role tries to call it for NetBox v3.2.3+, which leads to errors when using it to install/upgrade to 3.7.x:

TASK [lae.netbox : Clear cached data in NetBox] *************************************************************************************************
skipping: [netbox-dev.switch.ch]

TASK [lae.netbox : Clear cached data in NetBox 3.2.3+] ******************************************************************************************
fatal: [netbox-dev.switch.ch]: FAILED! => {"changed": false, "cmd": ["./manage.py", "clearcache"], "msg": "stdout: Unknown command: 'clearcache'. Did you mean clearsocial?\nType 'manage.py help' for usage.\n\n:stderr: Unknown django command: clearcache"}

We should skip that step for newer versions of NetBox.

Related to #132

@lae
Copy link
Owner

lae commented Jan 30, 2024

Fixed per #166 I believe?

@sleinen
Copy link
Contributor Author

sleinen commented Jan 30, 2024

Oops, absolutely! Sorry, I should have checked beforehand.

@sleinen sleinen closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants