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

Jorge Niedbalski 1419823 at bugs.launchpad.net
Fri Jul 31 14:34:33 UTC 2015


** Changed in: glance (Ubuntu)
   Importance: Undecided => Critical

-- 
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