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)
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?
>
> 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.
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' /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__2171378637535585804__process_action__2154685141613420244__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__2171378637535585804__process_action__2154685141613420244__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__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' /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__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' /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__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' /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__2171378637535585804__process_action__2154685141613420244__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__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' /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-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.
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' /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:126: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__3376441567620027209__process_action__25148487322320654__callbacks' /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' /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' /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' /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' /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' /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' /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' /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' /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' /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_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' /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__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' /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/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' /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...
>
>
>
>>
> 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.
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
>
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.
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.
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
>
> 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.
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
>