Created attachment 1239454 [details] vm-descriptor.xml Description of problem: When new VM is started directly on host using `virsh`, the VM is not reported to engine. Instead an exception is logged to vdsm.log Version-Release number of selected component (if applicable): Version : 4.20.0 Release : 107.gitdc67b50.fc24 Host OS: Fedora 24 How reproducible: 100% Steps to Reproduce: 1. Let's have a host without any running VMs connected to the engine 2. Run a VM from virsh (`virsh create <some vm descriptor>`, used descriptor attached) 3. Check vdsm.log and engine Actual results: there are no VMs reported to be running on the host vdsm.log contains exception like: 2017-01-11 14:57:22,028 ERROR (periodic/1) [virt.periodic.Operation] <vdsm.virt.sampling.VMBulkSampler object at 0x7f49b37d7850> operation failed (periodic:192) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/virt/periodic.py", line 190, in __call__ self._func() File "/usr/lib/python2.7/site-packages/vdsm/virt/sampling.py", line 510, in __call__ self._send_metrics() File "/usr/lib/python2.7/site-packages/vdsm/virt/sampling.py", line 519, in _send_metrics vm_obj = vms[vm_id] KeyError: '567e8327-31d8-482e-aeb5-e0c9124e91b4' Expected results: external VM is reported to the engine Additional info:
Created attachment 1239456 [details] vdsm.log
Verify with: Red Hat Virtualization Manager Version: 4.1.1.2-0.1.el7 Host: OS Version:RHEL - 7.3 - 7.el7 Kernel Version:3.10.0 - 550.el7.x86_64 KVM Version:2.6.0 - 28.el7_3.3.1 LIBVIRT Version:libvirt-2.0.0-10.el7_3.5 VDSM Version:vdsm-4.19.6-1.el7ev SPICE Version:0.12.4 - 20.el7_3 Steps: Create vm with virsh and run it on host. Results: VM is up and running on host, no errors found on host logs. The is not display in VM tab on UI.