Why VMs stay in paused status in RHV-M although it's up in the host

Solution Verified - Updated -

Issue

  • The libvirtd reports VMs as running. However, both vdsm and RHV-M is showing VMs as paused.
  • The user can access the VMs without any issue and it's running fine. So it's not actually paused but vdsm and libvirtd is showing incorrect status.
  • All these VMs are using vGPU devices using vdsm hook.
  • During the vdsmd restart, the error below is shown in the vdsm log.
2018-06-25 03:35:11,201-0500 INFO  (vm/b54c4cd8) [virt.vm] (vmId='1111111-1111-1111-1111-11111111') Skipping errors on recovery (vm:881)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 869, in _startUnderlyingVm
    self._run()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2737, in _run
    self._devices = self._make_devices()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2626, in _make_devices
    return self._make_devices_from_xml()
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 2661, in _make_devices_from_xml
    self.id, self.domain, self._md_desc, self.log
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/common.py", line 219, in dev_map_from_domain_xml
    dev_obj = dev_class.from_xml_tree(log, dev_elem, dev_meta)
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line 381, in from_xml_tree
    dev_name = _get_device_name(dev, dev_type)
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vmdevices/hostdevice.py", line 407, in _get_device_name
    return device_name_from_address(dev_type, src_addr)
  File "/usr/lib/python2.7/site-packages/vdsm/common/hostdev.py", line 552, in device_name_from_address
    _format_address(address_type, device_address)
KeyError: 'mdev_uuid1c1e8797-5d21-37d0-8ae8-95431e85a3d2'

Environment

  • Red Hat Virtualization 4.2.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content