Bug 1425108 - Hosted engine vm devices are not imported until engine restart
Summary: Hosted engine vm devices are not imported until engine restart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.HostedEngine
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.1.1-1
: 4.1.1.6
Assignee: Jenny Tokar
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-20 15:05 UTC by Jenny Tokar
Modified: 2017-05-11 09:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Hosted engine vm devices were stored in an internal cache that was not updated when the vm was imported. Consequence: The devices were not imported since no change in the cache was detected. Fix: Keep internal cache only for devices of vms that exist in the db. Result: The devices are imported correctly without need to restart.
Clone Of:
Environment:
Last Closed: 2017-04-21 09:46:06 UTC
oVirt Team: SLA
Embargoed:
nsednev: needinfo-
rule-engine: ovirt-4.1+
rule-engine: exception+


Attachments (Terms of Use)
screencast-2017-03-28_17.24.55.mkv (1.01 MB, application/octet-stream)
2017-03-28 14:32 UTC, Nikolai Sednev
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 73237 0 master MERGED core: Monitor devices only for vms that are already in the db 2017-03-01 16:45:16 UTC
oVirt gerrit 73424 0 ovirt-engine-4.1 MERGED core: Monitor devices only for vms that are already in the db 2017-03-02 12:01:42 UTC
oVirt gerrit 74246 0 ovirt-engine-4.1.1.z MERGED core: Monitor devices only for vms that are already in the db 2017-03-20 09:42:55 UTC

Description Jenny Tokar 2017-02-20 15:05:35 UTC
Description of problem:
After the engine imports the hosted engine vm it should import the vm devices. 
But that doesn't happen until the engine is restarted. 

How reproducible:
100%

Steps to Reproduce:
1. Deploy hosted engine
2. Add a storage domain and wait for the vm to be imported

Actual results:
The vm devices are not imported. 

Expected results:
After the vm is imported its devices are imported and appear in the engine ui and db. 

Additional info:
1. The devices are imported after engine restart. 
2. Hosted engine vm has some devices that are imported as part of the vm import and not as part of monitoring. Those devices are imported as expected.

Comment 1 Yaniv Kaul 2017-03-19 08:47:19 UTC
Moving to 4.1.2, as it missed 4.1.1. Perhaps it can make it to 4.1.1-1.

Comment 2 Yaniv Lavi 2017-03-19 15:08:23 UTC
(In reply to Yaniv Kaul from comment #1)
> Moving to 4.1.2, as it missed 4.1.1. Perhaps it can make it to 4.1.1-1.

Ack from me, we want it in a async.

Comment 3 Nikolai Sednev 2017-03-27 15:17:06 UTC
Can you describe in more details about devices that are expected to be shown?
Where are VM devices should be displayed in UI and what devices not being shown?

Comment 4 Nikolai Sednev 2017-03-28 14:26:50 UTC
Works for me on latest components on engine:
rhevm-doc-4.1.0-2.el7ev.noarch
rhev-guest-tools-iso-4.1-4.el7ev.noarch
rhevm-4.1.1.6-0.1.el7.noarch
rhevm-branding-rhev-4.1.0-1.el7ev.noarch
rhevm-setup-plugins-4.1.1-1.el7ev.noarch
rhevm-dependencies-4.1.1-1.el7ev.noarch
Linux version 3.10.0-514.6.1.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Sat Dec 10 11:15:38 EST 2016
Linux 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.3 (Maipo)

Hosts:
qemu-kvm-rhev-2.6.0-28.el7_3.8.x86_64
ovirt-vmconsole-host-1.0.4-1.el7ev.noarch
ovirt-hosted-engine-setup-2.1.0.5-1.el7ev.noarch
ovirt-setup-lib-1.1.0-1.el7ev.noarch
ovirt-imageio-common-1.0.0-0.el7ev.noarch
sanlock-3.4.0-1.el7.x86_64
ovirt-vmconsole-1.0.4-1.el7ev.noarch
mom-0.5.9-1.el7ev.noarch
vdsm-4.19.10-1.el7ev.x86_64
ovirt-hosted-engine-ha-2.1.0.5-1.el7ev.noarch
ovirt-host-deploy-1.6.3-1.el7ev.noarch
ovirt-engine-sdk-python-3.6.9.1-1.el7ev.noarch
libvirt-client-2.0.0-10.el7_3.5.x86_64
ovirt-imageio-daemon-1.0.0-0.el7ev.noarch
Linux version 3.10.0-514.16.1.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Fri Mar 10 13:12:32 EST 2017
Linux 3.10.0-514.16.1.el7.x86_64 #1 SMP Fri Mar 10 13:12:32 EST 2017 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.3 (Maipo)

Comment 5 Nikolai Sednev 2017-03-28 14:32:01 UTC
Created attachment 1266995 [details]
screencast-2017-03-28_17.24.55.mkv


Note You need to log in before you can comment on or make changes to this bug.