Project

General

Profile

Actions

Bug #20927

open

Foreman imports facts about interfaces which should be excluded.

Added by Justin Zandbergen over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have noticed that foreman in combination with salt still imports facts about interfaces which should be excluded according to the setting:

"Administer -> Settings -> Provisioning -> 'Ignore interfaces with matching identifier': '[ lo, usb*, vnet*, macvtap*, _vdsmdummy_, veth*, docker* ]'" 

To verify:
1. Make sure there is no info about any docker interface in the postgres "nics" table:

delete from nics where identifier like '%docker%';

2. Check that you there are 0 row returned:
select from nics where identifier like '%docker%';

3. Run from the foreman salt smart proxy:
salt <dockerhost> state.highstate test=true

4. Then the nics are added again to the DB. Verify with:
select * from nics where identifier like '%docker%';


My setup:
OS: CentOS 7.3 x86_64
Foreman: 1.15.3
salt-master: 2017.7.1 (Nitrogen)
salt smart proxy: 2.1.8

Attached is a quickly hacked patch by the awesome IRC member "gwmngilfen" which works for me.


Files

salt_exclude_nics_as_facts.patch salt_exclude_nics_as_facts.patch 951 Bytes Justin Zandbergen, 09/14/2017 08:13 AM
Actions #1

Updated by Ivan Necas over 6 years ago

  • Project changed from Foreman to Salt
  • Category deleted (Facts)
Actions

Also available in: Atom PDF