Juju is able to bootstrap on MAAS and automatically create the KVM VM but I can’t figure out how to set the hostname or the subnet that the VM should be created on. It appears the subnet directive isn’t supported on MAAS or I’ve got a typo. Here is what I’ve tried.
It looks like --to cloud1.maas should be the region parameter to the cloud.
juju bootstrap \
...
maas-cloud/cloud1 \
...
Use juju regions maas-cloud to confirm that cloud1.maas is mapped to cloud1.
Subnet management
Network management occurs via “spaces”. If you create a network space within your MAAS console, you should be able to run juju reload-spaces to make Juju aware of it.
According to Juju there isn’t a constraint called space it’s called spaces but when I try to create a controller using that option I just get an error.
I’ve run juju reload-spaces but it just complains about there not being a controller.
administrator@cloudmgr1:~$ juju reload-spaces
ERROR No selected controller.
Please use "juju switch" to select a controller.
I think we’re getting mixed on what I’m trying to do. I’m trying to bootstrap a juju controller via a maas pod on a bare metal kvm installation and I need to make the Juju controller vm get created under a specific subnet.
Looking at the documentation more it looks like I’ll just have to create the controllers vm manually and then I can pick the subnet for all future Juju created vms.