-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix orphan tagging if 'ignore_unknown_source_object_puning' is set to true #273
Comments
Hey @rizlas, I just pushed a fix to the thank you |
Hi, e.g.
This is about a device-type that exists in vSphereBA and vSphereRM but not in vSphereBO
Expecting this result:
|
Hi, thank you. And yes, this was not handled correctly. I pushed another change and would quite happy if you could test it. Thank you. |
I think you missed some cleanup/renaming in EDIT: with this
|
Ok we are close.. Difference
"Source: vSphereBO" should be removed because that particular device-type doesn't exist in vSphereBO |
sorry for all the hassle. Just pushed another commit which should fix the issue with the renamed var. can you pull and run it again? |
No hassle at all, dont worry. Thank you!
|
Thank you for testing. Just pushed another commit. How about that? |
I made a few runs and now it's working fine except for:
For interface vlan assignment I made three identical run and the behavior was this: First run: untagged_vlan_id removed Note: I have currently disabled vlan sync (disable_vlan_sync = True) Here is the log: https://privatebin.net/?e22c577bbe499011#CsziMjzPfj4nmUnSvBEWDjEbxyF6YWKKLoh4yQee5hne EDIT: interface vlan assignment bug is alread discussed in #245 (sorry) |
So you get the vlan sync issue as well? Would be happy if you could provide me some detailed logs. Would need This would be a great help to find and fix the issue. Thank you. Cheers |
I will, with almost a clean vcenter is 60MB output. As soon as I anonymize it I'll share it with you. |
Hi, just was wondering what was still unresolved.
I somehow didn't get what you described here with device type.
should be handled in #245
Yes, that would be highly appreciated |
Yes correct |
I pushed another commit which should remove the tag if it does not belong to the source but has the source tag. can you test it again? maybe then this whole thread is solved and I could close this issue. thank you very much for your patients. |
ping |
Hi, sorry for the late reply. I'm currently pretty busy and can't test it right now. I'll try to come back to you on Monday. |
Also, sorry. Didn't mean to rush. just let me know about your findings once you found some time to test. |
Hi, sorry for the very late answer. I just tested it. Here is the log.
|
Hi, Sorry for that. This slipped through. I thought I took care of it. Obviously not. Will fix it soon. |
Hi, just pushed another commit with a fix. would you be able to test it again. thank you for your patience. |
Hi,
After the run i got this situation:
It is caused because I manually injected the tag? |
|
Thank you for all the testing and patients. Will close this issue. |
Hi Ricardo, I remember that you said that to me, but as soon I saw this issue, I reworked my entire docker deployment 😅
The main problem arise with this condition https://github.com/bb-Ricardo/netbox-sync/blob/main/module/netbox/inventory.py#L314. A simple continue is not enough, the entire process of orphan tagging is skipped.
Maybe a condition like:
If I find some time, in the next few days, I will have a look at it and discuss with you a better solution.
Thank you
Originally posted by @rizlas in #176 (comment)
The text was updated successfully, but these errors were encountered: