Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8AFD116E4 for ; Tue, 6 May 2014 18:18:25 +0000 (UTC) Received: (qmail 28691 invoked by uid 500); 6 May 2014 17:16:50 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 28660 invoked by uid 500); 6 May 2014 17:16:49 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 28636 invoked by uid 99); 6 May 2014 17:16:48 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 17:16:48 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id DC3B11D75CA; Tue, 6 May 2014 17:16:41 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5281375362621307564==" MIME-Version: 1.0 Subject: Re: Review Request 21116: iptables host check warning shows on centos 5.9 even if iptables are stopped From: "Nate Cole" To: "Nate Cole" , "Dmytro Sen" Cc: "Jonathan Hurley" , "Ambari" Date: Tue, 06 May 2014 17:16:41 -0000 Message-ID: <20140506171641.25779.96147@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Nate Cole" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/21116/ X-Sender: "Nate Cole" References: <20140506160818.1482.1499@reviews.apache.org> In-Reply-To: <20140506160818.1482.1499@reviews.apache.org> Reply-To: "Nate Cole" X-ReviewRequest-Repository: ambari --===============5281375362621307564== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/21116/#review42313 ----------------------------------------------------------- ambari-agent/src/main/python/ambari_agent/HostInfo.py Suse doesn't like this: suse1101:~ # service iptables status service: no such service iptables This command will be indeterminate on that platform. - Nate Cole On May 6, 2014, 12:08 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/21116/ > ----------------------------------------------------------- > > (Updated May 6, 2014, 12:08 p.m.) > > > Review request for Ambari, Dmytro Sen and Nate Cole. > > > Bugs: AMBARI-5686 > https://issues.apache.org/jira/browse/AMBARI-5686 > > > Repository: ambari > > > Description > ------- > > The iptables check in the Agent was done by spawning a new process for iptables and checking the result against a pre-determined string value. This did not work on CentOS 5.x as the string values were different and the -S option was not available. Instead, we are now using the return code from the "service" command to determine the state of iptables. > > > Diffs > ----- > > ambari-agent/src/main/python/ambari_agent/HostInfo.py 8e0cf90 > ambari-agent/src/test/python/ambari_agent/TestHostInfo.py 627261d > > Diff: https://reviews.apache.org/r/21116/diff/ > > > Testing > ------- > > ---------------------------------------------------------------------- > Ran 304 tests in 3.968s > > OK > [INFO] > [INFO] --- apache-rat-plugin:0.10:check (default) @ ambari-agent --- > [INFO] 51 implicit excludes (use -debug for more details). > [INFO] Exclude: src/examples/* > [INFO] Exclude: src/test/python/dummy*.txt > [INFO] Exclude: src/test/python/ambari_agent/dummy_files/* > [INFO] Exclude: src/test/python/ambari_agent/dummy*.txt > [INFO] Exclude: src/main/python/ambari_agent/imports.txt > [INFO] Exclude: src/main/puppet/modules/stdlib/** > [INFO] Exclude: **/*.erb > [INFO] Exclude: **/*.json > [INFO] 548 resources included (use -debug for more details) > [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 407 licence. > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 6.073s > [INFO] Finished at: Tue May 06 11:55:02 EDT 2014 > [INFO] Final Memory: 7M/81M > [INFO] ------------------------------------------------------------------------ > > > Thanks, > > Jonathan Hurley > > --===============5281375362621307564==--