I provision about 40 machines using MAAS and juju. The script I use is below (it has the same problem is I turn --debug off):

juju bootstrap -e maas --debug --upload-tools=true --metadata- source="~/.juju/sync-tools" --to jujuBS.local 
juju deploy --repository=".juju/charms" local:juju-gui --to 0
juju expose juju-gui
juju add-machine octave-controller.local
juju deploy --repository=".juju/charms" local:octave-controller --to 1
juju expose octave-controller
juju deploy --repository=".juju/charms" local:octave
juju add-relation octave-controller octave
juju add-unit -e maas octave -n 36
juju add-unit octave --to 0
echo "sleep 300 - force time for octave controller to be build"
sleep 300
juju expose octave

The script works fine except the machines are provisioned serially. It is definitely a juju problem. Using the MAAS web interface, i can request them all at once, and they all fire up. But if I do it through juju, I can watch the maas.log and see juju asking mass for one machine at a time.

As you can see in the script I have juju allocate 36 nodes at once, yet it does them serially, and takes roughly 9 minutes per node. This is on a GB e-net, and the few seconds out of that minute the network is utilized, it is running at ~40MB/S, so it is not a bandwidth problem.

I rebuild my different systems on a regular basis to do different tasks, and am slated to get more machines, and the wait is getting painful, and will only get worse.

Does anyone have any idea why juju only provisions serially? Thanks.

share|improve this question

In my experience machines have always provisioned in parallel, so you may be hitting a bug in juju.

juju add-unit -e maas octave -n 36

This should provision 36 machines in parallel.

Do you have the same problem with the latest stable juju?

https://jujucharms.com/docs/stable/reference-releases#stable

share|improve this answer
    
Hi Matt, thanks for responding. I'm using 14.04 LTS, and other than this, it works fine, so I don't want to treat down that server. I'm building a 16.0.x VM, so I get the latest MAAS & juju. I will put it on a spare machine, release all the node, turn off DHCP and PXE serves and use the old MaaS server to turn them all on and see what happens. – rmustakos Mar 20 '17 at 21:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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