Bug 520519

Summary: corosync-keygen doesn't work
Product: [Fedora] Fedora Reporter: Kevin Fenzi <kevin>
Component: corosyncAssignee: Steven Dake <sdake>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: agk, fdinitto, sdake
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-28 14:55:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kevin Fenzi 2009-08-31 21:36:16 UTC
# corosync-keygen
Corosync Cluster Engine Authentication key generator.
Gathering 1024 bits for key from /dev/random.
Could not read /dev/random: File exists

I get this on any rawhide machine I seem to try and run it on. ;( 

The end of an strace shows: 

open("/dev/random", O_RDONLY)           = 3
read(3, 
"\330\326+\212\24\244\303i"..., 128) = 8
dup(2)                                  = 4
fcntl(4, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
brk(0)                                  = 0x1468000
brk(0x1489000)                          = 0x1489000
fstat(4, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcf44506000
lseek(4, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(4, "Could not read /dev/random: File "..., 40Could not read /dev/random: File exists
) = 40
close(4)

Comment 1 Steven Dake 2009-08-31 22:56:13 UTC
This is fixed upstream.  I will be releasing a Corosync 1.0.1 release this week to address this as well as some other defects.  Hopefully the new corosync will hit the repos this week.

Regards
-steve

Comment 2 Steven Dake 2009-09-28 14:55:23 UTC
Fixed in rawhide and f11.  F10 fix coming soon.

Regards
-steve