← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2033541] [NEW] libvirt KeyError on assisted snapshot calls when using Ceph

 

Public bug reported:

Spotted on
https://zuul.opendev.org/t/openstack/build/b6b9b728978143c9b3b4d1f914b9a15c/logs

cinder-plugin-ceph-tempest runs tempest's VolumesAssistedSnapshotTest
(which is not going to work with Ceph volumes).  I think this test
exists mostly to test RBAC rules as it passes in fake snapshot paths
that wouldn't ever behave normally.

Nonetheless, it throws KeyErrors in the libvirt driver that could be
cleaned up by checking if delete_info is None in
_volume_snapshot_delete:

Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver Traceback (most recent call last):
Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3840, in volume_snapshot_delete
Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver     self._volume_snapshot_delete(context, instance, volume_id,
Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3670, in _volume_snapshot_delete
Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver     if delete_info['type'] != 'qcow2':
Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver KeyError: 'type'

** Affects: nova
     Importance: Undecided
         Status: New

** Attachment added: "n-cpu log"
   https://bugs.launchpad.net/bugs/2033541/+attachment/5696528/+files/screen-n-cpu.txt.gz

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

Title:
  libvirt KeyError on assisted snapshot calls when using Ceph

Status in OpenStack Compute (nova):
  New

Bug description:
  Spotted on
  https://zuul.opendev.org/t/openstack/build/b6b9b728978143c9b3b4d1f914b9a15c/logs

  cinder-plugin-ceph-tempest runs tempest's VolumesAssistedSnapshotTest
  (which is not going to work with Ceph volumes).  I think this test
  exists mostly to test RBAC rules as it passes in fake snapshot paths
  that wouldn't ever behave normally.

  Nonetheless, it throws KeyErrors in the libvirt driver that could be
  cleaned up by checking if delete_info is None in
  _volume_snapshot_delete:

  Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver Traceback (most recent call last):
  Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3840, in volume_snapshot_delete
  Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver     self._volume_snapshot_delete(context, instance, volume_id,
  Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3670, in _volume_snapshot_delete
  Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver     if delete_info['type'] != 'qcow2':
  Aug 30 14:07:09.906544 np0035104604 nova-compute[107505]: ERROR nova.virt.libvirt.driver KeyError: 'type'

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