Failed to edit host's mac address

I was trying to update my host with new mac address and after "overwrite" i
got the following error:

Unable to save
DHCP conflicts removal for r03h05.perf-il.lab.primarydata.com task failed
with the following error: ERF12-0635 [ProxyAPI::ProxyException]: Unable to
delete DHCP entry for c8:1f:66:d7:93:ce ([RestClient::BadRequest]: 400 Bad
Request) for proxy https://foreman2.il.lab.primarydata.com:8443/dhcp

What seams to be the problem and how should i fix it?

In the same context, After installing SmartProxy on my DHCP server:

  1. should i run any extra configuration in DHCP or is it automatically
    managed by SmartProxy?
  2. I can see that /var/lib/dhcpd/dhcpd.leases contain both host entires
    and *lease *entires. for some reason i have conflicts between those entires.
    For example, I have three *lease *entries with the same MAC address.
    Anything I can do or should be done it that case?

Thanks

> I was trying to update my host with new mac address and after
> "overwrite" i got the following error:
>
>
> Unable to save
>
> # DHCP conflicts removal for r03h05.perf-il.lab.primarydata.com task
> failed with the following error: ERF12-0635 [ProxyAPI::ProxyException]:
> Unable to delete DHCP entry for c8:1f:66:d7:93:ce
> ([RestClient::BadRequest]: 400 Bad Request) for proxy
> https://foreman2.il.lab.primarydata.com:8443/dhcp
>
>
> What seams to be the problem and how should i fix it?

The Smart Proxy's log file (/var/log/foreman-proxy/proxy.log) will
likely indicate the cause of the error.

ERF error codes may also have documentation on this page:
http://projects.theforeman.org/projects/foreman/wiki/ErrorCodes

> In the same context, After installing SmartProxy on my DHCP server:
> 1. should i run any extra configuration in DHCP or is it automatically
> managed by SmartProxy?

The proxy doesn't manage the configuration, it only adds and removes
reservations via the dhcpd API (OMAPI).

The main thing you need to ensure is that OMAPI's enabled in dhcpd.conf,
and keys are configured if you want more security.

Foreman :: Manual has details.

> 2. I can see that /var/lib/dhcpd/dhcpd.leases contain both host
> entires and *lease *entires. for some reason i have conflicts between
> those entires.
> For example, I have three *lease *entries with the same MAC address.
> Anything I can do or should be done it that case?

I expect some are older and have expired, so probably don't matter at
all. Restarting dhcpd usually gets it to rewrite its state file.

Generally these questions should be directed at the foreman-users list
in future, where you'll probably get a better response (this list is for
development).

Cheers,

··· On 28/08/14 11:00, Avi Tal wrote:


Dominic Cleal
Red Hat Engineering