Project

General

Profile

Bug #19244

Old interfaces are never removed from Foreman DB

Added by Lukas Zapletal over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Facts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Ivan
Fixed in Releases:
Found in Releases:

Description

Hosts like hypervisors or docker hosts may often change interfaces (e.g. network bridges) which confuses Foreman and during fact import it creates more and more interfaces, old are never deleted. After some time when a host passes thousands of interfaces, due to O(n^2) one fact upload can take several minutes of processing.

We need to delete old interfaces from Foreman database, either during fact upload directly or on schedule (those that hasn't been updated for a while).

The behvior is really bad, Foreman eats up all memory until passenger process is restarted, which can take a while (non-Enterprise version do not have maximum memory setting).


Related issues

Related to Foreman - Feature #19243: Set reasonable request timeout for Rails applicationNew

Associated revisions

Revision 41a56a22 (diff)
Added by Shimon Shtein 10 months ago

Fixes #19244 - added clean interfaces rake task

History

#1 Updated by Lukas Zapletal over 1 year ago

  • Related to Feature #19243: Set reasonable request timeout for Rails application added

#2 Updated by Ivan Necas about 1 year ago

  • Bugzilla link set to 1492047

#3 Updated by Tomáš Strachota about 1 year ago

  • Target version set to 115

#4 Updated by Ivan Necas about 1 year ago

  • Target version changed from 115 to 113

#5 Updated by The Foreman Bot 11 months ago

  • Assignee set to Shimon Shtein
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5211 added

#6 Updated by Marek Hulán 10 months ago

  • Legacy Backlogs Release (now unused) set to 330

#7 Updated by Shimon Shtein 10 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF