Public bug reported:

Related to bug 1722571 (and bug 1737024), when an instance is deleted
while nova is creating an image of it, there is some cleanup code in the
compute manager that tries to delete the image, which might not exist,
and we log a warning:

http://logs.openstack.org/74/511074/6/check/tempest-
full/39df584/controller/logs/screen-n-cpu.txt#_Mar_06_23_34_23_166597

Mar 06 23:34:23.058201 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
INFO nova.virt.libvirt.driver [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Deletion of 
/opt/stack/data/nova/instances/5946fa5a-f91f-4878-8cc1-fc6e248ef38b_del complete
Mar 06 23:34:23.116179 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
INFO nova.virt.libvirt.driver [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Instance instance-00000022 disappeared 
while taking snapshot of it: [Error Code 42] Domain not found: no domain with 
matching uuid '5946fa5a-f91f-4878-8cc1-fc6e248ef38b' (instance-00000022)
Mar 06 23:34:23.116411 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
DEBUG nova.compute.manager [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Instance disappeared during snapshot 
{{(pid=12626) _snapshot_instance /opt/stack/nova/nova/compute/manager.py:3372}}
Mar 06 23:34:23.166597 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
WARNING nova.compute.manager [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Error while trying to clean up image 
263b517a-3fc0-4486-a292-9cf8a4865282: ImageNotFound: Image 
263b517a-3fc0-4486-a292-9cf8a4865282 could not be found.

That warning comes from this code:

https://github.com/openstack/nova/blob/489a8f5bf3e50944ced253283c15e77310a56e40/nova/compute/manager.py#L3378

We should be able to handle an ImageNotFound exception specifically in
that try/except block and not log a warning for it.

** Affects: nova
     Importance: Low
         Status: Triaged


** Tags: compute snapshot

-- 
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/1754071

Title:
  image not found warning in logs when instance is deleted during
  snapshot

Status in OpenStack Compute (nova):
  Triaged

Bug description:
  Related to bug 1722571 (and bug 1737024), when an instance is deleted
  while nova is creating an image of it, there is some cleanup code in
  the compute manager that tries to delete the image, which might not
  exist, and we log a warning:

  http://logs.openstack.org/74/511074/6/check/tempest-
  full/39df584/controller/logs/screen-n-cpu.txt#_Mar_06_23_34_23_166597

  Mar 06 23:34:23.058201 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
INFO nova.virt.libvirt.driver [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Deletion of 
/opt/stack/data/nova/instances/5946fa5a-f91f-4878-8cc1-fc6e248ef38b_del complete
  Mar 06 23:34:23.116179 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
INFO nova.virt.libvirt.driver [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Instance instance-00000022 disappeared 
while taking snapshot of it: [Error Code 42] Domain not found: no domain with 
matching uuid '5946fa5a-f91f-4878-8cc1-fc6e248ef38b' (instance-00000022)
  Mar 06 23:34:23.116411 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
DEBUG nova.compute.manager [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Instance disappeared during snapshot 
{{(pid=12626) _snapshot_instance /opt/stack/nova/nova/compute/manager.py:3372}}
  Mar 06 23:34:23.166597 ubuntu-xenial-rax-dfw-0002817722 nova-compute[12626]: 
WARNING nova.compute.manager [None req-fcf19cc8-3566-4f62-9d8a-6e9733fd0bef 
tempest-ImagesTestJSON-1528672258 tempest-ImagesTestJSON-1528672258] [instance: 
5946fa5a-f91f-4878-8cc1-fc6e248ef38b] Error while trying to clean up image 
263b517a-3fc0-4486-a292-9cf8a4865282: ImageNotFound: Image 
263b517a-3fc0-4486-a292-9cf8a4865282 could not be found.

  That warning comes from this code:

  
https://github.com/openstack/nova/blob/489a8f5bf3e50944ced253283c15e77310a56e40/nova/compute/manager.py#L3378

  We should be able to handle an ImageNotFound exception specifically in
  that try/except block and not log a warning for it.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to