Activation keys not lsiting after upgrade to Foreman 1.10.1 (Katello 2.3 -> 2.4)

All,

After upgrading to 1.10.1 Activation Keys would not work anymore:

hammer activation-key list --organization-label test

[Foreman] Password for admin:
undefined method `subscription' for nil:NilClass

In the log:

==> foreman/production.log <==
2016-02-02 14:33:12 [app] [I] Rendered
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/views/katello/api/v2/activation_keys/index.json.rabl
within katello/api/v2/layouts/collection (240.6ms)
2016-02-02 14:33:12 [app] [E] NoMethodError: undefined method
subscription&#39; for nil:NilClass &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/models/katello/activation_key.rb:100:inblock in products'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/models/katello/activation_key.rb:99:in
each&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/models/katello/activation_key.rb:99:inproducts'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/helpers.rb:14:in
data_object&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:169:inchild'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:114:in
block in compile_settings&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:113:ineach'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:113:in
compile_settings&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:34:inengines'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:in
merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:55:inblock in to_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:248:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:49:into_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:86:in
to_hash&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:48:inblock in render'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:382:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:47:inrender'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:127:in
block in merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:ineach'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:in
merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:55:inblock in to_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:248:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:49:into_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/multi_builder.rb:27:in
map&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/multi_builder.rb:27:into_a'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:88:in
to_hash&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:48:inblock in render'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:382:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:47:inrender'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:124:in
block (2 levels) in merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:123:ineach'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:123:in
block in merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:ineach'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:in
merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:55:inblock in to_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:248:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:49:into_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:86:in
to_hash&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:48:inblock in render'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:382:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:47:inrender'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:127:in
block in merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:ineach'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:119:in
merge_engines_into_result&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:55:inblock in to_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:248:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:49:into_hash'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:86:in
to_hash&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:101:into_dumpable'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:110:in
to_json&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:48:inblock in render'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:382:in
cache_results&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/engine.rb:47:inrender'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/views/katello/api/v2/activation_keys/index.json.rabl:1:in
_58d8e235be94ab895e64df0f4b3660a3&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:145:inblock in render'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:125:in
instrument&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:143:inrender'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.1/lib/deface/action_view_extensions.rb:41:in
render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:47:inblock (2 levels) in render_template'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:in
block in instrument&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument&#39; &gt; /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_view/renderer/abstract_renderer.rb:38:in
instrument&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:46:inblock in render_template'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:54:in
render_with_layout&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:45:inrender_template'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:18:in
render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:36:inrender_template'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:17:in
render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:110:in_render_template'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/streaming.rb:225:in
_render_template&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:103:inrender_to_body'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/renderers.rb:28:in
render_to_body&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/compatibility.rb:50:inrender_to_body'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:88:in
render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:16:inrender'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:40:in
block (2 levels) in render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/benchmark.rb:5:inblock in ms'
> /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:295:in realtime&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/benchmark.rb:5:inms'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:40:in
block in render&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:83:incleanup_view_runtime'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:24:in
cleanup_view_runtime&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:39:inrender'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/lib/katello/api/v2/rendering.rb:48:in
respond_with_template&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/lib/katello/api/v2/rendering.rb:63:inrespond_with_template_collection'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/lib/katello/api/v2/rendering.rb:76:in
try_specific_collection_template&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/lib/katello/api/v2/rendering.rb:11:inrespond_for_index'
>
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/controllers/katello/concerns/api/api_controller.rb:74:in
respond&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/controllers/katello/api/v2/activation_keys_controller.rb:26:inindex'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:inprocess_action'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in
process_action&#39; &gt; /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:573:in
block (5 levels) in _run__1877034146516499879__process_action__4131650904809277017__callbacks&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_11840'
> /usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in
disable_json_root&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_11840'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:517:in
block (4 levels) in _run__1877034146516499879__process_action__4131650904809277017__callbacks&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_11839'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_4111'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_11839&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:505:inblock (3 levels) in
_run__1877034146516499879__process_action__4131650904809277017__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_11838&#39; &gt; /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_11838&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:504:inblock (2 levels) in
_run__1877034146516499879__process_action__4131650904809277017__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_11837&#39; &gt; /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_11837&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:inblock in
_run__1877034146516499879__process_action__4131650904809277017__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_11836&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_11836'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in
_run__1877034146516499879__process_action__4131650904809277017__callbacks&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in
process_action&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in
process_action&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
>
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in
process_action&#39; &gt; /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/controllers/katello/concerns/api/api_controller.rb:39:inprocess_action'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in
process&#39; &gt; /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&#39; &gt; /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&#39; &gt; /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&#39; &gt; /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/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:in
call&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:inblock in call'
>
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
each&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:incall'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in
call&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:incall'
>
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:inblock in call'
>
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
each&#39; &gt; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:incall'
>
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.r

OK so I fixed it by:

  • Removing all products, and all their repos first. (it had actually also
    filled up and to reclaim the space I had to completely refresh the
    candlepin, as if it was new)

  • Removing all relationships from hostgroups and hosts to Content Views

  • Removing all relationships from hostgroups and hosts to Organizations

  • Removed all contents hosts…

  • Deleting content view —> Still complained of related hosts

    • I had to change the values for content_view ID manually from foreman
      DB, THEN
    • I removed the content views, and THEN
    • Activation keys were still not listing, so I removed them manually
      from both candlepin and foreman databases, and reset the sequence to 1

After all that I was left with NO effective content hosts, no activation
keys, no content views, and basically only the hosts view as a just Puppet
report viewer…

I will not use any of this until I am certain that it is much more solid in
a future version.

Thanks for reading.

I'm getting the same thing on my Katello installation which has been
upgraded to 2.4.

Was this ever raised as a bug and/or fixed?

John

··· On Tuesday, 2 February 2016 14:44:37 UTC, Guillem Liarte wrote: > > All, > > After upgrading to 1.10.1 Activation Keys would not work anymore: > > # hammer activation-key list --organization-label test > [Foreman] Password for admin: > undefined method `subscription' for nil:NilClass >

Hi Guillem,

Do you mind opening a ticket with this information so that we can take a
look? Foreman

Thanks,
Eric

··· On Mon, Feb 8, 2016 at 4:48 AM, Guillem Liarte < guillem.liarte@googlemail.com> wrote:

OK so I fixed it by:

  • Removing all products, and all their repos first. (it had actually also
    filled up and to reclaim the space I had to completely refresh the
    candlepin, as if it was new)

  • Removing all relationships from hostgroups and hosts to Content Views

  • Removing all relationships from hostgroups and hosts to Organizations

  • Removed all contents hosts…

  • Deleting content view —> Still complained of related hosts

    • I had to change the values for content_view ID manually from foreman
      DB, THEN
    • I removed the content views, and THEN
    • Activation keys were still not listing, so I removed them manually
      from both candlepin and foreman databases, and reset the sequence to 1

After all that I was left with NO effective content hosts, no activation
keys, no content views, and basically only the hosts view as a just Puppet
report viewer…

I will not use any of this until I am certain that it is much more solid
in a future version.

Thanks for reading.


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University

John,

I don't think a bug was every filed for this. Could you file a bug here
Foreman and include the
traceback and some info about your current set up so we can reproduce? Then
we can look into it and fix and perhaps find a work-around or patch for 2.4.

Thanks,

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Fri, Mar 18, 2016 at 8:27 AM, John Beranek - PA < john.beranek@pressassociation.com> wrote:

On Tuesday, 2 February 2016 14:44:37 UTC, Guillem Liarte wrote:

All,

After upgrading to 1.10.1 Activation Keys would not work anymore:

hammer activation-key list --organization-label test

[Foreman] Password for admin:
undefined method `subscription’ for nil:NilClass

I’m getting the same thing on my Katello installation which has been
upgraded to 2.4.

Was this ever raised as a bug and/or fixed?

John


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

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

If there's any other information I can provide, please let me know.

Cheers,

John

··· On Friday, 18 March 2016 15:09:17 UTC, John Mitsch wrote: > > John, > > I don't think a bug was every filed for this. Could you file a bug here > http://projects.theforeman.org/projects/katello/issues/new and include > the traceback and some info about your current set up so we can reproduce? > Then we can look into it and fix and perhaps find a work-around or patch > for 2.4. >

Thanks for filing that John, we will look into it and get back to you with
any findings.

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Fri, Mar 18, 2016 at 11:16 AM, John Beranek - PA < john.beranek@pressassociation.com> wrote:

On Friday, 18 March 2016 15:09:17 UTC, John Mitsch wrote:

John,

I don’t think a bug was every filed for this. Could you file a bug here
Foreman and include
the traceback and some info about your current set up so we can reproduce?
Then we can look into it and fix and perhaps find a work-around or patch
for 2.4.

Bug #14270: Activation Keys not accessible after upgrade to Katello 2.4 - Katello - Foreman

If there’s any other information I can provide, please let me know.

Cheers,

John


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.