Import to new 3.0.5 #7470
Replies: 3 comments 4 replies
-
The table of available columns below the import form lists all acceptable values. (Click the question mark icon.) You probably need to change these values to lowercase to match what NetBox expects. |
Beta Was this translation helpful? Give feedback.
-
A couple of comments. Firstly, you are not going to get good results migrating data using CSV export and import. The CSV export and import forms in Netbox aren't even compatible with each other (there are different column names and contents in some cases), and there are fundmantal problems that are hard to workaround - e.g. you can't set the "primary_ip" on a device or VM until after you've imported all its interfaces and IP addresses. As Jeremy points out, the slug values in the CSV (e.g. "active") aren't necessarily the same as the displayed values in the GUI (e.g. "Active") Secondly, if you want to migrate your complete dataset, then I'd say you're much better off doing a SQL migration: see replicating Netbox in the documentation. However, you cannot export from 2.6.7 and import directly into 3.0.x. You must first upgrade the database to 2.11.x, and once that's successful, move to 3.0.x. So the process will be like this:
Step 4 is most easily done as an in-place upgrade, which is straightforward if you installed from git: it's just (*) If you're installing from git (which I recommend): after doing the initial git clone, do |
Beta Was this translation helpful? Give feedback.
-
Thank you. Yeah I was concerned with the linking tables and missing data required for some of the imports. I thought I'd start with Sites and see if I could get that to work. Thanx for the suggestions. I'll see if I can get this going, but won't be till later tonight... I did try to update to 2.11.11, not .12. Mainly to stay on Released versions. I couldn't get it working so just restored my snapshot.. But I can give it another go. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an old version of Netbox, 2.6.7, and I've never had issues so never updated. I'm now trying to update to the new 3.0.5 and running into issues... For now, I gave up running the update script on my old instance. I was either doing something wrong ( most likely ) or my environment was messed up ( Ubuntu Release: 18.04 with update python ). I couldn't get past an error saying I need to update "apt-get install python3-venv"... Which I did, I thought...
I don't have a ton of data so now I'm trying to just export -> Import to my old to new 3.0.5 instance running in a new VM Ubuntu 20.04 and python 3.8.10. I tried importing my sites using the .cvs export file from my old version, but keep getting the below error.
Row 1 status: Select a valid choice. Active is not one of the available choices
So I tried to manually enter the lines for import and get the same error. Then changed the status to Planned and got the same error.
I am able to manually enter a site with the status as Active though....
Does anyone have any thoughts on what I could be doing wrong, or did wrong during the install?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions