Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Issue 55880043: local: use sudo internally

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by axw
Modified:
10 years, 8 months ago
Reviewers:
Michael Nelson, thumper, mp+202791
Visibility:
Public.

Description

local: use sudo internally The local provider has been updated to do several things: - use environs/cloudinit to bootstrap - rely on the terminationworker to cleanup - prevent bootstrap if the user is root (forcing good practice) - use sudo internally, in bootstrap/destroy Bootstrap now generates a script, a la manual bootstrap, and executes it with "sudo bash". Destroy works by repeating the "juju destroy-environment" command under sudo, which is necessary to destroy any leftover containers. https://code.launchpad.net/~axwalk/juju-core/local-provider-environs-cloudinit/+merge/202791 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : local: use sudo internally #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -487 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 chunk +1 line, -0 lines 0 comments Download
M cmd/jujud/machine.go View 2 chunks +10 lines, -0 lines 0 comments Download
M environs/cloudinit.go View 2 chunks +20 lines, -2 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 14 chunks +90 lines, -51 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 14 chunks +83 lines, -36 lines 0 comments Download
M environs/cloudinit_test.go View 1 chunk +12 lines, -8 lines 0 comments Download
M provider/azure/customdata_test.go View 2 chunks +9 lines, -6 lines 0 comments Download
M provider/local/config.go View 5 chunks +7 lines, -36 lines 0 comments Download
M provider/local/config_test.go View 2 chunks +9 lines, -23 lines 0 comments Download
M provider/local/environ.go View 1 9 chunks +92 lines, -301 lines 0 comments Download
M provider/local/environ_test.go View 1 4 chunks +18 lines, -4 lines 0 comments Download
M provider/local/environprovider.go View 2 chunks +12 lines, -0 lines 0 comments Download
M provider/local/export_test.go View 2 chunks +6 lines, -12 lines 1 comment Download
M provider/local/instance.go View 1 chunk +14 lines, -8 lines 0 comments Download

Messages

Total messages: 6
axw
Please take a look.
10 years, 8 months ago (2014-01-23 05:50:25 UTC) #1
Michael Nelson
https://codereview.appspot.com/55880043/diff/1/provider/local/environ.go File provider/local/environ.go (right): https://codereview.appspot.com/55880043/diff/1/provider/local/environ.go#newcode402 provider/local/environ.go:402: cmd := exec.Command("sudo", append([]string{juju}, os.Args[1:]...)...) Not a review, just ...
10 years, 8 months ago (2014-01-23 10:54:28 UTC) #2
axw
https://codereview.appspot.com/55880043/diff/1/provider/local/environ.go File provider/local/environ.go (right): https://codereview.appspot.com/55880043/diff/1/provider/local/environ.go#newcode402 provider/local/environ.go:402: cmd := exec.Command("sudo", append([]string{juju}, os.Args[1:]...)...) On 2014/01/23 10:54:28, Michael ...
10 years, 8 months ago (2014-01-23 11:02:24 UTC) #3
Michael Nelson
On Thu, Jan 23, 2014 at 12:02 PM, <axwalk@gmail.com> wrote: > > This is the ...
10 years, 8 months ago (2014-01-23 11:06:36 UTC) #4
axw
Please take a look.
10 years, 8 months ago (2014-01-23 22:29:59 UTC) #5
thumper
10 years, 8 months ago (2014-01-23 23:33:50 UTC) #6
LGTM - looks awesome!

https://codereview.appspot.com/55880043/diff/20001/provider/local/export_test.go
File provider/local/export_test.go (right):

https://codereview.appspot.com/55880043/diff/20001/provider/local/export_test...
provider/local/export_test.go:14: FinishBootstrap = &finishBootstrap
nice...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b