Comment #3 : Bug #1569467 : Bugs : Canonical Juju

Comment 3 for bug 1569467

Revision history for this message
Ian Booth (wallyworld) wrote : Re: backup-restore loses the hosted model

I can reproduce this on LXD. I have observed that:
- the bson dump files from the backup does contain the hosted model document
- the restore -b bootstraps a new controller and hence creates an empty hosted model called "default"
- only the admin model is restored

So any notion that the restore worked with a hosted model was sort of a red herring. If the original hosted model was called "default" then list-models in a restored system would have shown a model called "default" but it would have been empty.

Why is only the admin model restored, not sure yet. It seems that mongorestore is called and loads the entire dump so am not sure what's happening.