Red Hat Inventory generator fails NoMethodError: undefined method

Problem:
Task for generating Red Hat Inventory fails with following message

NoMethodError: undefined method `subscription_status_label’ for #Host::Managed:0x000055f12d3040e8.

Did you mean? subscriptions

/usr/share/gems/gems/activemodel-6.1.7.8/lib/active_model/attribute_methods.rb:469:in `method_missing’

Problem started after update to:
foreman-3.10.0-1.el8.noarch
katello-4.12.1-1.el8.noarch
rubygem-foreman_rh_cloud-9.0.56-1.fm3_10.el8.noarch

Expected outcome:
Inventory Report is generated ans uploaded to Red Hat Cloud.

Foreman and Proxy versions:
foreman-3.10.0-1.el8.noarch
katello-4.12.1-1.el8.noarch
rubygem-foreman_rh_cloud-9.0.56-1.fm3_10.el8.noarch

Foreman and Proxy plugin versions:

Distribution and version:
RHEL 8.10

Other relevant data:

generating_inventory.log (5.9 KB)

Subscription status was removed from Katello in 4.12. If the RH Cloud plugin relied on this, that’s a bug.

@cintrix84 can you please verify and open an RH cloud issue if needed?

We fixed that here:

Remove subscription label from report slice · theforeman/foreman_rh_cloud@0a2fd0f (github.com)

It should be in version 10.0.1

Which looks like it is nightly. I can look at making a cherry-pick and release a new version for 3.10/3.11

1 Like

Got a new gem released, and made a packaging PR to get this into to 3.11
Update rubygem-foreman_rh_cloud to 9.0.57 by chris1984 · Pull Request #11099 · theforeman/foreman-packaging (github.com)

Once that is in, I will cherry-pick it into 3.10

2 Likes