Support #15210
Updated by Dominic Cleal over 8 years ago
DHCp proxy is not working in foreman 1.11.2. I got the following error ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::ResourceNotFound] I configured my DHCP Settings as below dhcpd.conf: <pre> [root@ol07frm01 ~]# cat /etc/dhcp/dhcpd.conf ddns-update-style interim; ignore client-updates; authoritative; allow booting; allow bootp; omapi-port 7911; #Optional key: key omapi_key { algorithm HMAC-MD5; secret "F6wbnGJ6rI66sTgIWDbP2mD7uAQ8+z8A87/DGvrYimGNiROVRoDUJOYLtsF+ZeM2ZXYuctw30Bom/SwBTCq0xA=="; } omapi-key omapi_key; subnet 129.135.66.0 netmask 255.255.255.0 { # --- default gateway option routers 129.135.66.2; option subnet-mask 255.255.255.0; option domain-name "lax.com"; # option domain-name-servers 10.1.1.1, 8.8.8.8; # option log-servers syslog; # option ntp-servers ntp; range dynamic-bootp 129.135.66.236 129.135.66.254; default-lease-time 21600; max-lease-time 43200; next-server 129.135.66.236 ; filename "pxelinux.0"; } </pre> dhcp.yml: <pre> [root@ol07frm01 ~]# cat /etc/foreman-proxy/settings.d/dhcp.yml --- # Enable DHCP management # Can be true, false, or http/https to enable just one of the protocols :enabled: https # valid providers: # - dhcp_isc (ISC dhcp server) # - dhcp_native_ms (Microsoft native implementation) # - dhcp_virsh (simple implementation for libvirt) :use_provider: dhcp_isc :server: 127.0.0.1 # subnets restricts the subnets queried to a subset, to reduce the query time. #:subnets: [192.168.205.0/255.255.255.128, 192.168.205.128/255.255.255.128] :subnets: [129.135.66.0/255.255.255.0] :config: /etc/dhcp/dhcpd.conf :leases: /var/lib/dhcpd/dhcpd.leases :omapi_port: 7911 :key_name: omapi_key :key_secret: F6wbnGJ6rI66sTgIWDbP2mD7uAQ8+z8A87/DGvrYimGNiROVRoDUJOYLtsF+ZeM2ZXYuctw30Bom/SwBTCq0xA== [root@ol07frm01 ~]# ll -lrt /etc/foreman-proxy/settings.d/dhcp.yml -rw-r----- 1 root foreman-proxy 723 May 26 19:37 /etc/foreman-proxy/settings.d/dhcp.yml </pre> I installed foreman-dhcp_browser and configured DHCP subnet also. It was working in foreman 1.10.2 Please help me