Uploaded image for project: 'CREAM'
  1. CREAM
  2. CREAM-99

Python error on ERT calculation: local variable 'est' referenced before assignment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.1, 1.14.5
    • Security Level: Public (Visbile by non-authn users.)
    • Labels:
      None

      Description

      Source: https://ggus.eu/ws/ticket_info.php?ticket=92826
      Duplicates: https://savannah.cern.ch/bugs/index.php?101038

      In the following case:

      1. no jobs from X VO is queued,
      2. no slots are free,
      3. no jobs from X VO is running

      the value for ERT is not calculated, so the an UnBoundLocalError is thrown:
      File "/usr/libexec/lcg-info-dynamic-scheduler", line 557, in <module>
      printGLUEData(bq, dndictglue1, pcaps, 1, logger)
      File "/usr/libexec/lcg-info-dynamic-scheduler", line 200, in printGLUEData
      ert = estimator.estimate(bq, vo, logger)
      File "/usr/lib/python2.6/site-packages/EstTT.py", line 72, in estimate
      return adjusted_ett(est, lrms.schedCycle)
      UnboundLocalError: local variable 'est' referenced before assignment

        Attachments

          Activity

            People

            Assignee:
            andreett Paolo Andreetto
            Reporter:
            andreett Paolo Andreetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: