New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run an action implemented by bin/tcsh (default bash in machine is tcsh) #4304

Open
riyu94 opened this Issue Aug 15, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@riyu94
Copy link

riyu94 commented Aug 15, 2018

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
  • Bug Report
STACKSTORM VERSION
  • st2 2.8.1, on Python 2.7.6
OS / ENVIRONMENT / INSTALL METHOD
  • Docker
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

@Kami Kami added the feature label Sep 3, 2018

@Kami

This comment has been minimized.

Copy link
Member

Kami commented Sep 3, 2018

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 /bin/bash.

@Kami Kami modified the milestone: 3.0.0 Sep 3, 2018

@blag

This comment has been minimized.

Copy link
Contributor

blag commented Feb 1, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment