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 BAD221133D for ; Fri, 20 Jun 2014 01:12:24 +0000 (UTC) Received: (qmail 82577 invoked by uid 500); 20 Jun 2014 01:12:24 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 82538 invoked by uid 500); 20 Jun 2014 01:12:24 -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 82525 invoked by uid 99); 20 Jun 2014 01:12:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 01:12:24 +0000 Date: Fri, 20 Jun 2014 01:12:24 +0000 (UTC) From: "Nate Cole (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-6214) Command is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nate Cole created AMBARI-6214: --------------------------------- Summary: Command is broken Key: AMBARI-6214 URL: https://issues.apache.org/jira/browse/AMBARI-6214 Project: Ambari Issue Type: Bug Reporter: Nate Cole Assignee: Nate Cole Fix For: 1.6.1 While upgrading stack 2.0.6 -> stack 2.1.3, found this command failed: {noformat} [root@host ~]# ambari-server upgradestack HDP-2.1 --verbose Using python /usr/bin/python2.6 Upgrading stack of ambari-server INFO: Loading properties from /etc/ambari-server/conf/ambari.properties INFO: about to run command: yum repolist | grep "HDP-2.1 " ERROR: Exiting with exit code 1. REASON: Repository for HDP-2.1 is not existed {noformat} The grep check has a space at the end. However, this check is invalid since, when run on the server, the HDP repo likely wouldn't be available anyway. The server script should not make a repolist check. -- This message was sent by Atlassian JIRA (v6.2#6252)