Bug 2017774 - [RFE]: Disallow manual subscription attachment in SCA mode
Summary: [RFE]: Disallow manual subscription attachment in SCA mode
Keywords:
Status: MODIFIED
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 4.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: candlepin-bugs
QA Contact:
URL:
Whiteboard:
: 2022743 2108415 (view as bug list)
Depends On: 2182768
Blocks: 2023257 2124343 2332067
TreeView+ depends on / blocked
 
Reported: 2021-10-27 12:14 UTC by Nikos Moumoulidis
Modified: 2025-04-04 13:23 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 2332067 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin candlepin pull 4911 0 None Merged [M] 2017774: Disallowed Manual Subscription Attachment in SCA Mode 2024-12-11 10:52:41 UTC
Red Hat Issue Tracker CANDLEPIN-135 0 None None None 2024-10-24 10:19:31 UTC
Red Hat Issue Tracker SAT-20586 0 None None None 2024-06-07 14:28:44 UTC
Red Hat Knowledge Base (Solution) 5117171 0 None None None 2022-01-10 13:18:01 UTC
Red Hat Knowledge Base (Solution) 5136481 0 None None None 2022-01-10 13:18:01 UTC

Description Nikos Moumoulidis 2021-10-27 12:14:32 UTC
Description of problem:
Allowing the manual attachment of subscriptions while in SCA mode was a decision that would make for a smoother transition from Entitlement for users, but we are at a point that this is no longer needed.

Auto-attaching has already been disabled at the Candlepin level, and 
Satellite 6.9+ has already disabled attaching subscriptions to hosts while in SCA mode from the Satellite UI.

Disallowing the attachment of subscriptions at the Candlepin API level by ignoring the specified pool ids, and returning an empty list of entitlements,
is the next natural step (We do not want to throw an error in order to make sure older, unpatched clients do not break).
The only exception would be that we should still allow manifest consumers (e.g. types 'candlepin' or 'satellite') to attach
entitlements for manifest generation to work properly.

Version-Release number of selected component (if applicable):
All current versions of Candlepin.

How reproducible:
100%

Steps to Reproduce:
1. Register a client to an Org that is in SCA mode.
2. Run 'subscription-manager attach --pool=<pool id for subscription X>'  to attach a specific pool

Actual results:
"Successfully attached a subscription for: X"

Expected results:
A descriptive error returned from Candlepin similar to the one of auto-attach, e.g. "Ignoring request to attach entitlements. It is disabled for org "Default_Organization" because of the content access mode setting."

Additional info:

Comment 1 Brad Buckingham 2022-01-10 13:18:02 UTC
*** Bug 2022743 has been marked as a duplicate of this bug. ***

Comment 3 Nikos Moumoulidis 2022-07-19 08:46:01 UTC
*** Bug 2108415 has been marked as a duplicate of this bug. ***


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