Bug 1059804 - [openshift-watchman] watchman dies immediately on start up
Summary: [openshift-watchman] watchman dies immediately on start up
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-30 17:07 UTC by Kenny Woodson
Modified: 2015-05-14 23:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-26 19:10:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
watchman.log (12.65 KB, text/plain)
2014-01-30 17:07 UTC, Kenny Woodson
no flags Details

Description Kenny Woodson 2014-01-30 17:07:28 UTC
Created attachment 857587 [details]
watchman.log

Description of problem:

After the latest production release we noticed that openshift-watchman was failing to start on some nodes.  Attached to this bug is the log file.

Version-Release number of selected component (if applicable):
Latest

How reproducible:
Very.
openshift-origin-node-util-1.18.7-1.el6oso.noarch

Steps to Reproduce:
1.
2.
3.

Actual results:
watchman fails to start/run.

Expected results:
watchman works.

Additional info:

Comment 1 Kenny Woodson 2014-01-30 20:30:35 UTC
I also noticed the following comments in /var/log/watchman.log

/usr/sbin/oo-watchman:91:in `logger': wrong number of arguments (0 for 1) (ArgumentError)
        from /usr/sbin/oo-watchman:71:in `rescue in block (2 levels) in apply'
        from /usr/sbin/oo-watchman:66:in `block (2 levels) in apply'
        from /usr/sbin/oo-watchman:65:in `each'
        from /usr/sbin/oo-watchman:65:in `block in apply'
        from /usr/sbin/oo-watchman:64:in `loop'
        from /usr/sbin/oo-watchman:64:in `apply'
        from /usr/sbin/oo-watchman:300:in `<top (required)>'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `load'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:257:in `start'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/controller.rb:69:in `run'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons.rb:139:in `block in run'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `call'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `catch_exceptions'
        from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons.rb:138:in `run'
        from /etc/init.d/openshift-watchman:44:in `<main>'


I believe this is caused by line 71.  Line 71 calls logger.debug but logger is a function with a single config parameter.  This error goes away when you call it like the following:

logger(@config).debug(%Q{#{msg}\n#{e.backtrace.join("\n")}})


I then observed that watchman continued to run.

Comment 2 openshift-github-bot 2014-01-30 22:55:28 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/5679cd8681224b91d64e520c46e0056cf006a4ee
Bug 1059804 - Watchman support for UTF-8

Comment 3 Troy Dawson 2014-02-04 17:37:39 UTC
This has been built and is on STG, ready for testing.

Comment 4 Peter Ruan 2014-02-04 20:23:22 UTC
verified with devenv-stage_673


Note You need to log in before you can comment on or make changes to this bug.