hi all,
discovery works great until I created a new hostgroup and changed the
discovery_rule to auto join new discovered hosts to the new created
hostgroup.
Creating new hosts in the old hostgroup found by discovery still works, but
not in the the hostgroup.
The output from the provisioned server can you see in the screenshot.
Following error messages in proxy.log
I, [2016-11-10T17:26:38.017404 #14069] INFO – : 172.16.4.5 - -
[10/Nov/2016:17:26:38 +0100] "POST /discovery/create HTTP/1.1" 500 36 1.0404
production.log
2016-11-10 17:28:31 [app] [I] Rendered
layouts/_application_content.html.erb (12.5ms)
2016-11-10 17:28:31 [app] [I] Rendered home/_user_dropdown.html.erb
(2.9ms)
2016-11-10 17:28:31 [app] [I] Read fragment views/tabs_and_title_records-3
(0.2ms)
2016-11-10 17:28:31 [app] [I] Rendered home/_topbar.html.erb (10.3ms)
2016-11-10 17:28:31 [app] [I] Rendered layouts/base.html.erb (11.6ms)
2016-11-10 17:28:31 [app] [I] Completed 200 OK in 68ms (Views: 41.6ms |
ActiveRecord: 6.8ms)
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:29:39 [app] [I] Started POST "/api/v2/discovered_hosts/facts"
for 10.0.2.15 at 2016-11-10 17:29:39 +0100
2016-11-10 17:29:39 [app] [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2016-11-10 17:29:39 [app] [I] Parameters: {"facts"=>"[FILTERED]",
"apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2016-11-10 17:29:39 [app] [I] Import facts for 'mac080027afa0ae' completed.
Added: 65, Updated: 0, Deleted 0 facts
2016-11-10 17:29:40 [app] [I] Detected subnet: Dev (172.16.4.0/24) with
taxonomy ["SSW-Trading GmbH"]/["Oststeinbek"]
2016-11-10 17:29:40 [app] [I] Assigned location: Oststeinbek
2016-11-10 17:29:40 [app] [I] Assigned organization: SSW-Trading GmbH
2016-11-10 17:29:40 [app] [I] Match found for host mac080027afa0ae (26)
rule Disco_Dev (4)
2016-11-10 17:29:40 [app] [I] Create DHCP reservation for
mac080027afa0ae.example.com-08:00:27:af:a0:ae/172.16.4.7
2016-11-10 17:29:40 [app] [I] Add DNS A record for
mac080027afa0ae.example.com/172.16.4.7
2016-11-10 17:29:40 [app] [I] Add DNS PTR record for
172.16.4.7/mac080027afa0ae.example.com
2016-11-10 17:29:40 [app] [W] Failed to generate PXELinux template :
undefined method path' for nil:NilClass > NoMethodError: undefined method
path' for nil:NilClass
> /usr/share/foreman/app/models/operatingsystem.rb:122:in medium_uri' > /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/models/katello/concerns/redhat_extensions.rb:52:in
medium_uri_with_content_uri'
> /usr/share/foreman/app/models/operatingsystems/redhat.rb:11:in
mediumpath' > /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:43:in
generate_pxe_template'
> /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:76:in
setTFTP' > /usr/share/foreman/app/models/concerns/orchestration.rb:162:in
execute'
> /usr/share/foreman/app/models/concerns/orchestration.rb:107:in block in process' > /usr/share/foreman/app/models/concerns/orchestration.rb:99:in
each'
> /usr/share/foreman/app/models/concerns/orchestration.rb:99:in process' > /usr/share/foreman/app/models/concerns/orchestration.rb:35:in
on_save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
block in make_lambda' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:164:in
call'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:164:in
block in halting' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
block in call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
each'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in
run_callbacks'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
_run_save_callbacks' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/callbacks.rb:302:in
create_or_update'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/persistence.rb:120:in
save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/validations.rb:37:in
save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:21:in
save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
block (2 levels) in save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:351:in
block in with_transaction_returning_status' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
block in transaction'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in
within_new_transaction' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
transaction'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:220:in
transaction' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:348:in
with_transaction_returning_status'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
block in save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:301:in
rollback_active_record_state!'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:285:in
save' > /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in
save_with_type'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.18/app/models/foreman_tasks/concerns/action_triggering.rb:29:in
block in save_with_dynflow_task_wrap' > /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.18/app/models/foreman_tasks/concerns/action_triggering.rb:133:in
dynflow_task_wrap'
…skipping…
2016-11-10 17:28:31 [app] [I] Rendered
layouts/_application_content.html.erb (12.5ms)
2016-11-10 17:28:31 [app] [I] Rendered home/_user_dropdown.html.erb
(2.9ms)
2016-11-10 17:28:31 [app] [I] Read fragment views/tabs_and_title_records-3
(0.2ms)
2016-11-10 17:28:31 [app] [I] Rendered home/_topbar.html.erb (10.3ms)
2016-11-10 17:28:31 [app] [I] Rendered layouts/base.html.erb (11.6ms)
2016-11-10 17:28:31 [app] [I] Completed 200 OK in 68ms (Views: 41.6ms |
ActiveRecord: 6.8ms)
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:29:39 [app] [I] Started POST "/api/v2/discovered_hosts/facts"
for 10.0.2.15 at 2016-11-10 17:29:39 +0100
2016-11-10 17:29:39 [app] [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2016-11-10 17:29:39 [app] [I] Parameters: {"facts"=>"[FILTERED]",
"apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2016-11-10 17:29:39 [app] [I] Import facts for 'mac080027afa0ae' completed.
Added: 65, Updated: 0, Deleted 0 facts
2016-11-10 17:29:40 [app] [I] Detected subnet: Dev (172.16.4.0/24) with
taxonomy ["SSW-Trading GmbH"]/["Oststeinbek"]
2016-11-10 17:29:40 [app] [I] Assigned location: Oststeinbek
2016-11-10 17:29:40 [app] [I] Assigned organization: SSW-Trading GmbH
2016-11-10 17:29:40 [app] [I] Match found for host mac080027afa0ae (26)
rule Disco_Dev (4)
2016-11-10 17:29:40 [app] [I] Create DHCP reservation for
mac080027afa0ae.example.com-08:00:27:af:a0:ae/172.16.4.7
2016-11-10 17:29:40 [app] [I] Add DNS A record for
mac080027afa0ae.example.com/172.16.4.7
2016-11-10 17:29:40 [app] [I] Add DNS PTR record for
172.16.4.7/mac080027afa0ae.example.com
2016-11-10 17:29:40 [app] [W] Failed to generate PXELinux template :
undefined method path' for nil:NilClass > NoMethodError: undefined method
path' for nil:NilClass
> /usr/share/foreman/app/models/operatingsystem.rb:122:in medium_uri' > /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/models/katello/concerns/redhat_extensions.rb:52:in
medium_uri_with_content_uri'
> /usr/share/foreman/app/models/operatingsystems/redhat.rb:11:in
mediumpath' > /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:43:in
generate_pxe_template'
> /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:76:in
setTFTP' > /usr/share/foreman/app/models/concerns/orchestration.rb:162:in
execute'
> /usr/share/foreman/app/models/concerns/orchestration.rb:107:in block in process' > /usr/share/foreman/app/models/concerns/orchestration.rb:99:in
each'
> /usr/share/foreman/app/models/concerns/orchestration.rb:99:in process' > /usr/share/foreman/app/models/concerns/orchestration.rb:35:in
on_save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
block in make_lambda' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:164:in
call'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:164:in
block in halting' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
block in call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
each'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in
run_callbacks'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
_run_save_callbacks' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/callbacks.rb:302:in
create_or_update'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/persistence.rb:120:in
save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/validations.rb:37:in
save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:21:in
save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
block (2 levels) in save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:351:in
block in with_transaction_returning_status' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
block in transaction'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in
within_new_transaction' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
transaction'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:220:in
transaction' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:348:in
with_transaction_returning_status'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
block in save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:301:in
rollback_active_record_state!'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:285:in
save' > /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in
save_with_type'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.18/app/models/foreman_tasks/concerns/action_triggering.rb:29:in
block in save_with_dynflow_task_wrap' > /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.18/app/models/foreman_tasks/concerns/action_triggering.rb:133:in
dynflow_task_wrap'
…skipping…
[root@katello:/etc/foreman-proxy/settings.d ] $ cat /var/log/error.log
2016-11-10 17:28:31 [app] [I] Rendered
layouts/_application_content.html.erb (12.5ms)
2016-11-10 17:28:31 [app] [I] Rendered home/_user_dropdown.html.erb
(2.9ms)
2016-11-10 17:28:31 [app] [I] Read fragment views/tabs_and_title_records-3
(0.2ms)
2016-11-10 17:28:31 [app] [I] Rendered home/_topbar.html.erb (10.3ms)
2016-11-10 17:28:31 [app] [I] Rendered layouts/base.html.erb (11.6ms)
2016-11-10 17:28:31 [app] [I] Completed 200 OK in 68ms (Views: 41.6ms |
ActiveRecord: 6.8ms)
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:28:31 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-10 17:29:39 [app] [I] Started POST "/api/v2/discovered_hosts/facts"
for 10.0.2.15 at 2016-11-10 17:29:39 +0100
2016-11-10 17:29:39 [app] [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2016-11-10 17:29:39 [app] [I] Parameters: {"facts"=>"[FILTERED]",
"apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2016-11-10 17:29:39 [app] [I] Import facts for 'mac080027afa0ae' completed.
Added: 65, Updated: 0, Deleted 0 facts
2016-11-10 17:29:40 [app] [I] Detected subnet: Dev (172.16.4.0/24) with
taxonomy ["SSW-Trading GmbH"]/["Oststeinbek"]
2016-11-10 17:29:40 [app] [I] Assigned location: Oststeinbek
2016-11-10 17:29:40 [app] [I] Assigned organization: SSW-Trading GmbH
2016-11-10 17:29:40 [app] [I] Match found for host mac080027afa0ae (26)
rule Disco_Dev (4)
2016-11-10 17:29:40 [app] [I] Create DHCP reservation for
mac080027afa0ae.example.com-08:00:27:af:a0:ae/172.16.4.7
2016-11-10 17:29:40 [app] [I] Add DNS A record for
mac080027afa0ae.example.com/172.16.4.7
2016-11-10 17:29:40 [app] [I] Add DNS PTR record for
172.16.4.7/mac080027afa0ae.example.com
2016-11-10 17:29:40 [app] [W] Failed to generate PXELinux template :
undefined method path' for nil:NilClass > NoMethodError: undefined method
path' for nil:NilClass
> /usr/share/foreman/app/models/operatingsystem.rb:122:in medium_uri' > /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/models/katello/concerns/redhat_extensions.rb:52:in
medium_uri_with_content_uri'
> /usr/share/foreman/app/models/operatingsystems/redhat.rb:11:in
mediumpath' > /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:43:in
generate_pxe_template'
> /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:76:in
setTFTP' > /usr/share/foreman/app/models/concerns/orchestration.rb:162:in
execute'
> /usr/share/foreman/app/models/concerns/orchestration.rb:107:in block in process' > /usr/share/foreman/app/models/concerns/orchestration.rb:99:in
each'
> /usr/share/foreman/app/models/concerns/orchestration.rb:99:in process' > /usr/share/foreman/app/models/concerns/orchestration.rb:35:in
on_save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
block in make_lambda' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:164:in
call'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:164:in
block in halting' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
block in call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
each'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in
call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in
run_callbacks'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
_run_save_callbacks' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/callbacks.rb:302:in
create_or_update'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/persistence.rb:120:in
save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/validations.rb:37:in
save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:21:in
save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
block (2 levels) in save'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:351:in
block in with_transaction_returning_status' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
block in transaction'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in
within_new_transaction' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
transaction'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:220:in
transaction' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:348:in
with_transaction_returning_status'
>
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
block in save' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:301:in
rollback_active_record_state!'
>
/