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:
*** Bug 2022743 has been marked as a duplicate of this bug. ***
*** Bug 2108415 has been marked as a duplicate of this bug. ***