Bug 959796

Summary: rngd.service attempts to start and fails - either should not have started or should succeed.
Product: [Fedora] Fedora Reporter: Robert Lightfoot <BobLfoot>
Component: rng-toolsAssignee: Tony Camuso <tcamuso>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: awilliam, ignatenko, jcapik, jgarzik, robatino, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-18 01:13:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 834090    

Description Robert Lightfoot 2013-05-05 19:16:41 UTC
Description of problem:
rngd.service reports as failed contrary to qa test case

Version-Release number of selected component (if applicable):
4-3.fc19

How reproducible:
100%

Steps to Reproduce:
1. install from DVD
2. boot system
3. check systemctl --all --failed
  
Actual results:
rngd.service reports failed

Expected results:
service should succeed when started and start only if needed

Additional info:
systemctl status rngd.service output follows:
rngd.service - Hardware RNG Entropy Gatherer Daemon
   Loaded: loaded (/usr/lib/systemd/system/rngd.service; enabled)
   Active: failed (Result: exit-code) since Sun 2013-05-05 14:53:38 EDT; 11min ago
  Process: 399 ExecStart=/sbin/rngd -f (code=exited, status=1/FAILURE)
 
May 05 14:53:41 localhost.localdomain rngd[399]: Unable to open file: /dev/tpm0
May 05 14:53:41 localhost.localdomain rngd[399]: can't open any entropy source
May 05 14:53:41 localhost.localdomain rngd[399]: Maybe RNG device modules are not loaded

Comment 1 Igor Gnatenko 2013-05-15 08:40:23 UTC
Installed from DVD Beta TC4.
rngd.service - Hardware RNG Entropy Gatherer Daemon
   Loaded: loaded (/usr/lib/systemd/system/rngd.service; enabled)
   Active: active (running) since Wed 2013-05-15 08:16:53 MSK; 4h 22min ago
 Main PID: 524 (rngd)
   CGroup: name=systemd:/system/rngd.service
           └─524 /sbin/rngd -f

May 15 08:16:53 ThinkPad-X230.localdomain systemd[1]: Starting Hardware RNG Entropy Gatherer Daemon...
May 15 08:16:53 ThinkPad-X230.localdomain systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.

Comment 2 Ankur Sinha (FranciscoD) 2013-05-15 09:16:22 UTC
On an up to date F19 machine:

[ankur@ankur-pc  ~]$ sudo systemctl start rngd.service
[ankur@ankur-pc  ~]$ sudo systemctl status rngd.service
rngd.service - Hardware RNG Entropy Gatherer Daemon
   Loaded: loaded (/usr/lib/systemd/system/rngd.service; enabled)
   Active: failed (Result: exit-code) since Wed 2013-05-15 18:25:53 EST; 1s ago
  Process: 11539 ExecStart=/sbin/rngd -f (code=exited, status=1/FAILURE)

May 15 18:25:53 ankur-pc systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.
May 15 18:25:53 ankur-pc systemd[1]: rngd.service: main process exited, code=exited, status=1/FAILURE
May 15 18:25:53 ankur-pc systemd[1]: Unit rngd.service entered failed state.
[ankur@ankur-pc  ~]$


rng-tools-4-3.fc19.x86_64

Comment 3 Adam Williamson 2013-05-18 01:13:53 UTC

*** This bug has been marked as a duplicate of bug 892178 ***