[Satellite6] NoMethodError: undefined method `hypervisor' for nil:Katello::HostSubscriptionPresenter

Solution Verified - Updated -

Issue

Subscription is successfully attached, repositories can be accessed.
subscription-manager list --consumed shows attached subscriptions however it's possible to observe several behaviors with similar root cause.

  1. After configure the virt-who and attach the VDC subscription in one hypervisor, when creating a new Activation Key / AK, should be possible to see the subs "Guest of hypervisor name" by the way isn't.

  2. After register a new Content Host using the AK, the result is Subscribed but when checking via webUI the Content Host Subscription, it's not possible to see nothing related to subs, instead only the blank screen on Subscription area and the error below on the production.log

  3. After attaching a subscription, it is not listed in subscriptions -> List/Remove tab

  4. Product content or repository sets from attached subscriptions are not displayed

2017-06-19 15:08:28 9d657ac9 [app] [I] Started GET "/content-hosts/details/views/content-host-subscriptions-list.html" for 172.22.243.136 at 2017-06-19 15:08:28 -0700
2017-06-19 15:08:28 fe286c5f [app] [I] Started GET "/layouts/details-nutupane.html" for 172.22.243.136 at 2017-06-19 15:08:28 -0700
2017-06-19 15:08:28 b4e14a8a [app] [I] Started GET "/api/v2/hosts/146/subscriptions?organization_id=1&page=1&search=&sort_order=ASC" for 172.22.243.136 at 2017-06-19 15:08:28 -0700
2017-06-19 15:08:28 093e820d [app] [I] Started GET "/subscriptions/views/subscription-type.html" for 172.22.243.136 at 2017-06-19 15:08:28 -0700
2017-06-19 15:08:28 b4e14a8a [app] [I] Processing by Katello::Api::V2::HostSubscriptionsController#index as JSON
2017-06-19 15:08:28 b4e14a8a [app] [I]   Parameters: {"organization_id"=>"1", "page"=>"1", "search"=>"", "sort_order"=>"ASC", "api_version"=>"v2", "host_id"=>"146"}
2017-06-19 15:08:29 b4e14a8a [app] [I]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.125/app/views/katello/api/v2/host_subscriptions/index.json.rabl within katello/api/v2/layouts/collection (9.8ms)
2017-06-19 15:08:29 b4e14a8a [app] [E] NoMethodError: undefined method `hypervisor' for nil:Katello::HostSubscriptionPresenter
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.125/app/views/katello/api/v2/subscriptions/base.json.rabl:20:in `block in eval_source'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:202:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:202:in `call_condition_proc'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/builder.rb:214:in `resolve_condition'

Environment

Satellite 6.2.z
Satellite 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.