← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Also affects: glance
   Importance: Undecided
       Status: New

** Changed in: glance
       Status: New => In Progress

** Changed in: glance
     Assignee: (unassigned) => Kamil Rykowski (kamil-rykowski)

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

Title:
  Nullable image description crashes v2 client

Status in OpenStack Image Registry and Delivery Service (Glance):
  In Progress
Status in Python client library for Glance:
  In Progress

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

  
  We should discuss if this bug is related to the glanceclient or Glance itself, because after described operations the image_property "description" is set to None instead of empty string or whole removing the property from the database. Any thoughts?

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