Description:
Corrected restore tu support current juju code
Current restore plugin, takes a backup which contains
a dump of the mongodb for the backed up machine and
several configuration files, it bootstraps a new
machine and:
Deletes the fresh db
Loads the dump
Places the files instead of the fresh machine ones
Restarts services.
Since replicaset was introduced the db load was not
working properly. A replicaset initiate with a fresh
config was added to solve it.
Reviewers: mp+218998_ code.launchpad. net,
Message:
Please take a look.
Description:
Corrected restore tu support current juju code
Current restore plugin, takes a backup which contains
a dump of the mongodb for the backed up machine and
several configuration files, it bootstraps a new
machine and:
Deletes the fresh db
Loads the dump
Places the files instead of the fresh machine ones
Restarts services.
Since replicaset was introduced the db load was not
working properly. A replicaset initiate with a fresh
config was added to solve it.
https:/ /code.launchpad .net/~hduran- 8/juju- core/upgrade_ restore_ for_replicaset/ +merge/ 218998
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/94330043/
Affected files (+89, -25 lines): juju-restore/ restore. go
A [revision details]
M cmd/plugins/