maas 1.8.0+bzr4001-0ubuntu2~trusty1 from http://ppa.launchpad.net/maas-maintainers/stable/ubuntu/
We have a scripted install of MAAS where we use the API to have MAAS import images. Once they are imported, we kick off a VM to PXE boot. That VM fails with an error about not finding the image (screenshot attached).
Our script loops over a "maas admin boot-images read <cluster-uuid> call" while that returns an empty list.
2015-08-05 12:54:01,709 DEBUG CMD: ['maas', 'admin', 'boot-images', 'read', 'a29c9361-20a7-40cb-9048-4c4053a2196d']
2015-08-05 12:54:01,966 DEBUG STDOUT:
[]
(...)
2015-08-05 12:56:16,889 DEBUG CMD: ['maas', 'admin', 'boot-images', 'read', 'a29c9361-20a7-40cb-9048-4c4053a2196d']
2015-08-05 12:56:17,152 DEBUG STDOUT:
[
{
"subarchitecture": "hwe-u",
"osystem": "ubuntu",
"label": "release",
"architecture": "amd64",
"release": "trusty",
"purpose": "co(mmissioning"
},
....
(http://pastebin.ubuntu.com/12006850/ for full list)
As soon as it returns a list of images, we kick off the VM. This fails randomly with the error from the screenshot.
We now added a sleep(120) before we kick off the VM and right after boot-images returned a list of images. So far it has been working.
Detailed logs are available in the private bug #1481488, I can't sanitize those right now.
Andreas,
Also, why are we trying to use utopic instead of generic?
"subarchitecture": "hwe-u", - > utopic hwe kernel?