glance image-create --locations=<...> always fails

Bug #1440926 reported by Tomoki Sekiyama
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned

Bug Description

In python-glanceclient, image-create (v2) will always fail with the error below when --location or --locations option is specified.

 % export OS_IMAGE_API_VERSION=2
 % glance image-create --disk-format=raw --container-format=bare --locations '{...}'

 Failed validating u'type' in schema[u'properties'][u'locations'][u'items']:
     {u'properties': {u'metadata': {u'type': u'object'},
                      u'url': {u'maxLength': 255, u'type': u'string'}},
      u'required': [u'url', u'metadata'],
      u'type': u'object'}

 On instance[u'locations'][0]:
     u'{...}'

This seems to be because glance client doesn't parse the option argument and pass as a string.
The argument should be parsed, or --locations option should be omitted from the option list.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.