Ensure-availability fails with ' failed to find any voting machines' after backup/restore.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Horacio Durán | ||
1.21 |
Fix Released
|
High
|
Horacio Durán | ||
1.22 |
Fix Released
|
High
|
Horacio Durán |
Bug Description
[Versions]
ubuntu@
1.21.1-trusty-amd64
ubuntu@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
[Description]
ubuntu@
environment: niedbalski2
machines:
"0":
agent-state: started
agent-version: 1.21.1
dns-name: 10.5.0.61
instance-id: 225fbf72-
instance-state: ACTIVE
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=20480M
state-
"1":
agent-state: started
agent-version: 1.21.1
dns-name: 10.5.0.62
instance-id: 3c75f984-
instance-state: ACTIVE
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=20480M
state-
"2":
agent-state: started
agent-version: 1.21.1
dns-name: 10.5.0.63
instance-id: e483e28c-
instance-state: ACTIVE
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=20480M
state-
services: {}
ubuntu@
ubuntu@
ubuntu@
ubuntu@
Hangs..
ubuntu@
extracted credentials from backup file
re-bootstrapping environment
Bootstrapping environment "niedbalski2"
Starting new instance for initial state server
Launching instance
- 7642836a-
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.5.0.64:22
Warning: Permanently added '10.5.0.64' (ECDSA) to the list of known hosts.
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https:/
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap complete
connecting to newly bootstrapped instance
restoring bootstrap machine
copying backup file to bootstrap host
updating bootstrap machine
restored bootstrap machine
opening state
updating all machines
ubuntu@
WARNING ignoring invalid cached API endpoint environment UUID
environment: niedbalski2
machines:
"0":
agent-state: started
agent-version: 1.21.1
dns-name: 10.5.0.61
instance-id: 225fbf72-
instance-state: ACTIVE
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=20480M
state-
services: {}
ubuntu@
ERROR internal error, failed to find any voting machines
ubuntu@
ubuntu@
ERROR internal error, failed to find any voting machines
description: | updated |
tags: | added: backup-restore ha |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.23 |
Changed in juju-core: | |
assignee: | nobody → Horacio Durán (hduran-8) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
milestone: | 1.23 → 1.23-beta1 |
Seems that setting the votingmachineids[0] to string(0) works as a workaround until the patch arrives.
juju:PRIMARY> db.stateServers .update( {"_id": "e"}, {$set:{"machineids" : ["0"]}}) .update( {"_id": "e"}, {$set:{ "votingmachinei ds" : ["0"]}})
juju:PRIMARY> db.stateServers
Thanks.