Error message related to entry in the Factory logs
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.
#2 Updated by Lorena Lobato Pardavila 7 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.