Getting a 504 Gateway Timeout error; however, reviewing the logs still shows the same error occurring.
Tried chmod 755 /etc/dhcp
in Ubuntu, and it didn’t fix it…
Log from /var/log/foreman/production.log
:
2023-10-23T13:28:28 [W|app|e816bcd2] Rolling back due to a problem: [#<Orchestration::Task:0x00007f4bb871d8f0 @name="Create DHCP Settings for foremantest.spectric.dev", @id="dhcp_create_00:0c:-:-:-:-", @status="failed", @priority=10, @action=[#<Nic::Managed id: nil, mac: "00:0c:-:-:-:-", ip: "10.-.-.-", type: "Nic::Managed", name: "foremantest.-.dev", host_id: nil, subnet_id: 1, domain_id: 2, attrs: {}, created_at: nil, updated_at: nil, provider: nil, username: nil, password: nil, virtual: false, link: true, identifier: "ens160", tag: "", attached_to: "", managed: true, mode: "balance-rr", attached_devices: "", bond_options: "", primary: true, provision: true, compute_attributes: {}, ip6: "", subnet6_id: nil>, :set_dhcp], @created=1698067647.970819, @timestamp=2023-10-23 13:28:28.118894025 UTC>]
2023-10-23T13:28:28 [E|app|e816bcd2] Failed to save: Create DHCP Settings for foremantest.spectric.dev task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Exceptions::ReadTimeout]: Timed out reading data from server) for proxy https://-.-.dev:8443/dhcp
Log from /var/log/syslog
when trying to create the host:
Oct 23 13:26:37 puppet dhcpd[57823]: reuse_lease: lease age 10185 (secs) under 25% threshold, reply with unaltered, existing lease for 10.-.-.-
Oct 23 13:26:37 puppet dhcpd[57823]: DHCPDISCOVER from 00:0c:-:-:-:- via ens160
Oct 23 13:26:38 puppet dhcpd[57823]: DHCPOFFER on 10.-.-.- to 00:0c:-:-:-:- via ens160
Oct 23 13:26:40 puppet dhcpd[57823]: reuse_lease: lease age 10188 (secs) under 25% threshold, reply with unaltered, existing lease for 10.-.-.-
Oct 23 13:26:40 puppet dhcpd[57823]: DHCPREQUEST for 10.-.-.- (10.-.-.-) from 00:0c:-:-:-:- via ens160
Oct 23 13:26:40 puppet dhcpd[57823]: DHCPACK on 10.-.-.- to 00:0c:-:-:-:- via ens160
Oct 23 13:26:40 puppet in.tftpd[312368]: tftp: client does not accept options