Closed ikogan closed 6 years ago
It looks like we just provide whatever information --list-all-zone
returns.
@dmyerscough it looks like you wrote this module initially and @cmercier you have been doing some work in here recently. Would yall have any insight into why the interfaces were not showing up?
It might be worthwhile to write up a bunch of list-
Thanks, Daniel
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Description of Issue/Question
When running the
firewalld.list_zones
module, none of the zones seems to have interfaces defined while runningfirewall-cmd --zone=${zone} --list-interfaces
shows interfaces. This creates a problem when running thefirewalld.present
state as it tries to set the interface every time.Setup
Rather than paste the sls itself, since it depends a lot on Pillar data, here's the output of
salt 'ipa-*' state.show_sls saltenv=Development
:Steps to Reproduce Issue
salt '*' firewalld.list_zones
firewall-cmd --zone=${zone} --list-interfaces
Notice that the zone
${zone}
in the output of (1) has no interfaces. On a standard Fedora install with no firewall changes,FedoraServer
should list all of the physical interfaces on the box. On a standard CentOS install, it should bepublic
. On my machines this runs as follows:salt --log-level=debug 'ipa-1' firewalld.list_zones
:Debug log from the minion:
firewall-cmd --zone=FedoraServer --list-interfaces
:Versions Report
Version report from the master:
Version report from ipa-1:
Firewalld version: 0.4.4.4
Looking at the log, it looks like because the interfaces aren't made permanent explicitly when adding them, they're not returned when running the list commands with
--permanent
. Even runningfirewall-cmd --runtime-to-permanent
doesn't do it. If I try to manually add the interface to the firewall with--permanent
, it mentions that the interface is under the control ofNetworkManager
and attempting to list the interface with--permanent
doesn't work even after that. This seems to be a reasonable hint as to why--permanent
, when used with interfaces, doesn't actually apply.Is it possible to do something different with interfaces than the way they're being looked for now?