netbox-agent icon indicating copy to clipboard operation
netbox-agent copied to clipboard

error on IPMI interface

Open buzzzo opened this issue 3 years ago • 2 comments

Last version of netbox-agent Last version of netbox

when register it gives the following: error raise RequestError(req) pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'address': ['Cannot create IP address with /0 mask.']}

Related to: INFO:root:Create new IP 0.0.0.0/0 on IPMI

Seems that netbox does not like interface with 0.0.0.0/0 address. I have tried to filter out the IPMI interface on conf file but seems that the filter is not considered. Would be better to from netbox-agent side to ignore interface without ip or with 0.0.0.0/0 ip and don't try to pass it to netbox

buzzzo avatar Aug 09 '22 16:08 buzzzo

Hi @buzzzo

Could you paste the output of ipmitool lan print output ?

I think your IPMI is not configured to get an IP That should not be a problem but we may need to implement this case in the netbox-agent code

Solvik avatar Sep 14 '22 16:09 Solvik

Thz for your answer. I think by default this case should be handled.

buzzzo avatar Sep 14 '22 17:09 buzzzo