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

Issue with config options 'overwrite_device/vm_interface_name' set to False on initial syncs #287

Closed
martinyardley opened this issue Mar 23, 2023 · 11 comments
Milestone

Comments

@martinyardley
Copy link

Hi,

I'm testing the Netbox sync script, importing to netbox from vSphere . All apart from synchronizing the IP address to the virtual machine works fine (the host IP addresses update successfully). IP addresses are synchronized to IPAM. A http 400 bad request error is logged.

I believe this has been logged before, however I have been unable to locate the solution.

image

image

Any assistance would be greatly appreciated.

Thanks,
Martin

@bb-Ricardo
Copy link
Owner

Hi,

well, this is not meant to happen. Would it be possible to provide a full debug log?

@martinyardley
Copy link
Author

martinyardley commented Mar 24, 2023

Hi,

Thanks for your fast response! Yes I have a clean log file from this morning, I have edited some confidential information. Can I email it to you?

Thanks,

Martin

@bb-Ricardo
Copy link
Owner

Great, yes you can email it to me. If you call the script with --help you should se my mail address.

@martinyardley
Copy link
Author

Hi,

Sorry, it's not displaying an email address...

image

@bb-Ricardo
Copy link
Owner

Well, indeed. Sorry for that.

This should be better:

__author__ = "Ricardo Bartels <ricardo.bartels@telekom.de>"

@martinyardley
Copy link
Author

Perfect, I've emailed you the log. Thanks again!

@bb-Ricardo bb-Ricardo added this to the 1.4.1 milestone Mar 24, 2023
@bb-Ricardo bb-Ricardo changed the title VM IP Addresses not synchronizing - http 400 error Fix issue with config options 'overwrite_device/vm_interface_name' set to False on initial syncs Mar 24, 2023
@bb-Ricardo bb-Ricardo changed the title Fix issue with config options 'overwrite_device/vm_interface_name' set to False on initial syncs Issue with config options 'overwrite_device/vm_interface_name' set to False on initial syncs Mar 24, 2023
bb-Ricardo added a commit that referenced this issue Mar 24, 2023
@bb-Ricardo
Copy link
Owner

Hey @martinyardley,

would you be able to test this fix?

Best would be with a clean (not previously synced) NetBox database and the config option overwrite_vm_interface_name set to False.

Thank you

@martinyardley
Copy link
Author

Hi Ricardo,

I can't find an updated version of the script? I won't be able to run it against a "clean" DB just yet, as others are developing scripts and working on this system. The production netbox DB has not yet been updated with the netbox sync script - So I'll be able to test fully once I have the go ahead

Cheers,

Martin

@bb-Ricardo
Copy link
Owner

Hi,

You just need to check out the "development" branch and run the script with the changed option again.

I guess, deleting all interfaces from a previously synced VM should trigger the same conditions.

And look for ERROR messages after the sync.

Thank you.

@bb-Ricardo
Copy link
Owner

Hi,

did you send a log message? I can't find any in your last post.

Maybe you should not use eMail to update on issues. Outlook is leaking your email address.

Cheers
Ricardo

@Houtek
Copy link
Contributor

Houtek commented Apr 4, 2023

Hi,
we have the same issue. I will test this in our environment.

EDIT:
Issue is gone. No more errors with this fix.

Best,
Sascha

andreiKuznets0v pushed a commit to andreiKuznets0v/netbox-sync_try_vcloud that referenced this issue Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants