Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionStephen Wadeley
2020-07-15 08:04:23 UTC
Description of problem:
Trying to make API call:
PUT /api/v2/hosts/bulk/add_subscriptions
With data:
{"organization_id": 15, "included": {"ids": [13, 14]}, "excluded": {}, "subscriptions": [{"id": 59, "quantity": 1}]}
I get error:
NoMethodError: undefined method `candlepin_consumer' for nil:NilClass
Version-Release number of selected component (if applicable):
~]# rpm -q satellite
satellite-6.8.0-0.6.beta.el7sat.noarch
~]# rpm -q candlepin
candlepin-3.1.14-1.el7sat.noarch
How reproducible:
Every time
Steps to Reproduce:
1. Create host collection with two content host entries
2. Create a custom product
3. Attempt to attach subscription for custom product using API path: PUT /api/v2/hosts/bulk/add_subscriptions
Actual results:
Internal Service Error (ISE)
NoMethodError: undefined method `candlepin_consumer' for nil:NilClass
Expected results:
useful error message
Additional info:
https://theforeman.org/plugins/katello/3.15/api/apidoc/v2/hosts_bulk_actions/add_subscriptions.html
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2020:4366
Description of problem: Trying to make API call: PUT /api/v2/hosts/bulk/add_subscriptions With data: {"organization_id": 15, "included": {"ids": [13, 14]}, "excluded": {}, "subscriptions": [{"id": 59, "quantity": 1}]} I get error: NoMethodError: undefined method `candlepin_consumer' for nil:NilClass Version-Release number of selected component (if applicable): ~]# rpm -q satellite satellite-6.8.0-0.6.beta.el7sat.noarch ~]# rpm -q candlepin candlepin-3.1.14-1.el7sat.noarch How reproducible: Every time Steps to Reproduce: 1. Create host collection with two content host entries 2. Create a custom product 3. Attempt to attach subscription for custom product using API path: PUT /api/v2/hosts/bulk/add_subscriptions Actual results: Internal Service Error (ISE) NoMethodError: undefined method `candlepin_consumer' for nil:NilClass Expected results: useful error message Additional info: https://theforeman.org/plugins/katello/3.15/api/apidoc/v2/hosts_bulk_actions/add_subscriptions.html