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
Conversation
machine.Id(), machineVersion, modelVersion) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Looks like a good start. LGTM |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
Build failed: Does not match ['fixes-1616584', 'fixes-1611514', 'fixes-1475212'] |
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.
34c15bb
to
bfc7159
Compare
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
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: