[ 
https://issues.apache.org/jira/browse/AMBARI-5798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003522#comment-14003522
 ] 

Michael Harp commented on AMBARI-5798:
--------------------------------------

The issue is with checkIptables assuming that iptables is installed. When 
iptables is not installed the function will always throw an exception and 
return ipTablesIsRunning=true.
/ambari-agent/src/main/python/ambari_agent/HostInfo.py
{code} def checkIptables(self):
    iptablesIsRunning = True
    try:
      iptables = subprocess.Popen(["iptables", "-S"], stdout=subprocess.PIPE)
      stdout = iptables.communicate()
      if stdout == ('-P INPUT ACCEPT\n-P FORWARD ACCEPT\n-P OUTPUT ACCEPT\n', 
None):
        iptablesIsRunning = False
    except:
      pass
    return iptablesIsRunning{code}


> Host Check erroneously reporting "Firewall Issues" during install
> -----------------------------------------------------------------
>
>                 Key: AMBARI-5798
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5798
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: SLES 11
> Ambari 1.6.0-39
>            Reporter: Sudhir Prakash
>
> I am going through a cluster installation and noticed that one of the Host 
> Checks failed with "Firewall issues". According to the message, it says that 
> {{iptables}} is running on all of my nodes. However, iptables is not even 
> installed on any of my nodes
> {code}
> hadoopvm1-1:~ # rpm -qa | grep -i iptables
> hadoopvm1-1:~ #
> {code}
> This issue will cause lots of confusion with our customers that will be 
> performing an installation and should be addressed in 1.6.0



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to