idaholab / Malcolm

Malcolm is a powerful, easily deployable network traffic analysis tool suite for full packet capture artifacts (PCAP files), Zeek logs and Suricata alerts.
https://idaholab.github.io/Malcolm/
Other
367 stars 59 forks source link

update NetBox to v4.0.0 #385

Closed mmguero closed 5 months ago

mmguero commented 10 months ago

Describe the solution you'd like

NetBox v3.7.x releases are happening. I'm creating this issue because I did observe when I tried to upgrade it that there were some issues coming out from the postgresql output and some other things.

Additional context

Needs to work with the following that are used by Malcolm:

Also we should see if a restore of a previous backup works after the upgrade. If not, is there anything we can do about it?

mmguero commented 5 months ago

I've gone through and made the adjustments for NetBox v4.0.3, and everything appears to be working:

The only issue is that previous netbox versions (ie., previous malcolm versions) don't restore cleanly. So people are going to have to do a manual export from the netbox UI (exporting stuff to CSV) and then re-import, which is a pain in the butt. They can't even do a netbox-backup and netbox-restore as the database schema has changed internally.

The only way a netbox upgrade would work would be to upgrade from the previous malcolms (with netbox 3.6.x) to something with netbox 3.7.x and then to netbox 4.0.x. But we never did use netbox 3.7.x so that's not a great option.

I'm not going to actually close this out while I think about what to do about this.

mmguero commented 5 months ago

I'll put a release note about doing a manual backup/restore using CSV. We need the new netbox for some of the changes I've made for supporting multiple netbox sites.