Skip to content
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

Salt-ssh bug parsing command arguments #7928

Closed
stevearc opened this issue Oct 17, 2013 · 5 comments
Closed

Salt-ssh bug parsing command arguments #7928

stevearc opened this issue Oct 17, 2013 · 5 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists

Comments

@stevearc
Copy link

I discovered this while trying to use cmd.run via salt-ssh. Using zmq, I do this:

root@salt~:$ salt salt cmd.run "echo 'hi'"
salt:
    hi

But when I use salt-ssh this happens

root@salt~:$ salt-ssh salt cmd.run "echo 'hi'"
salt:
    Pseudo-terminal will not be allocated because stdin is not a terminal.
    stdin: is not a tty
    Error running 'cmd.run': Specified cwd 'hi' either not absolute or does not exist

This happens because the second positional argument to cmd.run is the cwd. I assume that it's probably the argument parser that's broken, though I suppose it could also be the salt ssh client?

version report:

           Salt: 0.17.0
         Python: 2.7.3 (default, Sep 26 2013, 20:03:06)
         Jinja2: 2.7.1
       M2Crypto: 0.21.1
 msgpack-python: 0.1.10
   msgpack-pure: Not Installed
       pycrypto: 2.4.1
         PyYAML: 3.10
          PyZMQ: 13.0.0
            ZMQ: 3.2.2
@stevearc
Copy link
Author

This might be the same problem as #7698

@basepi
Copy link
Contributor

basepi commented Oct 18, 2013

Possible. Could you please test with the latest develop branch of with the newly-released 0.17.1 release? Curious if it's still an issue, there's been a lot of churn in salt-ssh since it was released.

@stevearc
Copy link
Author

Just tested on most recent develop and 0.17 branches, and the bug is still present in both of them.

Develop was at: 0.17.0-1299-g5f8b2a4
0.17 was at: 0.17.1

@basepi
Copy link
Contributor

basepi commented Oct 19, 2013

Thanks for the report. This might be a salt problem, rather than just a salt-ssh problem, with the changes to how commands are run that @UtahDave added recently.

@basepi
Copy link
Contributor

basepi commented Oct 19, 2013

Oh nevermind, those changes weren't present in 0.17.0. Anyway, we'll get this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists
Projects
None yet
Development

No branches or pull requests

3 participants