DHCP error while provisioning host from Satellite server Error ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry [RestClient::ResourceNotFound] 404 Resource Not Found

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.x

Issue

  • Error while creating a DHCP setting for host provision using Red Hat Satellite Server.

  • Create DHCP Settings for host.example.com task failed with the following error:

 ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry 
        ([RestClient::ResourceNotFound]: 404 Resource Not Found) for Capsule https://satellite.example.com:9090/dhcp

Resolution

  • Check the permissions of below-listed files and ensure permissions are correct.

  • Check whether umask value was changed which will cause the change in permissions of /var/lib/dhcpd/dhcpd.leases file.

      # ls -ltr /etc/dhcp/dhcpd.conf
      # ls -ltrd /etc/dhcp
      # chmod 755 /etc/dhcp
      # ls -ltr /var/lib/dhcpd/dhcpd.leases
      # ls -ldtr /var/lib/dhcpd/
      # chmod 755 /var/lib/dhcpd/dhcpd.leases
    
  • After changing the required permissions , Restart the service:

      # foreman-maintain service restart 
    
  • Check if the subnet defined in the Red Hat Satellite Server (by examining the output of the hammer subnet list command) is also defined in the /etc/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

  • Permissions for dhcpd directory were incorrect.

      # ls -ld /etc/dhcp
      drwxr-x---. 3 root root 1096 Mar  1 16:39 /etc/dhcp
      # ls  -ltr /var/lib/dhcpd/dhcpd.leases
      drwxr-----. 3 root root 3096 Mar  1 16:39 /var/lib/dhcpd/dhcpd.leases
    
  • The permissions should be dhcpd:dhcpd for all the files.

Diagnostic Steps

  • While checking /var/log/foreman-proxy/proxy.log see the below error.

      ERROR -- : Couldn't enable plugin dhcp_isc: File at '/etc/dhcp/dhcpd.conf' defined in 'config' parameter doesn't exist or is unreadable
      ERROR -- : Couldn't enable plugin dhcp: Dependency 'dhcp_isc' of 'dhcp' has not been enabled.
    
  • Verify DHCP feature is listed under WebUI --> Infrastructue --> Capsules --> Features.

      # hammer capsule info --id <satellite/capsule id>
    
SBR
Product(s)
Components
Category

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.