← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1928063] [NEW] SEV enabled instance unable to hard reboot

 

Public bug reported:

Description
===========

Hard rebooting a SEV enabled instance fails with a NotImplementedError
raised as the image_meta stashed in the system_metadata of the instance
doesn't contain the image name or id:

2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 3739, in _reboot_instance
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     bad_volumes_callback=bad_volumes_callback)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 3292, in reboot
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     block_device_info)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 3386, in _hard_reboot
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     mdevs=mdevs)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 6331, in _get_guest_xml
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     context, mdevs)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 5949, in _get_guest_config
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     flavor, image_meta)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 5504, in _get_guest_memory_backing_config
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     if self._sev_enabled(flavor, image_meta):
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 6117, in _sev_enabled
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     mach_type)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/hardware.py", line 1271, in get_mem_encryption_constraint
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     image_meta.name)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_versionedobjects/base.py", line 67, in getter
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     self.obj_load_attr(name)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_versionedobjects/base.py", line 603, in obj_load_attr
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     _("Cannot load '%s' in the base class") % attrname)
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server NotImplementedError: Cannot load 'name' in the base class
2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server

Steps to reproduce
==================

Hard reboot a SEV enabled instance.


Expected result
===============

Instance hard reboots as expected.

Actual result
=============

Instance fails to reboot with a NotImplementedError exception raised.


Environment
===========
1. Exact version of OpenStack you are running. See the following
  list for all releases: http://docs.openstack.org/releases/

   stable/train but likely the same on master.

2. Which hypervisor did you use?
   (For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
   What's the version of that?

   libvirt + KVM
  
2. Which storage type did you use?
   (For example: Ceph, LVM, GPFS, ...)
   What's the version of that?

   N/A

3. Which networking type did you use?
   (For example: nova-network, Neutron with OpenVSwitch, ...)

   N/A

Logs & Configs
==============

** Affects: nova
     Importance: Undecided
     Assignee: Lee Yarwood (lyarwood)
         Status: New


** Tags: libvirt

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

Title:
  SEV enabled instance unable to hard reboot

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========

  Hard rebooting a SEV enabled instance fails with a NotImplementedError
  raised as the image_meta stashed in the system_metadata of the
  instance doesn't contain the image name or id:

  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 3739, in _reboot_instance
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     bad_volumes_callback=bad_volumes_callback)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 3292, in reboot
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     block_device_info)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 3386, in _hard_reboot
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     mdevs=mdevs)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 6331, in _get_guest_xml
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     context, mdevs)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 5949, in _get_guest_config
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     flavor, image_meta)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 5504, in _get_guest_memory_backing_config
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     if self._sev_enabled(flavor, image_meta):
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/driver.py", line 6117, in _sev_enabled
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     mach_type)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/nova/virt/hardware.py", line 1271, in get_mem_encryption_constraint
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     image_meta.name)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_versionedobjects/base.py", line 67, in getter
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     self.obj_load_attr(name)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/oslo_versionedobjects/base.py", line 603, in obj_load_attr
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server     _("Cannot load '%s' in the base class") % attrname)
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server NotImplementedError: Cannot load 'name' in the base class
  2021-05-10 16:50:24.847 7 ERROR oslo_messaging.rpc.server

  Steps to reproduce
  ==================

  Hard reboot a SEV enabled instance.

  
  Expected result
  ===============

  Instance hard reboots as expected.

  Actual result
  =============

  Instance fails to reboot with a NotImplementedError exception raised.

  
  Environment
  ===========
  1. Exact version of OpenStack you are running. See the following
    list for all releases: http://docs.openstack.org/releases/

     stable/train but likely the same on master.

  2. Which hypervisor did you use?
     (For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
     What's the version of that?

     libvirt + KVM
    
  2. Which storage type did you use?
     (For example: Ceph, LVM, GPFS, ...)
     What's the version of that?

     N/A

  3. Which networking type did you use?
     (For example: nova-network, Neutron with OpenVSwitch, ...)

     N/A

  Logs & Configs
  ==============

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


Follow ups