Move worker/modelworkermanager to dependency engine #8093

Merged
merged 3 commits into from Nov 16, 2017

Conversation

Projects
None yet
3 participants
Member

axw commented Nov 16, 2017

Description of change

Move worker/modelworkermanager to the machine agent dependency engine. Change the worker to use a StatePool to fetch Model objects, and remove the State.ModelActive helper.

QA steps

Smoke test bootstrap/deploy/destroy-controller.

Documentation changes

None.

Bug reference

None.

axw added some commits Nov 16, 2017

Move modelworkermanager to dependency engine
Move worker/modelworkermanager to the machine
agent dependency engine. This enables it to
use the StatePool managed by worker/state.
worker/modelworkermanager: use state pool
Use StatePool in worker to get a Model object,
instead of using State.ModelActive.
state: remove State.ModelActive
The one place that was using this is now
using Model.MigrationMode directly.

Looks great!

Member

axw commented Nov 16, 2017

$$merge$$

Contributor

jujubot commented Nov 16, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

Member

axw commented Nov 16, 2017

Build failed: ?

@wallyworld wallyworld deleted a comment from jujubot Nov 16, 2017

@wallyworld wallyworld deleted a comment from axw Nov 16, 2017

Owner

wallyworld commented Nov 16, 2017

$$merge$$

Contributor

jujubot commented Nov 16, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit cdc7916 into juju:state-controller-refactor Nov 16, 2017

1 check failed

continuous-integration/jenkins/pr-merge This commit cannot be built
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment