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.
On 29 October 2014 12:38, Christian Reis <email address hidden> wrote: 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"
> 2014-10-29 04:45:03 CDT STATEMENT: INSERT INTO "maasserver_
This almost looks like a race might be occurring in component. register_ persistent_ error() , which is what is pxe-files script") before adding a new one; you'd only
maasserver.
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-
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.