← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1648767] Re: Stack trace when tring to delete an inexisting img

 

*** This bug is a duplicate of bug 1648574 ***
    https://bugs.launchpad.net/bugs/1648574

** This bug has been marked a duplicate of bug 1648574
   ImageNotFound should not trace exception in delete_image_on_error decorator

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1648767

Title:
  Stack trace when tring to delete an inexisting img

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  I got the following stack trace in a Gate job run [1]:

  ERROR nova.compute.manager [req-xx tempest-ImagesTestJSON-1266595174 tempest-ImagesTestJSON-1266595174] [instance: XX] Error while trying to clean up image bc92d2a5-6fa0-4a84-8ad2-cb9f597da420
  ERROR nova.compute.manager [instance: XX] Traceback (most recent call last):
  ERROR nova.compute.manager [instance: XX]   File "/opt/stack/new/nova/nova/compute/manager.py", line 238, in decorated_function
  ERROR nova.compute.manager [instance: XX]     self.image_api.delete(context, image_id)
  ERROR nova.compute.manager [instance: XX]   File "/opt/stack/new/nova/nova/image/api.py", line 141, in delete
  ERROR nova.compute.manager [instance: XX]     return session.delete(context, image_id)
  ERROR nova.compute.manager [instance: XX]   File "/opt/stack/new/nova/nova/image/glance.py", line 765, in delete
  ERROR nova.compute.manager [instance: XX]     raise exception.ImageNotFound(image_id=image_id)
  ERROR nova.compute.manager [instance: XX] ImageNotFound: Image bc92d2a5-6fa0-4a84-8ad2-cb9f597da420 could not be found.

  There's no need to panic when we try to delete an inexisting image. We
  should print at a lower log level, like INFO.

  I am working on a patch right now.

  [1] http://logs.openstack.org/56/408056/4/check/gate-tempest-dsvm-
  full-devstack-plugin-ceph-ubuntu-
  xenial/2c72482/logs/screen-n-cpu.txt.gz?level=ERROR#_2016-12-08_16_43_20_627

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


References