Bug 1429912

Summary: Random number generator source of pool VM is disabled in webadmin although RNG source is actually enabled on the VM.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: BLL.VirtAssignee: jniederm
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.1.3CC: bugs, mavital, mtessun, nsimsolo, stirabos, tjelinek
Target Milestone: ovirt-4.1.3Flags: rule-engine: ovirt-4.1+
rule-engine: exception+
mtessun: planning_ack+
tjelinek: devel_ack+
mavital: testing_ack+
Target Release: 4.1.3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 13:35:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log
none
engine.log none

Description Nisim Simsolo 2017-03-07 12:41:30 UTC
Description of problem:
When creating VM pool from template with RNG /dev/urandom enabled, in the webadmin it looks like the feature is disabled (edit VM -> random generator -> "Random Generator enabled" checkbox is unchecked) but observing qemu-kvm process and vdsm.log shows that /dev/urandom source is available on the VM.

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.1.3-0.1.el7
qemu-kvm-rhev-2.6.0-28.el7_3.6.x86_64
vdsm-4.19.7-1.el7ev.x86_64
libvirt-client-2.0.0-10.el7_3.5.x86_64
sanlock-3.4.0-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create VM with RNG -> /dev/urandom source enabled.
2. Create template from this VM and create pool of 5 VMs from this template.
3. Browse webadmin -> edit VM -> random generator tab

Actual results:
"Random Generator enabled" checkbox is unchecked. 
Observing qemu-kvm process and vdsm.log shows that /dev/urandom source is available on the VM.
It is possible to generate random number from the VM using /dev/urandom source.

Expected results:
If RNG is enabled on the VM than "Random Generator enabled" checkbox should be checked.

Additional info:
vdsm.log and engine.log attached (pool VMs name: 11pool11).

Comment 1 Nisim Simsolo 2017-03-07 12:44:56 UTC
Created attachment 1260789 [details]
vdsm.log

Comment 2 Nisim Simsolo 2017-03-07 12:45:19 UTC
Created attachment 1260790 [details]
engine.log

Comment 3 Tomas Jelinek 2017-03-08 07:33:53 UTC
I guess that if you now add new VMs to the pool the new VMs will have this random source actually disabled which makes this bug a bit more important.

Comment 4 Nisim Simsolo 2017-03-08 13:19:45 UTC
Just tested it, same behavior obvserved when increasing number of VMs in pool (RNG disabled in webadmin although it's not actually disabled)

Comment 5 rhev-integ 2017-06-01 16:12:58 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Tag 'ovirt-engine-4.1.3.1' doesn't contain patch 'https://gerrit.ovirt.org/77471']
gitweb: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=refs/tags/ovirt-engine-4.1.3.1

For more info please contact: infra

Comment 6 Nisim Simsolo 2017-06-14 11:38:36 UTC
Verified:
libvirt-client-3.2.0-9.el7.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.10.x86_64
sanlock-3.5.0-1.el7.x86_64
vdsm-4.19.18-1.el7ev.x86_64