Deleting a host or changing an interface results in 'ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for 00:50:56:96:1d:0f ([RestClient::BadRequest]: 400 Bad Request)'

Problem:

I’m trying to delete a host. When I do this, Foreman complains with the following error:

**Unable to save** * Remove DHCP Settings for test1.example.org task failed with the following error: ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for 00:50:56:AA:BB:CC ([RestClient::BadRequest]: 400 Bad Request) for proxy https://puppet.example.org:8443/dhcp

This happens for other actions, such as when we change an interface used by a node. I have not yet tried provisioning a node in this state.

Expected outcome:

I expected Foreman to remove the entry from the DHCP database and to delete the hosts

Foreman and Proxy versions:

  • Foreman version 1.21.3
  • TFTP, Puppet, Puppet CA, Logs, and DHCP
    1.21.3

Foreman and Proxy plugin versions:

n/a

Other relevant data:

Unsure which logs are needed.

I updated to 1.21.4 and then to 1.22.1, which involved a couple reboots and one re-run with foreman-installer. That restored whatever was broken here.