Red Hat Satellite 6 fails to auto suggest IP address from DHCP range
Environment
- Red Hat Satellite 6.1
Issue
-
After performing steps as per provisioning guide Red Hat Satellite 6 is acting as a DHCP/PXE/TFTP server to do kickstart.
However, on theNew Host
page,Suggest New IP
doesn't work.
Also trying to add IP address manually fails with following error:ERF12-4395 [ProxyAPI::ProxyException]: Unable to retrieve DHCP entry for 00:50:56:xx:xx:xx ([RestClient::BadRequest]: 400 Bad Request) for proxy https://satellite.example.com:9090/dhcp
Resolution
-
As a workaround add
foreman-proxy
user todhcpd
group on Red Hat Satellite 6 server.# usermod -a -G dhcpd foreman-proxy
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 issue is being tracked in bugzila 1263099.
Diagnostic Steps
- Red Hat Satellite 6 is acting as a DHCP/PXE/TFTP server to do kickstart. Trying to provision a system on VMWare. However, on the "New Host" page,
Suggest New IP
doesn't work.
- Login to the Satellite UI.
- Click on Hosts --> New host --> Fill in the information for (Host, Puppet Classes, Network) tabs.
- In network tab
IP address
is not getting auto suggested.
-
When creating New Hosts, and clicking on
suggest auto IP
following error of permission denied is been logged.[root@sat ~]# tailf /var/log/foreman-proxy/proxy.log E, [2015-09-04T15:19:19.255164 #1881] ERROR -- : Permission denied - /var/lib/dhcpd/dhcpd.leases 10.xxx.xxx.xx - - [04/Sep/2015 15:19:19] "GET /dhcp/10.xxx.xxx.xx/unused_ip?from=10.xxx.xxx.xx&to=10.xxx.xxx.xx HTTP/1.1" 400 47 0.0024 E, [2015-09-04T15:19:46.361282 #1881] ERROR -- : Permission denied - /var/lib/dhcpd/dhcpd.leases 10.xxx.xxx.xx - - [04/Sep/2015 15:19:46] "GET /dhcp/10.xxx.xxx.xx/unused_ip?from=10.xxx.xxx.xx&to=10.xxx.xxx.xx HTTP/1.1" 400 47 0.0026 E, [2015-09-04T15:20:24.781540 #1881] ERROR -- : Permission denied - /var/lib/dhcpd/dhcpd.leases 10.xxx.xxx.xx - - [04/Sep/2015 15:20:24] "GET /dhcp/10.xxx.xxx.xx/unused_ip?from=10.xxx.xxx.xx&to=10.xxx.xxx.xx HTTP/1.1" 400 47 0.0046 E, [2015-09-04T15:20:28.862265 #1881] ERROR -- : Permission denied - /var/lib/dhcpd/dhcpd.leases 10.xxx.xxx.xx - - [04/Sep/2015 15:20:28] "GET /dhcp/10.xxx.xxx.xx/unused_ip?from=10.xxx.xxx.xx&to=10.xxx.xxx.xx HTTP/1.1" 400 47 0.0024 E, [2015-09-04T15:21:29.718177 #1881] ERROR -- : Permission denied - /var/lib/dhcpd/dhcpd.leases 10.xxx.xxx.xx - - [04/Sep/2015 15:21:29] "GET /dhcp/10.xxx.xxx.xx/unused_ip?from=10.xxx.xxx.xx&to=10.xxx.xxx.xx HTTP/1.1" 400 47 0.0026
-
Permission of
/var/lib/dhcpd/dhcpd.leases
is set to640
, where as in working Red Hat Satellite 6 server it is644
. When we try to change that, upon restarting the service the permission gets back to640
again.[root@sat ~]# ls -lZ /var/lib/dhcpd/dhcpd.leases -rw-r-----. dhcpd dhcpd unconfined_u:object_r:dhcpd_state_t:s0 /var/lib/dhcpd/dhcpd.leases [root@sat ~]# chmod 644 /var/lib/dhcpd/dhcpd.leases [root@sat ~]# ls -lZ /var/lib/dhcpd/dhcpd.leases -rw-r--r--. dhcpd dhcpd unconfined_u:object_r:dhcpd_state_t:s0 /var/lib/dhcpd/dhcpd.leases [root@sat ~]# service dhcpd restart Shutting down dhcpd: [ OK ] Starting dhcpd: [ OK ] [root@sat ~]# ls -lZ /var/lib/dhcpd/dhcpd.leases -rw-r-----. dhcpd dhcpd unconfined_u:object_r:dhcpd_state_t:s0 /var/lib/dhcpd/dhcpd.leases
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.