Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1840803

Summary: [candlepin] Manifest delete takes 24 hours or more in large environment (60k consumers in owner)
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: CandlepinAssignee: ojanus
Status: CLOSED CURRENTRELEASE QA Contact: Danny Synk <dsynk>
Severity: high Docs Contact:
Priority: high    
Version: 6.7.0CC: ahumbe, bbuckingham, bcourt, egolov, hhudgeon, jdickers, nmoumoul, ojanus, pcreech
Target Milestone: UnspecifiedKeywords: Performance, PrioBumpField, Reopened
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-3.1.24-1, candlepin-2.9.31-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1841591 1884259 1894455 1919417 (view as bug list) Environment:
Last Closed: 2022-06-13 13:42:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1841591    
Bug Blocks: 1884259, 1894455    

Description Mike McCune 2020-05-27 16:11:02 UTC
Large customer environment (60K+ consumers in a single Owner) who desires to delete their manifest and import is unable to in a timely manner as the delete takes 24hours or more looping through each consumer:

...

2020-05-22 23:59:51,732 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] DEBUG org.candlepin.controller.CandlepinPoolManager - Adjusting consumed quantities on pools
2020-05-22 23:59:52,145 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] DEBUG org.candlepin.controller.CandlepinPoolManager - Marking dependent entitlements as dirty...
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] DEBUG org.candlepin.controller.CandlepinPoolManager - 0 dependent entitlements marked dirty.
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - Starting batch delete of pools
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - Starting batch delete of entitlements
2020-05-22 23:59:53,283 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - Starting delete flush
2020-05-22 23:59:53,682 [thread=QuartzScheduler_Worker-1] [job=undo_imports_f88c34b4-9fc2-4174-897b-06ab85f2a030, org=ExampleTech, csid=] INFO  org.candlepin.controller.CandlepinPoolManager - All deletes flushed successfully

Comment 17 Brad Buckingham 2021-06-04 19:30:59 UTC
The fix for this bugzilla was delivered in Satellite 6.8.4 with bug 1919417.  The solution is also in 6.9.0 and beyond.

Based upon this, I am going to close this bugzilla.

Comment 18 Brad Buckingham 2021-06-04 19:32:56 UTC
Moving this back to MODIFIED.  This issue is still applicable for Satellite 6.7.z.  While we have no 6.7.z zstreams planned, it could be a candidate if we have one before Satellite 6.7.z goes EOL.