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

Make vagrant provision run without root permission #103

Merged
merged 2 commits into from
Apr 5, 2017

Conversation

lucasmoura
Copy link
Contributor

@lucasmoura lucasmoura commented Apr 3, 2017

While developing with Vagrant, I just realized that the provision step is being executed with root permissions.

https://www.vagrantup.com/docs/provisioning/shell.html#privileged

Therefore, all files created during that step would belong to the root user. With that configuration, if an user using vagrant wants to run the tests, it will have to run as the root user, which is not necessary.

vagrant_bug

The above Figure shows the problem. This MR fixes that issue, by not allowing the provision step to be run with root permission.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@dcrankshaw
Copy link
Contributor

jenkins test this please

Copy link
Contributor

@dcrankshaw dcrankshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. LGTM.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/117/
Test PASSed.

@dcrankshaw
Copy link
Contributor

jenkins test this please

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/122/
Test PASSed.

@dcrankshaw
Copy link
Contributor

jenkins test this please

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/123/
Test PASSed.

@dcrankshaw dcrankshaw merged commit 8fd0cfb into ucbrise:develop Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants