Project

General

Profile

Bug #22287

Ansible Tower inventory integration is slow

Added by Marek Hulán over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

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.

Associated revisions

Revision d81c22ba (diff)
Added by Justin Sherrill over 3 years ago

Refs #22287 - add compliance reasons and inst products to db

This adds installed products and compliance reasons to
the subscription facet object to eliminate the need to
reach out to candlepin when doing a host show

History

#1 Updated by Adam Ruzicka over 3 years ago

  • Subject changed from Ansible Tower inventory integration is slow to Ansible Tower inventory integration is slow
  • Project changed from Ansible to Katello

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7163 added

#3 Updated by Justin Sherrill over 3 years ago

  • Legacy Backlogs Release (now unused) set to 338
  • Category set to Hosts

#4 Updated by Justin Sherrill over 3 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF