Description of problem: After creating one or more custom products, importing or refreshing a manifest causes the pools for these custom products to be deleted. Version-Release number of selected component (if applicable): 6.3.0 build (candlepin-2.0.22-1.el7.noarch) How reproducible: Always Steps to Reproduce: 1. Install a satellite 6.3 build or upstream katello nightly 2. Create a product 3. visit the RH Subscriptions page and see that the subscription is there 4. Import a manifest 5. Visit the RH subscription page and see that the custom subscription is missing Expected results: Should not be missing. Additional info: Also of note a 'pool.deleted' event is kicked off via the event listener, so it seems candlepin is actually deleting the pool
Connecting redmine issue http://projects.theforeman.org/issues/18971 from this bug
1439850
VERIFIED on sat6.3.0-16 the custom-product subscriptions are no longer deleted. # hammer subscription list --organization-id 1 ---|----------------------------------|----------|----------|----------|---------|---------|---------------------|-----------|--------- ID | UUID | NAME | TYPE | CONTRACT | ACCOUNT | SUPPORT | END DATE | QUANTITY | CONSUMED ---|----------------------------------|----------|----------|----------|---------|---------|---------------------|-----------|--------- 1 | 8a9038c55e9e4ea0015e9ea0eb680001 | sattools | Physical | | | | 2047/09/13 09:31:39 | Unlimited | 0 ---|----------------------------------|----------|----------|----------|---------|---------|---------------------|-----------|--------- # imported org. manifest ]# hammer subscription list --organization-id 1 ---|----------------------------------|-----------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- ID | UUID | NAME | TYPE | CONTRACT | ACCOUNT | SUPPORT | END DATE | QUANTITY | CONSUMED ---|----------------------------------|-----------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- 1 | 8a9038c55e9e4ea0015e9ea0eb680001 | sattools | Physical | | | | 2047/09/13 09:31:39 | Unlimited | 0 3 | 8a9038c55e9e4ea0015e9f86b44c0324 | Red Hat Satellite Employee Subscription | Physical | 10843764 | 477931 | Self-Support | 2022/01/01 04:59:59 | 6 | 0 ---|----------------------------------|-----------------------------------------|----------|----------|---------|--------------|---------------------|-----------|--------- candlepin.log does not show anything indicating subs removal: INFO org.candlepin.common.filter.LoggingFilter - Request: verb=POST, uri=/candlepin/owners/Default_Organization/imports INFO org.candlepin.sync.RulesImporter - Ignoring older rules in manifest, current version: 5.24.1 new version: 5.15.1 INFO org.candlepin.sync.SubscriptionReconciler - New subscription for incoming entitlement ID: 8a85f9825e3739f8015e3744e9910f44 INFO org.candlepin.controller.CandlepinPoolManager - Refreshing pools for owner: Owner [id: 8a9038c55e9e388c015e9e392a6e0001, key: Default_Organization] INFO org.candlepin.policy.js.pool.PoolRules - Checking if pools need to be created for: Pool [id=null, type=NORMAL, product=SER0232US, productName=Red Hat Satellite Employee Subscription, quantity=6] INFO org.candlepin.policy.js.pool.PoolRules - Creating new master pool: Pool [id=null, type=NORMAL, product=SER0232US, productName=Red Hat Satellite Employee Subscription, quantity=6] WARN org.candlepin.policy.js.pool.PoolRules - Invalid virt_limit attribute specified. INFO org.candlepin.policy.js.pool.PoolRules - Checking if bonus pools need to be created for pool: Pool [id=null, type=NORMAL, product=SER0232US, productName=Red Hat Satellite Employee Subscription, quantity=6] INFO org.candlepin.audit.EventSinkImpl - Created new HornetQ producer. INFO org.candlepin.controller.CandlepinPoolManager - Refresh pools for owner: Default_Organization completed in: 743ms INFO org.candlepin.resource.OwnerResource - Import attempt completed for owner Default Organization
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