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 BEE761799D for ; Fri, 16 Oct 2015 15:00:06 +0000 (UTC) Received: (qmail 61675 invoked by uid 500); 16 Oct 2015 15:00:06 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 61640 invoked by uid 500); 16 Oct 2015 15:00:06 -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 61625 invoked by uid 99); 16 Oct 2015 15:00:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 15:00:06 +0000 Date: Fri, 16 Oct 2015 15:00:06 +0000 (UTC) From: "Andrew Onischuk (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMBARI-13452) RegionServer Upgrade verification is not case sensitive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk resolved AMBARI-13452. -------------------------------------- Resolution: Fixed Committed to trunk and branch-2.1 > RegionServer Upgrade verification is not case sensitive > ------------------------------------------------------- > > Key: AMBARI-13452 > URL: https://issues.apache.org/jira/browse/AMBARI-13452 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 2.1.3 > > > Reference . During RU, there was an issue when upgrading RegionServers, in > that the check for RS being up was reporting failed. The output of the hbase > shell command was returning host names in uppercase, where Ambari used lower > case names for the hostname (and check). The following commented codes shows > the problem: > In common-services/HBASE/0.96.0.2.0/package/scripts/upgrade.py: > > > > def post_regionserver(env): > import params > env.set_params(params) > > check_cmd = "echo 'status \"simple\"' | {0} shell".format(params.hbase_cmd) > > exec_cmd = "{0} {1}".format(params.kinit_cmd, check_cmd) > call_and_match(exec_cmd, params.hbase_user, params.hostname.lower() + ":") # hostname is lower case already > > > @retry(times=15, sleep_time=2, err_class=Fail) > def call_and_match(cmd, user, regex): > > code, out = shell.call(cmd, user=user) # out contains hostnames capitalized > > if not (out and re.search(regex, out)): > raise Fail("Could not verify RS available") > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)