1

I'm trying to deploy percona-cluster and binding shared-db to internal space. Juju and MAAS version being used is 2.0. When i run this command:

juju deploy cs:percona-cluster --series xenial mysql --config=openstackha.cfg --to lxd:13 --bind "shared-db=internal-api"

It fails with the following error:

ERROR cannot add application "mysql": unknown space "internal-api" not valid
2

I found the solution, the issue in my case was, juju put all subnets in the default space (space-0) though i had spaces defined in MAAS. So, I created required spaces using Juju and associated relevant networks to each.

To see available spaces to juju

juju spaces

To create a space and add existing networks, run

juju add-space <space-name> <network-cidr-to-add-to-this-space>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.