Actions
Bug #20927
openForeman imports facts about interfaces which should be excluded.
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
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
Actions