Merge lp:~thumper/juju-core/upstart-system into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1917 |
Proposed branch: | lp:~thumper/juju-core/upstart-system |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
66 lines (+17/-10) 3 files modified
environs/jujutest/livetests.go (+1/-1) upstart/upstart.go (+9/-2) upstart/upstart_test.go (+7/-7) |
To merge this branch: | bzr merge lp:~thumper/juju-core/upstart-system |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email:
|
Commit message
Really fix the local provider startup.
sudo -E causes upstart on saucy to default to use
the user bus. --system was added to start and stop,
but status was missed. Race conditions during startup
masked this before.
I've added another check in start so if the actual
start fails, check to see if it is started. When the
file is written to disk, upstart may start it before
we do, particularly, upstart may start it between when
we checked it wasn't running, and when we try to start it.
A drive by fix to the livetests was added as version.Current
was being used to source information from test metadata,
and there weren't saucy images defined. The tests pass wtih
the version specified with no other alterations.
Description of the change
Really fix the local provider startup.
sudo -E causes upstart on saucy to default to use
the user bus. --system was added to start and stop,
but status was missed. Race conditions during startup
masked this before.
I've added another check in start so if the actual
start fails, check to see if it is started. When the
file is written to disk, upstart may start it before
we do, particularly, upstart may start it between when
we checked it wasn't running, and when we try to start it.
A drive by fix to the livetests was added as version.Current
was being used to source information from test metadata,
and there weren't saucy images defined. The tests pass wtih
the version specified with no other alterations.
Reviewers: mp+188739_ code.launchpad. net,
Message:
Please take a look.
Description:
Really fix the local provider startup.
sudo -E causes upstart on saucy to default to use
the user bus. --system was added to start and stop,
but status was missed. Race conditions during startup
masked this before.
I've added another check in start so if the actual
start fails, check to see if it is started. When the
file is written to disk, upstart may start it before
we do, particularly, upstart may start it between when
we checked it wasn't running, and when we try to start it.
A drive by fix to the livetests was added as version.Current
was being used to source information from test metadata,
and there weren't saucy images defined. The tests pass wtih
the version specified with no other alterations.
https:/ /code.launchpad .net/~thumper/ juju-core/ upstart- system/ +merge/ 188739
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/14243043/
Affected files (+934, -762 lines): test.go bootstrap. go bootstrap_ test.go cmd_test. go destroyenvironm ent.go endpoint. go main_test. go ssh_test. go status_ test.go synctools_ test.go agent_test. go bootstrap. go bootstrap_ test.go machine. go machine_ test.go unit_test. go juju-metadata/ validateimageme tadata. go juju-metadata/ validatetoolsme tadata. go lxc/export_ test.go lxc/lxc. go lxc/lxc_ test.go bootstrap/ bootstrap. go cert_internal_ test.go cert_test. go jujutest/ livetests. go jujutest/ tests.go manual/ bootstrap. go manual/ bootstrap_ test.go open_test. go testing/ polling. go testing/ polling_ test.go conn.go instance. go azure/environ. go azure/environ_ test.go azure/instance. go common/ export_ test.go common/ instance. go common/ polling. go common/ polling_ test.go common/ provider_ test.go common/ state.go common/ state_test. go dummy/environs. go dummy/storage. go ec2/live_ test.go ec2/local_ test.go local/environ. go local/instance. go maas/environ. go maas/environ_ test.go maas/instance. go null/environ. go openstack/ local_test. go openstack/ provider. go provider. go agent/machine_ test.go params/ constants. go /common/ password. go /common/ password_ test.go
A [revision details]
M agent/agent.go
M agent/agent_test.go
A agent/export_
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/juju/
M cmd/jujud/agent.go
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M cmd/plugins/
M cmd/plugins/
M container/
M container/
M container/
M environs/
D environs/cert.go
D environs/
D environs/
M environs/
M environs/
M environs/
M environs/
M environs/open.go
M environs/
M environs/
M environs/
M juju/conn.go
M juju/testing/
A juju/testing/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/ec2/ec2.go
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M provider/
M state/api/
M state/api/
M state/apiserver
M state/apiserver
M state/machin...