← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1722571] [NEW] NotImplementedError(_('direct_snapshot() is not implemented')) stacktraces in n-cpu logs

 

Public bug reported:

After we enabled live snapshot by default for the libvirt driver, we get
these stacktraces all over the n-cpu logs anytime we create a snapshot
image:

http://logs.openstack.org/65/509465/18/check/gate-tempest-dsvm-py35
-ubuntu-xenial/0e88c0a/logs/screen-n-cpu.txt#_Oct_10_13_48_24_125578

Oct 10 13:48:24.125578 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf] Traceback (most recent call last):
Oct 10 13:48:24.125728 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]   File "/opt/stack/new/nova/nova/virt/libvirt/driver.py", line 1697, in snapshot
Oct 10 13:48:24.125890 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]     instance.image_ref)
Oct 10 13:48:24.126025 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]   File "/opt/stack/new/nova/nova/virt/libvirt/imagebackend.py", line 412, in direct_snapshot
Oct 10 13:48:24.126158 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]     raise NotImplementedError(_('direct_snapshot() is not implemented'))
Oct 10 13:48:24.126326 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf] NotImplementedError: direct_snapshot() is not implemented
Oct 10 13:48:24.126485 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf] 

We shouldn't be stacktracing on that NotImplementedError since it's an
image backend-specific method implementation for handling snapshots, and
only the Rbd image backend implements direct_snapshot().

** Affects: nova
     Importance: Medium
         Status: Confirmed


** Tags: libvirt serviceability 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/1722571

Title:
  NotImplementedError(_('direct_snapshot() is not implemented'))
  stacktraces in n-cpu logs

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  After we enabled live snapshot by default for the libvirt driver, we
  get these stacktraces all over the n-cpu logs anytime we create a
  snapshot image:

  http://logs.openstack.org/65/509465/18/check/gate-tempest-dsvm-py35
  -ubuntu-xenial/0e88c0a/logs/screen-n-cpu.txt#_Oct_10_13_48_24_125578

  Oct 10 13:48:24.125578 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf] Traceback (most recent call last):
  Oct 10 13:48:24.125728 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]   File "/opt/stack/new/nova/nova/virt/libvirt/driver.py", line 1697, in snapshot
  Oct 10 13:48:24.125890 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]     instance.image_ref)
  Oct 10 13:48:24.126025 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]   File "/opt/stack/new/nova/nova/virt/libvirt/imagebackend.py", line 412, in direct_snapshot
  Oct 10 13:48:24.126158 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf]     raise NotImplementedError(_('direct_snapshot() is not implemented'))
  Oct 10 13:48:24.126326 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf] NotImplementedError: direct_snapshot() is not implemented
  Oct 10 13:48:24.126485 ubuntu-xenial-infracloud-chocolate-11309928 nova-compute[26979]: ERROR nova.compute.manager [instance: 8cd13eb3-54cc-4ca3-9bfc-689efd768baf] 

  We shouldn't be stacktracing on that NotImplementedError since it's an
  image backend-specific method implementation for handling snapshots,
  and only the Rbd image backend implements direct_snapshot().

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


Follow ups