|
Implement synchronous bootstrap
environs/manual has been further refactored to
split the "manual cloud-init over SSH" out into
a separate package (cloudinit/sshinit).
provider/common now starts an instance with the
basic cloud-init only (SSH keys + logging), then
waits for a DNS name, waits to be able to connect
via SSH, and then defers to sshinit to execute the
remaining cloud-init steps.
If the user hits Ctrl-C, SIGINT will terminate
the SSH connection, and the bootstrap process will
attempt to clean up by stopping the instance and
removing the state file (if the instance could be
cleanly stopped). We also ignore SIGINT in the
juju process so a second Ctrl-C will not terminate
the cleanup procedure.
Fixes #1224230
https://code.launchpad.net/~axwalk/juju-core/synchronous-bootstrap/+merge/196058
(do not edit description out of merge proposal)
Total comments: 13
Total comments: 8
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+682 lines, -120 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cloudinit/cloudinit_test.go
|
View
|
1
2
3
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cloudinit/options.go
|
View
|
1
2
3
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cloudinit/progress.go
|
View
|
1
2
3
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cloudinit/progress_test.go
|
View
|
1
2
3
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cloudinit/sshinit/configure.go
|
View
|
1
2
3
4
|
5 chunks |
+45 lines, -29 lines |
0 comments
|
Download
|
 |
M |
cloudinit/sshinit/configure_test.go
|
View
|
1
2
3
4
|
7 chunks |
+68 lines, -18 lines |
0 comments
|
Download
|
 |
A |
cloudinit/sshinit/suite_test.go
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/debughooks.go
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/debughooks_test.go
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/scp.go
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/scp_test.go
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/ssh.go
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/ssh_test.go
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
environs/bootstrap/state.go
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/bootstrap/state_test.go
|
View
|
1
2
3
4
|
3 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/cloudinit.go
|
View
|
1
2
3
|
1 chunk |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
environs/cloudinit/cloudinit.go
|
View
|
1
2
3
|
5 chunks |
+56 lines, -8 lines |
0 comments
|
Download
|
 |
M |
environs/cloudinit/cloudinit_test.go
|
View
|
1
2
3
|
5 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/cloudinit_test.go
|
View
|
1
|
3 chunks |
+38 lines, -4 lines |
0 comments
|
Download
|
 |
M |
environs/manual/bootstrap.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
environs/manual/detection.go
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
environs/manual/provisioner.go
|
View
|
|
3 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
environs/sshstorage/storage.go
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A |
environs/testing/bootstrap.go
|
View
|
1
2
3
4
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
provider/common/bootstrap.go
|
View
|
1
2
3
4
|
4 chunks |
+163 lines, -8 lines |
0 comments
|
Download
|
 |
M |
provider/common/bootstrap_test.go
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
provider/ec2/local_test.go
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -10 lines |
0 comments
|
Download
|
 |
M |
provider/maas/maas_test.go
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
provider/openstack/local_test.go
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
utils/ssh/ssh.go
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -12 lines |
0 comments
|
Download
|
Total messages: 14
|