Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-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 9AEC111B84 for ; Wed, 13 Aug 2014 19:28:12 +0000 (UTC) Received: (qmail 97174 invoked by uid 500); 13 Aug 2014 19:28:12 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 97107 invoked by uid 500); 13 Aug 2014 19:28:12 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 96844 invoked by uid 99); 13 Aug 2014 19:28:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 19:28:12 +0000 Date: Wed, 13 Aug 2014 19:28:12 +0000 (UTC) From: "Raminderjeet Singh (JIRA)" To: dev@airavata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRAVATA-1382) GSISSH provider giving error to make directory if stdout is returning a warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Raminderjeet Singh created AIRAVATA-1382: -------------------------------------------- Summary: GSISSH provider giving error to make directory if stdout is returning a warning. Key: AIRAVATA-1382 URL: https://issues.apache.org/jira/browse/AIRAVATA-1382 Project: Airavata Issue Type: Bug Reporter: Raminderjeet Singh In GSISSHDirectorySetupHandler.makeDirectory() call to cluster.makeDirectory calls SSHUtils.makeDir(), if a stdout have some warning messages the API throws an exception even the directory is getting created. We need to handle return types better. Following is the problem code. if (!stdOutReader.getStdErrorString().equals("")) { throw new SSHApiException(stdOutReader.getStdErrorString()); } On stampede following is returned which is not important but we throw an exception "Lmod Warning: The following modules have changed: TACC-paths, amber, cluster, cluster-paths, intel, mvapich2 Lmod Warning: Please re-create this collection. Restoring modules to system default" Incase of directory creation failure we will get something like "mkdir: cannot create directory `/home1/01437/test': Permission denied" These conditions need to be handled in GSISSH library. -- This message was sent by Atlassian JIRA (v6.2#6252)