This feature is available in both candlepin-0.9.54.11+ and candlepin-2.0.20+
Candlepin allows disabling the Auto Attach functionality, on a per Owner basis, to accommodate entitlement stability for Consumers of an Owner/Organisation during subscription renewals and/or other maintenance.
In many circumstances, Candlepin’s Auto Attach functionality is not the greatest at selecting the most appropriate entitlements to attach to a consumer. This is in part to the vast number of combinations of entitlements that can be selected to cover the needs of a consumer and make it valid. Often times, this can lead to a consumer being given entitlements that may not make sense for a customer’s deployment, leaving it up to and admin to manually fix them.
Providing the ability to disable Auto Attach at an owner level will stabilize consumer entitlement change temporarily, while maintenance such as renewals, can be performed.
Auto Attach can be enabled/disabled for an Owner by modifying its Auto AttachDisabled field via the update owner API.
PUT /owners/:owner_key
For example:
$ curl -X PUT -k -u username:password -d '{"Auto AttachDisabled":true}' -H "Content-Type: application/json" https://localhost:8443/candlepin/owners/your_owner_key
Auto Attach can be initiated by rhsmcertd when attempting to ‘heal’ the consumer. If Auto Attach is disabled for the consumer’s owner, it will be affected in the following ways:
NOTE:
The reason why no entitlements were found would only be visible in the rhsm.log
Without a client update, we can not present a more informative message.
Auto Attach can be invoked from the CLI or the GUI. If Auto Attach is disabled for the owner, it will be affected in the following ways:
GUI
CLI
subscription-manager register –auto-attach
subscription-manager attach –auto
NOTE:
Without a client update, we can not present a more informative message.
When registering with an activation key, auto attach can be invoked by setting the autoAttach property on the key(s). If Auto Attach is disabled for the target owner, it will be affected in the following ways:
The POST /owners/:owner_key/entitlements API call will attempt to heal all consumers in the targeted org. If Auto Attach is disabled for the target owner, it will be affected in the following ways:
On hypervisor checkin, the host/guest mapping update will be skipped if Auto Attach is disabled on the owner leaving candlepin in the state of the ‘last checkin’ until Auto Attach was again enabled.