Project

General

Profile

Bug #20861

Error message related to entry in the Factory logs

Added by Lorena Lobato Pardavila about 1 year ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Normal
Category:
-
Target version:
Start date:
09/17/2018
Due date:
% Done:

0%

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

Description

During the RC1 for v3.4.1, a message related to "Writing stats for entries" has been observed in the Factory logs(In this example: /var/log/gwms-factory/server/entry_ITB_FC_CE2/ITB_FC_CE2.err.log):

[2018-09-17 13:55:39,751] DEBUG: glideFactoryEntry:1037: Checking security credentials for client fermicloud364-fnal-gov_OSG_gWMSFrontend.main
[2018-09-17 13:55:40,021] WARNING: glideFactoryEntryGroup:533: Error writing stats for entry 'ITB_FC_CE2'
[2018-09-17 13:55:40,021] ERROR: glideFactoryEntryGroup:534: Error writing stats for entry 'ITB_FC_CE2':
Traceback (most recent call last):
  File "/usr/sbin/glideFactoryEntryGroup.py", line 530, in iterate
    entry.writeStats()
  File "/usr/lib/python2.7/site-packages/glideinwms/factory/glideFactoryEntry.py", line 716, in writeStats
    self.gflFactoryConfig.log_stats.write_job_info(scheddName=self.scheddName, collectorName=self.gfiFactoryConfig.factory_collector)
  File "/usr/lib/python2.7/site-packages/glideinwms/factory/glideFactoryMonitoring.py", line 1246, in write_job_info
    'condor_duration': jobstats['condor_duration'],
KeyError: 'condor_duration'
[2018-09-17 13:56:39,648] DEBUG: glideFactoryEntry:1037: Checking security credentials for client fermicloud364-fnal-gov_OSG_gWMSFrontend.main

It does not seem to affect the functioning but must be investigated for v3.5.

History

#1 Updated by Marco Mambelli 12 months ago

  • Assignee set to Lorena Lobato Pardavila

#2 Updated by Lorena Lobato Pardavila 11 months ago

  • Status changed from New to Feedback
  • Assignee changed from Lorena Lobato Pardavila to Marco Mascheroni

Python raises a KeyError whenever a dict() object is requested and the key is not in the dictionary (in this case, with condor_duration and stats from the dictionary of all jobs that have "Entered" the "Completed" states ). Replaced the assignments format a = adict[key]) with the get() method of the dictionary to make sure we return the value for the key.

Changes in v34/20861.

#3 Updated by Marco Mascheroni 7 months ago

  • Target version changed from v3_5 to v3_5_1

#4 Updated by Marco Mascheroni 3 months ago

  • Target version changed from v3_5_1 to v3_6_1

#5 Updated by Marco Mascheroni about 1 month ago

  • Target version changed from v3_6_1 to v3_6_2


Also available in: Atom PDF