Project

General

Profile

Bug #4577

glideFactoryMonitoring unable to write exception to log

Added by Burt Holzman over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Factory
Target version:
Start date:
08/26/2013
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

[2013-08-23 22:05:15,802] ERROR: glideFactory:60: aggregateStatus failed: 
Traceback (most recent call last):
  File "/usr/sbin/glideFactory.py", line 57, in aggregate_stats
    _ = glideFactoryMonitorAggregator.aggregateStatus(in_downtime)
  File "/usr/lib/python2.6/site-packages/glideinwms/factory/glideFactoryMonitorAggregator.py", line 376, in aggregateStatus
    "GAUGE",updated,val_dict)
  File "/usr/lib/python2.6/site-packages/glideinwms/factory/glideFactoryMonitoring.py", line 169, in write_rrd_multi
    self.log.exception("Failed to update %s: " % fname)

It looks like we need to pass the logSupport.log object into aggregateStatus and then further down into the glideFactoryMonitoring class.

History

#1 Updated by Burt Holzman over 7 years ago

Whoops, missed the last line of the paste -- the most important line!

[2013-08-23 22:05:15,802] ERROR: glideFactory:60: aggregateStatus failed: 
Traceback (most recent call last):
  File "/usr/sbin/glideFactory.py", line 57, in aggregate_stats
    _ = glideFactoryMonitorAggregator.aggregateStatus(in_downtime)
  File "/usr/lib/python2.6/site-packages/glideinwms/factory/glideFactoryMonitorAggregator.py", line 376, in aggregateStatus
    "GAUGE",updated,val_dict)
  File "/usr/lib/python2.6/site-packages/glideinwms/factory/glideFactoryMonitoring.py", line 169, in write_rrd_multi
    self.log.exception("Failed to update %s: " % fname)
AttributeError: 'NoneType' object has no attribute 'exception'

#2 Updated by Burt Holzman over 7 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Burt Holzman to Parag Mhashilkar

Fixed in commit:2c863f6.

It ain't pretty but it works.

#3 Updated by Parag Mhashilkar over 7 years ago

  • Status changed from Feedback to Closed
  • Assignee changed from Parag Mhashilkar to Burt Holzman

Looks ok. Merged it to master.

Also available in: Atom PDF