- Notifications
You must be signed in to change notification settings - Fork6.2k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[autoscaler] Usebash
instead of/bin/bash
#38105
Conversation
Friendly bump :) |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
@hongchaodeng picking it back up post@architkulkarni ... this is safe to merge no? |
@rskew can you fix the failing tests here so we can merge? |
Signed-off-by: Rowan Skewes <rowan.skewes@gmail.com>
@anyscalesam how do I get the |
ask one of the reviewers - we have rights to start it with the go label addition; i just added buildkite is running now@rskew |
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.
core team owns this part.
@@ -408,7 +408,7 @@ def create_and_get_archive_from_remote_node( | |||
else ["--no-proccesses-verbose"] | |||
) | |||
cmd += ["/bin/bash", "-c", _wrap(collect_cmd, quotes='"')] | |||
cmd += ["bash", "-c", _wrap(collect_cmd, quotes='"')] |
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 might create security issue to hijacking bash viaPATH
?
maybe the path of bash (or all shell?) should be an configurable option.
Close this PR since it is quite old. |
Why are these changes needed?
Some Docker containers (e.g. from scratch containers, or containers built with nix) may not have
/bin/bash
included. Replacing/bin/bash
withbash
allows them to work.It is already assumed that
bash
will be on thePATH
, e.g.docker run
usesbash
as the cmd:ray/python/ray/autoscaler/_private/docker.py
Lines 115 to 127 ina32d29d
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.I've run a cluster with this code and the cluster runs successfully.