Randomize host ordering in ForemanSharedNodeCloud.updateHostData()

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: