-
Notifications
You must be signed in to change notification settings - Fork 90
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
Correctly verify ssh w/ sudo #544
Conversation
Hello zenspider! Thanks for the pull request! Here is what will happen next:
Thank you for contributing! |
res = @backend.run_command(run("echo")) | ||
cmd = if @sudo then | ||
# TODO: double bash -c wrapper... I need /dev/null on the outside | ||
"bash -c '(#{run("-v")}) < /dev/null'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line might benefit from an explanatory code comment. Especially when working in non-Ruby languages...
3190c53
to
251cdc5
Compare
Signed-off-by: Ryan Davis <[email protected]>
Don't log static options on every line, just log it at the beginning. Signed-off-by: Ryan Davis <[email protected]>
Does 2 things: + Forces pty if we're verifying w/ @sudo (but only during verify). + Wraps up the sudo verify command closing stdin while using `sudo -Sv`. Fixes #4384 Signed-off-by: Ryan Davis <[email protected]>
Signed-off-by: Ryan Davis <[email protected]>
Signed-off-by: Ryan Davis <[email protected]>
251cdc5
to
0e15bb9
Compare
Code Climate has analyzed commit 0e15bb9 and detected 7 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Hello, we tried to upgrade from train 3.2.0 to train 3.2.5 and now our Kitchen tests are failing due to a timeout issue.
and it sits there as
In Kitchen, we used to have:
Where we are overriding the default
|
We've also been hit by the same issues as @multani across our org. It's not affecting all platforms, though. An example: So in that run, only |
* Latest versions of `train` cause failure when running `kitchen verify` * Downgrading to `3.2.0` until this is fixed upstream * inspec/train#544 (comment)
# [1.67.0](v1.66.0...v1.67.0) (2019-12-16) ### Features * **gemfile:** restrict `train` gem version until upstream fix ([26dc8a3](26dc8a3)), closes [/github.com/inspec/train/pull/544#issuecomment-566055052](https://github.com//github.com/inspec/train/pull/544/issues/issuecomment-566055052)
Hello @zenspider, Even I am facing the above issue with latest Chef while bootstrapping a Ubuntu Vm, It just hang on command STACKTRACE:
|
I have same problem, is there any solution for that? |
@omidbabaeigithub As I've mentioned in #544 (comment) above:
For example: |
Does 2 things:
sudo -Sv
.Quite a bit of cleanup in the ssh files as well, you might want to review the last commit first.