Bug 1452330 - Importing/Refreshing manifest deletes custom product pools
Summary: Importing/Refreshing manifest deletes custom product pools
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Chris "Ceiu" Rog
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On: 1452693
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-18 17:41 UTC by Justin Sherrill
Modified: 2019-08-12 14:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1452693 (view as bug list)
Environment:
Last Closed: 2018-02-21 17:06:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18971 0 Urgent Resolved Custom pools deleted after importing or refreshing a manifest 2021-01-07 03:20:07 UTC
Github candlepin candlepin pull 1584 0 None closed 1452330: Added refresh behavior from Candlepin 0.9.x (2.0) 2021-01-07 03:20:46 UTC

Description Justin Sherrill 2017-05-18 17:41:00 UTC
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

Comment 1 Justin Sherrill 2017-05-18 17:45:35 UTC
Connecting redmine issue http://projects.theforeman.org/issues/18971 from this bug

Comment 4 Satellite Program 2017-06-01 20:29:54 UTC
1439850

Comment 5 Roman Plevka 2017-09-20 13:59:10 UTC
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

Comment 6 Bryan Kearney 2018-02-21 17:06:38 UTC
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


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