I was able to change a host from one name to another a couple minor 
releases ago, but now I'm unable to again (had this issue before). I'm 
changing a node from a log server to a cinder node - log001 to cind017 
names. I'm using foreman to manage DHCP for IPMI as well and this act of 
changing hostname has caused the IPMI for this node to fail. I do however 
get sporadic ICMP response from IPMI - about 1 response for every 1000 
attempts. 

I've removed the host, rebooted the foreman server, removed the node from 
/var/lib/dhcp/dhcpd.leases.. to no avail. Below is an excerpt from syslog:

Jun 21 17:09:27 uswprov01 dhcpd: none: host unknown.
Jun 21 17:09:27 uswprov01 dhcpd: DHCPOFFER on 10.60.0.36 to 
f8:0f:41:81:26:5a via 10.60.0.1
Jun 21 17:09:27 uswprov01 dhcpd: DHCPREQUEST for 10.60.0.36 (10.60.6.12) 
from f8:0f:41:81:26:5a via 10.60.0.1
Jun 21 17:09:27 uswprov01 dhcpd: DHCPACK on 10.60.0.36 to f8:0f:41:81:26:5a 
via 10.60.0.1
Jun 21 17:10:07 uswprov01 dhcpd: DHCPDISCOVER from f8:0f:41:81:26:5a via 
10.60.0.1
Jun 21 17:10:07 uswprov01 dhcpd: DHCPOFFER on 10.60.0.36 to 
f8:0f:41:81:26:5a via 10.60.0.1
Jun 21 17:10:07 uswprov01 dhcpd: DHCPREQUEST for 10.60.0.36 (10.60.6.12) 
from f8:0f:41:81:26:5a via 10.60.0.1
Jun 21 17:10:07 uswprov01 dhcpd: DHCPACK on 10.60.0.36 to f8:0f:41:81:26:5a 
via 10.60.0.1
Jun 21 17:10:48 uswprov01 dhcpd: DHCPDISCOVER from f8:0f:41:81:26:5a via 
10.60.0.1

Not sure why it thinks "host unknown"... below is the entry from 
/var/lib/dhcp/dhcpd.leases:

host usw1cind017.domain {
  dynamic;
  hardware ethernet f8:0f:41:81:26:59;
  fixed-address 10.60.5.36;
        supersede server.filename = "pxelinux.0";
        supersede server.next-server = 0a:3c:06:0c;
        supersede host-name = "usw1cind017.domain";
}
host usw1cind017-i.domain {
  dynamic;
  hardware ethernet f8:0f:41:81:26:5a;
  fixed-address 10.60.0.36;
        supersede host-name = "usw1cind017-i.domain";
}

Below is an excerpt from /var/log/foreman/production.log:


2016-06-21T17:14:09 [app] [I] Started PUT "/hosts/usw1cind017.domain.cloud" 
for 172.30.132.22 at 2016-06-21 17:14:09 +0000
2016-06-21T17:14:09 [app] [I] Processing by HostsController#update as */*
2016-06-21T17:14:09 [app] [I]   Parameters: {"utf8"=>"✓", 
"authenticity_token"=>"tokenredacted", "host"=>{"name"=>"usw1cind017", 
"hostgroup_id"=>"3", "environment_id"=>"1", "puppet_ca_proxy_id"=>"1", 
"puppet_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"t", 
"progress_report_id"=>"[FILTERED]", 
"interfaces_attributes"=>{"0"=>{"_destroy"=>"0", 
"mac"=>"f8:0f:41:81:26:59", "identifier"=>"", "name"=>"usw1cind017", 
"domain_id"=>"3", "subnet_id"=>"2", "ip"=>"10.60.5.36", "managed"=>"1", 
"primary"=>"1", "provision"=>"1", "tag"=>"", "attached_to"=>"", 
"id"=>"180"}, "1"=>{"_destroy"=>"0", "mac"=>"f8:0f:41:81:26:5a", 
"identifier"=>"", "name"=>"usw1cind017-i", "domain_id"=>"3", 
"subnet_id"=>"3", "ip"=>"10.60.0.36", "managed"=>"1", "primary"=>"0", 
"provision"=>"0", "username"=>"admin", "provider"=>"IPMI", "id"=>"181"}}, 
"architecture_id"=>"1", "operatingsystem_id"=>"4", "medium_id"=>"6", 
"ptable_id"=>"74", "disk"=>"", "is_owned_by"=>"3-Users", "enabled"=>"1", 
"model_id"=>"", "comment"=>"", "overwrite"=>"false"}, 
"fakepassword"=>"[FILTERED]", "id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:09 [app] [D] Setting current user thread-local variable to 
admin
2016-06-21T17:14:09 [app] [D] Setting current organization thread-local 
variable to none
2016-06-21T17:14:09 [app] [D] Setting current location thread-local 
variable to none
2016-06-21T17:14:09 [app] [I] Redirected to 
https://10.60.6.12/hosts/usw1cind017.domain.cloud
2016-06-21T17:14:09 [app] [D] Setting current location thread-local 
variable to none
2016-06-21T17:14:09 [app] [D] Setting current organization thread-local 
variable to none
2016-06-21T17:14:09 [app] [I] Completed 302 Found in 513.7ms (ActiveRecord: 
20.2ms)
2016-06-21T17:14:09 [app] [I] Started GET "/hosts/usw1cind017.domain.cloud" 
for 172.30.132.22 at 2016-06-21 17:14:09 +0000
2016-06-21T17:14:09 [app] [I] Processing by HostsController#show as */*
2016-06-21T17:14:09 [app] [I]   Parameters: 
{"id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:09 [app] [D] Setting current user thread-local variable to 
admin
2016-06-21T17:14:09 [app] [I]   Rendered hosts/show.html.erb within 
layouts/application (19.1ms)
2016-06-21T17:14:09 [app] [I]   Rendered home/_user_dropdown.html.erb 
(1.4ms)
2016-06-21T17:14:09 [app] [I] Read fragment views/tabs_and_title_records-3 
0.1ms
2016-06-21T17:14:09 [app] [I]   Rendered home/_topbar.html.erb (2.5ms)
2016-06-21T17:14:09 [app] [I]   Rendered layouts/base.html.erb (3.7ms)
2016-06-21T17:14:09 [app] [I] Completed 200 OK in 33.9ms (Views: 23.4ms | 
ActiveRecord: 3.2ms)
2016-06-21T17:14:10 [app] [I] Started GET 
"/hosts/usw1cind017.domain.cloud/overview" for 172.30.132.22 at 2016-06-21 
17:14:10 +0000
2016-06-21T17:14:10 [app] [I] Processing by HostsController#overview as HTML
2016-06-21T17:14:10 [app] [I]   Parameters: 
{"id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:10 [app] [D] Setting current user thread-local variable to 
admin
2016-06-21T17:14:10 [app] [I]   Rendered hosts/_overview.html.erb (23.6ms)
2016-06-21T17:14:10 [app] [I] Completed 200 OK in 35.6ms (Views: 21.2ms | 
ActiveRecord: 7.1ms)
2016-06-21T17:14:10 [app] [I] Started GET 
"/hosts/usw1cind017.domain.cloud/templates" for 172.30.132.22 at 2016-06-21 
17:14:10 +0000
2016-06-21T17:14:10 [app] [I] Processing by HostsController#templates as 
HTML
2016-06-21T17:14:10 [app] [I]   Parameters: 
{"id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:10 [app] [D] Setting current user thread-local variable to 
admin
2016-06-21T17:14:10 [app] [I]   Rendered text template (0.0ms)
2016-06-21T17:14:10 [app] [I] Completed 200 OK in 63.7ms (Views: 0.7ms | 
ActiveRecord: 26.4ms)
2016-06-21T17:14:10 [app] [I] Started GET 
"/hosts/usw1cind017.domain.cloud/resources?range=7" for 172.30.132.22 at 
2016-06-21 17:14:10 +0000
2016-06-21T17:14:10 [app] [I] Processing by HostsController#resources as 
HTML
2016-06-21T17:14:10 [app] [I]   Parameters: {"range"=>"7", 
"id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:10 [app] [D] Setting current user thread-local variable to 
admin
2016-06-21T17:14:10 [app] [I]   Rendered hosts/_resources.html.erb (2.3ms)
2016-06-21T17:14:10 [app] [I] Completed 200 OK in 10.0ms (Views: 4.1ms | 
ActiveRecord: 1.2ms)
2016-06-21T17:14:10 [app] [I] Started GET 
"/hosts/usw1cind017.domain.cloud/runtime?range=7" for 172.30.132.22 at 
2016-06-21 17:14:10 +0000
2016-06-21T17:14:10 [app] [I] Processing by HostsController#runtime as HTML
2016-06-21T17:14:10 [app] [I]   Parameters: {"range"=>"7", 
"id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:10 [app] [D] Setting current user thread-local variable to 
admin
2016-06-21T17:14:10 [app] [I]   Rendered hosts/_runtime.html.erb (2.2ms)
2016-06-21T17:14:10 [app] [I] Completed 200 OK in 113.9ms (Views: 3.7ms | 
ActiveRecord: 2.3ms)
2016-06-21T17:14:10 [app] [I] Started GET 
"/hosts/usw1cind017.domain.cloud/bmc" for 172.30.132.22 at 2016-06-21 
17:14:10 +0000
2016-06-21T17:14:10 [app] [I] Processing by HostsController#bmc as HTML
2016-06-21T17:14:10 [app] [I]   Parameters: 
{"id"=>"usw1cind017.domain.cloud"}
2016-06-21T17:14:10 [app] [D] Setting current user thread-local variable to 
admin



I am running Foreman 1.10.4. Thank you in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to