Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
migrations: don't start model workers while a model is importing #6678
Conversation
babbageclunk
added some commits
Dec 8, 2016
|
Added a bug for including model dependency engines in the introspection report - this would have made finding the problem a bit easier. https://bugs.launchpad.net/juju/+bug/1648539 |
babbageclunk
changed the base branch from
develop
to
2.1
Dec 8, 2016
| +func (w *collectionWatcher) convertId(id string) (string, error) { | ||
| + // Strip off the env UUID prefix. | ||
| + if w.colWCfg.global { | ||
| + id = w.st.localID(id) |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
!!chittychitty!! |
jujubot
merged commit 0aa21b7
into
juju:2.1
Dec 9, 2016
1 check failed
github-check-merge-juju
Built PR, ran unit tests, and tested LXD deploy. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details
babbageclunk
deleted the
babbageclunk:migration-bounce
branch
Dec 9, 2016
babbageclunk
referenced this pull request
Dec 13, 2016
Merged
migrations: don't start model workers while a model is importing #6700
added a commit
that referenced
this pull request
Dec 14, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
babbageclunk commentedDec 8, 2016
•
Edited 1 time
-
babbageclunk
Dec 8, 2016
Fixes https://bugs.launchpad.net/juju/+bug/1646310
Starting the migration master while the model was being imported back
into a controller that it had previously migrated out of caused it to
uninstall itself from the engine (thinking that it was finished
processing the old migration), which blocked any workers that depended
on
ifNotMigrating. To fix this we wait until the modelMigrationModehas changed to
MigrationModeNone- this means the watcher needs tosignal on any changes to models, rather than just life.
Add a
globalflag to thecollectionWatcherconfig - this lets the watcher returnids for any model, rather than just the current one.
The apiserver code to remove state objects from the pool still needs to
watch life specifically. If the model becomes Dead and is then
removed within the event coalescence time then the collection watcher
won't report any event, but a lifecycle watcher will.
QA steps: