[Bug 1419823] Re: Nullable image description crashes v2 client

Yang Ye ccyangye at gmail.com
Wed Aug 26 08:06:56 UTC 2015


Because in function do_add of ImageController, "path_root in image.extra_properties" is true and raise an ERROR. 
And in function __setitem__ of ExtraPropertiesProxy, "self.__getitem__(key) is not None" is false and then do nothing.

BTW,  I perfer to change this perperties both in add and replace op
because none is as  not set.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to glance in Ubuntu.
https://bugs.launchpad.net/bugs/1419823

Title:
  Nullable image description crashes v2 client

Status in Glance:
  Fix Released
Status in Glance kilo series:
  Fix Released
Status in glance package in Ubuntu:
  Fix Released

Bug description:
  When you somehow set the image description to None the glanceclient v2
  image-list crashes (as well as image-show, image-update for this
  particular image). The only way to show all images now is to use
  client v1, because it's more stable in this case.

  Steps to reproduce:

  1. Open Horizon and go to the edit page of any image.
  2. Set description to anything eg. "123" and save.
  3. Open image edit page again, remove description and save it.
  4. List all images using glanceclient v2: "glance --os-image-api-version 2 image-list"
  5. Be sad, because of raised exception:

  None is not of type u'string'

  Failed validating u'type' in schema[u'additionalProperties']:
      {u'type': u'string'}

  On instance[u'description']:
      None

  During investigating the issue I've found that the
  additionalProperties schema is set to accept only string values, so it
  should be expanded to allow for null values as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1419823/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list