Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.6.1
-
None
Description
('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)
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.
We can ignore the firwall call if the path does not exists.
Attachments
Issue Links
- links to