Bug 1493001

Summary: [RFE] Add NIC ignore patterns for OpenStack and OpenShift
Product: Red Hat Satellite Reporter: Amit Kumar Das <amdas>
Component: PerformanceAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.11CC: bbuckingham, brubisch, dcaplan, egolov, inecas, lzap, sjagtap
Target Milestone: UnspecifiedKeywords: EasyFix, FieldEngineering, FutureFeature, Performance, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/20997
Whiteboard:
Fixed In Version: foreman-1.15.6.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 12:39:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amit Kumar Das 2017-09-19 07:03:45 UTC
Description of problem:

In satellite, updating huge host facts(task - Actions::Katello::Host::Update) is taking around 30+ seconds. There are large number of ipv6 facts in hosts for each nic; generally ipv6 is not used in the hosts and could be ignored. This should enhance the performance during fact imports.

We can ignore nic details by adding it in the list, but satellite does not ignore ipv6* or *ipv6* wild-card.

Bypass list of interface:
Ignore interfaces with matching identifier [ lo, usb*, vnet*, macvtap*, _vdsmdummy_, docker*, veth*, qvo*, qbr*, qvb*, tap*, vlinuxbr, vovsbr ]

Version-Release number of selected component (if applicable):
satellite 6.2.11

Steps to Reproduce:
1. Satellite GUI
2. Satellite GUI > Administer > Settings > Provisioning
3. Add ipv6* or *ipv6* 

Ignore interfaces with matching identifier [ lo, usb*, vnet*, macvtap*, ipv6*]

ipv6*    It is added but facts not ignored
*ipv6*   It can not be added as wild-card

Actual results:
Satellite dose not filter-out ipv6 related facts.

Expected results:
User should able to ignore all the ipv6 facts once it is added in the filter.

Comment 2 Lukas Zapletal 2017-09-19 10:24:40 UTC
Thanks, renamed actually, we should filter out whole devices and not just IPv6 facts.

Comment 3 Satellite Program 2017-09-19 12:07:49 UTC
Upstream bug assigned to lzap

Comment 4 Satellite Program 2017-09-19 12:07:52 UTC
Upstream bug assigned to lzap

Comment 5 Satellite Program 2017-10-27 16:11:06 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20997 has been resolved.

Comment 9 Sanket Jagtap 2017-12-01 07:05:18 UTC
Build: Satellite 6.3 snap 26

6.2 = '["lo", "usb*", "vnet*", "macvtap*"]'
After upgrade to 6.3 

6.3 = '["lo", "usb*", "vnet*", "macvtap*", "_vdsmdummy_", "veth*", "docker*", "tap*", "qbr*", "qvb*", "qvo*", "qr-*", "qg-*", "vlinuxbr*", "vovsbr*"]'

On fresh 6.3 Box

[ lo, usb*, vnet*, macvtap*, _vdsmdummy_, veth*, docker*, tap*, qbr*, qvb*, qvo*, qr-*, qg-*, vlinuxbr*, vovsbr* ]

Comment 12 errata-xmlrpc 2018-02-21 12:39:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336