Comment 0 for bug 1668549

Revision history for this message
Dinesh Bhor (dinesh-bhor) wrote :

If you pass incorrect formatted metadata to the 'boot', 'rebuild' and 'image-create'
apis returns following error:

ERROR (ValueError): dictionary update sequence element #0 has length 1; 2 is required

The above error message is not user friendly. It doesn't give proper information to user
to change the input accordingly.

Command:
nova boot --image <image-id> --flavor 1 --meta HA_Enabled,qad <instance_name>

Output:
ERROR (ValueError): dictionary update sequence element #0 has length 1; 2 is required

The metdata(--meta) should be in key=value pair.