Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42054

Randomize host ordering in ForemanSharedNodeCloud.updateHostData()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Critical Critical
    • node-sharing-plugin
    • None

      Currently the ordering of returned nodes is almost identical. This represent a huge issue when some of the free host is somehow broken. In that case we attempt to provision the same host and it always failed.

      If we randomize ordering in this structure, there is a chance (after each update loop) to obtain another host which satisfies canProvision() and the issue disappears.

            pajasoft Pavel Janoušek
            pajasoft Pavel Janoušek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: