Skip to content

Conversation

@jsquyres
Copy link
Member

@jsquyres jsquyres commented Aug 19, 2019

This PR is the cherry-pick of these 2 PRs:

FYI @simonbyrne

simonbyrne and others added 2 commits August 19, 2019 15:34
I found that I needed to apply the same change as open-mpi#5597 to orterun.c for the environment variables to work correctly.

Signed-off-by: Simon Byrne <simonbyrne@gmail.com>
(cherry picked from commit 9c8671c)
open-mpi#6895 fixed the code in orterun.c
to allow running as root if both OMPI_ALLOW_RUN_AS_ROOT and
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM env vars are set.  However, this
env-var-checking code already exists in
orte_submit.c:orte_submit_init() -- it looks like the
geteuid()/getenv()-checking code here in orterun is now duplicate
code.

So let's just get rid of the duplicate code.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
(cherry picked from commit 197beb3)
@jsquyres jsquyres added this to the v4.0.2 milestone Aug 19, 2019
@jsquyres jsquyres requested a review from rhc54 August 19, 2019 19:52
@jsquyres
Copy link
Member Author

RMs: All PR's merged to master; this PR is good to go.

@hppritcha hppritcha added the NEWS label Aug 20, 2019
@hppritcha hppritcha merged commit d3587f5 into open-mpi:v4.0.x Aug 20, 2019
@jsquyres jsquyres deleted the pr/v4.0/mpirun-as-root-as-containers-env-var-fix branch August 20, 2019 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants