restore-backup ends up with a broken controller: ERROR could not clean up after failed restore attempt: cannot complete restore: <nil>: juju restore is in progress - API is disabled to prevent data loss
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
High
|
Simon Richardson |
Bug Description
I'm following the procedure written in:
https:/
A customer environment is on MAAS provider, but this specific issue can be reproduced in LXD provider.
How to reproduce:
$ juju bootstrap localhost
$ juju enable-ha
$ juju show-controller | grep ha-status
ha-status: ha-enabled
ha-status: ha-enabled
ha-status: ha-enabled
$ juju create-backup -m controller
Remote backup was not created.
Downloaded to juju-backup-
$ juju restore-backup -m controller --file juju-backup-
ERROR unable to restore backup in HA configuration. For help see https:/
-> it's a documented behavior, so remove two of three controller.
$ juju remove-machine -m controller 1 2
$ juju restore-backup -m controller --file juju-backup-
-> then, the error below happens and the controller won't accept API request (full output will be attached).
ERROR could not clean up after failed restore attempt: cannot complete restore: <nil>: juju restore is in progress - API is disabled to prevent data loss
ERROR cannot perform restore: <nil>: restore failed: error restoring state from backup: error restoring database: error executing "/usr/bin/
...
finished restoring juju.generations (0 documents); 2019-03-
Changed in juju: | |
assignee: | nobody → Richard Harding (rharding) |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju: | |
assignee: | Richard Harding (rharding) → Simon Richardson (simonrichardson) |
I cannot attach juju-crashdump as Juju API is unavailable.