juju-restore doesn't support HA

Bug #1305026 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Horacio Durán

Bug Description

Currently juju-restore preemptively says "if the state that was backed up was in HA, refuse to restore".

We should come up with some sort of answer for HA. If it just brings back up a single Non-HA state server, which we can then HA once it is back up and happy, that should be sufficient.

It is possible that we can just change the code that checks for if len(servers) > 1: error, into something that just tries to restore a single non-HA machine.

The assumption is that if you are using Restore, all state servers have died (otherwise you would just be running on one of the HA nodes.)

If it isn't possible to do restore at all after going HA, then we should refuse to run juju-backup unless there is *something* useful that can be done.

Related branches

John A Meinel (jameinel)
tags: removed: 1.19.1
Changed in juju-core:
milestone: none → 1.19.1
Curtis Hovey (sinzui)
tags: added: backup-restore
John A Meinel (jameinel)
Changed in juju-core:
assignee: nobody → Horacio Durán (hduran-8)
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.19.1 → 1.20.0
Changed in juju-core:
milestone: 1.20.0 → next-stable
Revision history for this message
Horacio Durán (hduran-8) wrote :

I have a patch to propose here but I would like a CI test that takes this story in account so I am sure that my fix covers all possibilities.

William Reade (fwereade)
Changed in juju-core:
status: Triaged → In Progress
Go Bot (go-bot)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: next-stable → 1.19.3
Curtis Hovey (sinzui)
Changed in juju-core:
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.