Bug 1370081

Summary: Deprecation warning about BaseException.message in a log
Product: [oVirt] mom Reporter: Martin Sivák <msivak>
Component: CoreAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: medium    
Version: 0.5.5CC: akrejcir, baptiste.agasse, bugs, dfediuck, mavital, mgoldboi, michal.skrivanek, rik.theys, sbonazzo
Target Milestone: ovirt-4.1.1Keywords: Triaged
Target Release: 0.5.9Flags: rule-engine: ovirt-4.0.z+
rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1413078 (view as bug list) Environment:
Last Closed: 2017-04-21 09:29:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1413078    

Description Martin Sivák 2016-08-25 09:17:42 UTC
Description of problem:

i get every minute a message in var log messages:

momd: /usr/lib/python2.7/site-packages/mom/Collectors/GuestMemory.py:52: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
momd: self.stats_error('getVmMemoryStats(): %s' % e.message)

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

oVirt Engine Version: 4.0.2.7-1.el7.centos

How reproducible:

Always

Reported by:

Wolfgang Bucher <wolfgang.bucher> using the ovirt mailing lists

Comment 1 Michal Skrivanek 2016-11-10 11:37:15 UTC
I'm requesting .z fix since it's annoying/useless and spams system logs as well(not just mom.log), increasing size, potentially affecting performance on super-busy systems

Comment 2 Sandro Bonazzola 2017-01-25 07:57:05 UTC
4.0.6 has been the last oVirt 4.0 release, please re-target this bug.

Comment 6 Artyom 2017-02-20 07:43:36 UTC
Verified on mom-0.5.9-1.el7ev.noarch

System runs with the new mom package more than one day, no DeprecationWarning: BaseException.message under the messages