ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::BadRequest]: 400 Bad Request) for proxy
Environment
- Red Hat Satellite 6 (which uses DHCP service from the Integrated/External Red Hat capsule)
Issue
- Creating a new host fails with error:
Create DHCP Settings for client.example.com task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::BadRequest]: 400 Bad Request) for proxy https://satellite.example.com:9090/dhcp
Resolution
-
Fix the syntax in /etc/dhcp/dhcpd.conf
-
The below command can be used to check the syntax:
# dhcpd -t -cf /etc/dhcp/dhcpd.conf
For more KB articles/solutions related to Red Hat Satellite 6.x Provisioning Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Provisioning related Issues
Root Cause
- This can happen because the Red Hat Satellite fails to contact the DHCP service for creating IP reservations.
Diagnostic Steps
- The following errors were observed in /var/log/messages:
Jun 21 10:00:16 satellite1 dhcpd: /etc/dhcp/dhcpd.conf line 2: expecting a parameter or declaration
Jun 21 10:00:16 satellite1 dhcpd: /etc/dhcp/dhcpd.conf line 4: expecting a parameter or declaration
Jun 21 10:00:16 satellite1 dhcpd: /etc/dhcp/dhcpd.conf line 6: expecting a parameter or declaration
Jun 21 10:00:16 satellite1 dhcpd: /etc/dhcp/dhcpd.conf line 7: expecting a parameter or declaration
Jun 21 10:02:36 satellite1 dhcpd: /etc/dhcp/dhcpd.conf line 33: expecting numeric value.
So, it is implied that this issue could be related to dhcp configuration file syntax.
SBR
Product(s)
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.