Bug 1431435

Summary: RNG source cannot be changed to /dev/urandom if /dev/hwrng source is enabled.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: Frontend.WebAdminAssignee: jniederm
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.1.3CC: bugs, lveyde, michal.skrivanek, nsimsolo
Target Milestone: ovirt-4.1.2Flags: michal.skrivanek: ovirt-4.1?
michal.skrivanek: planning_ack?
michal.skrivanek: devel_ack+
rule-engine: testing_ack+
Target Release: 4.1.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-05-23 08:16:05 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
screen video none

Description Nisim Simsolo 2017-03-12 14:43:41 UTC
Description of problem:
When /dev/hwrng is enabled on VM, trying to change source to /dev/urandom from webadmin is impossible because /dev/urandom is grayed out.
Workaround for this issue is to disable RNG checkbox -> apply changes -> edit VM -> enable RNG and then /dev/urandom is enabled by default.

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.1.3-0.1.el7.noarch
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. Browse webadmin and enable /dev/hwrng source on cluster.
2. Create new VM with /dev/hwrng source.
3. edit VM -> random generator tab: try to change device source to /dev/urandom

Actual results:
source cannot be changed because /dev/urandom is grayed out 

Expected results:
/dev/urandom should not be grayed out and it should be possibel to move between sources.

Additional info:
Video capture of the issue (and worksround) attached.

Comment 1 Nisim Simsolo 2017-03-12 14:44:30 UTC
Created attachment 1262227 [details]
screen video

Comment 2 Michal Skrivanek 2017-03-13 10:37:17 UTC
*** Bug 1431438 has been marked as a duplicate of this bug. ***

Comment 3 Nisim Simsolo 2017-04-27 13:57:22 UTC
Verification build: 
ovirt-engine-4.1.2-0.1.el7
libvirt-client-2.0.0-10.el7_3.5.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.9.x86_64
vdsm-4.19.11-1.el7ev.x86_64
sanlock-3.4.0-1.el7.x86_64