juju enable-ha fails to allocate machines with multiple spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Joseph Phillips |
Bug Description
$ juju version
3.4.0-genericli
How to reproduce:
1. prepare a MAAS provider
2. prepare 3 machines with two interfaces with two network spaces
3. bootstrap Juju with the following command
$ juju bootstrap maas maas-controller \
--model-default logging-
--model-default default-
--bootstrap
--config juju-mgmt-
--config juju-ha-
4. enable-ha
$ juju enable-ha
maintaining machines: 0
adding machines: 1, 2
Expected: Juju picks two additional machines and compose the HA clustered controllers
Actual: Juju fails to allocate two additional machines for HA
There is no error in the constraints since `add-machine` works with the same constraints.
$ juju status -m controller
Model Controller Cloud/Region Version SLA Timestamp
controller maas-controller maas/default 3.4.0 unsupported 14:29:30Z
App Version Status Scale Charm Channel Rev Exposed Message
controller waiting 1/3 juju-controller 3.4/stable 79 no waiting for machine
Unit Workload Agent Machine Public address Ports Message
controller/0* active idle 0 192.168.151.117
controller/1 waiting allocating 1 waiting for machine
controller/2 waiting allocating 2 waiting for machine
Machine State Address Inst id Base AZ Message
0 started 192.168.151.117 major-beetle ubuntu@22.04 default Deployed
1 down pending ubuntu@22.04
2 down pending ubuntu@22.04
$ juju ssh -m controller 0 -- ip -br a
lo UNKNOWN 127.0.0.1/8 ::1/128
ens4 UP 192.168.151.117/24 fe80::5054:
ens8 UP 192.168.152.101/24 fe80::5054:
$ juju spaces -m controller
Name Space ID Subnets
alpha 0
space-first 1 192.168.151.0/24
space-isolated 2 192.168.152.0/24
undefined 3 10.0.9.0/24
$ juju controller-config | grep space
juju-ha-space space-isolated
juju-mgmt-space space-first
$ juju constraints -m controller controller
arch=amd64 mem=3584M tags=juju spaces=
description: | updated |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Subscribing ~field-high.
It's happening in a customer environment and it's reproducible on a test bed too. There is a manual workaround to do `juju add-machine` by hand then `juju enable-ha --to` though.