-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Support for netbox 4.x #176
Comments
Yep it's broken at the moment. |
Can I do something to fix it, or must I wait until a new Version of Proxbox is coming out? |
This comment was marked as duplicate.
This comment was marked as duplicate.
Why do you not make a new release for 4.x? I already see commit. |
The github version installs on 4.x, but it still doesn't seem to work on the latest netbox release |
I'm having the same problem with Netbox 4.1.1. When trying to run python3 manage.py migrate I get the same errors as @Tehniels2000. Any ETA for a fix for this problem? |
Currently working on support for latest Netbox version. |
Excellent. Thank you for the letting us know. |
Hello, sorry to push this, but is there any ETA? |
Currently working on it, on my test env everything is going fine. You guys can already test it. But I'm improving testing and corner cases, as it's not easy to predict all Proxmox environments. |
I would like to also note that although I love the project and its function, I do it as best-effort and have no return. I'm really glad the amount of people that use it, but I ask for some patience, if possible. |
Thank you for all your work on this, Emerson.
How can I get access to test the update that supports 4.x?
…________________________________
From: Emerson Felipe ***@***.***>
Sent: October 11, 2024 11:30 AM
To: netdevopsbr/netbox-proxbox ***@***.***>
Cc: Paul Siess ***@***.***>; Comment ***@***.***>
Subject: Re: [netdevopsbr/netbox-proxbox] Support for netbox 4.x (Issue #176)
Currently working on it, on my test env everything is going fine. You guys can already test it. But I'm improving testing and corner cases, as it's not easy to predict all Proxmox environments.
—
Reply to this email directly, view it on GitHub<#176 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABWEE446ILQX5JVR2S2RDRDZ27VINAVCNFSM6AAAAABHR3Q4KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGY2TIOBQGE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hello,
But based on Do you have any Ideas what I'm doing wrong? |
Hi @spacecodeit could you please the last commits and confirm that fastapi is installed on Netbox Virtual Venv (/opt/netbox/venv)? Also, now on Proxbox plugin homepage, there is connection status to the services and log messages on the bottom, as you click on |
Hi @psiess, you just need to pull the |
Sorry for the newbie question. How do I pull the develop branch? I cloned the repository and can see the branches git branch -a
...but I can't figure out how to pull the develop branch. I tried git clone develop and git pull develop but neither work. |
I think you already switched to |
You are right @emersonfelipesp. I was able to install netbox-proxbox, but get an error right at the end of the installation: Installed /opt/netbox/venv/lib/python3.12/site-packages/fastapi_cli-0.0.5-py3.12.egg Can I downgrade starlette without messing up the rest of netbox? Or install a lower version alongside the 0.41.0? |
I'm currently using Yo can try this version with: |
@psiess try using the
Let me now if it works! |
I actually had to use |
Do I need to re-install after the new pull? |
@psiess I'm not sure, but would be good. |
I also want to be sure I'm doing this right. I currently go into /opt/netbox/netbox/netbox-proxbox and do a git pull to get the latest. Then, in /opt/netbox I execute ./update.sh with netbox-proxbox in the local_requirements file. I'm not sure it's working because Netbox doesn't start with the plugin activated. If I remove netbox_proxbox from the configuration.py file that Netbox will start. Is there a different way I should be doing that? |
Hi @troycarpenter, could you se Netbox logs? I don't get why it didn't work. I'm putting a lot of effort on Docs and Proxbox Plugin GUI so that User knows exactly what is going on. But for now, I'll need some help from you guys to find the bugs. |
I have tried all the ways I've found online to get Netbox to log to a file, but nothing has worked for me. It's gone as far as creating the log file, but nothing is ever logged there. In configuration.py, I have this:
That logging section is now a frankenstien based on a few websites. |
Hi @troycarpenter, thank your for your feedback. I'm still coding this part. |
Thanks. The latest updates with git pull seems to have fixed the error. Now working to get all the processes talking again. |
Ok, got all the services showing up as "successful" in the Netbox GUI. I hit the Full Update button and got this in the log box:
HOWEVER, I don't exactly know what happened. I don't see any new VMs created (that is, new ones in Proxmox but were not in Netbox). And I can't tell if existing entities were changed in Netbox to match Proxmox. I do find this error in the log:
|
Hi @troycarpenter I will review the logs you provided as soon as possible and I'll back with a solution. Thank you! |
@troycarpenter trying to solve it, I'm improving a bit the GUI to be more informative other than just logs. When clicking to Sync Virtual Machines, a new table is created and populated as Proxbox updates Netbox. The image below is the first version, but I will add styling and links (like VM Name will link to the VM on Netbox directly) |
@troycarpenter this branch isn't working yet, but I will fix it this weekend. I got no time this past week to work on the plugin, but I think next days will be better. |
No matter what I do I can't get past this error. tried v4.1.9 and v4.1.0
This could be related to this unresolved pull request fastapi pull request 9928 I also saw this in pydantic Issue 7669
|
Hey everybody, @emersonfelipesp I don't want to make any pressure into your direction but are you optimistic that there will be a release of a stable new release in the next 1-2 weeks? Is there anything you need to progress further? If you think this will take more time is this no problem. Then I'll do it by hand and will start using this integration sometimes in the future. Thank you for your great work. |
Hello @bk-lg ! Unfortunately this week I will not be able to make any updates to the code, but next week I will launch a new release of Proxbox which is supposed to work correctly with the latest Netbox version. As soon as I publish this new version, I will come back here asking you guys to test it. I'm currently working on the already found bugs and refactoring the code to use HTMX and Alpine.js, as the current code uses JavaScript vanilla. Thank you for your interest and I assure you in two weeks you'll a new version! |
Do you mean 4.1.11 or 4.2.0 (or 4.2.1 which I'm told should be here shortly), or any 4.x release? |
@emersonfelipesp thank you for your response. This works for me perfectly. I'll be glad to help testing the release! |
Hi @troycarpenter ! It should work with any Netbox release above v4, but I always develop using the latest one, that is v4.2.0. I plan to be up to date with the latest version so that the plugin does not break as much it did when v4 was launched. But I also think moving to a API-first approach will make plugin break less, because while Netbox or Proxmox does not release any API breaking change version, plugin should work fine. Maybe I'll use Django Models in the future, subclassing Netbox provided classes, but for now my plugin is simply based on API communication with pynetbox and proxmoxer and extending Netbox layout templates! I also want to implement more CI/CD tasks and unit tests to prevent failures. |
Hello guys, just giving some updates: Current work:I'm working on some parallel issues, but giving special attention to #224 and its branch
Example of new Proxmox Endpoints CRUD operations directly on GUI:
I'm using Netbox latest version v4.2.2 released today to develop the plugin. Thank you again for all patience and collaboration on this. |
@emersonfelipesp |
Hello @Nyak95, I'm finishing a lot of pending PR's, but it is hard to tell you a exactly date. I hope this month (january) the main tasks will be done. |
Looking forward to it! Thank you for all the hard work :D |
I've just finished moving Proxbox configuration from There are two pending issues to be done that I think will be enough to plugin start working on Netbox 4.x:
|
There were changes in netbox 3.7 which were further deprecated in 4.0 Please see Migrating Your Plugin to NetBox v4.0 for porting instructions to make the plugin compatible with 4.x
The text was updated successfully, but these errors were encountered: