Bug #22287
closedAnsible Tower inventory integration is slow
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1437197
Description of problem:
When using the Ansible Tower built-in Satellite 6 inventory integration, a sync takes roughly 4 and a half hours to complete against 845 hosts. This behavior is identical from the command line using a straight invocation of foreman.py and matching the max_age parameter to what is already set in Tower.
How reproducible:
Reproducible every time for this customer, but not reproducible for us locally.
Steps to Reproduce:
1. Pull down foreman.py and foreman.ini from https://github.com/ansible/ansible/tree/devel/contrib/inventory directory
2. Populate [foreman] section of foreman.ini with Sat host details.
3. Ensure max_age is set to 60
4. Run time ./foreman.py
Actual results:
CLI run:
real 252m51.541s
user 0m9.319s
sys 0m1.713s
Tower run: 14829.828 aka 247 minutes
Expected results:
Our local tests against half as many hosts were completing in 6 minutes so conservatively 20 minutes for this customer.
Updated by Adam Ruzicka about 7 years ago
- Project changed from Ansible to Katello
- Subject changed from Ansible Tower inventory integration is slow to Ansible Tower inventory integration is slow
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7163 added
Updated by Justin Sherrill about 7 years ago
- Category set to Hosts
- Translation missing: en.field_release set to 338
Updated by Justin Sherrill almost 7 years ago
- Status changed from Ready For Testing to Closed