Bug 1383794

Summary: host_subscriptions_controller PUT remove_subscriptions fails "NoMethodError: undefined method []"
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Hosts - ContentAssignee: Tom McKay <tomckay>
Status: CLOSED ERRATA QA Contact: Brad Buckingham <bbuckingham>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:49:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom McKay 2016-10-11 18:33:34 UTC
Bad merge from https://github.com/Katello/katello/commit/d31947e0f05e89298e8c718fb84245ef2fc27cd9 added back the finalize method that should have been removed.

To test PUT /host_subscriptions/remove_subscriptions

Comment 1 Tom McKay 2016-10-11 18:33:39 UTC
Created from redmine issue http://projects.theforeman.org/issues/16868

Comment 2 Tom McKay 2016-10-11 18:33:42 UTC
Upstream bug assigned to tomckay

Comment 5 Bryan Kearney 2016-11-08 23:00:34 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16868 has been resolved.

Comment 6 Brad Buckingham 2017-08-09 16:26:54 UTC
Verified with Satellite 6.3 SNAP 10: satellite-6.3.0-16.0.beta.el7sat.noarch, tfm-rubygem-katello-3.4.4-1.el7sat.noarch

- registered a server with an activation key containing subscriptions
- went in to Hosts -> Content Hosts -> host -> Subscriptions
- removed a subscription

- confirmed that remove_subscriptions was executed without error.  The subscription was removed from the server both from the Satellite as well as on the client after subscription-manager refresh.

Comment 7 Satellite Program 2018-02-21 16:49:54 UTC
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/RHSA-2018:0336