Project

General

Profile

Actions

Bug #22287

closed

Ansible Tower inventory integration is slow

Added by Marek Hulán over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
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.

Actions #1

Updated by Adam Ruzicka about 6 years ago

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

Updated by The Foreman Bot about 6 years ago

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

Updated by Justin Sherrill about 6 years ago

  • Category set to Hosts
  • translation missing: en.field_release set to 338
Actions #4

Updated by Justin Sherrill about 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF