Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source migration prechecks infrastructure #6088

Merged
merged 10 commits into from Aug 25, 2016
Merged

Conversation

mjs
Copy link

@mjs mjs commented Aug 24, 2016

This PR is mainly about adding the plumbing to support prechecks for the source controller and model. The infrastructure of target controller prechecks, as well as more precheck implementations, are coming.

Here we have:

  • Cleaned up existing precheck code and tests
  • Added a check to ensure that all machines in the source model have the same tools version as the version set on the model
  • Added precheck support to the MigrationMaster facade (apiserver and api)
  • migrationmaster worker now calls precheck API in PRECHECK phase

machine.Id(), machineVersion, modelVersion)
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add TODO comment for other prechecks?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had it in a text file but you're right that it would be better in the code. Done.

@howbazaar
Copy link
Contributor

Looks like a good start. LGTM

@mjs
Copy link
Author

mjs commented Aug 25, 2016

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Aug 25, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot
Copy link
Collaborator

jujubot commented Aug 25, 2016

Build failed: Does not match ['fixes-1616584', 'fixes-1611514', 'fixes-1475212']
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/8924

Menno Smits added 10 commits August 25, 2016 13:27
The checks to perform on the source and target will be different and
done separately.
Ensure that an upgrade isn't in progress by checking that all machines
in the model have the same tools version as what's set for the model.
This wraps a *state.State to implement the interface required for
migration prechecks.
A new Precheck method will run pre-migration checks on the model and
source controller.
@mjs
Copy link
Author

mjs commented Aug 25, 2016

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Aug 25, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit cd722b6 into juju:master Aug 25, 2016
@mjs mjs deleted the MM-source-prechecks branch August 26, 2016 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants