juju-restore requires mongodb-clients

Bug #1317896 reported by Horacio Durán on 2014-05-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core (Ubuntu)

Bug Description

juju-restore plugin performs a couple of operations on the db that require mongo client which is part of mongodb-clients, currently we are triggering an install of that package from inside the restore plugin. The proper solution would be to have mongodb-clients as a dependency of juju-core or have mongo binary included in /usr/lib/juju/bin

John A Meinel (jameinel) wrote :

I actually don't think using "mongo" is the correct fix here. We already have all the code we need inside of juju-core, we shouldn't depend on a separate client library in order to write stuff to the database.

We *definitely* don't want mongodb-clients as a dependency for juju-core (juju-core is the client package, not what we install on the remote machine).

Instead, we should have a "jujud restore" as a command that we can invoke from remote (like we do 'jujud bootstrap-state" today). Long term it can take over everything that we need to do during restore, potentially even connecting to all the other agents and updating their configuration to point to itself. (We now have an SSH Identity that should allow an API server to SSH to all machines and run commands there.)

Changed in juju-core:
importance: Undecided → High
status: New → Triaged
tags: added: backup-restore tech-debt
Changed in juju-core:
importance: High → Medium
Anastasia (anastasia-macmood) wrote :

Without mongodb-client, we cannot log into database, we cannot get db dumps, etc. It is not just restore that needs it.

Curtis Hovey (sinzui) wrote :

This is essentially fixed by juju-mongodb3.2 and juju-mongo-tools3.2. The client and the tools are installed on the controller.

Changed in juju-core:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers