← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1216102] Re: Registry image delete fails on Fedora 19 (sqlalchemy 0.8.1)

 

** Changed in: glance
       Status: In Progress => Won't Fix

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

Title:
  Registry image delete fails on Fedora 19 (sqlalchemy 0.8.1)

Status in OpenStack Image Registry and Delivery Service (Glance):
  Won't Fix

Bug description:
  Using the latest Glance Havana code (git b2d5a38) on Fedora 19 (now w/
  Maria DB) I'm seeing the following errors when deleting an image:

  glance delete c5b49290-cb0c-4b71-8844-7a77c8a071a9
  Delete image c5b49290-cb0c-4b71-8844-7a77c8a071a9? [y/N] y
  Request returned failure status.
  HTTPInternalServerError (HTTP 500)

  I enabled SQL logging on the registry server and discovered the
  following:

  2013-08-23 20:34:34.244 27527 INFO sqlalchemy.engine.base.Engine [-] UPDATE images SET updated_at=%s, deleted_at=%s, deleted=%s WHERE images.id = %s
  2013-08-23 20:34:34.244 27527 INFO sqlalchemy.engine.base.Engine [-] (datetime.datetime(2013, 8, 23, 20, 34, 34, 244610), datetime.datetime(2013, 8, 23, 20, 34, 34, 243340), 1, 'c5b49290-cb0c-4b71-8844-7a77c8a071a9')
  2013-08-23 20:34:34.248 27527 INFO sqlalchemy.engine.base.Engine [-] ROLLBACK

  ----

  Tracing it a bit further the issue seems to stem from the DB api's
  _image_child_entry_delete_all function. Specifically the query.update
  call within that method fails.

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