Project

General

Profile

Bug #18739

Uninitialized variable caused skipping fix-rrd

Added by Marco Mambelli over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Urgent
Category:
-
Target version:
Start date:
01/12/2018
Due date:
% Done:

0%

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

Description

When upgrading a Frontend is necessary to run 'reconfig --fix-rrd' if something changed in the monitoring (e.g. in 3.2.20).
When this is skipped some values are not available in the RRD DB.
This was triggering a crash due to an incorrect try block.

[2018-01-10 14:56:02,932] ERROR: glideinFrontend:579: Exception occurred trying to spawn: 
Traceback (most recent call last):
  File "/usr/sbin/glideinFrontend", line 566, in main
    restart_interval, restart_attempts)
  File "/usr/sbin/glideinFrontend", line 355, in spawn
    restart_attempts, "run")
  File "/usr/sbin/glideinFrontend", line 205, in spawn_iteration
    fm_classad.setIdleJobCount(idle_jobs)
UnboundLocalError: local variable 'idle_jobs' referenced before assignment

History

#1 Updated by Marco Mambelli over 1 year ago

  • Status changed from New to Feedback
  • Assignee changed from Marco Mambelli to Dennis Box
  • Priority changed from Immediate to Urgent

changes in v3/188739
I escalated to error (no exception) and set a 0 value for the variable

#2 Updated by Marco Mambelli over 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Dennis Box to Marco Mambelli

PS Note the typo (double 8) in v3/188739

#3 Updated by Parag Mhashilkar over 1 year ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF