Ah, right, I inserted the "role" and "bootloadertype" into the "image" section! I guess it's because I modified the file based on the old one.

Thank you to correct that.

On 12 May 2015 at 22:29, Senthil Kumaran <senthil.kumaran@linaro.org> wrote:
Hi Botao,

On Tuesday 12 May 2015 05:43 PM, Botao Sun wrote:
> Looks like the JSON file for LAVA job submission has just updated its
> schema, as I got this error below:

Android JSON schema was updated recently, but that is not deployed to
v.l.o yet. It is available in staging.v.l.o.

> $ lava scheduler submit-job
> https://botao-sun@validation.linaro.org/RPC2/ botao_Juno_multinode_359.json
> ERROR: <Fault 400: "Decoding job submission failed: ValidationError:
> Object has unknown property 'role' but additional properties are
> disallowed object_expr='object.images[1]',
> schema_expr='schema.properties.images.items.additionalProperties').">
>
> It's a multi-node job definition, but looks like the item "role" cannot
> be recognised right now. File attached in this email.

The problem you have reported is different from Android schema changes.
To be more specific it is not a lava problem, but a user error. You have
messed up the way in which 'role' parameter is embedded in the job
definition, same with bootloadertype.

> Would anyone can share a multi-node job definition under this new JSON
> schema?

I ve fixed the job definition and the submission went fine, which you
can see here -
https://validation.linaro.org/scheduler/job/347414/multinode_definition

Thank You.
--
Senthil Kumaran
http://www.stylesen.org/
http://www.sasenthilkumaran.com/