juju-restore-bootstrap Plugin

Bug #1254577 reported by Tim Penhey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Roger Peppe

Bug Description

The purpose of this plugin is to use the backup file from bug 1254572 and a provisioned machine from bug 1254574 and bring up the juju database and agents to be internally consistent.

The ordering of things to be done is very specific.

The restored files can be brought back onto the vanilla system.

The juju-db service then needs to be started, and the address and instance id of the machine need to be updated:
 * in the “machines” collection in the “juju” database, change the “instanceid” field of the document whose _id is “0” to the new server’s instance id, in the “instanceData” collection, do exactly the same
 * the address stored for machine-0 needs to be updated as well to the new addresses for the machine

Next the following steps:
 1. update the provider-state file in the provider storage with the new
address
 2. update the addresses in the local juju agent configuration files to
refer to the new machine. I'm pretty sure that the machine agent
configuration file points to localhost, but any unit agents would have
the hostname (I'm fairly sure).
 3. Somehow munge the status of units that may have been installed on machine 0, or containers on machine 0 to say they are non-existent.
 4. start the juju-machine-0 upstart service, this brings up the API server (in a hopefully consistent state)

By this stage, we should have a working bootstrap node that is internally consistent (with the caveats around units that may have been deployed on the bootstrap node).

The address propagation is handled by a different plugin described in bug 1254579.

Tim Penhey (thumper)
description: updated
Changed in juju-core:
assignee: nobody → Dimiter Naydenov (dimitern)
Revision history for this message
Mark Ramm (mark-ramm) wrote :

The current thinking is that this needs to be documented, and tested with manual procedures before we start writing a plugin -- which will be editing quite a few critical data bits, and therefore would be a mess.

summary: - juju-restore-bootstrap plugin
+ juju-restore-bootstrap Plugin
Changed in juju-core:
importance: High → Medium
milestone: none → 2.0
Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Changed in juju-core:
assignee: Dimiter Naydenov (dimitern) → nobody
Roger Peppe (rogpeppe)
Changed in juju-core:
assignee: nobody → Roger Peppe (rogpeppe)
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → High
Revision history for this message
William Reade (fwereade) wrote :

see also lp:1270434 -- we now need to use the state server machine agent's password for mongo, not the admin-secret

Changed in juju-core:
importance: High → Critical
milestone: 2.0 → 1.17.3
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.17.3 → 1.18.0
Roger Peppe (rogpeppe)
Changed in juju-core:
status: Triaged → Fix Committed
Revision history for this message
John A Meinel (jameinel) wrote :

Roger mentions that this should actually be targetted to 1.17.3 but that milestone is closed and I'm too lazy to open it.
But marking this as fix released.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.