Dmitry Lysnichenko created AMBARI-5869:
------------------------------------------

             Summary: Confirm Hosts failed (suse11, 1.6.1)
                 Key: AMBARI-5869
                 URL: https://issues.apache.org/jira/browse/AMBARI-5869
             Project: Ambari
          Issue Type: Bug
          Components: controller
    Affects Versions: 1.6.1
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 1.6.1


{code}
('WARNING 2014-05-22 09:46:18,223 Facter.py:164 - Could not run 
/usr/sbin/sestatus: OK
INFO 2014-05-22 09:46:18,264 Controller.py:125 - Unable to connect to: 
https://ambari.internal:8441/agent/v1/register/ambari.internal
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 89, 
in registerWithServer
    data = json.dumps(self.register.build(id))
  File "/usr/lib/python2.6/site-packages/ambari_agent/Register.py", line 43, in 
build
    hostInfo.register(agentEnv, False, False)
  File "/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py", line 330, 
in register
    dict[\'iptablesIsRunning\'] = self.checkIptables()
  File "/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py", line 308, 
in checkIptables
    return self.getFirewallObject().check_iptables()
  File "/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py", line 405, 
in check_iptables
    retcode, out, err = self.run_os_command(self.get_command())
  File "/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py", line 421, 
in run_os_command
    stderr=subprocess.PIPE)
  File "/usr/lib64/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
', None)

{code}

Seems that HostInfo.py on agent try to collect information about a firewall 
state in the system, but firewall was not even installed, as result 
/sbin/SuSEfirewall2 status command failed. 
As fix, i think, we can check presence of that file and if that file isn't in 
the system suppose that firewall are turned off.



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

Reply via email to