Bug 1562088

Summary: [RFE] Allow Bind Pools (POST /consumers/{consumer_uuid}/entitlements) to accept multiple pool IDs
Product: [Community] Candlepin Reporter: Andrew Kofink <akofink>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: nmoumoul, redakkan
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
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: 2023-11-22 10:16:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Kofink 2018-03-29 13:49:35 UTC
Description of problem:
Binding multiple pools requires multiple API requests. The candlepin documentation indicates that a body containing multiple pools should be able to be used (http://www.candlepinproject.org/swagger/?url=candlepin/swagger-2.2.0.json#!/consumers/bind).

Version-Release number of selected component (if applicable):
2.1

How reproducible:
Always

Steps to Reproduce:
1. POST /consumers/{consumer_uuid}/entitlements with a body and async param

Actual results:
Candlepin Job is returned and shows success, but no entitlements are bound

Expected results:
Candlepin Job is returned and shows success, and entitlements are bound

Additional info:
This is important for Satellite using this API to add Pools to the manifest consumer (new manage subscriptions Satellite feature).

Relevant code: https://github.com/candlepin/candlepin/blob/d0c93cbdab8452efb36a91bab24eae5f969fe59d/server/src/main/java/org/candlepin/resource/ConsumerResource.java#L1930

Comment 1 Andrew Kofink 2018-03-29 13:53:25 UTC
This is a 'nice to have' API endpoint. We're fine using the serial API (N POSTs for N pools) for this operation, but it'd be more efficient as described in this RFE.

Comment 4 Nikos Moumoulidis 2023-11-22 10:16:13 UTC
The subscription experience has moved to the direction of Simple Content Access mode, making binding/attaching entitlements obsolete, so we will not be implementing this.