Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6B99F200CCB for ; Thu, 20 Jul 2017 13:07:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6A3DD16B0BE; Thu, 20 Jul 2017 11:07:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 89EC516B0C2 for ; Thu, 20 Jul 2017 13:07:09 +0200 (CEST) Received: (qmail 21712 invoked by uid 500); 20 Jul 2017 11:07:08 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 21703 invoked by uid 99); 20 Jul 2017 11:07:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2017 11:07:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0E8C51A1BED for ; Thu, 20 Jul 2017 11:07:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -96.701 X-Spam-Level: X-Spam-Status: No, score=-96.701 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_BADIPHTTP=2, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0nuMUdpMy1iA for ; Thu, 20 Jul 2017 11:07:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E96FA5FD49 for ; Thu, 20 Jul 2017 11:07:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E34AAE0BB3 for ; Thu, 20 Jul 2017 11:07:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D917E21EC8 for ; Thu, 20 Jul 2017 11:07:00 +0000 (UTC) Date: Thu, 20 Jul 2017 11:07:00 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-21531) Client component restart fails after Ambari upgrade while running custom hook script on Suse 11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Jul 2017 11:07:10 -0000 [ https://issues.apache.org/jira/browse/AMBARI-21531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094532#comment-16094532 ] Hudson commented on AMBARI-21531: --------------------------------- SUCCESS: Integrated in Jenkins build Ambari-branch-2.5 #1722 (See [https://builds.apache.org/job/Ambari-branch-2.5/1722/]) AMBARI-21531. Client component restart fails after Ambari upgrade while (aonishuk: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9ff3d66a683e45b2257584bb65425fae255e5087]) * (edit) ambari-agent/src/test/python/resource_management/TestUserResource.py * (edit) ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py * (edit) ambari-common/src/main/python/resource_management/core/providers/accounts.py * (edit) ambari-common/src/main/python/resource_management/core/base.py * (edit) ambari-server/src/test/python/stacks/2.0.6/hooks/before-ANY/test_before_any.py * (edit) ambari-common/src/main/python/resource_management/core/resources/accounts.py > Client component restart fails after Ambari upgrade while running custom hook script on Suse 11 > ----------------------------------------------------------------------------------------------- > > Key: AMBARI-21531 > URL: https://issues.apache.org/jira/browse/AMBARI-21531 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 2.5.2 > > Attachments: AMBARI-21531.patch > > > Seen in two cluster with Suse 11 SP4 OS > **STR** > 1. Deployed cluster with Ambari version: 2.4.2.0-136 and HDP version: 2.5.3.0-37 (secure cluster, wire encryption enabled one cluster, disabled on second cluster) > 2. Upgrade Ambari to 2.5.2.0-147 (hash: be22223a875972224d7eb420c783a9f2cbdc7157) > 3. Regenerate keytabs post upgrade and then try to restart all services > **Result:** > Observed errors at start of Falcon, HBase, Atlas clients: > > > > Traceback (most recent call last): > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 35, in > BeforeAnyHook().execute() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute > method(env) > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 29, in hook > setup_users() > File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py", line 51, in setup_users > groups = params.user_to_groups_dict[user], > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__ > self.env.run() > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py", line 82, in action_create > shell.checked_call(command, sudo=True) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner > result = function(command, **kwargs) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call > tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper > result = _call(command, **kwargs_copy) > File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call > raise ExecutionFailed(err_msg, code, out, err) > resource_management.core.exceptions.ExecutionFailed: Execution of 'usermod -u 1002 -G hadoop,hadoop -g hadoop hive' returned 11. usermod: `hadoop' is primary group name. > usermod: `hadoop' is primary group name. > usermod: UID 1002 is not unique. > Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-864.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-864.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py', 'START', '/var/lib/ambari-agent/data/command-864.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', '/var/lib/ambari-agent/data/structured-out-864.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', ''] > > Suspect something to do with TLS v1 protocol on Suse 11.4 > Cluster: (alive for 48h) -- This message was sent by Atlassian JIRA (v6.4.14#64029)