Problems with foreman discovery

We have some problem which might need your help when we use the foreman
discovery , and it is listed below:

The operating environment:

Foreman version 1.6.0

Foreman-proxy version 1.6.0

Foreman discovery version 1.3.0

Ovirt image version 0.5.0-1

Ruby version 1.9.3p484

When we boot a server from* PEX and load it to discovery image, then
find it in
discovery hosts* in foreman web page, dhcp records already
exists after we summit all these. The following error comes out after we
click ack and then overwrite.

undefined method `boot_filename' for nil:NilClass

If you feel this is an error with Foreman itself, please open a new issue
with Foreman ticketing system, You would probably need to attach the Full
trace and relevant log entries.

NoMethodError
undefined method boot_filename' for nil:NilClass app/models/concerns/orchestration/dhcp.rb:60:indhcp_attrs'
app/models/concerns/orchestration/dhcp.rb:16:in dhcp_record' app/models/concerns/orchestration/dhcp.rb:140:indhcp_conflict_detected?'
app/models/concerns/orchestration.rb:47:in valid?' app/models/concerns/foreman/sti.rb:29:insave_with_type'
app/models/taxonomy.rb:44:in block in no_taxonomy_scope' app/models/taxonomy.rb:51:inblock (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:148:in as_location' app/models/taxonomy.rb:50:inblock in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:113:in as_org' app/models/taxonomy.rb:49:inas_taxonomy'
app/models/taxonomy.rb:43:in no_taxonomy_scope' app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

log:
Operation FAILED: undefined method boot_filename' for nil:NilClass /usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:60:indhcp_attrs'
/usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:16:in
dhcp_record' /usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:142:indhcp_conflict_detected?'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:in
_run__2186145019037043531__validation__210935129444102558__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_validation_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/activemodel-3.2.8/lib/active_model/validations/callbacks.rb:53:in
run_validations!' /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/validations.rb:194:invalid?'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:69:in
valid?' /usr/share/foreman/app/models/concerns/orchestration.rb:47:invalid?'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:77:in
perform_validations' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:50:insave'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:22:in
save' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241:inblock (2 levels) in save'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in
block in with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in
transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:inwith_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241:in
block in save' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:252:inrollback_active_record_state!'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:240:in
save' /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:insave_with_type'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:216:in
block in update_attributes' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:inblock in with_transaction_returning_status'
/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'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in
with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:214:inupdate_attributes'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.3.0/app/controllers/discovered_hosts_controller.rb:72:in
block in update' /usr/share/foreman/app/models/taxonomy.rb:44:inblock in
no_taxonomy_scope'
/usr/share/foreman/app/models/taxonomy.rb:51:in block (2 levels) in as_taxonomy' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:148:inas_location'
/usr/share/foreman/app/models/taxonomy.rb:50:in block in as_taxonomy' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:113:inas_org'
/usr/share/foreman/app/models/taxonomy.rb:49:in as_taxonomy' /usr/share/foreman/app/models/taxonomy.rb:43:inno_taxonomy_scope'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.3.0/app/controllers/discovered_hosts_controller.rb:71:in
update' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:insend_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:inprocess_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:549:inblock (3 levels) in
_run__1838916945586311741__process_action__3825693022177244652__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_6945' /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_1823' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6945'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:537:in
block (2 levels) in _run__1838916945586311741__process_action__3825693022177244652__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_6944'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33: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_6944'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:426:in
block in _run__1838916945586311741__process_action__3825693022177244652__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_6943'
/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_6943' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in_run__1838916945586311741__process_action__3825693022177244652__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:inprocess_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:inblock 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:ininstrument'
/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:inprocess_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:inprocess_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:inprocess'
/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:indispatch'
/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:incall'
/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: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.5/lib/apipie/extractor/recorder.rb:97:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.5/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__4295328971200225218__call__210935129444102558__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.42/lib/phusion_passenger/rack/thread_handler_extension.rb:74:inprocess_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/lib/phusion_passenger/request_handler/thread_handler.rb:141:in
accept_and_process_next_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/lib/phusion_passenger/request_handler/thread_handler.rb:109:inmain_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/lib/phusion_passenger/request_handler.rb:448:in
`block (3 levels) in start_threads'
Rendered common/500.html.erb (13.6ms)
Completed 500 Internal Server Error in 1169ms (Views: 22.2ms |
ActiveRecord: 20.2ms)
Cache read:
https://eg-foreman.nd.cmgame.com/discovered_hosts/mac005056adbfc1/edit?
<https://eg-foreman.nd.cmgame.com/discovered_hosts/mac005056adbfc1/edit?>

I find a similar case in http://projects.theforeman.org(Bug #5701) , but no
solution's been given, pls help us to solve it, thanks a lot!!

Can you test with the latest version of the plugin (1.4.0-rc2) and the
latest discovery image (0.6rc) and tell us if you see the same error?

well,I update the latest version of the plugin (1.4.0-rc2) and the latest
discovery image (0.6rc),but the foreman can't start with another problem :

Web application could not be started

uninitialized constant PuppetFactParser (NameError)
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc2/lib/foreman_discovery/engine.rb:78:in block in &lt;class:Engine&gt;&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:473:in_run__1239477915443540158__prepare__2031369212926485130__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_prepare_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/reloader.rb:74:inprepare!'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in prepare!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:inblock in <module:Finisher>'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in instance_exec&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:inrun'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in block in run_initializers&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in run_initializers&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:ininitialize!'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in method_missing&#39; /usr/share/foreman/config/environment.rb:5:in<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require&#39; /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire'
config.ru:3:in block in &lt;main&gt;&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:ininstance_eval'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in initialize&#39; config.ru:1:innew'
config.ru:1:in &lt;main&gt;&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:112:ineval'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:112:in preload_app&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:158:in<module:App>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:29:in &lt;module:PhusionPassenger&gt;&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:28:in<main>'

uninitialized constant PuppetFactParser (NameError)
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc2/lib/foreman_discovery/engine.rb:78:in block in &lt;class:Engine&gt;&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:473:in_run__1239477915443540158__prepare__2031369212926485130__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_prepare_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/reloader.rb:74:inprepare!'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in prepare!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:inblock in <module:Finisher>'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in instance_exec&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:inrun'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in block in run_initializers&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in run_initializers&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:ininitialize!'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in method_missing&#39; /usr/share/foreman/config/environment.rb:5:in<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require&#39; /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire'
config.ru:3:in block in &lt;main&gt;&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:ininstance_eval'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in initialize&#39; config.ru:1:innew'
config.ru:1:in &lt;main&gt;&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:112:ineval'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:112:in preload_app&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:158:in<module:App>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.42/helper-scripts/rack-preloader.rb:28:in
`<main>'

在 2014年9月22日星期一UTC+8下午11时27分34秒,Greg Sutcliffe写道:

··· > > Can you test with the latest version of the plugin (1.4.0-rc2) and the > latest discovery image (0.6rc) and tell us if you see the same error? >

I commented
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc2/lib/foreman_discovery/engine.rb:78
#::PuppetFactParser.send :include, PuppetFactParserExtensions
then the foreman can started ,but errors still occurs , also about
"undefined method `boot_filename' for nil:NilClass" !

在 2014年9月22日星期一UTC+8下午11时27分34秒,Greg Sutcliffe写道:

··· > > Can you test with the latest version of the plugin (1.4.0-rc2) and the > latest discovery image (0.6rc) and tell us if you see the same error? >

For the record, the PuppetFactParser issue's being tracked under
http://projects.theforeman.org/issues/7580

··· -- Dominic Cleal Red Hat Engineering

On 23/09/14 08:05, Junior white wrote:

I commented
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc2/lib/foreman_discovery/engine.rb:78
#::PuppetFactParser.send :include, PuppetFactParserExtensions
then the foreman can started ,but errors still occurs , also about
"undefined method `boot_filename’ for nil:NilClass" !

在 2014年9月22日星期一UTC+8下午11时27分34秒,Greg Sutcliffe写道:

Can you test with the latest version of the plugin (1.4.0-rc2) and the
latest discovery image (0.6rc) and tell us if you see the same error?


You received this message because you are subscribed to the Google
Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-dev+unsubscribe@googlegroups.com
mailto:foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

But the problem I met when I use the old version is still there,that is "undefined method `boot_filename' for nil:NilClass
"?

在 2014年9月23日星期二UTC+8下午3时33分47秒,Dominic Cleal写道:

··· > > For the record, the PuppetFactParser issue's being tracked under > http://projects.theforeman.org/issues/7580 > > -- > Dominic Cleal > Red Hat Engineering > > On 23/09/14 08:05, Junior white wrote: > > I commented > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc2/lib/foreman_discovery/engine.rb:78 > > > #::PuppetFactParser.send :include, PuppetFactParserExtensions > > then the foreman can started ,but errors still occurs , also about > > "undefined method `boot_filename' for nil:NilClass" ! > > > > > > 在 2014年9月22日星期一UTC+8下午11时27分34秒,Greg Sutcliffe写道: > > > > Can you test with the latest version of the plugin (1.4.0-rc2) and > the > > latest discovery image (0.6rc) and tell us if you see the same > error? > > > > -- > > You received this message because you are subscribed to the Google > > Groups "foreman-dev" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-dev...@googlegroups.com > > <mailto:foreman-dev+unsubscribe@googlegroups.com >. > > For more options, visit https://groups.google.com/d/optout. > >

I thought I responded already but my mails got lost. I need to check
this :frowning:

This is another issue which is being tracked in

http://projects.theforeman.org/issues/5701

Since I was the only one who was able to reproduce, I will take a look
on this soon. Greg's setup is fine.

··· -- Later, Lukas #lzap Zapletal

i know it is a special case, but the error is still unresolved even we took Greg's suggestion. and we still know nothing about the reason.

在 2014年9月25日星期四UTC+8下午10时18分37秒,Lukas Zapletal写道:

··· > > I thought I responded already but my mails got lost. I need to check > this :-( > > This is another issue which is being tracked in > > http://projects.theforeman.org/issues/5701 > > Since I was the only one who was able to reproduce, I will take a look > on this soon. Greg's setup is fine. > > -- > Later, > Lukas #lzap Zapletal >

i know it is a special case, but the error is still unresolved even we took Greg's suggestion. and we still know nothing about the reason.

在 2014年9月25日星期四UTC+8下午10时18分37秒,Lukas Zapletal写道:

··· > > I thought I responded already but my mails got lost. I need to check > this :-( > > This is another issue which is being tracked in > > http://projects.theforeman.org/issues/5701 > > Since I was the only one who was able to reproduce, I will take a look > on this soon. Greg's setup is fine. > > -- > Later, > Lukas #lzap Zapletal >

Junior,

we are aware of this problem and we make best effort to fix it. In the
meantime, please help us with finding the problem. I described the issue
partially in the tracker, maybe you will be lucky enough to find the
root cause.

I will get back to it hopefully next week.

ps - please don't send your emails twice

LZ

··· -- Later, Lukas #lzap Zapletal

thank you very much ,I will describe the issue partially in the tracker. I
hope we can find the
root cause and slove it together !

在 2014年9月26日星期五UTC+8下午4时23分18秒,Lukas Zapletal写道:

··· > > Junior, > > we are aware of this problem and we make best effort to fix it. In the > meantime, please help us with finding the problem. I described the issue > partially in the tracker, maybe you will be lucky enough to find the > root cause. > > I will get back to it hopefully next week. > > ps - please don't send your emails twice > > LZ > > -- > Later, > Lukas #lzap Zapletal >

*Hi, *Lukas
Do you find a solution to this problem ?

在 2014年9月26日星期五UTC+8下午4时23分18秒,Lukas Zapletal写道:

··· > > Junior, > > we are aware of this problem and we make best effort to fix it. In the > meantime, please help us with finding the problem. I described the issue > partially in the tracker, maybe you will be lucky enough to find the > root cause. > > I will get back to it hopefully next week. > > ps - please don't send your emails twice > > LZ > > -- > Later, > Lukas #lzap Zapletal >

> Do you find a solution to this problem ?

Not yet, subscribe to the bug so you get notified. It's some deface
magic that causes this I think. Not yet sure.

··· -- Later, Lukas #lzap Zapletal