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 BA30418250 for ; Wed, 29 Apr 2015 18:14:36 +0000 (UTC) Received: (qmail 71722 invoked by uid 500); 29 Apr 2015 18:14:36 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 71684 invoked by uid 500); 29 Apr 2015 18:14:36 -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 71669 invoked by uid 99); 29 Apr 2015 18:14:36 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 18:14:36 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id F152F1DBA89; Wed, 29 Apr 2015 18:14:36 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8579580482994608659==" MIME-Version: 1.0 Subject: Re: Review Request 33682: If /selinux/enforce file exists with value 0 cluster deployment fails From: "Sumit Mohanty" To: "Andrew Onischuk" , "Sumit Mohanty" Cc: "Vitalyi Brodetskyi" , "Ambari" Date: Wed, 29 Apr 2015 18:14:36 -0000 Message-ID: <20150429181436.26756.35242@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Sumit Mohanty" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/33682/ X-Sender: "Sumit Mohanty" References: <20150429181225.26755.68256@reviews.apache.org> In-Reply-To: <20150429181225.26755.68256@reviews.apache.org> Reply-To: "Sumit Mohanty" X-ReviewRequest-Repository: ambari --===============8579580482994608659== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/33682/#review81992 ----------------------------------------------------------- Ship it! Ship It! - Sumit Mohanty On April 29, 2015, 6:12 p.m., Vitalyi Brodetskyi wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/33682/ > ----------------------------------------------------------- > > (Updated April 29, 2015, 6:12 p.m.) > > > Review request for Ambari, Andrew Onischuk and Sumit Mohanty. > > > Bugs: AMBARI-10841 > https://issues.apache.org/jira/browse/AMBARI-10841 > > > Repository: ambari > > > Description > ------- > > If file {{/selinux/enforce}} exists with value 0, then service starts fail with the error: > > {noformat} > Traceback (most recent call last): > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute > method(env) > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 32, in hook > setup_hadoop() > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py", line 32, in setup_hadoop > sudo=True, > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__ > self.env.run() > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 274, in action_run > raise ex > Fail: Execution of 'setenforce 0' returned 1. setenforce: SELinux is disabled > {noformat} > > > Diffs > ----- > > ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py e371b00 > ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py bc5f551 > > Diff: https://reviews.apache.org/r/33682/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Vitalyi Brodetskyi > > --===============8579580482994608659==--