Bug 1152182 - ugly traceback when ksmd is not found by pidof
Summary: ugly traceback when ksmd is not found by pidof
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: mom
Version: 3.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 3.5.1
Assignee: Adam Litke
QA Contact: Lukas Svaty
URL:
Whiteboard: sla
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-13 14:14 UTC by Dan Kenigsberg
Modified: 2016-02-10 19:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-21 16:13:36 UTC
oVirt Team: SLA
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 34378 0 master MERGED HostKSM: Gracefully handle ksmd pid lookup failure Never

Description Dan Kenigsberg 2014-10-13 14:14:58 UTC
Description of problem:
Exception in thread MOM:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 813, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/mom/__init__.py", line 27, in run
    host_monitor = HostMonitor(self.config)
  File "/usr/lib/python2.7/site-packages/mom/HostMonitor.py", line 41, in __init__
    self.properties, self.config)
  File "/usr/lib/python2.7/site-packages/mom/Collectors/Collector.py", line 88, in get_collectors
    collectors.append(getattr(module, name)(properties))
  File "/usr/lib/python2.7/site-packages/mom/Collectors/HostKSM.py", line 44, in __init__
    self.pid = int(Popen(['pidof', 'ksmd'], stdout=PIPE).communicate()[0])
ValueError: invalid literal for int() with base 10: ''


Version-Release number of selected component (if applicable):
mom-0.4.2-1.fc21.noarch

Comment 1 Adam Litke 2014-11-10 15:12:59 UTC
Merge as commit 4d8caedd6b23c33436f1da75d1e84e25a64f1e8d

Comment 2 Sandro Bonazzola 2015-01-21 16:13:36 UTC
oVirt 3.5.1 has been released and since this bug is targeted 3.5.1 and in modified state, it should be included in this release.
Please re-target and move nack to modified if this assumption is not valid for this bug.

Comment 3 Adam Litke 2015-02-03 22:02:05 UTC
It's part of mom-0.4.3 which is being used by ovirt-3.5.1


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