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. 24 Jan, 2020 5 commits
  2. 23 Jan, 2020 3 commits
  3. 22 Jan, 2020 6 commits
    • Tim Gross's avatar
      074f17a3
    • Drew Bailey's avatar
      Merge pull request #6968 from hashicorp/b-system-sched-plan-ineligible · 15b782c4
      Drew Bailey authored
      Return FailedTGAlloc metric instead of no node err
      15b782c4
    • Drew Bailey's avatar
      update changelog · abde9f9e
      Drew Bailey authored
      abde9f9e
    • Drew Bailey's avatar
      Return FailedTGAlloc metric instead of no node err · 264932da
      Drew Bailey authored
      If an existing system allocation is running and the node its running on
      is marked as ineligible, subsequent plan/applys return an RPC error
      instead of a more helpful plan result.
      
      This change logs the error, and appends a failedTGAlloc for the
      placement.
      264932da
    • Tim Gross's avatar
      e2e: ensure group script check tests interpolation (#6972) · 2a89e477
      Tim Gross authored
      Fixes a bug introduced in 0aa58b90 where we're writing a test file to
      a taskdir-interpolated location, which works when we `alloc exec` but
      not in the jobspec for a group script check.
      
      This changeset also makes the test safe to run multiple times by
      namespacing the file with the alloc ID, which has the added bonus of
      exercising our alloc interpolation code for group script checks.
      2a89e477
    • Tim Gross's avatar
      e2e: update framework to allow deploying Nomad (#6969) · 0b6b475e
      Tim Gross authored
      The e2e framework instantiates clients for Nomad/Consul but the
      provisioning of the actual Nomad cluster is left to Terraform. The
      Terraform provisioning process uses `remote-exec` to deploy specific
      versions of Nomad so that we don't have to bake an AMI every time we
      want to test a new version. But Terraform treats the resulting
      instances as immutable, so we can't use the same tooling to update the
      version of Nomad in-place. This is a prerequisite for upgrade testing.
      
      This changeset extends the e2e framework to provide the option of
      deploying Nomad (and, in the future, Consul/Vault) with specific
      versions to running infrastructure. This initial implementation is
      focused on deploying to a single cluster via `ssh` (because that's our
      current need), but provides interfaces to hook the test run at the
      start of the run, the start of each suite, or the start of a given
      test case.
      
      Terraform work includes:
      * provides Terraform output that written to JSON used by the framework
        to configure provisioning via `terraform output provisioning`.
      * provides Terraform output that can be used by test operators to
        configure their shell via `$(terraform output environment)`
      * drops `remote-exec` provisioning steps from Terraform
      * makes changes to the deployment scripts to ensure they can be run
        multiple times w/ different versions against the same host.
      0b6b475e
  4. 21 Jan, 2020 3 commits
    • Buck Doyle's avatar
      UI: Migrate to Storybook (#6507) · 9f86f5a1
      Buck Doyle authored
      I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future.
      
      My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary:
      • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them:
        ◦ charts were rendering with zero width
        ◦ the JSON viewer was rendering with empty content
      • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes:
        ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into
        ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties
      • some jiggery-pokery with anchor tags
        ◦ inert href='#' had to become href='javascript:;
        ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe
      
      Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞
      
      The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context.
      
      I chose to:
      • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook
      • keep Freestyle around for now for its palette and typeface components
      9f86f5a1
    • Tim Gross's avatar
      e2e: use valid jobspec for group check test (#6967) · 0aa58b90
      Tim Gross authored
      Group service checks cannot interpolate task fields, because the task
      fields are not available at the time the script check hook is created
      for the group service. When f31482ae was merged this e2e test began
      failing because we are now correctly matching the script check ID to
      the service ID, which revealed this jobspec was invalid.
      0aa58b90
    • Buck Doyle's avatar
      Update changelog · 1e628258
      Buck Doyle authored
      1e628258
  5. 20 Jan, 2020 1 commit
    • Buck Doyle's avatar
      ui: Change Run Job availability based on ACLs (#5944) · 3adb3cd1
      Buck Doyle authored
      This builds on API changes in #6017 and #6021 to conditionally turn off the
      “Run Job” button based on the current token’s capabilities, or the capabilities
      of the anonymous policy if no token is present.
      
      If you try to visit the job-run route directly, it redirects to the job list.
      3adb3cd1
  6. 17 Jan, 2020 1 commit
  7. 16 Jan, 2020 2 commits
    • Tim Higgison's avatar
      Update ecs.html.md · ae3030e2
      Tim Higgison authored
      ae3030e2
    • Tim Gross's avatar
      e2e: improve reusability of provisioning scripts (#6942) · 6c3a29a8
      Tim Gross authored
      This changeset is part of the work to improve our E2E provisioning
      process to allow our upgrade tests:
      
      * Move more of the setup into the AMI image creation so it's a little
       more obvious to provisioning config authors which bits are essential
       to deploying a specific version of Nomad.
      
      * Make the service file update do a systemd daemon-reload so that we
        can update an already-running cluster with the same script we use to
        deploy it initially.
      6c3a29a8
  8. 13 Jan, 2020 5 commits
  9. 10 Jan, 2020 4 commits
  10. 09 Jan, 2020 10 commits