ProxyAPI operation FAILED dhcp

I'm running into a situation where I'm unable to add a new host to
foreman. I get the following error in the production log.

2016-01-11 12:16:51 [app] [W] ProxyAPI operation FAILED
> ProxyAPI::ProxyException: ERF12-4395 [ProxyAPI::ProxyException]: Unable
to retrieve DHCP entry for 10.4.15.13 ([RestClient::BadRequest]: 400 Bad
Request) for proxy https://foreman.domain.com
:9090/dhcp

I see that dhcp is loaded and that something is listening on port 9090.

tcp 0 0 0.0.0.0:9090 0.0.0.0:*
LISTEN 3111/ruby

I'm not seeing any errors in the user interface but am finding the above
error in the production.log.

forman,tftp,dhcp,dns are all running on the local foreman server.

I also get a similar error when attempting to build a system already in
foreman. So it seems like everything is pointing to foreman -> dhcpd
service. Not sure how I go about troubleshooting this since I see dhcpd is
running.

dhcpd 2926 0.0 0.2 115920 18924 ? Ss 11:58 0:00
/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd
–no-pid enp4s0

I should also add that I'm running the following versions:

CentOS 7.2.1511
Foreman 1.9.3

··· On Monday, 11 January 2016 13:14:36 UTC-7, Edward Clay wrote: > > I'm running into a situation where I'm unable to add a new host to > foreman. I get the following error in the production log. > > 2016-01-11 12:16:51 [app] [W] ProxyAPI operation FAILED > > ProxyAPI::ProxyException: ERF12-4395 [ProxyAPI::ProxyException]: Unable > to retrieve DHCP entry for 10.4.15.13 ([RestClient::BadRequest]: 400 Bad > Request) for proxy https://foreman.domain.com > :9090/dhcp > > > I see that dhcp is loaded and that something is listening on port 9090. > > tcp 0 0 0.0.0.0:9090 0.0.0.0:* > LISTEN 3111/ruby > > > I'm not seeing any errors in the user interface but am finding the above > error in the production.log. > > forman,tftp,dhcp,dns are all running on the local foreman server. > > I also get a similar error when attempting to build a system already in > foreman. So it seems like everything is pointing to foreman -> dhcpd > service. Not sure how I go about troubleshooting this since I see dhcpd is > running. > > dhcpd 2926 0.0 0.2 115920 18924 ? Ss 11:58 0:00 > /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd > --no-pid enp4s0 > >

> I'm running into a situation where I'm unable to add a new host to
> foreman. I get the following error in the production log.
>
> 2016-01-11 12:16:51 [app] [W] ProxyAPI operation FAILED
> > ProxyAPI::ProxyException: ERF12-4395 [ProxyAPI::ProxyException]: Unable
> to retrieve DHCP entry for 10.4.15.13 ([RestClient::BadRequest]: 400 Bad
> Request) for proxy https://foreman.domain.com
> :9090/dhcp

/var/log/foreman-proxy/proxy.log should have a corresponding error entry
that might have more info.

I think one of the most common problems here is if the files from the
dhcp service can't be read by the foreman-proxy user. Those permissions
can get reset if you updated the package for example. Take a look at at
the permissions on /var/lib/dhcp and /etc/dhcp.

··· On Mon, Jan 11, 2016 at 12:14:35PM -0800, Edward Clay wrote:

I see that dhcp is loaded and that something is listening on port 9090.

tcp 0 0 0.0.0.0:9090 0.0.0.0:*
LISTEN 3111/ruby

I’m not seeing any errors in the user interface but am finding the above
error in the production.log.

forman,tftp,dhcp,dns are all running on the local foreman server.

I also get a similar error when attempting to build a system already in
foreman. So it seems like everything is pointing to foreman -> dhcpd
service. Not sure how I go about troubleshooting this since I see dhcpd is
running.

dhcpd 2926 0.0 0.2 115920 18924 ? Ss 11:58 0:00
/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd
–no-pid enp4s0


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin
Red Hat Engineering