Created attachment 1209620[details]
Task content host destroy
Description of problem:
Bulk deleting content hosts can trigger a deadlock in postgres.
See attached task export that it deadlocks on the import_data to update the katello_pools.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Register 100 Content Hosts
2. Bulk Delete 100 Content Hosts
3.
Actual results:
Deadlock
Expected results:
Success
Additional info:
In the latest upstream the https://github.com/Katello/katello/pull/6187 removes already the finalize() code block that does the import_data() call.
This is not just bulk deleting also with re-registering hosts the deadlock is triggered.
E.g. re-register (susbcription-manager register --force) on 10 hosts at the same time.
Comment 7Satellite Program
2017-02-23 21:09:42 UTC
Please add verifications steps for this bug to help QE verify