Problem deleting hosts in 1.8.0

Seeing this problem when trying to delete a host in 1.8.0:

http://imgur.com/HsVAzpQ

Relevant bit of the Foreman production.log:

Started DELETE "/hosts/[host redacted]" for 10.64.64.33 at 2015-04-29
15:24:50 +0100
2015-04-29 15:24:50 [I] Processing by HostsController#destroy as HTML
2015-04-29 15:24:50 [I] Parameters: {"authenticity_token"=>"Y1G6H/
UM1hWk7ITV1tXKOxWrJ5x1ZzGPH2OuJa54XtY=",
"id"=>"[host redacted]"}
2015-04-29 15:24:50 [W] Unable to find IP address for '[dhcp host
redacted]': can't modify frozen Hash
2015-04-29 15:24:50 [W] failed to detect boot server: ERF50-9294
[Foreman::WrappedException]: Unable to find IP address for '[dhcp host
redacted]' ([RuntimeError]: can't modify frozen Hash)
2015-04-29 15:24:50 [I] Delete DHCP reservation for [host
redacted]-00:de:ad:be:ef:00/10.64.64.128
2015-04-29 15:24:50 [I] Rendered text template (0.0ms)
2015-04-29 15:24:50 [I] Completed 200 OK in 1764ms (Views: 153.1ms |
ActiveRecord: 348.7ms)
2015-04-29 15:24:50 [I] Delete the TFTP configuration for [host redacted]
2015-04-29 15:24:50 [W] Rolling back due to a problem: []
2015-04-29 15:24:50 [I] Add the TFTP configuration for [host redacted]
2015-04-29 15:24:51 [I] Create DHCP reservation for [host
redacted]-00:de:ad:be:ef:00/10.64.64.128
2015-04-29 15:24:52 [I] Failed to save: failed to detect boot server:
ERF50-9294 [Foreman:: WrappedException]: Unable to find IP
address for '[dhcp host redacted]' ([RuntimeError]: can't modify frozen
Hash)
2015-04-29 15:24:52 [I]

Proxy log on DHCP host:

[IP redacted] - - [29/Apr/2015 15:24:50] "GET /serverName HTTP/1.1" 200 17
0.0038
[IP redacted] - - [29/Apr/2015 15:24:50] "DELETE /
10.64.64.0/00:de:ad:be:ef:00 HTTP/1.1" 200 - 0.0921
[IP redacted] - - [29/Apr/2015 15:24:50] "DELETE
/syslinux/00:de:ad:be:ef:00 HTTP/1.1" 200 - 0.0032
[IP redacted] - - [29/Apr/2015 15:24:51] "POST /syslinux/00:de:ad:be:ef:00
HTTP/1.1" 200 - 0.0021
[IP redacted] - - [29/Apr/2015 15:24:51] "POST /10.64.64.0 HTTP/1.1" 200 -
0.5858

That "failed to detect boot server" error is odd. You can definitely
resolve the hostname and ping the DHCP host from the Foreman server.

Pete

Apologies, it's already been reported:

Pete

··· On 29 April 2015 at 15:41, Pete Harvey wrote:

Seeing this problem when trying to delete a host in 1.8.0:

Imgur: The magic of the Internet

Relevant bit of the Foreman production.log:

Started DELETE “/hosts/[host redacted]” for 10.64.64.33 at 2015-04-29
15:24:50 +0100
2015-04-29 15:24:50 [I] Processing by HostsController#destroy as HTML
2015-04-29 15:24:50 [I] Parameters: {“authenticity_token”=>“Y1G6H/
UM1hWk7ITV1tXKOxWrJ5x1ZzGPH2OuJa54XtY=”,
“id”=>“[host redacted]”}
2015-04-29 15:24:50 [W] Unable to find IP address for ‘[dhcp host
redacted]’: can’t modify frozen Hash
2015-04-29 15:24:50 [W] failed to detect boot server: ERF50-9294
[Foreman::WrappedException]: Unable to find IP address for ‘[dhcp host
redacted]’ ([RuntimeError]: can’t modify frozen Hash)
2015-04-29 15:24:50 [I] Delete DHCP reservation for [host
redacted]-00:de:ad:be:ef:00/10.64.64.128
2015-04-29 15:24:50 [I] Rendered text template (0.0ms)
2015-04-29 15:24:50 [I] Completed 200 OK in 1764ms (Views: 153.1ms |
ActiveRecord: 348.7ms)
2015-04-29 15:24:50 [I] Delete the TFTP configuration for [host redacted]
2015-04-29 15:24:50 [W] Rolling back due to a problem:
2015-04-29 15:24:50 [I] Add the TFTP configuration for [host redacted]
2015-04-29 15:24:51 [I] Create DHCP reservation for [host
redacted]-00:de:ad:be:ef:00/10.64.64.128
2015-04-29 15:24:52 [I] Failed to save: failed to detect boot server:
ERF50-9294 [Foreman:: WrappedException]: Unable to find IP
address for ‘[dhcp host redacted]’ ([RuntimeError]: can’t modify frozen
Hash)
2015-04-29 15:24:52 [I]

Proxy log on DHCP host:

[IP redacted] - - [29/Apr/2015 15:24:50] “GET /serverName HTTP/1.1” 200 17
0.0038
[IP redacted] - - [29/Apr/2015 15:24:50] “DELETE /
10.64.64.0/00:de:ad:be:ef:00 HTTP/1.1” 200 - 0.0921
[IP redacted] - - [29/Apr/2015 15:24:50] “DELETE
/syslinux/00:de:ad:be:ef:00 HTTP/1.1” 200 - 0.0032
[IP redacted] - - [29/Apr/2015 15:24:51] “POST /syslinux/00:de:ad:be:ef:00
HTTP/1.1” 200 - 0.0021
[IP redacted] - - [29/Apr/2015 15:24:51] “POST /10.64.64.0 HTTP/1.1” 200

  • 0.5858

That “failed to detect boot server” error is odd. You can definitely
resolve the hostname and ping the DHCP host from the Foreman server.

Pete