Issue #2032 has been updated by jamtur01.

Target version changed from 1.6.0 to 1.5.5


----------------------------------------
Bug #2032: uptime fact hangs reading /proc/uptime
http://projects.reductivelabs.com/issues/2032

Author: wassy121
Status: Closed
Priority: Normal
Assigned to: jamtur01
Category: library
Target version: 1.5.5
Complexity: Medium
Affected version: 0.24.7
Keywords: 


"/sbin/service puppet start" hangs at:

Feb 26 21:31:52 HOSTNAME puppetd[24685]: Reopening log files
Feb 26 21:31:52 HOSTNAME puppetd[24685]: Starting Puppet client version 0.24.7
Feb 26 21:31:52 HOSTNAME puppet: puppetd startup succeeded
<hang>

facter version 1.5.4 (from .tgz)

It looks to be coming from inside uptime.rb, and specificaly from reading 
/proc/uptime.  This machine is RedHat ES4 Update 6.  Strace info is below:


# strace -e '!nanosleep,close,sigprocmask' -Ff service puppet start
[pid  3509] open("/usr/lib/ruby/site_ruby/1.8/facter/uptime.rb", 
O_RDONLY|O_LARGEFILE) = 6
[pid  3509] fstat64(6, {st_mode=S_IFREG|0644, st_size=548, ...}) = 0
[pid  3509] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0xb708c000
[pid  3509] read(6, "require \'facter/util/uptime\'\n\nFa"..., 4096) = 548
[pid  3509] read(6, "", 4096)           = 0
[pid  3509] munmap(0xb708c000, 4096)    = 0
[pid  3509] stat64("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
{st_mode=S_IFREG|0644, st_size=1025, ...}) = 0
[pid  3509] open("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
O_RDONLY|O_LARGEFILE) = 6
[pid  3509] stat64("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
{st_mode=S_IFREG|0644, st_size=1025, ...}) = 0
[pid  3509] open("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
O_RDONLY|O_LARGEFILE) = 6
[pid  3509] open("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
O_RDONLY|O_LARGEFILE) = 6
[pid  3509] open("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
O_RDONLY|O_LARGEFILE) = 6
[pid  3509] open("/usr/lib/ruby/site_ruby/1.8/facter/util/uptime.rb", 
O_RDONLY|O_LARGEFILE) = 6
[pid  3509] fstat64(6, {st_mode=S_IFREG|0644, st_size=1025, ...}) = 0
[pid  3509] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0xb708c000
[pid  3509] read(6, "# A module to gather uptime fact"..., 4096) = 1025
[pid  3509] read(6, "", 4096)           = 0
[pid  3509] munmap(0xb708c000, 4096)    = 0
[pid  3509] stat64("/proc/uptime", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid  3509] open("/proc/uptime", O_RDONLY|O_LARGEFILE) = 6
[pid  3509] select(7, [6], [], [], {0, 0}) = 0 (Timeout)
[pid  3509] gettimeofday({1235685917, 888942}, NULL) = 0
[pid  3509] gettimeofday({1235685917, 889039}, NULL) = 0
[pid  3509] select(7, [3 6], [], [], NULL) = 1 (in [3])
[pid  3509] read(3, ".", 256)           = 1
[pid  3509] gettimeofday({1235685917, 889587}, NULL) = 0
[pid  3509] gettimeofday({1235685917, 889676}, NULL) = 0
[pid  3509] gettimeofday({1235685917, 889837}, NULL) = 0
[pid  3509] gettimeofday({1235685917, 890025}, NULL) = 0
[pid  3509] gettimeofday({1235685917, 890068}, NULL) = 0
[pid  3509] select(7, [3 6], [], [], {11, 252007}) = 0 (Timeout)
[pid  3509] gettimeofday({1235685929, 143389}, NULL) = 0
[pid  3509] select(7, [3 6], [], [], {0, 0}) = 0 (Timeout)
[pid  3509] select(7, [6], [], [], {0, 0}) = 0 (Timeout)

the process then loops around the selects/gettimeofday.

Tried setting the File.open() to be NONBLOCK, but no luck.  "service puppet 
once" runs just fine, as does "facter" with no args.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to