← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1440926] [NEW] glance image-create --locations=<...> always fails

 

Public bug reported:

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.

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1440926

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

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1440926/+subscriptions


Follow ups

References