We pinned pynetbox's version in multiple locations as newer versions had breaking changes.
However we will have to upgrade at least to be able to use it with the new Netbox objects custom fields. As of today upstream is at 6.6.2:
https://github.com/netbox-community/pynetbox/releases
We're also maintaining our own deb package (5.3.0), which is used in our infra:
https://github.com/wikimedia/puppet/blob/production/modules/netbox/manifests/init.pp#L76
https://github.com/wikimedia/puppet/blob/production/modules/profile/manifests/netbox.pp#L132
But it's now in bullseye - https://packages.debian.org/bullseye/python3-pynetbox (5.3.1)
So if 5.3.1 is enough, maybe it's worth dropping our own maintained version for simplicity. It's also the last version before 6.
* Homer - v5 - https://phabricator.wikimedia.org/rOSHO36bf14af77f75099d6f3d0ecdcc86eb88b3c0b47
* Netbox -v4 - https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/netbox-deploy/+/refs/heads/3-2-2/requirements.txt#7
* Netbox-extra - https://github.com/wikimedia/operations-software-netbox-extras/blob/master/requirements.txt (I don't think this is being used)
* Spicerack - v5 - https://github.com/wikimedia/operations-software-spicerack/blob/master/setup.py#L20
* Anything else?
Updated plan:
[] Backport pynetbox 6.6.0 from [[ https://packages.debian.org/search?searchon=names&keywords=pynetbox | sid/bookworm ]] - @ssingh cooked it on build2001:/var/cache/pbuilder/result/bullseye-amd64/python3-pynetbox_6.6.0-1+wmf11u1_all.deb
[] Test/fix the scripts/tools that use pynetbox
** [x] `generate_dns_snippets.py` nothing to do
** [] CSV dump - to be decom with T262677
** [] Icinga checks for reports status
** [] Ganeti sync
** [] Spicerack (what I could test locally worked fine, to be tested more) - https://gerrit.wikimedia.org/r/c/operations/software/spicerack/+/820806
** [] Homer - (merge/deploy https://gerrit.wikimedia.org/r/c/operations/software/homer/+/820778)
** [] Netbox venv - (merge deploy https://gerrit.wikimedia.org/r/c/operations/software/netbox-deploy/+/820808)