[
https://issues.apache.org/jira/browse/AIRAVATA-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096034#comment-14096034
]
Raminderjeet Singh edited comment on AIRAVATA-1382 at 8/13/14 8:11 PM:
-----------------------------------------------------------------------
i looked into all those options and saw that error will always come like
command: and then the error message. In mkdir it will be like mkdir: and for ls
it ls:. I added checks based on command issued to start with. Incase of
multiple command, we need to add check for all the commands to track the error
but it work consistently. If issue will still come, we can explore error codes
for different possible errors.
was (Author: raminder):
i looked into all those options and saw that error will always come like
command: and then the error message. In mkdir it will be like mkdir: and for ls
it ls:. I added checks based on command issue. Incase we issue multiple command
we need to add check for all the commands issued to track the error but it work
consistently. If issue will come we can explore error codes for different
possible errors.
> 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)