Upgrade NetBox from 2.11.10 to 4.6.x - check my workflow? #22584
Replies: 3 comments 2 replies
-
|
If you run into problems when installing older NetBox versions, you can check https://github.com/markkuleinio/netbox-freezes to see the then-up-to-date list of package dependencies. Also see #20582: I had a database migration problem when upgrading from 3.7.3 to 4.4.3. The solution was to first upgrade to 4.3.7, then 4.4.3 migrations worked normally. |
Beta Was this translation helpful? Give feedback.
-
Oh there are a lot of API changes when going from 2.x to 4.x, you need to read all the release notes carefully and then adapt the external applications as needed. V2 tokens are not required yet so you may want to postpone the token syntax changes at this point if you need to limit the amount of changes you have to do at the same time. |
Beta Was this translation helpful? Give feedback.
-
I expect you to break your back doing this. --> The backup will contain different DB columns and layout compared to the 3.x branch out the gate. If you initialise the DB using the 3.x DB schema.
I can recommend to do a VM clone of the Netbox VM and try the in-place upgrade of both Netbox, Python, and the Ubuntu OS. Canonical do have the EOL versions available (DEB pkg's) on a different URI than in-support versions. --> Edit the /etc/apt/sources.list URI's and run the
PLUGINS You did not mention anything about this bulletin. Heavily read the combability notes of any enabled 3rd party plugins. And lock the versions to be installed in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm inheriting an organization's current NetBox environment and it's still running 2.11.10. My goal is to get this to the latest 4.6.x version. After reading through some similar discussions, and taking into account my own previous experience with a different organization, I have come up with the following method:
Starting at 2.11.10 on Ubuntu 18.x.x VM:
My goal is to be as non-destructive as possible and to try to match the old, intermediate and current versions to a native Ubuntu environment/build that ships with a compatible base python version. There will be other issues to consider once we get their NetBox up to date, such as external systems grabbing NetBox data using the API. I think they'll just have to use newer more secure tokens?
There were some other pitfalls I remember encountering while doing upgrades over the years like the "Contacts" for Sites causing issues or the
psyco-pgthing. I think by deleting any "Contacts" before proceeding I'll not get hung up on that one. And I think I'm skipping over thepsyco-pgissue here too. If anybody spots any glaring red flags in my methodology, can you please point them out? Thanks.Beta Was this translation helpful? Give feedback.
All reactions