Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-793

Repeated vcld processes are forked for 'deleted' processes which fail to initialize

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4
    • Component/s: vcld (backend)
    • Labels:
      None

      Description

      When vcld tries to process a request in the deleted state and the initialization of all the corresponding objects fails, the request state may be left as 'deleted' after the process exits. This causes vcld to fork a process over and over again.

      This will occur if there is a problem which causes the provisioning object to fail to initialize. As a result, State.pm::reservation_failed is called. This has a condition at the beginning which calls is_request_deleted. This returns true. The code then proceeds to only set the computer state to available and leaves the request state intact.

      This is a problem because the failure occurred before the request state was even updated to pending. vcld keeps trying to fork processes, all of which fail.

      A solution would be to catch this and set the computer state to failed and the request state to complete.

        Attachments

          Activity

            People

            • Assignee:
              arkurth Andrew Kurth
              Reporter:
              arkurth Andrew Kurth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: