This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 14 Jun, 2021 1 commit
    • Tim Gross's avatar
      quotas: evaluate quota feasibility last in scheduler (#10753) · 9a1b0d2b
      Tim Gross authored
      The `QuotaIterator` is used as the source of nodes passed into feasibility
      checking for constraints. Every node that passes the quota check counts the
      allocation resources agains the quota, and as a result we count nodes which
      will be later filtered out by constraints. Therefore for jobs with
      constraints, nodes that are feasibility checked but fail have been counted
      against quotas. This failure mode is order dependent; if all the unfiltered
      nodes happen to be quota checked first, everything works as expected.
      
      This changeset moves the `QuotaIterator` to happen last among all feasibility
      checkers (but before ranking). The `QuotaIterator` will never receive filtered
      nodes so it will calculate quotas correctly.
      9a1b0d2b
  2. 23 Feb, 2021 6 commits
  3. 22 Feb, 2021 3 commits
    • Tim Gross's avatar
      deploymentwatcher: reset progress deadline on promotion (#10042) · 174c206b
      Tim Gross authored
      In a deployment with two groups (ex. A and B), if group A's canary becomes
      healthy before group B's, the deadline for the overall deployment will be set
      to that of group A. When the deployment is promoted, if group A is done it
      will not contribute to the next deadline cutoff. Group B's old deadline will
      be used instead, which will be in the past and immediately trigger a
      deployment progress failure. Reset the progress deadline when the job is
      promotion to avoid this bug, and to better conform with implicit user
      expectations around how the progress deadline should interact with promotions.
      174c206b
    • Seth Hoenig's avatar
      Merge pull request #10059 from hashicorp/b-cc-service-tags · fcf81ab5
      Seth Hoenig authored
      consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered
      fcf81ab5
    • Seth Hoenig's avatar
      consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered · e3af4695
      Seth Hoenig authored
      This PR fixes a bug where sidecar services would be re-registered into Consul every ~30
      seconds, caused by the parent service having its tags field set and the sidecar_service
      tags unset. Nomad would directly compare the tags between its copy of the sidecar service
      definition and the tags of the sidecar service reported by Consul. This does not work,
      because Consul will under-the-hood set the sidecar service tags to inherit the parent
      service tags if the sidecar service tags are unset. The comparison then done by Nomad
      would not match, if the parent sidecar tags are set.
      
      Fixes #10025
      e3af4695
  4. 19 Feb, 2021 1 commit
  5. 18 Feb, 2021 6 commits
  6. 17 Feb, 2021 4 commits
    • Buck Doyle's avatar
      Update Ember/Ember CLI to 3.20 (#9641) · e47ce425
      Buck Doyle authored
      This doesn’t include Ember Data, as we are still back on 3.12.
      
      Most changes are deprecation updates, linting fixes, and dependencies. It can
      be read commit-by-commit, though many of them are mechanical and skimmable.
      For the new linting exclusions, I’ve added them to the Tech Debt list.
      
      The decrease in test count is because linting is no longer included in ember test.
      
      There’s a new deprecation warning in the logs that can be fixed by updating Ember
      Power Select but when I tried that it caused it to render incorrectly, so I decided to
      ignore it for now and address it separately.
      e47ce425
    • Tim Gross's avatar
      docs: clarify type constraints for collections in locals · a68abe34
      Tim Gross authored
      HCL2 locals don't have type constraints, and the map syntax is interpreted as
      an object. So users may need to explictly convert to map for some functions.
      
      The `convert` function documentation was missing the required type constructor
      parameter for collections.
      a68abe34
    • Tim Gross's avatar
      docs: clarify that block labels can't be interpolated in HCL2 · 1a1e280b
      Tim Gross authored
      Block labels are not expressions so they can't be interpolated without hacks
      like `dynamic` blocks. Clarify this so that we don't confuse users who
      shouldn't need to dig into the subtle nuances between expressions and blocks.
      1a1e280b
    • Tim Gross's avatar
      db8ce300
  7. 16 Feb, 2021 4 commits
  8. 13 Feb, 2021 15 commits