← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1371559] Re: v2 image-update does not handle some schema properties properly

 

** Also 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/1371559

Title:
  v2 image-update does not handle some schema properties properly

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

Bug description:
  Step1: Create an empty image using api v1 or v2.
  Step2:  Use glanceclient with v2 API to update image property called "architecture":

  glance --os-image-version 2 image-update --property architecture='x86'

  This will show following error message:

  <html>
    <head>
      <title>409 Conflict</title>
    </head>
    <body>
      <h1>409 Conflict</h1>
      There was a conflict when trying to complete your request.<br /><br />
      Property architecture does not exist.

    </body>
  </html> (HTTP 409)

  The error shows up, because the client sends to glance API following
  data:

  [{"patch: "/architecture", "value": "x86", "op": "replace"}]

  instead of

  [{"patch: "/architecture", "value": "x86", "op": "add"}]

  The issue is somehow related to overridden patch method in
  SchemaBasedModel class, which propagates non existing properties from
  schema properties.

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