Project

General

Profile

Actions

Bug #31578

closed

External IPAM now fails with "mac address cannot be nil" on Compute Resource deployment.

Added by Mark Gargiulo over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I had successfully integrated phpipam with the new external ipam plugin however, since I upgraded to Foreman 2.3.1 I have noticed that "create host" now shows an error under the interfaces tab even though I am using a vmware compute resource and the mac dialog box is greyed out...

"ERF12-9889 [ProxyAPI::ProxyException]: Unable to retrieve the next available IP for subnet 1.2.3.0/24 External IPAM. ([RuntimeError]: mac address cannot be nil) for proxy https://foreman-proxy:8443/ipam" (values have been changed obviously)

If I change "Deploy On" to "Bare Metal" and and add a fake mac address I get a next_ip, then I can change it back to vmware and I can provision from a template again.
This is not ideal for other people less familiar with Foreman than me.

Not sure if it is related or not, but the IPAM Dashboard has also stopped working, now showing an error...

"ERF12-5974 [ProxyAPI::ProxyException]: Unable to obtain groups from External IPAM. ([TypeError]: no implicit conversion of String into Integer) for proxy https://foreman-proxy:8443/ipam"

I was able to see a list of subnets before.
No changes to the phpipam version or api user have been made since this was working, in fact I actually see a 200 in the phpipam apache log for the Dashboard request.

1.2.3.4 - $USER [05/Jan/2021:13:47:27 0800] "POST /phpipam/api/$USER/user/ HTTP/1.1" 200 116 "" "Ruby"
1.2.3.4 - - [05/Jan/2021:13:47:27 0800] "GET /phpipam/api/$USER/sections/ HTTP/1.1" 200 580 "" "Ruby"

Versions
foreman-2.3.1
foreman-proxy-2.3.1
smart_proxy_ipam (0.1.3)

Please let me know if you require any additional information.


Files

production_log_stacktrace.txt production_log_stacktrace.txt 16.1 KB Snippet from production.log Mark Gargiulo, 01/08/2021 09:11 PM
Actions

Also available in: Atom PDF