juju can't enable ha with a manually provisioned machine

I have a MAAS cloud and 2 juju controllers in HA. I would like to add another controller, so I created a lxd container and added it manually as a juju machine but I can’t manage to enable ha with it. This is my error:

juju enable-ha --to 48

ERROR machine “48” has no addresses in space “op-cluster-space”

even

juju show-machine 48

shows that machine 48 has a network interface in op-cluster-space

https://paste.ubuntu.com/p/tH7qnQ7w5h/

and

juju controller-config juju-ha-space

op-cluster-space

Maybe enable-ha doesn’t work when using MAAS and manually provided machines?

Hi! Indeed, at least the error message is not correct. I remember this thread Enable HA does not work when juju controller machine has multiple subnet ips/nics - #9 by mastier1. The error is not exactly the same, but it might give us some hints regarding what’s going on.

What juju version are you on? Also, could we get the outputs of juju spaces, juju subnets? I see that the nic in the machine indicates the correct space, but there might be some inconsistency maybe.

hi, here the outputs

https://paste.ubuntu.com/p/bMDqY42fsg/

What version of Juju?

3.5.3-genericlinux-amd64

Hi, better if i fill a bug?