netdevopsbr / netbox-proxbox

Netbox Plugin for integration between Proxmox and Netbox
Apache License 2.0
338 stars 50 forks source link

Flap Mac address and interface #116

Open chodorenko opened 1 year ago

chodorenko commented 1 year ago

Hello, i view strange situation.

I connect proxbox (develop branch) to: netbox: v3.5.2 proxmox: 7.4-3

and try import VMS

Once the import is normal and all MAC/IP are visible and present on netbox (columns Interfaces is True, IP Address is true) Subsequent import leads to the fact that all interfaces and MAC/IP disappear ((columns Interfaces is True, IP Address is False) and again by loop

Logs

Normal import: Interface whitch MAC add in Netbox

Bad Request: /api/ipam/ip-addresses/ The request failed with code 400 Bad Request: {'address': ['Invalid IP address format: fe80::a496:9e36:8632:81c1%13/64']} Creating new IP address Updating IP address 10.2.5.117/24 (PK: 167) [ERROR] interface with mac_address None from Win11 qemu-guest-agent is not defined in netbox No previous configuration found in database; proceeding with default values Initialized configuration [OK] VM updated. -> Win11

Second import: Interface remove from Database Interface already exist. Deleting interface net0 (PK: 158) [ERROR] interface with mac_address 1e:7d:d6:a7:13:35 from Win11 qemu-guest-agent is not defined in netbox [ERROR] interface with mac_address None from Win11 qemu-guest-agent is not defined in netbox [OK] VM updated. -> Win11

Why ? and howe i can fix it ?