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 CC66C17BA9 for ; Thu, 12 Feb 2015 15:24:05 +0000 (UTC) Received: (qmail 63334 invoked by uid 500); 12 Feb 2015 15:24:00 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 63298 invoked by uid 500); 12 Feb 2015 15:24:00 -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 63283 invoked by uid 99); 12 Feb 2015 15:24:00 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 15:24:00 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 8FBEA1CC195; Thu, 12 Feb 2015 15:23:59 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3909880604632786591==" MIME-Version: 1.0 Subject: Re: Review Request 30935: Install fails with custom user/group From: "Dmitro Lisnichenko" To: "Dmitro Lisnichenko" Cc: "Andrew Onischuk" , "Ambari" Date: Thu, 12 Feb 2015 15:23:59 -0000 Message-ID: <20150212152359.11124.98171@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Dmitro Lisnichenko" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/30935/ X-Sender: "Dmitro Lisnichenko" References: <20150212151012.29076.84795@reviews.apache.org> In-Reply-To: <20150212151012.29076.84795@reviews.apache.org> Reply-To: "Dmitro Lisnichenko" X-ReviewRequest-Repository: ambari --===============3909880604632786591== 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/30935/#review72168 ----------------------------------------------------------- Ship it! Ship It! - Dmitro Lisnichenko On Feb. 12, 2015, 3:10 p.m., Andrew Onischuk wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/30935/ > ----------------------------------------------------------- > > (Updated Feb. 12, 2015, 3:10 p.m.) > > > Review request for Ambari and Dmitro Lisnichenko. > > > Bugs: AMBARI-9599 > https://issues.apache.org/jira/browse/AMBARI-9599 > > > Repository: ambari > > > Description > ------- > > navigate through the Ambari install wizard. At the customize services page, > MISC tab change the hdfs user to custom-hdfs, in the dialog window confirm so > that usergroup is also updated. Deployment fails with the below error. Please > help figure out the issue. > > 2015-02-10 21:56:14,002 - Error while executing command 'any': > Traceback (most recent call last): > File "/usr/lib/python2.6/site- > packages/resource_management/libraries/script/script.py", line 184, in execute > method(env) > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before- > ANY/scripts/hook.py", line 30, in hook > setup_users() > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before- > ANY/scripts/shared_initialization.py", line 73, in setup_users > ignore_failures = params.ignore_groupsusers_create > 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 151, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site- > packages/resource_management/core/environment.py", line 117, in run_action > provider_action() > File "/usr/lib/python2.6/site- > packages/resource_management/core/providers/accounts.py", line 109, in > action_create > shell.checked_call(command, sudo=True) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", > line 67, in inner > return function(command, **kwargs) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", > line 79, in checked_call > return _call(command, logoutput, True, cwd, env, preexec_fn, user, > wait_for_finish, timeout, path, sudo, on_new_line) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", > line 185, in _call > raise Fail(err_msg) > Fail: Execution of 'groupadd ' custom-hdfs'' returned 3. groupadd: ' custom- > hdfs' is not a valid group name > Error: Error: Unable to run the custom hook script ['/usr/bin/python2.6', > '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before- > ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-289.json', > '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib > /ambari-agent/data/structured-out-289.json', 'INFO', '/var/lib/ambari- > agent/data/tmp'] > > > Diffs > ----- > > ambari-common/src/main/python/resource_management/core/providers/accounts.py 12dcffe > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog200.java 7867764 > ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml f64fc76 > ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py d8a162a > ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py 4c26b77 > ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog200Test.java cdb5380 > ambari-server/src/test/python/stacks/2.0.6/configs/default.json d0185c5 > ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py f1cb12e > > Diff: https://reviews.apache.org/r/30935/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Andrew Onischuk > > --===============3909880604632786591==--