Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update NetBox to v4.0.0 #385

Closed
mmguero opened this issue Jan 17, 2024 · 2 comments
Closed

update NetBox to v4.0.0 #385

mmguero opened this issue Jan 17, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request netbox Related to Malcolm's use of NetBox
Milestone

Comments

@mmguero
Copy link
Collaborator

mmguero commented Jan 17, 2024

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 mmguero added enhancement New feature or request netbox Related to Malcolm's use of NetBox labels Jan 17, 2024
@mmguero mmguero modified the milestones: v24.02.0, v24.03.0 Jan 17, 2024
@mmguero mmguero modified the milestones: v24.03.0, v24.03.1 Feb 28, 2024
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Feb 29, 2024
@mmguero mmguero modified the milestones: v24.03.1, v24.04.0 Mar 12, 2024
@mmguero mmguero modified the milestones: v24.04.0, z.staging Mar 19, 2024
@mmguero mmguero changed the title update NetBox to v3.7.x update NetBox to v4.0.0 May 6, 2024
@mmguero mmguero modified the milestones: z.staging, v24.06.0 May 20, 2024
@mmguero mmguero self-assigned this Jun 3, 2024
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Jun 3, 2024
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Jun 3, 2024
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Jun 3, 2024
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Jun 4, 2024
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Jun 4, 2024
@mmguero
Copy link
Collaborator Author

mmguero commented Jun 4, 2024

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

  • startup works, including init scripts, netbox device type import and netbox preload
  • enrichment lookups and autopopulation
  • netbox-backup and netbox-restore work (however, netbox-restore with a previously-backed-up tarball doesn't work)

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
Copy link
Collaborator Author

mmguero commented Jun 19, 2024

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.

@mmguero mmguero closed this as completed Jun 19, 2024
This was referenced Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request netbox Related to Malcolm's use of NetBox
Projects
Status: Released
Development

No branches or pull requests

1 participant