← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1943492] [NEW] Fails to set the image name attribute when localtions.metatdata is an empty dict

 

Public bug reported:

glance running 2:18.0.1-0ubuntu1 (bionic-stein)

stack-trace: https://paste.ubuntu.com/p/vHc3t8Mnym/

When setting the name attribute from the openstack CLI encounters a
stack trace.

$ openstack image set --name 'my-custom-name' 'c61f99fc-8530-4d61-8279-709735106ea8'
HTTP 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation.


Tracked it down to here:
https://github.com/openstack/glance/blob/stable/stein/glance/location.py#L64

I believe if the same patch is applied as on 
https://github.com/openstack/glance/blob/stable/stein/glance/location.py#L124

this could be a potential work-around, but i'm not familiar with this
code

** 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/1943492

Title:
  Fails to set the image name  attribute when localtions.metatdata is an
  empty dict

Status in Glance:
  New

Bug description:
  glance running 2:18.0.1-0ubuntu1 (bionic-stein)

  stack-trace: https://paste.ubuntu.com/p/vHc3t8Mnym/

  When setting the name attribute from the openstack CLI encounters a
  stack trace.

  $ openstack image set --name 'my-custom-name' 'c61f99fc-8530-4d61-8279-709735106ea8'
  HTTP 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation.

  
  Tracked it down to here:
  https://github.com/openstack/glance/blob/stable/stein/glance/location.py#L64

  I believe if the same patch is applied as on 
  https://github.com/openstack/glance/blob/stable/stein/glance/location.py#L124

  this could be a potential work-around, but i'm not familiar with this
  code

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



Follow ups