Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1324884 - hammer activationkey product-content command failed
hammer activationkey product-content command failed
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.2.0
Unspecified Unspecified
unspecified Severity high (vote)
: Beta
: Unused
Assigned To: Brad Buckingham
sthirugn@redhat.com
http://projects.theforeman.org/issues...
: Regression, Triaged
Depends On:
Blocks: 1250610
  Show dependency treegraph
 
Reported: 2016-04-07 09:42 EDT by sthirugn@redhat.com
Modified: 2016-07-27 05:31 EDT (History)
1 user (show)

See Also:
Fixed In Version: rubygem-katello-3.0.0.16-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-27 05:31:07 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
production.log (20.70 KB, text/plain)
2016-04-07 09:42 EDT, sthirugn@redhat.com
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 14532 None None None 2016-04-22 11:35 EDT
Red Hat Product Errata RHBA-2016:1501 normal SHIPPED_LIVE Red Hat Satellite 6.2 Capsule and Server 2016-07-27 08:28:58 EDT

  None (edit)
Description sthirugn@redhat.com 2016-04-07 09:42:32 EDT
Created attachment 1144746 [details]
production.log

Description of problem:
hammer activationkey product-content command failed

Version-Release number of selected component (if applicable):
satellite-6.2.0-6.2.beta.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
hammer> activation-key product-content --id=1
undefined method `map' for nil:NilClass


Actual results:
error as shown above

Expected results:
No error and product contents listed

Additional info:
Comment 1 sthirugn@redhat.com 2016-04-07 09:43:49 EDT
This is a regression and this seems to have broken in the recent builds (It worked fine 2 weeks back - https://bugzilla.redhat.com/show_bug.cgi?id=1250610#c7)
Comment 3 Brad Buckingham 2016-04-07 13:37:46 EDT
It appears that this error may only occur, if the activation key does not have any subscriptions attached to it.
Comment 4 Brad Buckingham 2016-04-07 13:38:15 EDT
Created redmine issue http://projects.theforeman.org/issues/14532 from this bug
Comment 5 Bryan Kearney 2016-04-07 14:11:03 EDT
Upstream bug component is Content Management
Comment 6 Brad Buckingham 2016-04-07 14:25:38 EDT
Upstream Katello PR: 
https://github.com/Katello/katello/pull/5945
Comment 7 Bryan Kearney 2016-04-07 18:10:56 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/14532 has been closed
-------------
Brad Buckingham
Applied in changeset commit:katello|825eb8cb06d94ed6bf3f629dc62bcd3415703e74.
Comment 8 sthirugn@redhat.com 2016-04-14 10:11:26 EDT
Verified in satellite-6.2.0-8.0.beta.el7sat.noarch

# hammer -u admin -p changeme activation-key product-content --id=1
--------------|-----------------------------------------------|------|-----|---------|----------------------------------------------|---------
ID            | NAME                                          | TYPE | URL | GPG KEY | LABEL                                        | ENABLED?
--------------|-----------------------------------------------|------|-----|---------|----------------------------------------------|---------
1460641048864 | sat6toolsrepo                                 |      |     |         | Default_Organization_sat6tools_sat6toolsrepo | default 
2455          | Red Hat Enterprise Linux 7 Server (Kickstart) |      |     |         | rhel-7-server-kickstart                      | default 
2456          | Red Hat Enterprise Linux 7 Server (RPMs)      |      |     |         | rhel-7-server-rpms                           | default 
--------------|-----------------------------------------------|------|-----|---------|----------------------------------------------|---------
Comment 10 errata-xmlrpc 2016-07-27 05:31:07 EDT
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, 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/RHBA-2016:1501

Note You need to log in before you can comment on or make changes to this bug.