2.10 is not out yet, but https://github.com/netbox-community/netbox/pull/5212 might solve all my cables issues.
To be tested and upgraded once out.
2.10 is not out yet, but https://github.com/netbox-community/netbox/pull/5212 might solve all my cables issues.
To be tested and upgraded once out.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T263107 Netbox: Virtual chassis members cables not showing up consistently | |||
Resolved | • crusnov | T265084 Upgrade Netbox to 2.10 |
2.9 also have some useful feature for scripts: https://github.com/netbox-community/netbox/commit/76dc80a45dc9b06c87a982ddd3ca5ffd2832684a
I have pushed a new version of the deploy repository with 2.10. Reading the changelog things that will affect our integrations:
Mentioned in SAL (#wikimedia-operations) [2021-01-28T17:35:23Z] <crusnov@deploy1001> Started deploy [netbox/deploy@52d6fb9]: Test deploy of 2.10.4 to netbox-next T265084
Mentioned in SAL (#wikimedia-operations) [2021-01-28T17:37:15Z] <crusnov@deploy1001> Started deploy [netbox/deploy@52d6fb9]: Test deploy of 2.10.4 to netbox-next T265084
Mentioned in SAL (#wikimedia-operations) [2021-01-28T17:38:33Z] <crusnov@deploy1001> Finished deploy [netbox/deploy@52d6fb9]: Test deploy of 2.10.4 to netbox-next T265084 (duration: 01m 18s)
I have deployed 2.10.4 to -next. It worked fine apparently. I'll be doing any necessary porting work but initial tests don't look like there's much. Probably the dump script and perhaps external things like cookbooks need to be poked at (as discussed above).
Of the reports here are some test results:
Something weird:
None of the cables show their remote endpoints: https://netbox-next.wikimedia.org/dcim/devices/1945/interfaces/
https://netbox-next.wikimedia.org/dcim/interfaces/22/trace/
Is there a way to re-generate them?
Okay so it appears to be some weirdness in reproducability for manage.py trace_paths - I was not able to fix it by running this (and rerunning it caused a traceback), but dumping and reloading the database, migrating and rerunning manage.py trace_paths seems to have fixed it. We'll have to make sure this is part of teh production upgrade process so it doesn't get broken in the same way. @ayounsi if you could look around the cables and see if there are any other issues? Thanks.
Also notable is that now that I've done this cleanly, manage.py trace_paths reruns without error. It may be attempting to view the trace without running this does something which breaks future runs or similar. I'll add it to the upgrade process.
Change 660867 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/netbox-deploy@master] Add execution of trace_paths to the post-install setup
Change 660867 merged by CRusnov:
[operations/software/netbox-deploy@master] Add execution of trace_paths to the post-install setup
Change 665056 had a related patch set uploaded (by Ayounsi; owner: Ayounsi):
[operations/homer/public@master] Netbox 2.10 compatibility
I have tested DNS generation and it appears to work as expected. THere are also patches out for homer and customscripts and reports.
Change 665410 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/netbox-extras@master] customscripts: Make minor changes to port to 2.10
So we don't forget, https://github.com/netbox-community/netbox/issues/609 got introduced with Netbox 2.10.
Change 665056 merged by CRusnov:
[operations/homer/public@master] Netbox 2.10 compatibility
Change 665410 merged by CRusnov:
[operations/software/netbox-extras@master] customscripts: Make minor changes to port to 2.10
Mentioned in SAL (#wikimedia-operations) [2021-02-23T22:22:25Z] <crusnov@deploy1001> Started deploy [netbox/deploy@dabbf5e]: Deploying Netbox 2.10.4-wmf to production T265084
Mentioned in SAL (#wikimedia-operations) [2021-02-23T22:28:37Z] <crusnov@deploy1001> Finished deploy [netbox/deploy@dabbf5e]: Deploying Netbox 2.10.4-wmf to production T265084 (duration: 06m 11s)
Change 666482 had a related patch set uploaded (by CRusnov; owner: CRusnov):
[operations/software/netbox-extras@master] reports/management: Fix for 2.10
Change 666482 merged by CRusnov:
[operations/software/netbox-extras@master] reports/management: Fix for 2.10
Mentioned in SAL (#wikimedia-operations) [2021-02-23T22:52:46Z] <chaomodus> Netbox 2.10 upgrade complete T265084
Mentioned in SAL (#wikimedia-operations) [2021-02-24T09:06:09Z] <volans> run "sudo find . -user root -exec chown netbox. '{}' \;" in /srv/deployment/netbox/deploy-cache/revs on netbox* hosts to prevent scap failures on cleanup - T265084