Comment 7 for bug 1387133

Revision history for this message
Graham Binns (gmb) wrote : Re: [Bug 1387133] Re: Boot images disappear

On 29 October 2014 12:38, Christian Reis <email address hidden> wrote:
> 2014-10-29 04:45:03 CDT STATEMENT: INSERT INTO "maasserver_componenterror" ("created", "updated", "component", "error") VALUES ('2014-10-29 04:45:03.433921', '2014-10-29 04:45:03.433921', 'maas-import-pxe-files script', 'Boot image import process not started. Nodes will not be able to provision without boot images. Visit the boot images page to start the import.') RETURNING "maasserver_componenterror"."id"

This almost looks like a race might be occurring in
maasserver.component.register_persistent_error(), which is what is
used to register the error when boot images are missing. That function
removes any existing error message for a component (in this case
"maas-import-pxe-files script") before adding a new one; you'd only
see this — I think — if there were two requests trying to do that at
the same time.

Note that the code that registers / removes the error is in the
middleware, so it gets run with every request ATM. I'm not sure, then,
whether this is a symptom of the Houdini, or a side-effect.