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

Issue 76160046: Block SIGINT during bootstrap

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by axw
Modified:
10 years, 1 month ago
Reviewers:
wwitzel3, mp+212558, thumper
Visibility:
Public.

Description

Block SIGINT during bootstrap This change is to catch SIGINT during bootstrap for all providers. Also, if SIGINT is delivered while tools are being uploaded, the upload will be cancelled. If the user Ctrl-C's while the local provider's bootstrap script is being executed, it will be interrupted and will return and error to juju. Juju will then attempt to destroy the environment and remove the .jenv file. We will now also send some very basic feedback to stderr when uploading tools. Fixes lp:1296475 https://code.launchpad.net/~axwalk/juju-core/lp1296475-block-sigint-bootstrap/+merge/212558 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Block SIGINT during bootstrap #

Total comments: 10

Patch Set 3 : Block SIGINT during bootstrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -23 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 2 chunks +14 lines, -1 line 0 comments Download
M cmd/juju/bootstrap_test.go View 1 3 chunks +8 lines, -5 lines 0 comments Download
M cmd/juju/common.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M environs/bootstrap/bootstrap_test.go View 6 chunks +6 lines, -6 lines 0 comments Download
A environs/bootstrap/export_test.go View 1 chunk +8 lines, -0 lines 0 comments Download
A environs/bootstrap/interruptiblestorage.go View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
A environs/bootstrap/interruptiblestorage_test.go View 1 chunk +74 lines, -0 lines 0 comments Download
M environs/bootstrap/synctools.go View 1 2 5 chunks +20 lines, -5 lines 0 comments Download
M environs/interface.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M provider/common/bootstrap.go View 2 chunks +3 lines, -3 lines 0 comments Download
M provider/dummy/environs.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/local/environ.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M provider/manual/environ.go View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
axw
Please take a look.
10 years, 1 month ago (2014-03-25 08:22:36 UTC) #1
axw
Please take a look.
10 years, 1 month ago (2014-03-25 08:52:10 UTC) #2
thumper
https://codereview.appspot.com/76160046/diff/20001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/76160046/diff/20001/cmd/juju/bootstrap.go#newcode112 cmd/juju/bootstrap.go:112: fmt.Fprintln(ctx.GetStderr(), "Interrupt signalled: waiting for bootstrap to exit") You ...
10 years, 1 month ago (2014-03-26 02:41:47 UTC) #3
axw
Please take a look. https://codereview.appspot.com/76160046/diff/20001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/76160046/diff/20001/cmd/juju/bootstrap.go#newcode112 cmd/juju/bootstrap.go:112: fmt.Fprintln(ctx.GetStderr(), "Interrupt signalled: waiting for ...
10 years, 1 month ago (2014-03-26 03:35:29 UTC) #4
thumper
LGTM
10 years, 1 month ago (2014-03-26 03:40:55 UTC) #5
wwitzel3
10 years, 1 month ago (2014-03-26 11:43:53 UTC) #6
LGTM
Sign in to reply to this message.

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