Bug 1370081 - Deprecation warning about BaseException.message in a log
Summary: Deprecation warning about BaseException.message in a log
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: mom
Classification: oVirt
Component: Core
Version: 0.5.5
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ovirt-4.1.1
: 0.5.9
Assignee: Andrej Krejcir
QA Contact: Artyom
URL:
Whiteboard:
Depends On:
Blocks: 1413078
TreeView+ depends on / blocked
 
Reported: 2016-08-25 09:17 UTC by Martin Sivák
Modified: 2017-04-21 09:29 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
: 1413078 (view as bug list)
Environment:
Last Closed: 2017-04-21 09:29:24 UTC
oVirt Team: SLA
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
dfediuck: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 70639 0 master MERGED Fix DeprecationWarning for using BaseException.message 2017-01-17 16:25:07 UTC

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


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