Hi folk,
I’m having an issue with Foreman’s Infoblox plugin (I think…)
I installed infoblox dns and dhcp plugins successfully, and configured them with appropriate login information and all.
Access to foreman-proxy via ssl is disabled, http only.
When creating a new host in Foreman, I’ll go to the interface section and edit the interface, put in a MAC address and choose subnet/etc, then I try to click “Suggest an IP” and get this red error:
Failed to fetch a free IP from proxy foreman-proxy (http://foreman-proxy:8443): ERF12-8202 [ProxyAPI::ProxyException]: Unable to retrieve unused IP ([RestClient::BadRequest]: 400 Bad Request) for proxy http://foreman-proxy:8443/dhcp
Additionally, a red error under “IPv6 address”:
Error generating IP: Bad Request
Looking at the logs on foreman-proxy, I see the following when I try using a MAC address for the interface:
E, [2018-01-31T12:20:44.712013 #19377] ERROR -- : 757: unexpected token at '<HTML><HEAD><META HTTP-EQUIV="REFRESH" CONTENT = "0; URL=https://10.x.x.75"/></HEAD><BODY BGCOLOR="FFFFFF">Click <A HREF="https://10.x.x.75">here</A> if page does not refresh in 10 seconds.</BODY></HTML>
'
I, [2018-01-31T12:20:44.712657 #19377] INFO -- : 10.x.x.19 - - [31/Jan/2018:12:20:44 +0000] "GET /dhcp/10.x.x.0/unused_ip?mac=XX:XX:XX:XX:XX:XX HTTP/1.1" 400 233 0.3222
I get the following without a MAC address entered:
E, [2018-01-31T12:24:01.292105 #19377] ERROR -- : 757: unexpected token at '<HTML><HEAD><META HTTP-EQUIV="REFRESH" CONTENT = "0; URL=https://10.x.x.75"/></HEAD><BODY BGCOLOR="FFFFFF">Click <A HREF="https://10.x.x.75">here</A> if page does not refresh in 10 seconds.</BODY></HTML>
'
I, [2018-01-31T12:24:01.292533 #19377] INFO -- : 10.x.x.19 - - [31/Jan/2018:12:24:01 +0000] "GET /dhcp/10.x.x.0/unused_ip HTTP/1.1" 400 233 0.2524
I try to just use curl from the foreman front host, and it seems to work fine getting an IP address, no 400 errors or anything:
# curl http://foreman-proxy:8443/dhcp/10.x.x.0/unused_ip?mac=XX:XX:XX:XX:XX:XX | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19 100 19 0 0 52 0 --:--:-- --:--:-- --:--:-- 52
{
"ip": "10.x.x.27"
}
I’m just looking for a lead, at least, as to where to look to figure this out.
Any help is greatly appreciated, we want to get this up and running soon to get a pile of important virtual machines migrated using foreman for deploying.
Cheers,
Shawn Q.