Problem:
On an existing host, try to change the PXE Loader from the Foreman web UI. Results in error
Create DHCP Settings for lucia-noice.helab.in task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://thepuppetmaster.helab.in:8443/dhcp
However the dhcp lease file gets updated with the new entry.
Expected outcome:
DHCP lease file will already have an entry for this host. On changing the PXE Loader, it should invalidate this entry an write a new entry at the bottom.
Foreman and Proxy versions:
foreman/xenial,now 1.15.6-1 amd64 [installed,automatic]
foreman-cli/xenial,xenial,now 1.15.6-1 all [installed]
foreman-debug/xenial,xenial,now 1.15.6-1 all [installed,automatic]
foreman-installer/xenial,xenial,now 1.15.6-1 all [installed]
foreman-postgresql/xenial,xenial,now 1.15.6-1 all [installed]
foreman-proxy/xenial,xenial,now 1.15.6-1 all [installed]
ruby-foreman-hooks/plugins,plugins,now 0.3.14-1 all [installed]
ruby-foreman-setup/plugins,plugins,now 5.0.0-1 all [installed]
ruby-hammer-cli-foreman/xenial,xenial,now 0.10.2-1 all [installed,automatic]
Foreman and Proxy plugin versions:
isc-dhcp-client/xenial-updates,now 4.3.3-5ubuntu12.10 amd64 [installed]
isc-dhcp-common/xenial-updates,now 4.3.3-5ubuntu12.10 amd64 [installed]
isc-dhcp-server/xenial-updates,now 4.3.3-5ubuntu12.10 amd64 [installed]
Other relevant data:
Lease file before changing pxe loader:
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.3.3
server-duid "\000\001\000\001\"\254\017O\000PV\210\200\223";
host lucia-noice.helab.in {
dynamic;
hardware ethernet 00:50:56:88:b4:15;
fixed-address 10.10.10.25;
supersede server.filename = "pxelinux.0";
supersede server.next-server = 0a:0a:0a:02;
supersede host-name = "lucia-noice.helab.in";
}
After changing PXE Loader through web UIlogs.tar (116.5 KB)
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.3.3
host lucia-noice.helab.in {
dynamic;
hardware ethernet 00:50:56:88:b4:15;
fixed-address 10.10.10.25;
supersede server.filename = "pxelinux.0";
supersede server.next-server = 0a:0a:0a:02;
supersede host-name = "lucia-noice.helab.in";
}
server-duid "\000\001\000\001\"\254\017O\000PV\210\200\223";
host lucia-noice.helab.in {
dynamic;
deleted;
}
host lucia-noice.helab.in {
dynamic;
hardware ethernet 00:50:56:88:b4:15;
fixed-address 10.10.10.25;
supersede server.filename = "pxelinux.efi";
supersede server.next-server = 0a:0a:0a:02;
supersede host-name = "lucia-noice.helab.in";
}
production.log and proxy.log is attached