Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to run an action implemented by bin/tcsh (default bash in machine is tcsh) #4304
Comments
LindsayHill
added
the
enhancement
label
Aug 15, 2018
Kami
added
the
feature
label
Sep 3, 2018
This comment has been minimized.
This comment has been minimized.
Right now we only officially support bash. We have no ETA for tcsh / other shell support at the moment, so a possible workaround for you would be to install bash on your end host / container (if possible). EDIT: It looks like bash is already available in that container. So a possible workaround would be to change shell for that user to |
Kami
modified the milestone:
3.0.0
Sep 3, 2018
This comment has been minimized.
This comment has been minimized.
Just to make it explicit: StackStorm does not currently support the csh, tcsh, ksh, or fish shells. It might work for zsh shells, but only because zsh is largely backwards compatible with bash. There is absolutely no guarantee that StackStorm will work with zsh. We do not know if it will work with zsh, and we do not run our tests with zsh. If you use zsh you are on your own. |
riyu94 commentedAug 15, 2018
•
edited
SUMMARY
Unable to run an action implemented by bin/tcsh (default bash in machine is tcsh),
Feature request to specify default shell env as a parameter
ISSUE TYPE
STACKSTORM VERSION
OS / ENVIRONMENT / INSTALL METHOD
STEPS TO REPRODUCE
st2 run core.remote cmd=whoami hosts=machinename username=user password=password
EXPECTED RESULTS
Should have shown the result for whoami, as works with root where deafult bash env is /bin/bash
ACTUAL RESULTS
id: 5b73712822156301b4c37a24
status: failed
parameters:
cmd: whoami
hosts: mahinename
password: '********'
username: user
result:
machinename:
failed: true
return_code: 1
stderr: 'export: Command not found.'
stdout: ''
succeeded: false
Not able to run the bash command, because the shell env is bin/tcsh
Could a feature be added to specify the shell env??? would be great help.
Thank you