Activity log for bug #1685883

Date Who What changed Old value New value Message
2017-04-24 18:40:15 Witold Krecicki bug added bug
2017-04-24 18:41:24 Gábor Mészáros tags 4010
2017-04-24 18:41:35 Gábor Mészáros bug added subscriber Gábor Mészáros
2017-04-24 19:11:27 Witold Krecicki description Scenario: $ juju bootstrap maas $ juju enable-ha -n 3 --to machine1,machine2 When it's already allocated but not yet deployed - kill machine1 in MAAS (it can also be later, then it won't be 'PENDING' but 'DOWN') Wait for deployment on machine1 to finish, and then: $ juju enable-ha -n 3 --to machine1 This will demote machine 2@machine2 (still in pending/down state) and add machine 3@machine2 After all the machines are deployed and HA cluster is working (machines 0,2,3 in 'ha-enabled' state) we've got the following situation: Machine State DNS Inst id Series AZ Message 0 started 10.2.15.254 ct3y86 xenial default Deployed 1 pending 10.2.0.3 b73t3a xenial default Deploying: ubuntu/amd64/ga-16.04/xenial/daily/boot-initrd 2 started 10.2.0.4 tg34tr xenial default Deployed 3 started 10.2.0.3 b73t3a xenial default Deployed With two Juju machines set up on one MAAS machine. To clean up the HA state: $ juju enable-ha -n 3 maintaining machines: 0, 2, 3 removing machines: 1 And now we can safely remove machine 1: $ juju remove-machine 1 --force According to juju everything is OK: Machine State DNS Inst id Series AZ Message 0 started 10.2.15.254 ct3y86 xenial default Deployed 2 started 10.2.0.4 tg34tr xenial default Deployed 3 started 10.2.0.3 b73t3a xenial default Deployed But the facts are that b73t3a was decomissioned by Juju from MAAS and it's really dead (juju doesn't notice it for quite some time - IMHO it should be more robust) I haven't found a way to remove this pending/dead 'doppelganger' machine from machines list, maybe a '--no-action' switch to remove-machine would be needed? Scenario: $ juju bootstrap maas $ juju enable-ha -n 3 --to machine1,machine2 When it's already allocated but not yet deployed - kill machine1 in MAAS (it can also be later, then it won't be 'PENDING' but 'DOWN') Wait for deployment on machine2 to finish, and then: $ juju enable-ha -n 3 --to machine1 This will demote machine 1@machine1 (still in pending/down state) and add machine 3@machine1 After all the machines are deployed and HA cluster is working (machines 0,2,3 in 'ha-enabled' state) we've got the following situation: Machine State DNS Inst id Series AZ Message 0 started 10.2.15.254 ct3y86 xenial default Deployed 1 pending 10.2.0.3 b73t3a xenial default Deploying: ubuntu/amd64/ga-16.04/xenial/daily/boot-initrd 2 started 10.2.0.4 tg34tr xenial default Deployed 3 started 10.2.0.3 b73t3a xenial default Deployed With two Juju machines set up on one MAAS machine. To clean up the HA state: $ juju enable-ha -n 3 maintaining machines: 0, 2, 3 removing machines: 1 And now we can safely remove machine 1: $ juju remove-machine 1 --force According to juju everything is OK: Machine State DNS Inst id Series AZ Message 0 started 10.2.15.254 ct3y86 xenial default Deployed 2 started 10.2.0.4 tg34tr xenial default Deployed 3 started 10.2.0.3 b73t3a xenial default Deployed But the facts are that b73t3a was decomissioned by Juju from MAAS and it's really dead (juju doesn't notice it for quite some time - IMHO it should be more robust) I haven't found a way to remove this pending/dead 'doppelganger' machine from machines list, maybe a '--no-action' switch to remove-machine would be needed?
2017-04-25 07:57:12 Sandor Zeestraten bug added subscriber Sandor Zeestraten
2017-04-26 00:45:15 Tim Penhey juju: status New Triaged
2017-04-26 00:45:18 Tim Penhey juju: importance Undecided Medium
2017-04-26 00:46:26 Tim Penhey tags 4010 4010 ha polish remove-machine
2017-09-27 11:53:09 Ante Karamatić tags 4010 ha polish remove-machine 4010 cpe-onsite ha polish remove-machine
2018-04-23 09:27:41 John A Meinel juju: status Triaged Fix Committed
2018-04-23 09:27:41 John A Meinel juju: milestone 2.4-beta2
2018-04-23 09:27:41 John A Meinel juju: assignee John A Meinel (jameinel)
2018-07-10 22:28:29 Anastasia juju: status Fix Committed Fix Released