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. 11 May, 2022 1 commit
    • Michael Schurter's avatar
      core: emit node evals only for sys jobs in dc · 9f70ede5
      Michael Schurter authored
      Whenever a node joins the cluster, either for the first time or after
      being `down`, we emit a evaluation for every system job to ensure all
      applicable system jobs are running on the node.
      
      This patch adds an optimization to skip creating evaluations for system
      jobs not in the current node's DC. While the scheduler performs the same
      feasability check, skipping the creation of the evaluation altogether
      saves disk, network, and memory.
      9f70ede5
  2. 26 Apr, 2022 4 commits
  3. 25 Apr, 2022 3 commits
  4. 22 Apr, 2022 19 commits
  5. 21 Apr, 2022 13 commits
    • Tim Gross's avatar
      E2E: make UIs runnable from any working directory (#12739) · cf913ba6
      Tim Gross authored
      The E2E test runner is running from the root of the Nomad
      repository. Make this run independent of the working directory for
      convenience of developers and the test runner.
      cf913ba6
    • Michael Schurter's avatar
      cli: add -json flag to support job commands (#12591) · 7af0c3c9
      Michael Schurter authored
      * cli: add -json flag to support job commands
      
      While the CLI has always supported running JSON jobs, its support has
      been via HCLv2's JSON parsing. I have no idea what format it expects the
      job to be in, but it's absolutely not in the same format as the API
      expects.
      
      So I ignored that and added a new -json flag to explicitly support *API*
      style JSON jobspecs.
      
      The jobspecs can even have the wrapping {"Job": {...}} envelope or not!
      
      * docs: fix example for `nomad job validate`
      
      We haven't been able to validate inside driver config stanzas ever since
      the move to task driver plugins. :sob:
      7af0c3c9
    • Tim Gross's avatar
      cli: detect directory when applying namespace spec file (#12738) · 42bcb74a
      Tim Gross authored
      The new `namespace apply` feature that allows for passing a namespace
      specification file detects the difference between an empty namespace
      and a namespace specification by checking if the file exists. For most
      cases, the file will have an extension like `.hcl` and so there's
      little danger that a user will apply a file spec when they intended to
      apply a file name.
      
      But because directory names typically don't include an extension,
      you're much more likely to collide when trying to `namespace apply` by
      name only, and then you get a confusing error message of the form:
      
         Failed to read file: read $namespace: is a directory
      
      Detect the case where the namespace name collides with a directory in
      the current working directory, and skip trying to load the directory.
      42bcb74a
    • Phil Renaud's avatar
      [ui, bugfix] Link fix for volumes where per_alloc=true (#12713) · a977577e
      Phil Renaud authored
      * Allocation page linkfix
      
      * fix added to task page and computed prop moved to allocation model
      
      * Fallback query added to task group when specific volume isnt knowable
      
      * Delog
      
      * link text reflects alloc suffix
      
      * Helper instead of in-template conditionals
      
      * formatVolumeName unit test
      
      * Removing unused helper import
      a977577e
    • Seth Hoenig's avatar
      Merge pull request #12736 from hashicorp/build-update-go-1.17.9 · f1fcd509
      Seth Hoenig authored
      build: update golang to 1.17.9
      f1fcd509
    • Seth Hoenig's avatar
    • Seth Hoenig's avatar
      Merge pull request #12737 from hashicorp/buid-update-ec2-instances · 82066218
      Seth Hoenig authored
      build: update ec2 instance profiles
      82066218
    • Seth Hoenig's avatar
      build: update ec2 instance profiles · 96b6a8d9
      Seth Hoenig authored
      using tools/ec2info
      96b6a8d9
    • Seth Hoenig's avatar
      build: update golang to 1.17.9 · 91d91e28
      Seth Hoenig authored
      91d91e28
    • Tim Gross's avatar
      docker: back out cgroup v2 OOM detection (#12735) · 55ca76e2
      Tim Gross authored
      When shutting down an allocation that ends up needing to be
      force-killed, we're getting a spurious "OOM Killed (137)" message on
      the task termination event. We introduced this as part of cgroups v2
      support because the Docker daemon isn't detecting the container status
      correctly. Although exit code 137 is the exit code we get for
      OOM-killed processes, that's because OOM kill is a `SIGKILL`. So any
      sigkilled process will get that exit code.
      55ca76e2
    • Tim Gross's avatar
      E2E: set longer timeout for CSI plugin alloc start (#12732) · 5c17f911
      Tim Gross authored
      The CSI plugin allocations take a while to be marked healthy,
      sometimes causing E2E test flakes during the setup phase of the
      tests. There's nothing CSI specific about marking plugin allocs
      healthy, as the plugin supervisor hook does all the fingerprinting in
      the postrun hook (the prestart hook just makes a couple of empty
      directories). The timeouts we're seeing may be because of where we're
      pulling the images from; most our jobs pull from a CDN-backed public
      registry whereas these are pulling from ECR. Set a 1min timeout for
      these to make sure we have enough time to pull the image and start the
      task.
      5c17f911
    • James Rasell's avatar
    • Tim Gross's avatar