Foreman 1.8.1 (rhel6) + Discovery 3.0.0 failing to send facts?

So I'm just starting out playing with the discovery plugin…I have a test
system pxe booting and it seems to the talking to the proxy (which lives on
the foreman host itself right now) just fine and sending facts, they just
aren't making it into foreman itself on import:

Started POST "/api/v2/discovered_hosts/facts" for 69.173.70.212 at
2015-06-12 16:56:54 -0400
2015-06-12 16:56:54 [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2015-06-12 16:56:54 [I] Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2",
"discovered_host"=>{"facts"=>"[FILTERED]"}}
2015-06-12 16:56:55 [I] Import facts for 'mac005056bb241e' completed.
Added: 74, Updated: 0, Deleted 0 facts
2015-06-12 16:56:55 [E] address family must be specified (ArgumentError)
/opt/rh/ruby193/root/usr/share/ruby/ipaddr.rb:460:in initialize' /usr/share/foreman/app/models/subnet.rb:97:innew'
/usr/share/foreman/app/models/subnet.rb:97:in block in subnet_for' /usr/share/foreman/app/models/subnet.rb:97:ineach'
/usr/share/foreman/app/models/subnet.rb:97:in subnet_for' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:110:inpopulate_fields_from_facts'
/usr/share/foreman/app/models/host/base.rb:122:in import_facts' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:90:inimport_facts'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:82:in
import_host_and_facts' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:100:inblock in facts'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in
transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:intransaction'
/usr/share/foreman/app/models/host.rb:15:in method_missing' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:99:infacts'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:518:in
block (5 levels) in _run__852246562247630380__process_action__2949889933624683811__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7558'
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in
disable_json_root' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7558'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:517:in
block (4 levels) in _run__852246562247630380__process_action__2949889933624683811__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7557'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_2875'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7557' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:505:inblock (3 levels) in
_run__852246562247630380__process_action__2949889933624683811__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7556' /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:inset_timezone'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7556' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:inblock (2 levels) in
_run__852246562247630380__process_action__2949889933624683811__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7555' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:inclear_thread'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7555' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:inblock in
_run__852246562247630380__process_action__2949889933624683811__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7554' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7554'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in
_run__852246562247630380__process_action__2949889933624683811__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:inprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in
process' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:inblock in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in
call' /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:incontext'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in_run__291395632630310783__call__3691332074010784787__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:incall_app'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:inforward'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in
pass' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:ininvalidate'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in
call!' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in
call' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:inmain_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in
`block (3 levels) in start_threads'
2015-06-12 16:56:55 [I] Rendered api/v2/errors/standard_error.json.rabl
within api/v2/layouts/error_layout (0.8ms)
2015-06-12 16:56:55 [I] Completed 500 Internal Server Error in 641ms
(Views: 2.0ms | ActiveRecord: 163.7ms)
2015-06-12 16:56:55 [I]

The test system WAS in foreman at one point,but before trying discovery
out,I deleted it, and have checked there are no other systems in foreman
that have the same IP address (I'll note, dhcp is NOT controlled by foreman
in my set, only TFTP)

Thoughts?

can you check the ipaddress fact this system reports? it looks like its
either empty or not valid?

Ohad

··· On Sat, Jun 13, 2015 at 12:01 AM, Matthew Nicholson < matthew.a.nicholson@gmail.com> wrote:

Started POST “/api/v2/discovered_hosts/facts” for 69.173.70.212 at
2015-06-12 16:56:54 -0400
2015-06-12 16:56:54 [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2015-06-12 16:56:54 [I] Parameters: {“facts”=>"[FILTERED]",
“apiv”=>“v2”, “discovered_host”=>{“facts”=>"[FILTERED]"}}
2015-06-12 16:56:55 [I] Import facts for ‘mac005056bb241e’ completed.
Added: 74, Updated: 0, Deleted 0 facts
2015-06-12 16:56:55 [E] address family must be specified (ArgumentError)
/opt/rh/ruby193/root/usr/share/ruby/ipaddr.rb:460:in initialize' /usr/share/foreman/app/models/subnet.rb:97:innew’
/usr/share/foreman/app/models/subnet.rb:97:in `block in subnet_for’

I ran into a similar problem that i'm still working on. VMware and UCS all
boot the discovery kernel ok, but Dell seems to throw this same issue. When
i asked about it there was a known bug that something with previously
discovered hosts caused this, so i'm not sure if you're running into this
bug or not.

I'll be running another provision test today to see if i hit same issue.

··· On Friday, June 12, 2015 at 4:02:05 PM UTC-5, Matt wrote: > > So I'm just starting out playing with the discovery plugin...I have a test > system pxe booting and it seems to the talking to the proxy (which lives on > the foreman host itself right now) just fine and sending facts, they just > aren't making it into foreman itself on import: > > > > Started POST "/api/v2/discovered_hosts/facts" for 69.173.70.212 at > 2015-06-12 16:56:54 -0400 > 2015-06-12 16:56:54 [I] Processing by > Api::V2::DiscoveredHostsController#facts as JSON > 2015-06-12 16:56:54 [I] Parameters: {"facts"=>"[FILTERED]", > "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}} > 2015-06-12 16:56:55 [I] Import facts for 'mac005056bb241e' completed. > Added: 74, Updated: 0, Deleted 0 facts > 2015-06-12 16:56:55 [E] address family must be specified (ArgumentError) > /opt/rh/ruby193/root/usr/share/ruby/ipaddr.rb:460:in `initialize' > /usr/share/foreman/app/models/subnet.rb:97:in `new' > /usr/share/foreman/app/models/subnet.rb:97:in `block in subnet_for' > /usr/share/foreman/app/models/subnet.rb:97:in `each' > /usr/share/foreman/app/models/subnet.rb:97:in `subnet_for' > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:110:in > `populate_fields_from_facts' > /usr/share/foreman/app/models/host/base.rb:122:in `import_facts' > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:90:in > `import_facts' > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:82:in > `import_host_and_facts' > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:100:in > `block in facts' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in > `transaction' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in > `transaction' > /usr/share/foreman/app/models/host.rb:15:in `method_missing' > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:99:in > `facts' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in > `send_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in > `block in process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:518:in > `block (5 levels) in > _run__852246562247630380__process_action__2949889933624683811__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7558' > /usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in > `disable_json_root' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7558' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:517:in > `block (4 levels) in > _run__852246562247630380__process_action__2949889933624683811__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7557' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > `around' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > `_callback_around_2875' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7557' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:505:in > `block (3 levels) in > _run__852246562247630380__process_action__2949889933624683811__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7556' > /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in > `set_timezone' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7556' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:in > `block (2 levels) in > _run__852246562247630380__process_action__2949889933624683811__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7555' > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in > `clear_thread' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7555' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:in > `block in > _run__852246562247630380__process_action__2949889933624683811__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7554' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > `around' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > `_callback_around_13' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7554' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in > `_run__852246562247630380__process_action__2949889933624683811__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `__run_callback' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > `_run_process_action_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in > `block in process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > `block in instrument' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > `instrument' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in > `process' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in > `process' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in > `dispatch' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in > `dispatch' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in > `block in action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > `dispatch' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in > `block in call' > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > `each' > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in > `call' > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in > `context' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in > `block in call' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `_run__291395632630310783__call__3691332074010784787__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `__run_callback' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > `_run_call_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in > `call_app' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in > `forward' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in > `pass' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in > `invalidate' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in > `call!' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in > `method_missing' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in > `block in call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > `each' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > `call' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in > `process_request' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in > `accept_and_process_next_request' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in > `main_loop' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in > `block (3 levels) in start_threads' > 2015-06-12 16:56:55 [I] Rendered api/v2/errors/standard_error.json.rabl > within api/v2/layouts/error_layout (0.8ms) > 2015-06-12 16:56:55 [I] Completed 500 Internal Server Error in 641ms > (Views: 2.0ms | ActiveRecord: 163.7ms) > 2015-06-12 16:56:55 [I] > > The test system WAS in foreman at one point,but before trying discovery > out,I deleted it, and have checked there are no other systems in foreman > that have the same IP address (I'll note, dhcp is NOT controlled by foreman > in my set, only TFTP) > > Thoughts? >

Can you guys setup image with ssh/root password and send discovery-debug
report on those failing instances please?

http://theforeman.org/plugins/foreman_discovery/3.0/index.html#6Help

Thanks!

LZ

··· On Mon, Jun 15, 2015 at 05:13:59AM -0700, Byron Miller wrote: > I ran into a similar problem that i'm still working on. VMware and UCS all > boot the discovery kernel ok, but Dell seems to throw this same issue. When > i asked about it there was a known bug that something with previously > discovered hosts caused this, so i'm not sure if you're running into this > bug or not. > > I'll be running another provision test today to see if i hit same issue. > > On Friday, June 12, 2015 at 4:02:05 PM UTC-5, Matt wrote: > > > > So I'm just starting out playing with the discovery plugin...I have a test > > system pxe booting and it seems to the talking to the proxy (which lives on > > the foreman host itself right now) just fine and sending facts, they just > > aren't making it into foreman itself on import: > > > > > > > > Started POST "/api/v2/discovered_hosts/facts" for 69.173.70.212 at > > 2015-06-12 16:56:54 -0400 > > 2015-06-12 16:56:54 [I] Processing by > > Api::V2::DiscoveredHostsController#facts as JSON > > 2015-06-12 16:56:54 [I] Parameters: {"facts"=>"[FILTERED]", > > "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}} > > 2015-06-12 16:56:55 [I] Import facts for 'mac005056bb241e' completed. > > Added: 74, Updated: 0, Deleted 0 facts > > 2015-06-12 16:56:55 [E] address family must be specified (ArgumentError) > > /opt/rh/ruby193/root/usr/share/ruby/ipaddr.rb:460:in `initialize' > > /usr/share/foreman/app/models/subnet.rb:97:in `new' > > /usr/share/foreman/app/models/subnet.rb:97:in `block in subnet_for' > > /usr/share/foreman/app/models/subnet.rb:97:in `each' > > /usr/share/foreman/app/models/subnet.rb:97:in `subnet_for' > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:110:in > > `populate_fields_from_facts' > > /usr/share/foreman/app/models/host/base.rb:122:in `import_facts' > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:90:in > > `import_facts' > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:82:in > > `import_host_and_facts' > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:100:in > > `block in facts' > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in > > `transaction' > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in > > `transaction' > > /usr/share/foreman/app/models/host.rb:15:in `method_missing' > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:99:in > > `facts' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in > > `send_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in > > `block in process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:518:in > > `block (5 levels) in > > _run__852246562247630380__process_action__2949889933624683811__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > `block in _conditional_callback_around_7558' > > /usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in > > `disable_json_root' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > `_conditional_callback_around_7558' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:517:in > > `block (4 levels) in > > _run__852246562247630380__process_action__2949889933624683811__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > `block in _conditional_callback_around_7557' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > > `around' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > > `_callback_around_2875' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > `_conditional_callback_around_7557' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:505:in > > `block (3 levels) in > > _run__852246562247630380__process_action__2949889933624683811__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > `block in _conditional_callback_around_7556' > > /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in > > `set_timezone' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > `_conditional_callback_around_7556' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:in > > `block (2 levels) in > > _run__852246562247630380__process_action__2949889933624683811__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > `block in _conditional_callback_around_7555' > > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in > > `clear_thread' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > `_conditional_callback_around_7555' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:in > > `block in > > _run__852246562247630380__process_action__2949889933624683811__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > `block in _conditional_callback_around_7554' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > > `around' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > > `_callback_around_13' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > `_conditional_callback_around_7554' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in > > `_run__852246562247630380__process_action__2949889933624683811__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > `__run_callback' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > > `_run_process_action_callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > > `run_callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in > > `block in process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > > `block in instrument' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in > > `instrument' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > > `instrument' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in > > `process_action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in > > `process' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in > > `process' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in > > `dispatch' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in > > `dispatch' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in > > `block in action' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > > `dispatch' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in > > `block in call' > > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > > `each' > > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in > > `call' > > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in > > `context' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in > > `block in call' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > `_run__291395632630310783__call__3691332074010784787__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > `__run_callback' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > > `_run_call_callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > > `run_callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in > > `call_app' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in > > `forward' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in > > `pass' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in > > `invalidate' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in > > `call!' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in > > `method_missing' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in > > `call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in > > `block in call' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > > `each' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > > `call' > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in > > `process_request' > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in > > `accept_and_process_next_request' > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in > > `main_loop' > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in > > `block (3 levels) in start_threads' > > 2015-06-12 16:56:55 [I] Rendered api/v2/errors/standard_error.json.rabl > > within api/v2/layouts/error_layout (0.8ms) > > 2015-06-12 16:56:55 [I] Completed 500 Internal Server Error in 641ms > > (Views: 2.0ms | ActiveRecord: 163.7ms) > > 2015-06-12 16:56:55 [I] > > > > The test system WAS in foreman at one point,but before trying discovery > > out,I deleted it, and have checked there are no other systems in foreman > > that have the same IP address (I'll note, dhcp is NOT controlled by foreman > > in my set, only TFTP) > > > > Thoughts? > > > > -- > 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 foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

Lukas,

here you go. The ipaddress fact is indeed there and populated…and
correct…

[root@fdi ~]# discovery-debug

  • PROCESSES *
    PID TTY STAT TIME COMMAND
    1 ? Ss 0:01 /usr/lib/systemd/systemd --switched-root
    –system --deserialize 22
    2 ? S 0:00 [kthreadd]
    3 ? S 0:00 [ksoftirqd/0]
    4 ? S 0:00 [kworker/0:0]
    5 ? S< 0:00 [kworker/0:0H]
    6 ? S 0:00 [kworker/u4:0]
    7 ? S 0:00 [migration/0]
    8 ? S 0:00 [rcu_bh]
    9 ? S 0:00 [rcuob/0]
    10 ? S 0:00 [rcuob/1]
    11 ? S 0:00 [rcu_sched]
    12 ? S 0:00 [rcuos/0]
    13 ? S 0:00 [rcuos/1]
    14 ? S 0:00 [watchdog/0]
    15 ? S 0:00 [watchdog/1]
    16 ? S 0:00 [migration/1]
    17 ? S 0:00 [ksoftirqd/1]
    18 ? S 0:00 [kworker/1:0]
    19 ? S< 0:00 [kworker/1:0H]
    20 ? S< 0:00 [khelper]
    21 ? S 0:00 [kdevtmpfs]
    22 ? S< 0:00 [netns]
    23 ? S< 0:00 [writeback]
    24 ? S< 0:00 [kintegrityd]
    25 ? S< 0:00 [bioset]
    26 ? S< 0:00 [kblockd]
    27 ? S 0:00 [khubd]
    28 ? S< 0:00 [md]
    29 ? S 0:00 [kworker/0:1]
    31 ? S 0:00 [khungtaskd]
    32 ? S 0:00 [kswapd0]
    33 ? SN 0:00 [ksmd]
    34 ? SN 0:00 [khugepaged]
    35 ? S 0:00 [fsnotify_mark]
    36 ? S< 0:00 [crypto]
    45 ? S< 0:00 [kthrotld]
    46 ? S 0:00 [kworker/u4:1]
    47 ? S< 0:00 [kmpath_rdacd]
    48 ? S 0:00 [kworker/1:1]
    49 ? S< 0:00 [kpsmoused]
    50 ? S 0:00 [kworker/1:2]
    69 ? S< 0:00 [deferwq]
    85 ? S 0:00 [kauditd]
    87 ? S 0:00 [kworker/1:3]
    189 ? S 0:00 [kworker/u4:2]
    209 ? S< 0:00 [ata_sff]
    210 ? S 0:00 [scsi_eh_0]
    211 ? S< 0:00 [scsi_tmf_0]
    212 ? S 0:00 [scsi_eh_1]
    215 ? S< 0:00 [scsi_tmf_1]
    217 ? S 0:00 [kworker/u4:3]
    226 ? S 0:00 [kworker/0:2]
    237 ? S< 0:00 [loop0]
    277 ? S< 0:00 [loop1]
    282 ? S< 0:00 [loop2]
    286 ? S< 0:00 [loop3]
    291 ? S< 0:03 [loop4]
    301 ? S< 0:00 [loop5]
    305 ? S< 0:00 [kdmflush]
    308 ? S< 0:00 [dm_bufio_cache]
    309 ? S< 0:00 [ksnaphd]
    310 ? S< 0:00 [kcopyd]
    311 ? S< 0:00 [bioset]
    312 ? S< 0:00 [bioset]
    313 ? S< 0:00 [bioset]
    319 ? S< 0:00 [kdmflush]
    320 ? S< 0:00 [bioset]
    328 ? S< 0:00 [kdmflush]
    329 ? S< 0:00 [ksnaphd]
    330 ? S< 0:00 [kcopyd]
    331 ? S< 0:00 [bioset]
    332 ? S< 0:00 [bioset]
    334 ? S< 0:00 [bioset]
    367 ? S< 0:00 [loop6]
    370 ? S 0:00 [jbd2/loop6-8]
    371 ? S< 0:00 [ext4-rsv-conver]
    372 ? S< 0:00 [ext4-unrsv-conv]
    409 ? Ss 0:00 /usr/lib/systemd/systemd-journald
    433 ? Ss 0:00 /usr/lib/systemd/systemd-udevd
    447 ? Ssl 0:00 /usr/sbin/NetworkManager --no-daemon
    448 ? Ss 0:00 /usr/lib/systemd/systemd-logind
    449 ? Ss 0:00 /bin/dbus-daemon --system --address=systemd:
    –nofork --nopidfile --systemd-activation
    473 ? Ss 0:00 /usr/sbin/acpid
    477 ? S 0:00 [scsi_eh_2]
    479 ? S< 0:00 [scsi_tmf_2]
    481 ? S< 0:00 [vmw_pvscsi_wq_2]
    529 ? S 0:00 /sbin/dhclient -d -q -sf
    /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-ens192.pid -lf
    /var/lib/NetworkManager/dhclient-482dabd0-32f4-4002-ac89-2b094be3fe4b-ens192.lease
    -cf /var/lib/NetworkManager/dhclient-ens192.conf ens192
    530 ? Ssl 0:00 /usr/lib/polkit-1/polkitd --no-debug
    620 ? S 0:00 [kworker/0:3]
    621 ? Ss 0:00 /usr/sbin/sshd -D
    631 ? Sl 0:00 ruby /usr/share/foreman-proxy/bin/smart-proxy
    635 ? Ssl 0:00 ruby /usr/bin/discovery-register
    856 ? Ss 0:00 sshd: root@pts/0
    858 pts/0 Ss 0:00 -bash
    875 pts/0 S+ 0:00 /bin/bash /usr/bin/discovery-debug
    876 pts/0 R+ 0:00 ps axww
  • JOURNAL (last 500 lines) *
    Jun 15 14:01:48 localhost kernel: uhci_hcd: USB Universal Host Controller
    Interface driver
    Jun 15 14:01:48 localhost kernel: usbcore: registered new interface driver
    usbserial
    Jun 15 14:01:48 localhost kernel: usbcore: registered new interface driver
    usbserial_generic
    Jun 15 14:01:48 localhost kernel: usbserial: USB Serial support registered
    for generic
    Jun 15 14:01:48 localhost kernel: i8042: PNP: PS/2 Controller
    [PNP0303:KBC,PNP0f13:MOUS] at 0x60,0x64 irq 1,12
    Jun 15 14:01:48 localhost kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
    Jun 15 14:01:48 localhost kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
    Jun 15 14:01:48 localhost kernel: mousedev: PS/2 mouse device common for
    all mice
    Jun 15 14:01:48 localhost kernel: rtc_cmos 00:03: rtc core: registered
    rtc_cmos as rtc0
    Jun 15 14:01:48 localhost kernel: rtc_cmos 00:03: alarms up to one month,
    y3k, 114 bytes nvram, hpet irqs
    Jun 15 14:01:48 localhost kernel: cpuidle: using governor menu
    Jun 15 14:01:48 localhost kernel: input: AT Translated Set 2 keyboard as
    /devices/platform/i8042/serio0/input/input1
    Jun 15 14:01:48 localhost kernel: hidraw: raw HID events driver © Jiri
    Kosina
    Jun 15 14:01:48 localhost kernel: usbcore: registered new interface driver
    usbhid
    Jun 15 14:01:48 localhost kernel: usbhid: USB HID core driver
    Jun 15 14:01:48 localhost kernel: drop_monitor: Initializing network drop
    monitor service
    Jun 15 14:01:48 localhost kernel: TCP: cubic registered
    Jun 15 14:01:48 localhost kernel: Initializing XFRM netlink socket
    Jun 15 14:01:48 localhost kernel: NET: Registered protocol family 10
    Jun 15 14:01:48 localhost kernel: NET: Registered protocol family 17
    Jun 15 14:01:48 localhost kernel: Loading compiled-in X.509 certificates
    Jun 15 14:01:48 localhost kernel: Loaded X.509 cert 'CentOS Linux kpatch
    signing key: ea0413152cde1d98ebdca3fe6f0230904c9ef717'
    Jun 15 14:01:48 localhost kernel: Loaded X.509 cert 'CentOS Linux Driver
    update signing key: 7f421ee0ab69461574bb358861dbe77762a4201b'
    Jun 15 14:01:48 localhost kernel: Loaded X.509 cert 'CentOS Linux kernel
    signing key: 59445632185e5a18d98cc70f8093293509770427'
    Jun 15 14:01:48 localhost kernel: registered taskstats version 1
    Jun 15 14:01:48 localhost kernel: Key type trusted registered
    Jun 15 14:01:48 localhost kernel: Key type encrypted registered
    Jun 15 14:01:48 localhost kernel: IMA: No TPM chip found, activating
    TPM-bypass!
    Jun 15 14:01:48 localhost kernel: rtc_cmos 00:03: setting system clock to
    2015-06-15 14:01:48 UTC (1434376908)
    Jun 15 14:01:48 localhost kernel: Freeing unused kernel memory: 1604k freed
    Jun 15 14:01:48 localhost systemd[1]: systemd 208 running in system mode.
    (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL
    +XZ)
    Jun 15 14:01:48 localhost systemd[1]: Detected virtualization 'vmware'.
    Jun 15 14:01:48 localhost systemd[1]: Running in initial RAM disk.
    Jun 15 14:01:48 localhost systemd[1]: No hostname configured.
    Jun 15 14:01:48 localhost systemd[1]: Set hostname to <localhost>.
    Jun 15 14:01:48 localhost systemd[1]: Initializing machine ID from random
    generator.
    Jun 15 14:01:48 localhost systemd[1]: Starting -.slice.
    Jun 15 14:01:48 localhost systemd[1]: Created slice -.slice.
    Jun 15 14:01:48 localhost systemd[1]: Starting System Slice.
    Jun 15 14:01:48 localhost systemd[1]: Created slice System Slice.
    Jun 15 14:01:48 localhost systemd[1]: Starting Slices.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Slices.
    Jun 15 14:01:48 localhost systemd[1]: Starting Timers.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Timers.
    Jun 15 14:01:48 localhost systemd[1]: Starting udev Kernel Socket.
    Jun 15 14:01:48 localhost systemd[1]: Listening on udev Kernel Socket.
    Jun 15 14:01:48 localhost systemd[1]: Starting udev Control Socket.
    Jun 15 14:01:48 localhost systemd[1]: Listening on udev Control Socket.
    Jun 15 14:01:48 localhost systemd[1]: Starting Journal Socket.
    Jun 15 14:01:48 localhost systemd[1]: Listening on Journal Socket.
    Jun 15 14:01:48 localhost systemd[1]: Started dracut ask for additional
    cmdline parameters.
    Jun 15 14:01:48 localhost systemd[1]: Starting dracut cmdline hook…
    Jun 15 14:01:48 localhost systemd[1]: Starting Create list of required
    static device nodes for the current kernel…
    Jun 15 14:01:48 localhost systemd[1]: Started Load Kernel Modules.
    Jun 15 14:01:48 localhost systemd[1]: Starting Sockets.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Sockets.
    Jun 15 14:01:48 localhost systemd[1]: Starting Journal Service…
    Jun 15 14:01:48 localhost systemd[1]: Started Journal Service.
    Jun 15 14:01:48 localhost kernel: loop: module loaded
    Jun 15 14:01:48 localhost systemd-journal[84]: Journal started
    Jun 15 14:01:48 localhost systemd[1]: Starting Dispatch Password Requests
    to Console Directory Watch.
    Jun 15 14:01:48 localhost systemd[1]: Started Dispatch Password Requests to
    Console Directory Watch.
    Jun 15 14:01:48 localhost systemd[1]: Starting Paths.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Paths.
    Jun 15 14:01:48 localhost systemd[1]: Starting Apply Kernel Variables…
    Jun 15 14:01:48 localhost systemd[1]: Starting Swap.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Swap.
    Jun 15 14:01:48 localhost systemd[1]: Starting Local File Systems.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Local File Systems.
    Jun 15 14:01:48 localhost systemd[1]: Started Apply Kernel Variables.
    Jun 15 14:01:48 localhost systemd[1]: Started Create list of required
    static device nodes for the current kernel.
    Jun 15 14:01:48 localhost systemd[1]: Starting Create static device nodes
    in /dev…
    Jun 15 14:01:48 localhost systemd[1]: Started dracut cmdline hook.
    Jun 15 14:01:48 localhost systemd[1]: Started Create static device nodes in
    /dev.
    Jun 15 14:01:48 localhost systemd[1]: Starting dracut pre-udev hook…
    Jun 15 14:01:48 localhost dracut-cmdline[81]: dracut-7 (Core)
    dracut-033-241.el7_1.1
    Jun 15 14:01:48 localhost dracut-cmdline[81]: Using kernel command line
    parameters:
    Jun 15 14:01:48 localhost dracut-cmdline[81]: root was live:/fdi.iso, is
    now liveiso:/fdi.iso
    Jun 15 14:01:48 localhost kernel: device-mapper: uevent: version 1.0.3
    Jun 15 14:01:48 localhost kernel: device-mapper: ioctl: 4.29.0-ioctl
    (2014-10-28) initialised: dm-devel@redhat.com
    Jun 15 14:01:48 localhost systemd[1]: Started dracut pre-udev hook.
    Jun 15 14:01:48 localhost systemd[1]: Starting udev Kernel Device Manager…
    Jun 15 14:01:48 localhost systemd[1]: Started udev Kernel Device Manager.
    Jun 15 14:01:48 localhost systemd[1]: Started dracut pre-trigger hook.
    Jun 15 14:01:48 localhost systemd[1]: Starting udev Coldplug all Devices…
    Jun 15 14:01:48 localhost systemd-udevd[172]: starting version 208
    Jun 15 14:01:48 localhost kernel: input: ImPS/2 Generic Wheel Mouse as
    /devices/platform/i8042/serio1/input/input2
    Jun 15 14:01:48 localhost systemd[1]: Mounting Configuration File System…
    Jun 15 14:01:48 localhost systemd[1]: Mounted Configuration File System.
    Jun 15 14:01:48 localhost systemd[1]: Started udev Coldplug all Devices.
    Jun 15 14:01:48 localhost systemd[1]: Starting dracut initqueue hook…
    Jun 15 14:01:48 localhost systemd[1]: Starting System Initialization.
    Jun 15 14:01:48 localhost systemd[1]: Reached target System Initialization.
    Jun 15 14:01:48 localhost systemd[1]: Starting Basic System.
    Jun 15 14:01:48 localhost systemd[1]: Reached target Basic System.
    Jun 15 14:01:48 localhost kernel: libata version 3.00 loaded.
    Jun 15 14:01:48 localhost kernel: ata_piix 0000:00:07.1: version 2.13
    Jun 15 14:01:48 localhost kernel: scsi host0: ata_piix
    Jun 15 14:01:48 localhost kernel: scsi host1: ata_piix
    Jun 15 14:01:48 localhost kernel: ata1: PATA max UDMA/33 cmd 0x1f0 ctl
    0x3f6 bmdma 0x10c0 irq 14
    Jun 15 14:01:48 localhost kernel: ata2: PATA max UDMA/33 cmd 0x170 ctl
    0x376 bmdma 0x10c8 irq 15
    Jun 15 14:01:48 localhost kernel: ata2.00: ATAPI: VMware Virtual IDE CDROM
    Drive, 00000001, max UDMA/33
    Jun 15 14:01:48 localhost kernel: ata2.00: configured for UDMA/33
    Jun 15 14:01:48 localhost kernel: scsi 1:0:0:0: CD-ROM NECVMWar
    VMware IDE CDR10 1.00 PQ: 0 ANSI: 5
    Jun 15 14:01:49 localhost kernel: sr 1:0:0:0: [sr0] scsi3-mmc drive: 1x/1x
    writer dvd-ram cd/rw xa/form2 cdda tray
    Jun 15 14:01:49 localhost kernel: cdrom: Uniform CD-ROM driver Revision:
    3.20
    Jun 15 14:01:49 localhost kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0
    Jun 15 14:01:49 localhost kernel: squashfs: version 4.0 (2009/01/31)
    Phillip Lougher
    Jun 15 14:01:49 localhost kernel: ISO 9660 Extensions: Microsoft Joliet
    Level 3
    Jun 15 14:01:49 localhost kernel: ISO 9660 Extensions: RRIP_1991A
    Jun 15 14:01:49 localhost systemd[1]: Started dracut initqueue hook.
    Jun 15 14:01:49 localhost systemd[1]: Started dracut pre-mount hook.
    Jun 15 14:01:49 localhost systemd[1]: Starting Initrd Root File System.
    Jun 15 14:01:49 localhost systemd[1]: Reached target Initrd Root File
    System.
    Jun 15 14:01:49 localhost systemd[1]: Starting Reload Configuration from
    the Real Root…
    Jun 15 14:01:49 localhost systemd[1]: Starting Remote File Systems (Pre).
    Jun 15 14:01:49 localhost systemd[1]: Reached target Remote File Systems
    (Pre).
    Jun 15 14:01:49 localhost systemd[1]: Starting Remote File Systems.
    Jun 15 14:01:49 localhost systemd[1]: Reached target Remote File Systems.
    Jun 15 14:01:49 localhost systemd[1]: Reloading.
    Jun 15 14:01:49 localhost systemd[1]: Started Reload Configuration from the
    Real Root.
    Jun 15 14:01:49 localhost systemd[1]: Starting Initrd File Systems.
    Jun 15 14:01:49 localhost systemd[1]: Reached target Initrd File Systems.
    Jun 15 14:01:49 localhost systemd[1]: Starting dracut mount hook…
    Jun 15 14:01:49 localhost kernel: EXT4-fs (loop6): mounted filesystem with
    ordered data mode. Opts: (null)
    Jun 15 14:01:49 localhost systemd[1]: Started dracut mount hook.
    Jun 15 14:01:49 localhost systemd[1]: Starting Initrd Default Target.
    Jun 15 14:01:49 localhost systemd[1]: Reached target Initrd Default Target.
    Jun 15 14:01:49 localhost systemd[1]: Starting dracut pre-pivot and cleanup
    hook…
    Jun 15 14:01:49 localhost systemd[1]: Started dracut pre-pivot and cleanup
    hook.
    Jun 15 14:01:49 localhost systemd[1]: Starting Cleaning Up and Shutting
    Down Daemons…
    Jun 15 14:01:49 localhost systemd[1]: Stopping Cleaning Up and Shutting
    Down Daemons…
    Jun 15 14:01:49 localhost systemd[1]: Stopped Cleaning Up and Shutting Down
    Daemons.
    Jun 15 14:01:49 localhost systemd[1]: Stopping dracut pre-pivot and cleanup
    hook…
    Jun 15 14:01:49 localhost systemd[1]: Stopped dracut pre-pivot and cleanup
    hook.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Remote File Systems.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Remote File Systems.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Remote File Systems (Pre).
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Remote File Systems
    (Pre).
    Jun 15 14:01:49 localhost systemd[1]: Stopping Initrd Default Target.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Initrd Default Target.
    Jun 15 14:01:49 localhost systemd[1]: Stopping dracut mount hook…
    Jun 15 14:01:49 localhost systemd[1]: Stopped dracut mount hook.
    Jun 15 14:01:49 localhost systemd[1]: Stopping dracut initqueue hook…
    Jun 15 14:01:49 localhost systemd[1]: Stopped dracut initqueue hook.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Basic System.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Basic System.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Slices.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Slices.
    Jun 15 14:01:49 localhost systemd[1]: Stopping System Slice.
    Jun 15 14:01:49 localhost systemd[1]: Removed slice System Slice.
    Jun 15 14:01:49 localhost systemd[1]: Stopping -.slice.
    Jun 15 14:01:49 localhost systemd[1]: Removed slice -.slice.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Paths.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Paths.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Dispatch Password Requests
    to Console Directory Watch.
    Jun 15 14:01:49 localhost systemd[1]: Stopped Dispatch Password Requests to
    Console Directory Watch.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Timers.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Timers.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Sockets.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target Sockets.
    Jun 15 14:01:49 localhost systemd[1]: Stopping System Initialization.
    Jun 15 14:01:49 localhost systemd[1]: Stopped target System Initialization.
    Jun 15 14:01:49 localhost systemd[1]: Stopping Apply Kernel Variables…
    Jun 15 14:01:49 localhost systemd[1]: Stopped Apply Kernel Variables.
    Jun 15 14:01:49 localhost systemd[1]: Stopping udev Coldplug all Devices…
    Jun 15 14:01:49 localhost systemd[1]: Stopped udev Coldplug all Devices.
    Jun 15 14:

Hey,

> here you go. The ipaddress fact is indeed there and populated…and
> correct…

unable to reproduce with facts included in this report. The host
discovers fine on my deployment.

Can you please send me list of your subnets with all the info you have
there (netmask…):

foreman-rake console

> Subnet.all

Also if you can, can you apply this oneliner to your foreman instance,
restart it and re-discover the host again. This time, we will find the
list of facts in the production.log file. It can be some kind of race
condition on the image when network was not yet properly initialized and
the initial HTTP request does not have all the info while all the other
requests or via ssh it is already correct.

Here is the patch:

It's a big help. Thanks!

··· -- Later, Lukas #lzap Zapletal

Sure, so, only on subnet defined (and again, foreman is NOT controlling
dhcp for this, it is simply set to forward pxe/tftp requests to foreman):

[root@foreman ~]# foreman-rake console
Loading production environment (Rails 3.2.8)
irb(main):001:0> Subnet.all
2015-06-16 10:17:16 [D] Subnet Load (1.4ms) SELECT "subnets".* FROM
"subnets" ORDER BY vlanid
=> [#<Subnet id: 1, network: "69.173.64.0", mask: "255.255.240.0",
priority: nil, name: "Systems", vlanid: "", created_at: "2015-04-17
14:55:11", updated_at: "2015-06-12 20:36:01", dhcp_id: nil, tftp_id: 7,
gateway: "", dns_primary: "69.173.70.212", dns_secondary: "", from: "", to:
"", dns_id: nil, boot_mode: "DHCP", ipam: "None", discovery_id: 7>]

I applied that one line change, restarted foreman (as well as the proxy
just incase), but am not seeing anything different in production.log…

Started POST "/api/v2/discovered_hosts/facts" for 69.173.70.212 at
2015-06-16 10:43:19 -0400
2015-06-16 10:43:19 [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2015-06-16 10:43:19 [I] Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2",
"discovered_host"=>{"facts"=>"[FILTERED]"}}
2015-06-16 10:43:19 [I]
2015-06-16 10:43:19 [I] Completed 201 Created in 32ms (Views: 2.9ms |
ActiveRecord: 0.0ms)
2015-06-16 10:43:20 [I] Import facts for 'mac005056bb241e' completed.
Added: 74, Updated: 0, Deleted 0 facts
2015-06-16 10:43:20 [E] address family must be specified (ArgumentError)
/opt/rh/ruby193/root/usr/share/ruby/ipaddr.rb:460:in initialize&#39; /usr/share/foreman/app/models/subnet.rb:97:innew'
/usr/share/foreman/app/models/subnet.rb:97:in block in subnet_for&#39; /usr/share/foreman/app/models/subnet.rb:97:ineach'
/usr/share/foreman/app/models/subnet.rb:97:in subnet_for&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:110:inpopulate_fields_from_facts'
/usr/share/foreman/app/models/host/base.rb:122:in import_facts&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:90:inimport_facts'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:82:in
import_host_and_facts&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:100:inblock in facts'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in
transaction&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:intransaction'
/usr/share/foreman/app/models/host.rb:15:in method_missing&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:99:infacts'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:518:in
block (5 levels) in _run__2171378637535585804__process_action__2154685141613420244__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7558'
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in
disable_json_root&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7558'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:517:in
block (4 levels) in _run__2171378637535585804__process_action__2154685141613420244__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7557'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_2875'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7557&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:505:inblock (3 levels) in
_run__2171378637535585804__process_action__2154685141613420244__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7556&#39; /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:inset_timezone'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7556&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:inblock (2 levels) in
_run__2171378637535585804__process_action__2154685141613420244__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7555&#39; /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:inclear_thread'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7555&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:inblock in
_run__2171378637535585804__process_action__2154685141613420244__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7554&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7554'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in
_run__2171378637535585804__process_action__2154685141613420244__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:inprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in
process&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:inblock in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in
call&#39; /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:incontext'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in_run__114534200360900046__call__2488794494385726467__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
__run_callback&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
run_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:incall_app'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:inforward'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in
pass&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:ininvalidate'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in
call!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in
block in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in
call&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:inmain_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in
`block (3 levels) in start_threads'
2015-06-16 10:43:20 [I] Rendered api/v2/errors/standard_error.json.rabl
within api/v2/layouts/error_layout (1.3ms)
2015-06-16 10:43:20 [I] Completed 500 Internal Server Error in 1209ms
(Views: 254.3ms | ActiveRecord: 234.0ms)

··· On Tue, Jun 16, 2015 at 3:34 AM Lukas Zapletal wrote:

Hey,

here you go. The ipaddress fact is indeed there and populated…and
correct…

unable to reproduce with facts included in this report. The host
discovers fine on my deployment.

Can you please send me list of your subnets with all the info you have
there (netmask…):

foreman-rake console

Subnet.all

Also if you can, can you apply this oneliner to your foreman instance,
restart it and re-discover the host again. This time, we will find the
list of facts in the production.log file. It can be some kind of race
condition on the image when network was not yet properly initialized and
the initial HTTP request does not have all the info while all the other
requests or via ssh it is already correct.

Here is the patch:
https://github.com/theforeman/foreman_discovery/pull/192

It’s a big help. Thanks!


Later,
Lukas #lzap Zapletal


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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Here is most of the output from discover debug

  • JOURNAL (last 500 lines) *
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv4 Configure Timeout) scheduled…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv4 Configure Timeout) started…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): device state
    change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
    Jun 17 06:16:15 fdi NetworkManager[1088]: <warn> (eno1): Activation:
    failed for connection 'Wired connection 4'
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv4 Configure Timeout) complete.
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): device state
    change: failed -> disconnected (reason 'none') [120 30 0]
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): deactivating
    device (reason 'none') [0]
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> Auto-activating
    connection 'Wired connection 4'.
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation:
    starting connection 'Wired connection 4'
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    1 of 5 (Device Prepare) scheduled…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    1 of 5 (Device Prepare) started…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): device state
    change: disconnected -> prepare (reason 'none') [30 40 0]
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) scheduled…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    1 of 5 (Device Prepare) complete.
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) starting…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): device state
    change: prepare -> config (reason 'none') [40 50 0]
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) successful.
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) complete.
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    3 of 5 (IP Configure Start) scheduled.
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    3 of 5 (IP Configure Start) started…
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): device state
    change: config -> ip-config (reason 'none') [50 70 0]
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> Activation (eno1)
    Beginning DHCPv4 transaction (timeout in 45 seconds)
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> dhclient started with pid
    7117
    Jun 17 06:16:15 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    3 of 5 (IP Configure Start) complete.
    Jun 17 06:16:15 fdi kernel: IPv6: ADDRCONF(NETDEV_UP): eno1: link is not
    ready
    Jun 17 06:16:15 fdi kernel: IPv6: ADDRCONF(NETDEV_UP): eno1: link is not
    ready
    Jun 17 06:16:15 fdi dhclient[7117]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 5 (xid=0x6ae76879)
    Jun 17 06:16:20 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv6 Configure Timeout) scheduled…
    Jun 17 06:16:20 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv6 Configure Timeout) started…
    Jun 17 06:16:20 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv6 Configure Timeout) complete.
    Jun 17 06:16:21 fdi dhclient[7117]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 9 (xid=0x6ae76879)
    Jun 17 06:16:30 fdi dhclient[7117]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 7 (xid=0x6ae76879)
    Jun 17 06:16:37 fdi dhclient[7117]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 11 (xid=0x6ae76879)
    Jun 17 06:16:43 fdi discovery-register[1387]: Fact cache invalid, reloading
    to foreman
    Jun 17 06:16:43 fdi discovery-register[1387]: Parsing kernel line:
    initrd=boot/fdi-image/initrd0.img rootflags=loop root=live:/fdi.iso
    rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0
    rd.lvm=0 rd.bootif=0 rd.neednet=0 fdi.ssh=1 fdi.rootpw=bugger nomodeset
    proxy.url=https://10.28.252.20:8443 proxy.type=proxy
    BOOT_IMAGE=boot/fdi-image/vmlinuz0
    Jun 17 06:16:43 fdi discovery-register[1387]: Discovered by URL:
    https://10.28.252.20:8443
    Jun 17 06:16:43 fdi discovery-register[1387]: Registering host with Foreman
    (https://10.28.252.20:8443)
    Jun 17 06:16:45 fdi discovery-register[1387]: Response from Foreman 500:
    failed to update Foreman: exception class/object expected
    Jun 17 06:16:48 fdi dhclient[7117]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 13 (xid=0x6ae76879)
    Jun 17 06:17:00 fdi NetworkManager[1088]: <warn> (eno1): DHCPv4 request
    timed out.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): DHCPv4 state
    changed unknown -> timeout
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): canceled DHCP
    transaction, DHCP client pid 7117
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): DHCPv4 state
    changed timeout -> done
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv4 Configure Timeout) scheduled…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv4 Configure Timeout) started…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): device state
    change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
    Jun 17 06:17:00 fdi NetworkManager[1088]: <warn> (eno1): Activation:
    failed for connection 'Wired connection 4'
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv4 Configure Timeout) complete.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): device state
    change: failed -> disconnected (reason 'none') [120 30 0]
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): deactivating
    device (reason 'none') [0]
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> Auto-activating
    connection 'Wired connection 4'.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation:
    starting connection 'Wired connection 4'
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    1 of 5 (Device Prepare) scheduled…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    1 of 5 (Device Prepare) started…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): device state
    change: disconnected -> prepare (reason 'none') [30 40 0]
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) scheduled…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    1 of 5 (Device Prepare) complete.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) starting…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): device state
    change: prepare -> config (reason 'none') [40 50 0]
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) successful.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    2 of 5 (Device Configure) complete.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    3 of 5 (IP Configure Start) scheduled.
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    3 of 5 (IP Configure Start) started…
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): device state
    change: config -> ip-config (reason 'none') [50 70 0]
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> Activation (eno1)
    Beginning DHCPv4 transaction (timeout in 45 seconds)
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> dhclient started with pid
    7285
    Jun 17 06:17:00 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    3 of 5 (IP Configure Start) complete.
    Jun 17 06:17:00 fdi kernel: IPv6: ADDRCONF(NETDEV_UP): eno1: link is not
    ready
    Jun 17 06:17:00 fdi kernel: IPv6: ADDRCONF(NETDEV_UP): eno1: link is not
    ready
    Jun 17 06:17:00 fdi dhclient[7285]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 5 (xid=0x163181bd)
    Jun 17 06:17:05 fdi dhclient[7285]: DHCPDISCOVER on eno1 to 255.255.255.255
    port 67 interval 11 (xid=0x163181bd)
    Jun 17 06:17:05 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv6 Configure Timeout) scheduled…
    Jun 17 06:17:05 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv6 Configure Timeout) started…
    Jun 17 06:17:05 fdi NetworkManager[1088]: <info> (eno1): Activation: Stage
    4 of 5 (IPv6 Configure Timeout) complete.
    Jun 17 06:17:15 fdi discovery-register[1387]: Fact cache invalid, reloading
    to foreman
  • NETWORK CONFIGURATION *
    /etc/sysconfig/network-scripts/ifcfg-lo
    DEVICE=lo
    IPADDR=127.0.0.1
    NETMASK=255.0.0.0
    NETWORK=127.0.0.0

If you're having problems with gated making 127.0.0.0/8 a martian,

you can change this to something else (255.255.255.255, for example)

BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

  • FACTER *
    architecture => x86_64
    auto_negotiation_eno1 => true
    auto_negotiation_eno2 => true
    auto_negotiation_eno3 => true
    auto_negotiation_eno4 => true
    bios_release_date => 08/28/2014
    bios_vendor => Dell Inc.
    bios_version => 1.0.4
    blockdevice_sda_model => PERC H730
    blockdevice_sda_size => 479559942144
    blockdevice_sda_vendor => DELL
    blockdevice_sr0_model => DVD±RW DU-8A5LH
    blockdevice_sr0_size => 1073741312
    blockdevice_sr0_vendor => PLDS
    blockdevices => sda,sr0
    boardmanufacturer => Dell Inc.
    dhcp_servers => {"system"=>"10.28.252.20", "eno3"=>"10.28.252.20"}
    discovery_bootif => ec:f4:bb:ce:d6:58
    discovery_release => 20150525.1
    discovery_version => 2.1.1
    domain => discover.internal
    duplex_eno1 => unknown! (255)
    duplex_eno2 => unknown! (255)
    duplex_eno3 => full
    duplex_eno4 => unknown! (255)
    facterversion => 2.4.1
    filesystems => ext2,ext3,ext4,iso9660,squashfs
    fqdn => fdi.discover.internal
    gid => root
    hardwareisa => x86_64
    hardwaremodel => x86_64
    hostname => fdi
    id => root
    interfaces => eno1,eno2,eno3,eno4,lo
    ipaddress => 10.28.252.27
    ipaddress_eno3 => 10.28.252.27
    ipaddress_lo => 127.0.0.1
    ipmi_enabled => true
    ipmi_gateway => 10.28.102.1
    ipmi_ipaddress => 10.28.102.49
    ipmi_ipaddress_source => DHCP Address
    ipmi_macaddress => b8:2a:72:fc:6b:48
    ipmi_subnet_mask => 255.255.254.0
    is_virtual => false
    kernel => Linux
    kernelmajversion => 3.10
    kernelrelease => 3.10.0-229.4.2.el7.x86_64
    kernelversion => 3.10.0
    lib => /usr/share/fdi/facts/
    link_eno1 => false
    link_eno2 => false
    link_eno3 => true
    link_eno4 => false
    link_lo => true
    macaddress => ec:f4:bb:ce:d6:58
    macaddress_eno1 => ec:f4:bb:ce:d6:58
    macaddress_eno2 => ec:f4:bb:ce:d6:5a
    macaddress_eno3 => ec:f4:bb:ce:d6:5c
    macaddress_eno4 => ec:f4:bb:ce:d6:5d
    manufacturer => Dell Inc.
    memoryfree => 249.89 GB
    memoryfree_mb => 255890.96
    memorysize => 251.81 GB
    memorysize_mb => 257856.82
    mtu_eno1 => 1500
    mtu_eno2 => 1500
    mtu_eno3 => 1500
    mtu_eno4 => 1500
    mtu_lo => 65536
    netmask => 255.255.255.0
    netmask_eno3 => 255.255.255.0
    netmask_lo => 255.0.0.0
    network_eno3 => 10.28.252.0
    network_lo => 127.0.0.0
    operatingsystem => CentOS
    operatingsystemmajrelease => 7
    operatingsystemrelease => 7.1.1503
    os => {"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7",
    "minor"=>"1", "full"=>"7.1.1503"}}
    osfamily => RedHat
    partitions => {"sda1"=>{"size"=>"936636416", "label"=>"System",
    "filesystem"=>"ntfs"}}
    path =>
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/extension/bin:/root/bin
    physicalprocessorcount => 2
    port_eno1 => FIBRE
    port_eno2 => FIBRE
    port_eno3 => Twisted Pair
    port_eno4 => Twisted Pair
    processor0 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor1 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor10 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor11 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor12 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor13 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor14 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor15 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor16 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor17 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor18 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor19 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor2 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor20 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor21 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor22 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor23 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor24 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor25 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor26 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor27 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor28 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor29 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor3 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor30 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor31 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor32 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor33 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor34 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor35 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor36 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor37 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor38 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor39 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor4 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor40 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor41 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor42 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor43 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor44 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor45 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor46 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor47 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor5 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor6 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor7 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor8 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processor9 => Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz
    processorcount => 48
    processors => {"models"=>["Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680
    v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel®
    Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @
    2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon®
    CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680
    v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel®
    Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @
    2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon®
    CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680
    v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel®
    Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @
    2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon®
    CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680
    v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel®
    Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @
    2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon®
    CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680
    v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel®
    Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @
    2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon®
    CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680
    v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel®
    Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @
    2.50GHz", "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz", "Intel® Xeon®
    CPU E5-2680 v3 @ 2.50GHz"], "count"=>48, "physicalcount"=>2}
    productname => PowerEdge R630
    ps => ps -ef
    rubyplatform => x86_64-linux
    rubysitedir => /usr/local/share/ruby/site_ruby/
    rubyversion => 2.0.0
    selinux => false
    speed_eno3 => 1000
    swapfree => 0.00 MB
    swapfree_mb => 0.00
    swapsize => 0.00 MB
    swapsize_mb => 0.00
    system_uptime => {"seconds"=>2041, "hours"=>0, "days"=>0, "uptime"=>"0:34
    hours"}
    timezone => UTC
    type => Rack Mount Chassis
    uniqueid => 1c0a1bfc
    uptime => 0:34 hours
    uptime_days => 0
    uptime_hours => 0
    uptime_seconds => 2041
    uuid => 4C4C4544-0037-3710-8046-B9C04F523232
    virtual => physical
    wol_eno1 => true
    wol_eno2 => true
    wol_eno3 => false
    wol_eno4 => false
    {
    "lib": "/usr/share/fdi/facts/",
    "id": "root",
    "interfaces": "eno1,eno2,eno3,eno4,lo",
    "kernel": "Linux",
    "macaddress_eno1": "ec:f4:bb:ce:d6:58",
    "mtu_eno1": 1500,
    "macaddress_eno2": "ec:f4:bb:ce:d6:5a",
    "mtu_eno2": 1500,
    "ipaddress_eno3": "10.28.252.27",
    "macaddress_eno3": "ec:f4:bb:ce:d6:5c",
    "netmask_eno3": "255.255.255.0",
    "mtu_eno3": 1500,
    "macaddress_eno4": "ec:f4:bb:ce:d6:5d",
    "mtu_eno4": 1500,
    "ipaddress_lo": "127.0.0.1",
    "netmask_lo": "255.0.0.0",
    "mtu_lo": 65536,
    "boardmanufacturer": "Dell Inc.",
    "boardproductname": "0CNCJW",
    "bios_vendor": "Dell Inc.",
    "bios_version": "1.0.4",
    "bios_release_date": "08/28/2014",
    "manufacturer": "Dell Inc.",
    "productname": "PowerEdge R630",
    "serialnumber": "*****",
    "type": "Rack Mount Chassis",
    "blockdevice_sda_size": 479559942144,
    "blockdevice_sda_vendor": "DELL",
    "blockdevice_sda_model": "PERC H730",
    "blockdevice_sr0_size": 1073741312,
    "blockdevice_sr0_vendor": "PLDS",
    "blockdevice_sr0_model": "DVD±RW DU-8A5LH",
    "blockdevices": "sda,sr0",
    "kernelversion": "3.10.0",
    "rubyversion": "2.0.0",
    "uptime": "0:34 hours",
    "domain": "discover.internal",
    "filesystems": "ext2,ext3,ext4,iso9660,squashfs",
    "osfamily": "RedHat",
    "path":
    "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/extension/bin:/root/bin",
    "ipaddress": "10.28.252.27",
    "ps": "ps -ef",
    "uptime_hours": 0,
    "uptime_seconds": 2043,
    "gid": "root",
    "processors": {
    "models": [
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @ 2.50GHz",
    "Intel® Xeon® CPU E5-2680 v3 @

Lukas,

I'll try and apply your logging patch.

One thing i noticed is that in foreman, the mac address of the system
appears to default to the first ethernet interface… for some reason our
NOC and Dell enable the 3rd interface as the primary interface.

so eno3 boots up/does dhcp but discovery_bootif is the primary eno1
interface… is that causing my issue i've posted below?

If i do a vanilla image in VMware on the provisioning vlan, i see it get
discovered and it appears my cisco UCS blades get discovered fine too…
still experimenting around.

-byron

··· On Tuesday, June 16, 2015 at 2:34:53 AM UTC-5, Lukas Zapletal wrote: > > Hey, > > > here you go. The ipaddress fact is indeed there and populated....and > > correct.. > > unable to reproduce with facts included in this report. The host > discovers fine on my deployment. > > Can you please send me list of your subnets with all the info you have > there (netmask...): > > # foreman-rake console > > Subnet.all > > Also if you can, can you apply this oneliner to your foreman instance, > restart it and re-discover the host again. This time, we will find the > list of facts in the production.log file. It can be some kind of race > condition on the image when network was not yet properly initialized and > the initial HTTP request does not have all the info while all the other > requests or via ssh it is already correct. > > Here is the patch: > https://github.com/theforeman/foreman_discovery/pull/192 > > It's a big help. Thanks! > > -- > Later, > Lukas #lzap Zapletal >

I'm having the exact same issue still after 1.8.2 on a DELL box, yet VMware
and UCS seem to work fine. Just confirming my earlier suspicions.

Started POST "/api/v2/discovered_hosts/facts" for 10.10.10.10 at 2015-06-17
08:01:46 -0500
2015-06-17 08:01:46 [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2015-06-17 08:01:46 [I] Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2",
"discovered_host"=>{"facts"=>"[FILTERED]"}}
2015-06-17 08:01:47 [I] Import facts for 'macecf4bbced658' completed.
Added: 145, Updated: 0, Deleted 0 facts
2015-06-17 08:01:47 [E] address family must be specified (ArgumentError)
/opt/rh/ruby193/root/usr/share/ruby/ipaddr.rb:460:in initialize&#39; /usr/share/foreman/app/models/subnet.rb:97:innew'
/usr/share/foreman/app/models/subnet.rb:97:in block in subnet_for&#39; /usr/share/foreman/app/models/subnet.rb:97:ineach'
/usr/share/foreman/app/models/subnet.rb:97:in subnet_for&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:110:inpopulate_fields_from_facts'
/usr/share/foreman/app/models/host/base.rb:126:in import_facts&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:90:inimport_facts'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/models/host/discovered.rb:82:in
import_host_and_facts&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:100:inblock in facts'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in
transaction&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:intransaction'
/usr/share/foreman/app/models/host.rb:15:in method_missing&#39; /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-3.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:99:infacts'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:518:in
block (5 levels) in _run__3376441567620027209__process_action__25148487322320654__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7640'
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in
disable_json_root&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7640'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:517:in
block (4 levels) in _run__3376441567620027209__process_action__25148487322320654__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7639'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_2877'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7639&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:505:inblock (3 levels) in
_run__3376441567620027209__process_action__25148487322320654__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7638&#39; /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:inset_timezone'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7638&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:inblock (2 levels) in
_run__3376441567620027209__process_action__25148487322320654__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7637&#39; /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:inclear_thread'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7637&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:inblock in
_run__3376441567620027209__process_action__25148487322320654__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7636&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7636'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in
_run__3376441567620027209__process_action__25148487322320654__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:inprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in
process&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:inblock in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in
call&#39; /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:incontext'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in_run__4448110328500729768__call__3909109260671030446__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
__run_callback&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
run_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:incall_app'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:inforward'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in
pass&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:ininvalidate'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in
call!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in
block in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in
call&#39; /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request&#39; /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:inmain_loop'
/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in
`block (3 levels) in start_threads'
2015-06-17 08:01:47 [I] Rendered api/v2/errors/standard_error.json.rabl
within api/v2/layouts/error_layout (0.4ms)
2015-06-17 08:01:47 [I] Completed 500 Internal Server Error in 785ms
(Views: 1.3ms | ActiveRecord: 289.5ms)
2015-06-17 08:01:48 [I]

··· On Tuesday, June 16, 2015 at 9:45:35 AM UTC-5, Matt wrote: > > Sure, so, only on subnet defined (and again, foreman is NOT controlling > dhcp for this, it is simply set to forward pxe/tftp requests to foreman): > > [root@foreman ~]# foreman-rake console > Loading production environment (Rails 3.2.8) > irb(main):001:0> Subnet.all > 2015-06-16 10:17:16 [D] Subnet Load (1.4ms) SELECT "subnets".* FROM > "subnets" ORDER BY vlanid > => [# priority: nil, name: "Systems", vlanid: "", created_at: "2015-04-17 > 14:55:11", updated_at: "2015-06-12 20:36:01", dhcp_id: nil, tftp_id: 7, > gateway: "", dns_primary: "69.173.70.212", dns_secondary: "", from: "", to: > "", dns_id: nil, boot_mode: "DHCP", ipam: "None", discovery_id: 7>] > > I applied that one line change, restarted foreman (as well as the proxy > just incase), but am not seeing anything different in production.log... > > > >>

Hello,

> One thing i noticed is that in foreman, the mac address of the system
> appears to default to the first ethernet interface… for some reason our
> NOC and Dell enable the 3rd interface as the primary interface.

by primary interface we mean the interface it was PXE-booted from. Using
PXELinux and IPAPPEND option "2" this should be passed into the system
via kernel command line option which is then parsed by our script to
create the discovery_bootif fact.

Investigate your kernel command line and BIOS setting please and let me
know.

··· -- Later, Lukas #lzap Zapletal

discovery_bootif on my dells is NOT using the same interface that gets DHCP.

The first two interfaces are down (no fiber attached) and the 3rd interface
receives DHCP but discovery_bootif defaults to the first interface.

Are you saying i need to go into the bios and actually disable something?
when i login to the idrac i see 1,2&4 with no link, 3 is the only active
interface and it is booting up the discovery image and getting DHCP, but
i'm willing to bet the posting of facts to foreman fails since its assuming
the primary interface has no ip and an invalid netmask (since its not up)

··· On Thursday, June 18, 2015 at 1:51:34 AM UTC-5, Lukas Zapletal wrote: > > Hello, > > > One thing i noticed is that in foreman, the mac address of the system > > appears to default to the first ethernet interface... for some reason > our > > NOC and Dell enable the 3rd interface as the primary interface. > > by primary interface we mean the interface it was PXE-booted from. Using > PXELinux and IPAPPEND option "2" this should be passed into the system > via kernel command line option which is then parsed by our script to > create the discovery_bootif fact. > > Investigate your kernel command line and BIOS setting please and let me > know. > > -- > Later, > Lukas #lzap Zapletal >

Just re-confirmed.

Blank VMware VM - works
Cisco UCS - Works
Dell - Boots, gets DHCP but bootif is on non active interface - fails to
show as available but sits on fdi.image booted and i can ssh in

··· On Thursday, June 18, 2015 at 8:44:57 AM UTC-5, Byron Miller wrote: > > discovery_bootif on my dells is NOT using the same interface that gets > DHCP. > > The first two interfaces are down (no fiber attached) and the 3rd > interface receives DHCP but discovery_bootif defaults to the first > interface. > > Are you saying i need to go into the bios and actually disable something? > when i login to the idrac i see 1,2&4 with no link, 3 is the only active > interface and it is booting up the discovery image and getting DHCP, but > i'm willing to bet the posting of facts to foreman fails since its assuming > the primary interface has no ip and an invalid netmask (since its not up) > > > On Thursday, June 18, 2015 at 1:51:34 AM UTC-5, Lukas Zapletal wrote: >> >> Hello, >> >> > One thing i noticed is that in foreman, the mac address of the system >> > appears to default to the first ethernet interface... for some reason >> our >> > NOC and Dell enable the 3rd interface as the primary interface. >> >> by primary interface we mean the interface it was PXE-booted from. Using >> PXELinux and IPAPPEND option "2" this should be passed into the system >> via kernel command line option which is then parsed by our script to >> create the discovery_bootif fact. >> >> Investigate your kernel command line and BIOS setting please and let me >> know. >> >> -- >> Later, >> Lukas #lzap Zapletal >> >

We have found the issue, I am currently finalizing more unit tests
coverage to prevent from regressions. The patch is here for testing.
Please apply and test. Version 3.0.1 likely to include this.

https://github.com/theforeman/foreman_discovery/pull/193

Thanks for reports.

··· -- Later, Lukas #lzap Zapletal

discovery_bootif is designed to contain interface that is set for PXE
booting in BIOS/UEFI

··· On Thu, Jun 18, 2015 at 06:44:57AM -0700, Byron Miller wrote: > discovery_bootif on my dells is NOT using the same interface that gets DHCP. > > The first two interfaces are down (no fiber attached) and the 3rd interface > receives DHCP but discovery_bootif defaults to the first interface. > > Are you saying i need to go into the bios and actually disable something? > when i login to the idrac i see 1,2&4 with no link, 3 is the only active > interface and it is booting up the discovery image and getting DHCP, but > i'm willing to bet the posting of facts to foreman fails since its assuming > the primary interface has no ip and an invalid netmask (since its not up) > > > On Thursday, June 18, 2015 at 1:51:34 AM UTC-5, Lukas Zapletal wrote: > > > > Hello, > > > > > One thing i noticed is that in foreman, the mac address of the system > > > appears to default to the first ethernet interface... for some reason > > our > > > NOC and Dell enable the 3rd interface as the primary interface. > > > > by primary interface we mean the interface it was PXE-booted from. Using > > PXELinux and IPAPPEND option "2" this should be passed into the system > > via kernel command line option which is then parsed by our script to > > create the discovery_bootif fact. > > > > Investigate your kernel command line and BIOS setting please and let me > > know. > > > > -- > > Later, > > Lukas #lzap Zapletal > > > > -- > 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 foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

Hey,

> Dell - Boots, gets DHCP but bootif is on non active interface - fails to
> show as available but sits on fdi.image booted and i can ssh in

just to confirm we are both on the same waive:

http://www.syslinux.org/wiki/index.php/SYSLINUX#SYSAPPEND_bitmask

:wink:

··· -- Later,

Lukas #lzap Zapletal

I'm confused haha :slight_smile:

Does it mean for my Dells i may have to put them on their own discovery
vlan with a custom default PXE to pass parameters or that i'm hitting a bug
with syslinux and may need to roll my own update to get it to appropriately
pass the correct bootif?

I provision about 8 different hardware types… seems only dells with this
4 port card are the only ones having this issue.

-byron

··· On Thursday, June 18, 2015 at 9:12:04 AM UTC-5, Lukas Zapletal wrote: > > Hey, > > > Dell - Boots, gets DHCP but bootif is on non active interface - fails to > > show as available but sits on fdi.image booted and i can ssh in > > just to confirm we are both on the same waive: > > http://www.syslinux.org/wiki/index.php/SYSLINUX#SYSAPPEND_bitmask > > ;-) > > -- > Later, > > Lukas #lzap Zapletal >

Ah, after reading the pr, i disabled 'ignore_puppet_facts_for_provisioning'
and my test host for discovery reported in just fine!

··· On Thu, Jun 18, 2015 at 10:11 AM, Lukas Zapletal wrote:

Hey,

Dell - Boots, gets DHCP but bootif is on non active interface - fails to
show as available but sits on fdi.image booted and i can ssh in

just to confirm we are both on the same waive:

http://www.syslinux.org/wiki/index.php/SYSLINUX#SYSAPPEND_bitmask

:wink:


Later,

Lukas #lzap Zapletal


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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Matthew Nicholson

> Does it mean for my Dells i may have to put them on their own discovery
> vlan with a custom default PXE to pass parameters or that i'm hitting a bug
> with syslinux and may need to roll my own update to get it to appropriately
> pass the correct bootif?

No, this must be present for all hosts. It is mandatory, it is
documented and I cannot tell how hardware behaves when this is not
present. It's random.

··· -- Later, Lukas #lzap Zapletal

So is this a bug on Dell's then?

In the Dell Bios, it says Device 1 interface 3 is the boot device and i'm
getting DHCP on that device, but the discovery image thinks its device 1
interface 1 for discovery_bootif

i'll keep digging around…

··· On Monday, June 22, 2015 at 3:26:24 AM UTC-5, Lukas Zapletal wrote: > > > Does it mean for my Dells i may have to put them on their own discovery > > vlan with a custom default PXE to pass parameters or that i'm hitting a > bug > > with syslinux and may need to roll my own update to get it to > appropriately > > pass the correct bootif? > > No, this must be present for all hosts. It is mandatory, it is > documented and I cannot tell how hardware behaves when this is not > present. It's random. > > -- > Later, > Lukas #lzap Zapletal >