Comment 2 for bug 1717860

Revision history for this message
Christian Muirhead (2-xtian) wrote : Re: model migration from 2.2.2 to 2.2.4 fails

Looking in the log reveals:
2017-09-18 06:39:40 ERROR juju.worker.migrationmaster.2780ee worker.go:279 model data transfer failed, model export failed: failed to read status history collection: Executor error during find command: OperationFailed: Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit.

The status history collection didn't have an index that was needed by migration - {"model-uuid", "-updated", "-_id"}
This was fixed in https://github.com/juju/juju/pull/7722 (so not in 2.2.2, but in 2.2.3+).