New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 741082 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 0
Type: Bug



Sign in to add a comment

sysmon crashlooping

Project Member Reported by akes...@chromium.org, Jul 11 2017

Issue description

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/google/home/chromeos-test/chromiumos/chromite/scripts/sysmon/__main__.py", line 21, in <module>
    from chromite.scripts.sysmon import git_metrics
  File "/usr/local/google/home/chromeos-test/chromiumos/chromite/venv/chromite/scripts/sysmon/git_metrics.py", line 57, in <module>
    class _GitMetricCollector(object):
  File "/usr/local/google/home/chromeos-test/chromiumos/chromite/venv/chromite/scripts/sysmon/git_metrics.py", line 68, in _GitMetricCollector
    description='Current Git commit hash.')
TypeError: __init__() takes at least 4 arguments (3 given)
 
Cc: xixuan@chromium.org
That was observed on a prod shard. 

chromeos-test@chromeos-server104:/var/log$ less sysmon.log
Cc: pho...@chromium.org
Those particular calls haven't be changed since March.  It looks like ts_mon has changed to make those metric constructor calls invalid

phobbs, are you aware of ts_mon updates?
I see, the ts_mon update changed the metric constructor.

I can fix sysmon, but won't this break all metrics?  e.g. devserver, Autotest, others.
The constructor change was supposed to be backwards incompatible. Though maybe not if certain args were positional vs. keyword.

Can you make the fix for sysmon?
Status: Started (was: Untriaged)
sysmon wasn't using chromite.lib.metrics consistently.
Cc: ayatane@chromium.org pprabhu@chromium.org akes...@chromium.org
 Issue 741146  has been merged into this issue.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/google/home/chromeos-test/chromiumos/chromite/scripts/sysmon/__main__.py", line 23, in <module>
    from chromite.scripts.sysmon import net_metrics
  File "/usr/local/google/home/chromeos-test/chromiumos/chromite/venv/chromite/scripts/sysmon/net_metrics.py", line 31, in <module>
    units=metrics.MetricsDataUnits.BYTES)
AttributeError: 'module' object has no attribute 'MetricsDataUnits'
Status: Fixed (was: Started)
Project Member

Comment 13 by bugdroid1@chromium.org, Jul 14 2017

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/chromeos/chromeos-admin/+/9949295f9f405548f467628956818612114ad317

commit 9949295f9f405548f467628956818612114ad317
Author: Aviv Keshet <akeshet@chromium.org>
Date: Fri Jul 14 02:46:20 2017

Sign in to add a comment