Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of fix 'default' alias not added to interface specified by network_interface into release/1.4.x #18114

This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jun 6, 2023

  1. Configuration menu
    Copy the full SHA
    f0f4cbb View commit details
    Browse the repository at this point in the history
  2. node pools: implement HTTP API to list jobs in pool (#17431)

    Implements the HTTP API associated with the `NodePool.ListJobs` RPC, including
    the `api` package for the public API and documentation.
    
    Update the `NodePool.ListJobs` RPC to fix the missing handling of the special
    "all" pool.
    tgross authored Jun 6, 2023
    Configuration menu
    Copy the full SHA
    385dbfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    84e7cf3 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Configuration menu
    Copy the full SHA
    354d741 View commit details
    Browse the repository at this point in the history
  2. node pools: implement support in scheduler (#17443)

    Implement scheduler support for node pool:
    
    * When a scheduler is invoked, we get a set of the ready nodes in the DCs that
      are allowed for that job. Extend the filter to include the node pool.
    * Ensure that changes to a job's node pool are picked up as destructive
      allocation updates.
    * Add `NodesInPool` as a metric to all reporting done by the scheduler.
    * Add the node-in-pool the filter to the `Node.Register` RPC so that we don't
      generate spurious evals for nodes in the wrong pool.
    tgross authored Jun 7, 2023
    Configuration menu
    Copy the full SHA
    9a6078a View commit details
    Browse the repository at this point in the history
  3. build: update to go1.20.5 (#17451)

    Go released a security update to fix build-time code injection and execution via
    CGO. This doesn't impact already-released versions of Nomad, just the build
    toolchain, so we won't be releasing a Nomad security update to go with it.
    tgross authored Jun 7, 2023
    Configuration menu
    Copy the full SHA
    ceb3b4c View commit details
    Browse the repository at this point in the history
  4. client: fix client panic during drain cause by shutdown (#17450)

    During shutdown of a client with drain_on_shutdown there is a race between
    the Client ending the cgroup and the task's cpuset manager cleaning up
    the cgroup. During the path traversal, skip anything we cannot read, which
    avoids the nil DirEntry we try to dereference now.
    shoenig authored Jun 7, 2023
    Configuration menu
    Copy the full SHA
    225693a View commit details
    Browse the repository at this point in the history
  5. [ui] Parallelize ember tests (#17442)

    * Exam to parallelize tests
    
    * Logging to try to solve test flakiness
    
    * Logging in another failure
    
    * Hardening for one test and snapshot for another
    
    * Explicitly set the first one as the servicedAlloc instead of randomly picking
    
    * A wild CircleCI test failure appears
    
    * de-log
    philrenaud authored Jun 7, 2023
    Configuration menu
    Copy the full SHA
    408ab82 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. docker: stop network pause container of lost alloc after node restart (

    …#17455)
    
    This PR fixes a bug where the docker network pause container would not be
    stopped and removed in the case where a node is restarted, the alloc is
    moved to another node, the node comes back up. See the issue below for
    full repro conditions.
    
    Basically in the DestroyNetwork PostRun hook we would depend on the
    NetworkIsolationSpec field not being nil - which is only the case
    if the Client stays alive all the way from network creation to network
    teardown. If the node is rebooted we lose that state and previously
    would not be able to find the pause container to remove. Now, we manually
    find the pause container by scanning them and looking for the associated
    allocID.
    
    Fixes #17299
    shoenig authored Jun 9, 2023
    Configuration menu
    Copy the full SHA
    89ce092 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1a9fe9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be8f04e View commit details
    Browse the repository at this point in the history
  4. [ui] Don't show a service as healthy when its parent alloc is not run…

    …ning (#17465)
    
    * Fix: dont show a service as healthy when its parent alloc is not running
    
    * Test for Health Unknown
    philrenaud authored Jun 9, 2023
    Configuration menu
    Copy the full SHA
    667d002 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    1f1c0a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b94cb32 View commit details
    Browse the repository at this point in the history
  3. replication: fix potential panic during upgrades (#17476)

    If the authoritative region has been upgraded to a version of Nomad that has new
    replicated objects (such as ACL Auth Methods, ACL Binding Rules, etc.), the
    non-authoritative regions will start replicating those objects as soon as their
    leader is upgraded. If a server in the non-authoritative region is upgraded and
    then becomes the leader before all the other servers in the region have been
    upgraded, then it will attempt to write a Raft log entry that the followers
    don't understand. The followers will then panic.
    
    Add same the minimum version checks that we do for RPC writes to the leader's
    replication loop.
    tgross authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    cff3c9b View commit details
    Browse the repository at this point in the history
  4. node pools: prevent panic on upsert during upgrades (#17474)

    Whenever we write a Raft log entry for node pools, we need to first make sure
    that all servers can safely apply the log without panicking. Gate upsert and
    delete RPCs on all servers being upgraded to the minimum version.
    tgross authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    95b6d7a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ca86582 View commit details
    Browse the repository at this point in the history
  6. node pools: replicate from authoritative region (#17456)

    Upserts and deletes of node pools are forwarded to the authoritative region,
    just like we do for namespaces, quotas, ACL policies, etc. Replicate node pools
    from the authoritative region.
    tgross authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    5bb6e57 View commit details
    Browse the repository at this point in the history
  7. ci: remove circleci (#17502)

    all of our workflows are in GitHub Actions now 🎉
    gulducat authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    5733fa7 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. conf: Add preemption_config to the server extra HCL keys which should…

    … be removed (#17481)
    
    Add preemption_config to the set of keys which should be pruned from the server
    config as described in #17480.
    stswidwinski authored Jun 13, 2023
    Configuration menu
    Copy the full SHA
    887d306 View commit details
    Browse the repository at this point in the history
  2. node pools: protect against deleting occupied pools (#17457)

    We don't want to delete node pools that have nodes or non-terminal jobs. Add a
    check in the `DeleteNodePools` RPC to check locally and in federated regions,
    similar to how we check that it's safe to delete namespaces.
    tgross authored Jun 13, 2023
    Configuration menu
    Copy the full SHA
    2c77bf7 View commit details
    Browse the repository at this point in the history
  3. node pool: node pool upsert on multiregion node register (#17503)

    When registering a node with a new node pool in a non-authoritative
    region we can't create the node pool because this new pool will not be
    replicated to other regions.
    
    This commit modifies the node registration logic to only allow automatic
    node pool creation in the authoritative region.
    
    In non-authoritative regions, the client is registered, but the node
    pool is not created. The client is kept in the `initialing` status until
    its node pool is created in the authoritative region and replicated to
    the client's region.
    lgfa29 authored Jun 13, 2023
    Configuration menu
    Copy the full SHA
    5db9e64 View commit details
    Browse the repository at this point in the history
  4. node pools: implement node pool init command (#17479)

    Implement a `nomad node pool init` command that generates an example spec file
    in either HCL or JSON format.
    tgross authored Jun 13, 2023
    Configuration menu
    Copy the full SHA
    0aeeaf1 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    b30f76e View commit details
    Browse the repository at this point in the history
  2. client: fix panic on alloc stop in non-Linux environments (#17515)

    Provide a no-op implementation of the drivers.DriverNetoworkManager
    interface to be used by systems that don't support network isolation and
    prevent panics where a network manager is expected.
    lgfa29 authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    30921a1 View commit details
    Browse the repository at this point in the history
  3. [ui] Job status panel: tooltips on individual allocs (#17514)

    * Tooltip on individual allocs in the panel
    
    * Isolate allocation cells to their own component
    
    * Tipsy trigger
    
    * Aria label for failed-or-lost tooltips
    
    * Buildfix
    
    * Try adding percy exec back to exam run
    philrenaud authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    ee8cf15 View commit details
    Browse the repository at this point in the history
  4. docs: note namespace apply/delete behaviors, fix metric (#17527)

    This changeset includes some fixes to documentation discovered while working on
    node pools, but we didn't want to include in the node pool PRs so they can get
    backported easily:
    
    * namespace apply/delete commands are forwarded to the authoritative region
    * deleting a namespace requires there are no non-terminal jobs in any of the
      federated regions
    * fixed a typo in the name of the `nomad.client.allocated.disk` metric
    tgross authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    6bd1ebe View commit details
    Browse the repository at this point in the history
  5. cli: fix missing -quiet flag for var init (#17526)

    The `var init` command was intended to have support for a `-quiet` flag but it
    was not documented and never parsed.
    tgross authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    0ac85db View commit details
    Browse the repository at this point in the history
  6. node pools: add pool as label on client metrics (#17528)

    This changeset adds the node pool as a label anywhere we're already emitting
    labels with additional information such as node class or ID about the client.
    tgross authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    068d0ea View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eee2315 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    57f31eb View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. docs: add missing client.allocs metrics (#17540)

    The docs were missing counter metrics emitted by the task runner around task
    state changes.
    tgross authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    288ff2f View commit details
    Browse the repository at this point in the history
  2. tests: set timeout on test-ui (#17549)

    This seems to finish in about 20 minutes, or run for 6+ hours until hitting
    a default timeout. Set a timeout to 30 minutes so we aren't wasting time
    and runners.
    shoenig authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    55e224f View commit details
    Browse the repository at this point in the history
  3. build(deps-dev): bump webpack from 5.69.1 to 5.86.0 in /ui (#17488)

    Bumps [webpack](https://github.com/webpack/webpack) from 5.69.1 to 5.86.0.
    - [Release notes](https://github.com/webpack/webpack/releases)
    - [Commits](webpack/webpack@v5.69.1...v5.86.0)
    
    ---
    updated-dependencies:
    - dependency-name: webpack
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    ea2cdc0 View commit details
    Browse the repository at this point in the history
  4. Fix DevicesSets being removed when cpusets are reloaded with cgroup v2 (

    #17535)
    
    * Fix DevicesSets being removed when cpusets are reloaded with cgroup v2
    
    This meant that if any allocation was created or removed, all
    active DevicesSets were removed from all cgroups of all tasks.
    
    This was most noticeable with "exec" and "raw_exec", as it meant
    they no longer had access to /dev files.
    
    * e2e: add test for verifying cgroups do not interfere with access to devices
    
    ---------
    
    Co-authored-by: Seth Hoenig <shoenig@duck.com>
    TrueBrain and shoenig authored Jun 15, 2023
    1 Configuration menu
    Copy the full SHA
    a1a5241 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    65db030 View commit details
    Browse the repository at this point in the history
  6. Minimum viable fix for Storybook

    Stories that used named blocked wouldn't render the named blocks.
    Evidently this was due to using a customized template renderer that
    became incompatible when Ember was upgraded.
    DingoEatingFuzz committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    14c297e View commit details
    Browse the repository at this point in the history
  7. Tidy up Storybook related packages

    It's unfortunate having to point to a hash for ember-cli-storybook, but
    there hasn't been a release since the environment PR merged. At least
    this is better than pointing at a fork?
    DingoEatingFuzz committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    d6c1813 View commit details
    Browse the repository at this point in the history
  8. Free your mind of the babel and the packed web

    ember-cli-storybook and storybook itself has progressed to the point
    where the DIY configs aren't necessary. It's all swept under the
    `framework: '@storybook/ember'` config in main.js. Yay!
    DingoEatingFuzz committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    d394aca View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e2731d8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    81f7e53 View commit details
    Browse the repository at this point in the history
  11. e2e: purge bionic packer image scripts (#17559)

    Bionic is dead, long live the Jammy!
    shoenig authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    6b28345 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    18ed171 View commit details
    Browse the repository at this point in the history
  13. e2e: cleanup podman installation in jammy image (#17558)

    * e2e: cleanup podman installation in jammy image
    
    The original steps were copied over from the bionic image and does a lot
    of hoop jumping we do not need anymore.
    
    For the moment just hard-code installing the v0.4.2 version of the driver,
    but I may follow up and modify hc-install to support installing @latest
    like go itself.
    
    * use releases for hc-install
    shoenig authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    6975409 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. Configuration menu
    Copy the full SHA
    2d7bead View commit details
    Browse the repository at this point in the history
  2. e2e: modernize podman test suite (#17564)

    Use the new style of e2e test for the podman suite ... which is all of
    one test case that was skipped out. Turn the case back on, and we will
    add more tests in the near future.
    shoenig authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    f5fcaba View commit details
    Browse the repository at this point in the history
  3. node pools: support node.pool constraint in scheduler (#17548)

    Although most of the time jobs will be assigned to a single node pool, users may
    want to set the node pool to "all" and then constraint to a subset of node
    pools. Add support for setting a contraint like `${node.pool}`.
    tgross authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    6ea36f2 View commit details
    Browse the repository at this point in the history
  4. node pools: namespace integration (#17562)

    Add structs and fields to support the Nomad Pools Governance Enterprise
    feature of controlling node pool access via namespaces.
    
    Nomad Enterprise allows users to specify a default node pool to be used
    by jobs that don't specify one. In order to accomplish this, it's
    necessary to distinguish between a job that explicitly uses the
    `default` node pool and one that did not specify any.
    
    If the `default` node pool is set during job canonicalization it's
    impossible to do this, so this commit allows a job to have an empty node
    pool value during registration but sets to `default` at the admission
    controller mutator.
    
    In order to guarantee state consistency the state store validates that
    the job node pool is set and exists before inserting it.
    lgfa29 authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    4f7c38b View commit details
    Browse the repository at this point in the history
  5. cli: prevent panic if job node pool is nil (#17571)

    If the `nomad` CLI is used to access a cluster running a version that
    does not include node pools the command will `nil` panic when trying to
    resolve the job's node pool.
    lgfa29 authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    80e1ad6 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2023

  1. Use the legacy openssl provider for backcompat

    Node v18 uses a newer version of openssl than webpack 4 is compatible
    with. This is the quickest fix.
    
    The ideal fix would be to upgrade webpack to v5 but the state of Ember,
    Storybook, and generally just JS dep management makes this not an
    option.
    DingoEatingFuzz committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    51d72db View commit details
    Browse the repository at this point in the history
  2. Merge pull request #17573 from hashicorp/f/legacy-openssl

    UI Dev Tools: Use the legacy openssl provider for backcompat
    DingoEatingFuzz authored Jun 17, 2023
    Configuration menu
    Copy the full SHA
    a6c8a56 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. Configuration menu
    Copy the full SHA
    8953e78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    219f5dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e29ad68 View commit details
    Browse the repository at this point in the history
  4. np: scheduler configuration updates (#17575)

    * jobspec: rename node pool scheduler_configuration
    
    In HCL specifications we usually call configuration blocks `config`
    instead of `configuration`.
    
    * np: add memory oversubscription config
    
    * np: make scheduler config ENT
    lgfa29 authored Jun 19, 2023
    Configuration menu
    Copy the full SHA
    6c64847 View commit details
    Browse the repository at this point in the history
  5. [ui, deployments] Promote Canary and Unhealthy Allocations in the dep…

    …loyment status panel (#17547)
    
    * A wild health status appears
    
    * autoPromote notification conditions
    
    * Legend fixes etc
    
    * Acceptance tests for new canary alerts
    philrenaud authored Jun 19, 2023
    Configuration menu
    Copy the full SHA
    94cb129 View commit details
    Browse the repository at this point in the history
  6. [COMPLIANCE] Add Copyright and License Headers (#17596)

    Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
    hashicorp-copywrite[bot] authored Jun 19, 2023
    Configuration menu
    Copy the full SHA
    4e2d131 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. ci: run 'make check' as reusable workflow (#17600)

    Some of the paths ignored by `test-core.yaml` need to be checked by
    `make check`. The `checks.yaml` workflow run on these paths and can also
    be used as a reusable workflow.
    lgfa29 authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    354e4b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b707b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9d9cad1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4beb12 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2520cb2 View commit details
    Browse the repository at this point in the history
  6. e2e: fix windows client docker (#17572)

    the windows docker install script stopped working.
    
    after trying various things to fix the script,
    I opted instead for a base image that comes with
    docker already installed.
    
    error output during build was:
      Installing Docker.
      WARNING: Cannot find path 'C:\Users\Administrator\AppData\Local\Temp\DockerMsftProvider\DockerDefault_DockerSearchIndex.json' because it does not exist.
      WARNING: Cannot bind argument to parameter 'downloadURL' because it is an empty string.
      WARNING: The property 'AbsoluteUri' cannot be found on this object. Verify that the property exists.
      WARNING: The property 'RequestMessage' cannot be found on this object. Verify that the property exists.
      Failed to install Docker.
      Install-Package : No match was found for the specified search criteria and package name 'docker'.
    gulducat authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    748aea1 View commit details
    Browse the repository at this point in the history
  7. scheduler: tolerate having only one dynamic port available (#17619)

    If the dynamic port range for a node is set so that the min is equal to the max,
    there's only one port available and this passes config validation. But the
    scheduler panics when it tries to pick a random port. Only add the randomness
    when there's more than one to pick from.
    
    Adds a test for the behavior but also adjusts the commentary on a couple of the
    existing tests that made it seem like this case was already covered if you
    didn't look too closely.
    
    Fixes: #17585
    tgross authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    f73b454 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5e4161f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ea8bf8e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    59d5a41 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #17624 from hashicorp/b/ui-audit-workflow

    [UI, CI] Bump the ember-test-audit workflow to node 18
    DingoEatingFuzz authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    8e2cb4c View commit details
    Browse the repository at this point in the history
  12. New generic exam:parallel yarn script

    This is intended to be used like `yarn exam:parallel -- more --options`
    
    This way a split and partition can be provided by CI without CI also
    needing to deal with percy details.
    DingoEatingFuzz committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    8a19375 View commit details
    Browse the repository at this point in the history
  13. Move the ember exam workflow into its own reusable job

    This will be called N times by the parent test-ui script.
    DingoEatingFuzz committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    ad2c8d5 View commit details
    Browse the repository at this point in the history
  14. Use a matrix strategy to run exam partitions

    This will run partitions and parallel only after linting passes.
    DingoEatingFuzz committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    7bbc51a View commit details
    Browse the repository at this point in the history
  15. Rip out the xUnit test reporter

    This was used to integrate with Circle CI's deeper test reporting
    (failures, flakes, reporting). It's strictly vestigial now that we're on
    GHA.
    DingoEatingFuzz committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    7d80d0e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    167f5bd View commit details
    Browse the repository at this point in the history
  17. Simplify workflows

    After renovating everything, it's evident that the ember-exam
    sub-workflow can be inlined without any pesky duplication.
    DingoEatingFuzz committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    d5767ac View commit details
    Browse the repository at this point in the history
  18. Tag the GHA run for percy to use

    Percy uses this to stitch parallel test runs back together into a single
    report.
    DingoEatingFuzz committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    6c53c1e View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Merge pull request #17626 from hashicorp/f/ui-test-splitting

    [UI, CI] Test splitting
    DingoEatingFuzz authored Jun 21, 2023
    Configuration menu
    Copy the full SHA
    04042c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    102f732 View commit details
    Browse the repository at this point in the history
  3. [ui] General status for steady-state jobs (#17599)

    * Degraded vs Healthy etc. status
    
    * Standardize the look of a deploying status panel
    
    * badge styles
    
    * remove job.status from title component in favour of in-panel status
    
    * Remove a redundant check
    
    * re-attrd fail-deployment button considered
    philrenaud authored Jun 21, 2023
    Configuration menu
    Copy the full SHA
    873acf0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fe49f22 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Configuration menu
    Copy the full SHA
    f4c7182 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c192532 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b197a9e View commit details
    Browse the repository at this point in the history
  4. ui: remove redundant columns from child job table (#17645)

    Namespace, job type, and priority are already available from the parent
    job header, so displaying them in the table caused it to be too crowded.
    lgfa29 authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    a29048b View commit details
    Browse the repository at this point in the history
  5. ui: add tooltips to the Topology labels (#17647)

    Add tooltips to labels in nodes and datacenters for the Topology view
    page to clarify what each value represents.
    lgfa29 authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    df37f2d View commit details
    Browse the repository at this point in the history
  6. client: do not disable memory swappiness if kernel does not support it (

    #17625)
    
    * client: do not disable memory swappiness if kernel does not support it
    
    This PR adds a workaround for very old Linux kernels which do not support
    the memory swappiness interface file. Normally we write a "0" to the file
    to explicitly disable swap. In the case the kernel does not support it,
    give libcontainer a nil value so it does not write anything.
    
    Fixes #17448
    
    * client: detect swappiness by writing to the file
    
    * fixup changelog
    
    Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
    shoenig and jrasell authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    33ac5ed View commit details
    Browse the repository at this point in the history
  7. ui: display mirage scenario in header label (#17649)

    This information is useful when switching between different scenarios
    for testing.
    lgfa29 authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    876117f View commit details
    Browse the repository at this point in the history
  8. release pipeline: release workflow needs write permissions (#17669)

    In #17103 we set read-only permissions on all the workflows. Unfortunately we
    missed that the `release` workflow makes git commits and pushes them to the
    repository, so it needs to have write permissions.
    tgross authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b23fe72 View commit details
    Browse the repository at this point in the history
  9. ci: fix some flaky UI tests (#17648)

    These tests would fail depending on the value of the seed used.
    lgfa29 authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    28206f7 View commit details
    Browse the repository at this point in the history
  10. client: send node secret with every client-to-server RPC (#16799)

    In Nomad 1.5.3 we fixed a security bug that allowed bypass of ACL checks if the
    request came thru a client node first. But this fix broke (knowingly) the
    identification of many client-to-server RPCs. These will be now measured as if
    they were anonymous. The reason for this is that many client-to-server RPCs do
    not send the node secret and instead rely on the protection of mTLS.
    
    This changeset ensures that the node secret is being sent with every
    client-to-server RPC request. In a future version of Nomad we can add
    enforcement on the server side, but this was left out of this changeset to
    reduce risks to the safe upgrade path.
    
    Sending the node secret as an auth token introduces a new problem during initial
    introduction of a client. Clients send many RPCs concurrently with
    `Node.Register`, but until the node is registered the node secret is unknown to
    the server and will be rejected as invalid. This causes permission denied
    errors.
    
    To fix that, this changeset introduces a gate on having successfully made a
    `Node.Register` RPC before any other RPCs can be sent (except for `Status.Ping`,
    which we need earlier but which also ignores the error because that handler
    doesn't do an authorization check). This ensures that we only send requests with
    a node secret already known to the server. This also makes client startup a
    little easier to reason about because we know `Node.Register` must succeed
    first, and it should make for a good place to hook in future plans for secure
    introduction of nodes. The tradeoff is that an existing client that has running
    allocs will take slightly longer (a second or two) to transition to ready after
    a restart, because the transition in `Node.UpdateStatus` is gated at the server
    by first submitting `Node.UpdateAlloc` with client alloc updates.
    tgross authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    deae9bb View commit details
    Browse the repository at this point in the history
  11. ci: set continue-on-error: true on test-ui (#17646)

    Since the matrix exercises different test cases, it's better to allow
    all partitions to completely run, even if one of them fails, so it's
    easier to catch multiple test failures.
    lgfa29 authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    717e156 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    085a0b0 View commit details
    Browse the repository at this point in the history
  13. ui: create node pool model (#17301)

    Co-authored-by: Phil Renaud <phil@riotindustries.com>
    Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
    3 people authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    4da63e3 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    13ee343 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e617962 View commit details
    Browse the repository at this point in the history
  16. release pipeline: fix ref arguments in invoking workflow (#17684)

    Although #17669 fixed the permissions of the release pipeline to push new
    commits, there was still an error when invoking the `build` workflow.
    
    The format of the reference was changed in #17103 such that we're sending the
    git ref (a SHA) and not the "--ref" argument required by the GH actions workflow
    API, which in this case is apparently specially defined as "The branch or tag
    name which contains the version of the workflow file you'd like to run" and not
    what git calls a "ref".
    
    This changeset:
    * Removes the third-party action entirely so that we're using GitHub's own
      tooling. This removes one more thing from the supply chain to pin and ensures a
      1:1 mapping of args to what's documented by GitHub.
    * Removes the `--ref` argument entirely, which causes it to default to the
      current branch that the release workflow is running on (which is always what
      we want).
    tgross authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c3d8157 View commit details
    Browse the repository at this point in the history
  17. [ui] Versions added to deploying status panel (#17629)

    * Versions added to deploying status panel
    
    * Wrap the running and healthy title in a span
    
    * Versions in the deployment UI next to titles
    
    * Version count and label styles updated
    philrenaud authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    908ce47 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b4a72b5 View commit details
    Browse the repository at this point in the history
  19. Standard usage story

    DingoEatingFuzz committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    7e1516b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    ea71321 View commit details
    Browse the repository at this point in the history
  21. Full TopoViz story

    DingoEatingFuzz committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    e7952b6 View commit details
    Browse the repository at this point in the history
  22. TopoViz story that is sourced from Mirage

    Unfortunately due to the split build nature of the ember app and
    storybook it isn't possible to import mirage in the storybook context to
    control scenarios via a knob :(
    DingoEatingFuzz committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    2e2e396 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Configuration menu
    Copy the full SHA
    2dec8ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f7dc6a View commit details
    Browse the repository at this point in the history
  3. e2e: create a v3/ set of packages for creating Nomad e2e tests (#17620)

    * e2e: create a v3/ set of packages for creating Nomad e2e tests
    
    This PR creates an experimental set of packages under `e2e/v3/` for crafting
    Nomad e2e tests. Unlike previous generations, this is an attempt at providing
    a way to create tests in a declarative (ish) pattern, with a focus on being
    easy to use, easy to cleanup, and easy to debug.
    
    @shoenig is just trying this out to see how it goes.
    
    Lots of features need to be implemented.
    Many more docs need to be written.
    Breaking changes are to be expected.
    There are known and unknown bugs.
    No warranty.
    
    Quick run of `example` with verbose logging.
    
    ```shell
    ➜ NOMAD_E2E_VERBOSE=1 go test -v
    === RUN   TestExample
    === RUN   TestExample/testSleep
        util3.go:25: register (service) job: "sleep-809"
        util3.go:25: checking eval: 9f0ae04d-7259-9333-3763-44d0592d03a1, status: pending
        util3.go:25: checking eval: 9f0ae04d-7259-9333-3763-44d0592d03a1, status: complete
        util3.go:25: checking deployment: a85ad2f8-269c-6620-d390-8eac7a9c397d, status: running
        util3.go:25: checking deployment: a85ad2f8-269c-6620-d390-8eac7a9c397d, status: running
        util3.go:25: checking deployment: a85ad2f8-269c-6620-d390-8eac7a9c397d, status: running
        util3.go:25: checking deployment: a85ad2f8-269c-6620-d390-8eac7a9c397d, status: running
        util3.go:25: checking deployment: a85ad2f8-269c-6620-d390-8eac7a9c397d, status: successful
        util3.go:25: deployment a85ad2f8-269c-6620-d390-8eac7a9c397d was a success
        util3.go:25: deregister job "sleep-809"
        util3.go:25: system gc
    === RUN   TestExample/testNamespace
        util3.go:25: apply namespace "example-291"
        util3.go:25: register (service) job: "sleep-967"
        util3.go:25: checking eval: a2a2303a-adf1-2621-042e-a9654292e569, status: pending
        util3.go:25: checking eval: a2a2303a-adf1-2621-042e-a9654292e569, status: complete
        util3.go:25: checking deployment: 3395e9a8-3ffc-8990-d5b8-cc0ce311f302, status: running
        util3.go:25: checking deployment: 3395e9a8-3ffc-8990-d5b8-cc0ce311f302, status: running
        util3.go:25: checking deployment: 3395e9a8-3ffc-8990-d5b8-cc0ce311f302, status: running
        util3.go:25: checking deployment: 3395e9a8-3ffc-8990-d5b8-cc0ce311f302, status: successful
        util3.go:25: deployment 3395e9a8-3ffc-8990-d5b8-cc0ce311f302 was a success
        util3.go:25: deregister job "sleep-967"
        util3.go:25: system gc
        util3.go:25: cleanup namespace "example-291"
    === RUN   TestExample/testEnv
        util3.go:25: register (batch) job: "env-582"
        util3.go:25: checking eval: 600f3bce-ea17-6d13-9d20-9d9eb2a784f7, status: pending
        util3.go:25: checking eval: 600f3bce-ea17-6d13-9d20-9d9eb2a784f7, status: complete
        util3.go:25: deregister job "env-582"
        util3.go:25: system gc
    --- PASS: TestExample (10.08s)
        --- PASS: TestExample/testSleep (5.02s)
        --- PASS: TestExample/testNamespace (4.02s)
        --- PASS: TestExample/testEnv (1.03s)
    PASS
    ok      github.com/hashicorp/nomad/e2e/example  10.079s
    ```
    
    * cluster3: use filter for kernel.name instead of filtering manually
    shoenig authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    5b5fbc0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ced6c58 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #17691 from hashicorp/f/missing-chart-stories

    [UI] Missing chart stories
    DingoEatingFuzz authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    ed51605 View commit details
    Browse the repository at this point in the history
  6. Add disable_file parameter to job's vault stanza (#13343)

    This complements the `env` parameter, so that the operator can author
    tasks that don't share their Vault token with the workload when using 
    `image` filesystem isolation. As a result, more powerful tokens can be used 
    in a job definition, allowing it to use template stanzas to issue all kinds of 
    secrets (database secrets, Vault tokens with very specific policies, etc.), 
    without sharing that issuing power with the task itself.
    
    This is accomplished by creating a directory called `private` within
    the task's working directory, which shares many properties of
    the `secrets` directory (tmpfs where possible, not accessible by
    `nomad alloc fs` or Nomad's web UI), but isn't mounted into/bound to the
    container.
    
    If the `disable_file` parameter is set to `false` (its default), the Vault token
    is also written to the NOMAD_SECRETS_DIR, so the default behavior is
    backwards compatible. Even if the operator never changes the default,
    they will still benefit from the improved behavior of Nomad never reading
    the token back in from that - potentially altered - location.
    grembo authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    6f04b91 View commit details
    Browse the repository at this point in the history
  7. docs: split out unsupported versions in changelog (#17704)

    Our changelog has become large enough that GitHub's rendering is very slow,
    resulting in error pages ("angry unicorns"). Split out the older unsupported
    versions of Nomad into their own file so that we only need to render the most
    recent versions, while keeping the older versions relatively searchable by
    having them in a single file.
    tgross authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    8dca363 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6b70896 View commit details
    Browse the repository at this point in the history
  9. np: fix list of jobs for node pool all (#17705)

    Unlike nodes, jobs are allowed to be registered in the node pool `all`,
    in which case all nodes are used for evaluating placements. When listing
    jobs for the `all` node pool only those that are explicitly in this node
    pool should be returned.
    lgfa29 authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    aea6146 View commit details
    Browse the repository at this point in the history
  10. build: add Docker image (#17017)

    Co-authored-by: Daniel Kimsey <90741+dekimsey@users.noreply.github.com>
    lgfa29 and dekimsey authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    b7c2d65 View commit details
    Browse the repository at this point in the history
  11. api: prevent panic on job plan (#17689)

    Check for a nil job ID to prevent a panic when calling Jobs().Plan().
    lgfa29 authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    276c69b View commit details
    Browse the repository at this point in the history
  12. docs: clarify drain's -force flag behavior with system/CSI jobs (#1…

    …7703)
    
    If you use `nomad node drain -force`, the drain deadline is set to -1ns. If you
    have not prevented system and CSI node plugin allocations from being drained
    with `-ignore-system`, they will be immediately drained as well. This is
    typically not safe for CSI node plugins.
    
    Also fix some broken links.
    
    Fixes: #17696
    tgross authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    fc611fc View commit details
    Browse the repository at this point in the history
  13. cli: fix broken node pool jobs test (#17715)

    In #17705 we fixed a bug in the treatment of the "all" node pool for the `node
    pool jobs` command but missed a test in the CLI.
    tgross authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    5552141 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. drivers: OOM kill logging for Docker driver (#17518)

    Explicit error log of the docker ID and container image name
    vxjohanforssell authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    5b46b74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    807907e View commit details
    Browse the repository at this point in the history
  3. build(deps): bump github.com/opencontainers/runtime-spec (#17719)

    Bumps [github.com/opencontainers/runtime-spec](https://github.com/opencontainers/runtime-spec) from 1.0.3-0.20210326190908-1c3f411f0417 to 1.1.0-rc.3.
    - [Release notes](https://github.com/opencontainers/runtime-spec/releases)
    - [Changelog](https://github.com/opencontainers/runtime-spec/blob/main/ChangeLog)
    - [Commits](https://github.com/opencontainers/runtime-spec/commits/v1.1.0-rc.3)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/opencontainers/runtime-spec
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    1d4f886 View commit details
    Browse the repository at this point in the history
  4. adjust prioritized client updates (#17541)

    In #17354 we made client updates prioritized to reduce client-to-server
    traffic. When the client has no previously-acknowledged update we assume that
    the update is of typical priority; although we don't know that for sure in
    practice an allocation will never become healthy quickly enough that the first
    update we send is the update saying the alloc is healthy.
    
    But that doesn't account for allocations that quickly fail in an unrecoverable
    way because of allocrunner hook failures, and it'd be nice to be able to send
    those failure states to the server more quickly. This changeset does so and adds
    some extra comments on reasoning behind priority.
    tgross authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    78f4f76 View commit details
    Browse the repository at this point in the history
  5. e2e: refactor pids isolation tests (#17717)

    This PR refactors some old PID isolation tests to make use of the e2e/v3
    packages. Should be quite a bit easier to read. Adds 'alloc exec' capability
    to the jobs3 package.
    shoenig authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    37df529 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    09cc4b1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f4385cc View commit details
    Browse the repository at this point in the history
  8. [COMPLIANCE] Add Copyright and License Headers (#17732)

    Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
    hashicorp-copywrite[bot] authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    d778ecf View commit details
    Browse the repository at this point in the history
  9. [ui] alignment and spacing for job status panel (#17708)

    * CSS alignment and spacing for job status panel
    
    * Only fade the count, not the legend icon, when count is 0
    
    * Unrounded version corners
    
    * changelog
    
    * css has to only remove border radius when count is present
    
    * Seed stabilization for services test
    
    * Try consolidating the testfixes from before
    
    * Total test isolation and bonus logs
    
    * Drop the isolation but keep the logs
    
    * Remove bonus logging
    philrenaud authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    d20faf5 View commit details
    Browse the repository at this point in the history
  10. deploymentwatcher: fail early whenever possible (#17341)

    Given a deployment that has a `progress_deadline`, if a task group runs
    out of reschedule attempts, allow it to fail at this time instead of
    waiting until the `progress_deadline` is reached.
    
    Fixes: #17260
    nicoche authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    a9135bc View commit details
    Browse the repository at this point in the history
  11. Update allocations.go (#17726)

    * Update allocations.go
    
    updated missing client status "unknown" #17688
    
    * changelog
    
    * Update .changelog/17726.txt
    
    adding relevant desc.
    
    Co-authored-by: Seth Hoenig <shoenig@duck.com>
    
    ---------
    
    Co-authored-by: Seth Hoenig <shoenig@duck.com>
    sejalapeno and shoenig authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    05c84d6 View commit details
    Browse the repository at this point in the history
  12. drivers/docker: refactor use of clients in docker driver (#17731)

    * drivers/docker: refactor use of clients in docker driver
    
    This PR refactors how we manage the two underlying clients used by the
    docker driver for communicating with the docker daemon. We keep two clients
    - one with a hard-coded timeout that applies to all operations no matter
    what, intended for use with short lived / async calls to docker. The other
    has no timeout and is the responsibility of the caller to set a context
    that will ensure the call eventually terminates.
    
    The use of these two clients has been confusing and mistakes were made
    in a number of places where calls were making use of the wrong client.
    
    This PR makes it so that a user must explicitly call a function to get
    the client that makes sense for that use case.
    
    Fixes #17023
    
    * cr: followup items
    shoenig authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    ec4fa55 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d06dfd2 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Update checklist-rpc-endpoint.md (#17698)

    * Update checklist-rpc-endpoint.md
    
    * Update checklist-rpc-endpoint.md
    
    * Update contributing/checklist-rpc-endpoint.md
    
    Co-authored-by: Tim Gross <tgross@hashicorp.com>
    
    ---------
    
    Co-authored-by: Tim Gross <tgross@hashicorp.com>
    Juanadelacuesta and tgross authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    20280d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f06948f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6b06b02 View commit details
    Browse the repository at this point in the history
  4. [ui] links to allocations explicitly go through their route model hook (

    #17737)
    
    * links to allocations explicitly go through their route model hook
    
    * Acceptance test to make sure alloc clicking loads alloc endpoint obj
    philrenaud authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    72a9f2b View commit details
    Browse the repository at this point in the history
  5. [ui] Move Placement Failures notification above job status panel (#17750

    )
    
    * Moves the Placement Failures box above job status, should it exist
    
    * Move it for non-service job-types as well
    philrenaud authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    f3df01e View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    43587c5 View commit details
    Browse the repository at this point in the history
  2. Prepare release 1.6.0-beta.1

    tgross committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    a678b42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    81d3575 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2baba58 View commit details
    Browse the repository at this point in the history
  5. Prepare for next release

    hc-github-team-nomad-core authored and tgross committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    0be2b42 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #17758 from hashicorp/post-release-1.6.0-beta.1

    Post release 1.6.0 beta.1
    tgross authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    350c435 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6bd5098 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. [ui] HCL-in-UI: Re-arrange buttons, add save-as-file (#17752)

    * Move buttons over as expected
    
    * Let a user download file locally
    
    * test mock fns for jobeditor
    
    * Changelog
    philrenaud authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    fccfb1d View commit details
    Browse the repository at this point in the history
  2. Update the revision used by the docker build action. (#17755)

    Update the revision used by the docker action. This should always reflect the commit that's being built as this may differ from the default <github.sha> that the workflow was invoked at.
    
    Goes with hashicorp/actions-docker-build#59 - and should not be merged until this PR is merged and a new version of the action is cut.
    sarahethompson authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    9e5fc77 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    1e0d691 View commit details
    Browse the repository at this point in the history
  2. docs: clarify network topology requirements for clients (#17779)

    The requirements for client-to-server and client-to-client topologies are not
    well-documented in the production install requirements docs. Document that
    clients make connections to servers (and not the other way around), and that
    clients don't need to communicate with each other (with some exceptions).
    
    Fixes: #17631
    tgross authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    63d6af6 View commit details
    Browse the repository at this point in the history
  3. [ui] Text wrap long lines of code and logs (#17754)

    * Text and code wrapping as a localStorage var
    
    * task-log uses wrapping and kb shortcut
    
    * Word wrap keyboard labels
    
    * Wrapper as a toggle not a button
    
    * Changelog and fixed an extra space trailing log lines
    
    * Moves toggle to inside
    
    * Acceptance tests for ww and toggle click
    philrenaud authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    6124c1a View commit details
    Browse the repository at this point in the history
  4. Report shows a 3rd party browser extension puts a banner at the top o…

    …f page and awkwardly shifts nav; this fixes that (#17783)
    philrenaud authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    17f63cf View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Configuration menu
    Copy the full SHA
    c883621 View commit details
    Browse the repository at this point in the history
  2. [api] Add NetworkStatus to allocation response (#17280)

    Service discovery or mesh network systems consuming the Nomad event stream or API need to know the CNI assigned IP for the allocation. This data is returned by the underlying Nomad API but isn't mapped in the response struct.
    deverton-godaddy authored Jul 4, 2023
    Configuration menu
    Copy the full SHA
    e75ae1d View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. metrics: add "total_ticks_count" for CPU metrics (#17579)

    This counter tells you the total amount of ticks for that CPU
    entry since the start of Nomad.
    TrueBrain authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    ede662a View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. docs: fix broken link in security model docs (#17812)

    correcting a broken link under "similar to consul" and correcting list formatting under "general mechanisms"
    am-ak authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    bb95009 View commit details
    Browse the repository at this point in the history
  2. ci: dynamic runs-on values for oss/ent (#17775)

    so in enterprise we can use Vault for secrets,
    without merge conflicts from oss->ent.
    
    also:
    * use hashicorp/setup-golang
    * setup-js for self-hosted runners
      they don't come with yarn, nor chrome,
      and might not always match node version.
    gulducat authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    4738d30 View commit details
    Browse the repository at this point in the history
  3. ci: clean GOCACHE before build (#17808)

    this is basically to avoid Fear/Uncertainty/Doubt
    
    the github action actions/setup-go
    (and, with a different chache key, hashicorp/setup-golang)
    caches both GOMODCACHE (go source files), which is good,
    and GOCACHE (build outputs), which *might* be bad,
    if the cache was built on an OS with an older glibc
    than we want to support. from `go help cache`:
    > [...] the build cache does not detect changes to
    > C libraries imported with cgo.
    gulducat authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    3d87b3d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    878e6b9 View commit details
    Browse the repository at this point in the history
  5. cni: ensure to setup CNI addresses in deterministic order (#17766)

    * cni: ensure to setup CNI addresses in deterministic order
    
      Currently as commented in the code the go-cni library returns an unordered map
      of interfaces. In cases where there are multiple CNI interfaces being created this
      creates a problem with service registration and healthchecking because the first
      address in the map is being used.
    
      The use case we have where this is an issue is that we run CNI with the macvlan
      plugin to isolate workloads, but they still need to be able to access the host on
      a static address to be able to perform local resolving and hit host services like
      the Consul agent API. To make this work there are 2 options, you either add a
      macvlan interface on the host with an assigned address for each VLAN you have or
      you create an additional veth bridged interface in the container namespace.
      We chose the latter option through a custom CNI plugin but the ordering issue
      leaves us with incorrect service registration.
    
    * Updates after feedback
    
     * First check for the CNIResult interfaces length, if it's zero we don't need to proceed
       at all.
     * Use sorted interfaces list for the address fallback scenario as well.
     * Remove "found" log message logic, when an address isn't found an error is returned stating
       the allocation could not be configured as an address was missing from the CNIResult. If we
       still need a Warn message then we can add it to the condition that returns the error if no
       address could be found instead of using the "found" bool logic.
    ygersie authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    709f20c View commit details
    Browse the repository at this point in the history
  6. ci: windows tests on public runners (#17829)

    currently our self-hosted windows runners lack `docker`,
    so for now just revert to public runners.
    gulducat authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    03b8a9a View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    100c460 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    243429b View commit details
    Browse the repository at this point in the history
  3. consul: handle "not found" errors from Consul when deleting tokens (#…

    …17847)
    
    In Consul 1.15.0, the Delete Token API was changed so as to return an error when
    deleting a non-existent ACL token. This means that if Nomad successfully deletes
    the token but fails to persist that fact, it will get stuck trying to delete a
    non-existent token forever.
    
    Update the token deletion function to ignore "not found" errors and treat them
    as successful deletions.
    
    Fixes: #17833
    tgross authored Jul 7, 2023
    Configuration menu
    Copy the full SHA
    18327cd View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Configuration menu
    Copy the full SHA
    f43a3c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8683e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    079f5d4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    34105f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b31e891 View commit details
    Browse the repository at this point in the history
  6. CSI: persist previous mounts on client to restore during restart (#17840

    )
    
    When claiming a CSI volume, we need to ensure the CSI node plugin is running
    before we send any CSI RPCs. This extends even to the controller publish RPC
    because it requires the storage provider's "external node ID" for the
    client. This primarily impacts client restarts but also is a problem if the node
    plugin exits (and fingerprints) while the allocation that needs a CSI volume
    claim is being placed.
    
    Unfortunately there's no mapping of volume to plugin ID available in the
    jobspec, so we don't have enough information to wait on plugins until we either
    get the volume from the server or retrieve the plugin ID from data we've
    persisted on the client.
    
    If we always require getting the volume from the server before making the claim,
    a client restart for disconnected clients will cause all the allocations that
    need CSI volumes to fail. Even while connected, checking in with the server to
    verify the volume's plugin before trying to make a claim RPC is inherently racy,
    so we'll leave that case as-is and it will fail the claim if the node plugin
    needed to support a newly-placed allocation is flapping such that the node
    fingerprint is changing.
    
    This changeset persists a minimum subset of data about the volume and its plugin
    in the client state DB, and retrieves that data during the CSI hook's prerun to
    avoid re-claiming and remounting the volume unnecessarily.
    
    This changeset also updates the RPC handler to use the external node ID from the
    claim whenever it is available.
    
    Fixes: #13028
    tgross authored Jul 10, 2023
    Configuration menu
    Copy the full SHA
    0ba7d00 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5169950 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6e95149 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. [COMPLIANCE] Add Copyright and License Headers (#17877)

    Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
    hashicorp-copywrite[bot] authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    e178906 View commit details
    Browse the repository at this point in the history
  2. Add the ability to customise the details of the CA (#17309)

    Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
    lhaig and jrasell authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    1541358 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79773a0 View commit details
    Browse the repository at this point in the history
  4. np: update docs and add test for nil lists (#17899)

    Document and test that if a namespace does not provide an `allow` or
    `deny` list than those are treated as `nil` and have a different
    behaviour from an empty list (`[]string{}`).
    lgfa29 authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    99fb36e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    01cb47b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ef89b69 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    80b9ff6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a4d0dcd View commit details
    Browse the repository at this point in the history
  9. e2e: do not set a user for raw_exec tasks (#17901)

    Cannot set a user for raw_exec tasks, because doing so does not work
    with the 0700 root owned client data directory that we setup in the e2e
    cluster in accordance with the Nomad hardening guide.
    shoenig authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    fd50f2b View commit details
    Browse the repository at this point in the history
  10. docs: add plugin docs for pledge task driver (#17823)

    * docs: add plugin docs for pledge task driver
    
    Add pledge driver to the set of Community drivers.
    
    * docs: cr feedback
    shoenig authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    8253ec8 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    3cfa267 View commit details
    Browse the repository at this point in the history
  2. Prepare release 1.6.0-rc.1

    tgross committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    3656de6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    335bb8b View commit details
    Browse the repository at this point in the history
  4. Prepare for next release

    hc-github-team-nomad-core authored and tgross committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    09c89e7 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #17914 from hashicorp/post-1.6.0-rc.1-release

    Post 1.6.0 rc.1 release
    tgross authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    3c481d3 View commit details
    Browse the repository at this point in the history
  6. Smoke test binaries for EL7 compatiblity (#17706)

    This adds a quick smoke test of our binaries to verify we haven't exceeeded the
    maximum GLIBC (2.17) version during linking which would break our ability to
    execute on EL7 machines.
    dekimsey authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    995b936 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    74335b3 View commit details
    Browse the repository at this point in the history
  8. e2e: add some e2e tests for pledge task driver (#17909)

    * e2e: setup nomad for pledge driver
    
    * e2e: add some e2e tests for pledge task driver
    shoenig authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    159bf51 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4379418 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Configuration menu
    Copy the full SHA
    e53955b View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Configuration menu
    Copy the full SHA
    7f5d39f View commit details
    Browse the repository at this point in the history
  2. docs: note windows requirement for workload identity (#17950)

    Support for UDS sockets was added to Windows 10.
    shoenig authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    1e7726c View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Fix typos (#17962)

    angrycub authored Jul 18, 2023
    Configuration menu
    Copy the full SHA
    3a68793 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Configuration menu
    Copy the full SHA
    3abb112 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81c14de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    81aa274 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0015d25 View commit details
    Browse the repository at this point in the history
  5. redact token before passing to sentinel

    angrycub authored and lgfa29 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    d23aaed View commit details
    Browse the repository at this point in the history
  6. acl: fix parsing of policies with blocks w/o label

    An ACL policy with a block without label generates unexpected results.
    For example, a policy such as this:
    
    ```
    namespace {
      policy = "read"
    }
    ```
    
    Is applied to a namespace called `policy` instead of the documented
    behaviour of applying it to the `default` namespace.
    
    This happens because of the way HCL1 decodes blocks. Since it doesn't
    know if a block is expected to have a label it applies the `key` tag to
    the content of the block and, in the example above, the first key is
    `policy`, so it sets that as the `namespace` block label.
    
    Since this happens internally in the HCL decoder it's not possible to
    detect the problem externally.
    
    Fixing the problem inside the decoder is challenging because the JSON
    and HCL parsers generate different ASTs that makes impossible to
    differentiate between a JSON tree from an invalid HCL tree within the
    decoder.
    
    The fix in this commit consists of manually parsing the policy after
    decoding to clear labels that were not set in the file. This allows the
    validation rules to consistently catch and return any errors, no matter
    if the policy is an invalid HCL or JSON.
    lgfa29 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    54c45ed View commit details
    Browse the repository at this point in the history
  7. search: fix ACL filtering for plugins and variables

    ACL permissions for the search endpoints are done in three passes. The
    first (the `sufficientSearchPerms` method) is for performance and coarsely
    rejects requests based on the passed-in context parameter if the user has no
    permissions to any object in that context. The second (the
    `filteredSearchContexts` method) filters out contexts based on whether the user
    has permissions either to the requested namespace or again by context (to catch
    the "all" context). Finally, when iterating over the objects available, we do
    the usual filtering in the iterator.
    
    Internal testing found several bugs in this filtering:
    * CSI plugins can be searched by any authenticated user.
    * Variables can be searched if the user has `job:read` permissions to the
      variable's namespace instead of `variable:list`.
    * Variables cannot be searched by wildcard namespace.
    
    This is an information leak of the plugin names and variable paths, which we
    don't consider to be privileged information but intended to protect anyways.
    
    This changeset fixes these bugs by ensuring CSI plugins are filtered in the 1st
    and 2nd pass ACL filters, and changes variables to check `variable:list` in the
    2nd pass filter unless the wildcard namespace is passed (at which point we'll
    fallback to filtering in the iterator).
    
    Fixes: CVE-2023-3300
    Fixes: #17906
    tgross authored and lgfa29 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    a8789d3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    573cab2 View commit details
    Browse the repository at this point in the history
  9. Prepare for next release

    hc-github-team-nomad-core authored and lgfa29 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    bc8b4bd View commit details
    Browse the repository at this point in the history
  10. Merge release 1.6.0 files

    lgfa29 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    47fb70b View commit details
    Browse the repository at this point in the history
  11. Merge pull request #17986 from hashicorp/post-1.6.0-release

    Post 1.6.0 release
    lgfa29 authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    a04245d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0d343f2 View commit details
    Browse the repository at this point in the history
  13. Use config "cpu_total_compute" (if set) for all CPU statistics (#17628)

    Before this commit, it was only used for fingerprinting, but not
    for CPU stats on nodes or tasks. This meant that if the
    auto-detection failed, setting the cpu_total_compute didn't resolved
    the issue.
    
    This issue was most noticeable on ARM64, as there auto-detection
    always failed.
    TrueBrain authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    e190eae View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    bd3ef90 View commit details
    Browse the repository at this point in the history
  15. volume-status : show namespace the volume belongs to (#17911)

    * volume-status : show namespace the volume belongs to
    the-nando authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    ca26673 View commit details
    Browse the repository at this point in the history
  16. ui: fix Topology node state filter (#17940)

    "Ineligible" and "Draining" are not determined by the node status, but
    are rather inferred from other fields.
    lgfa29 authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    969ea54 View commit details
    Browse the repository at this point in the history
  17. nsd: retain query params in HTTP health checks (#17936)

    Apply the same logic as Consul service health checks when building the
    HTTP URL so that query params in `path` are preserved.
    lgfa29 authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    e664f14 View commit details
    Browse the repository at this point in the history
  18. metrics: report task memory_max value (#17938)

    Add new `nomad.client.allocs.memory.max_allocated` metric to report the
    value of the task `memory_max` resource value.
    lgfa29 authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    ce0f60f View commit details
    Browse the repository at this point in the history
  19. e2e podman private registry (#17642)

    * e2e: add tests for using private registry with podman driver
    
    This PR adds e2e tests that stands up a private docker registry
    and has a podman tasks run a container from an image in that private
    registry.
    
    Tests
     - user:password set in task config
     - auth_soft_fail works for public images when auth is set in driver
     - credentials helper is set in driver auth config
     - config auth.json file is set in driver auth config
    
    * packer: use nomad-driver-podman v0.5.0
    
    * e2e: eliminate unnecessary chmod
    
    Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
    
    * cr: no need to install nomad twice
    
    * cl: no need to install docker twice
    
    ---------
    
    Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
    shoenig and gulducat authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    8d28946 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. [ui] When a purged/404-ing job is detected, boot the user out of that…

    … job and back to the index (#17915)
    
    * Boot the user off the job if it gets deleted
    
    * de-yoink
    
    * watching the job watcher
    
    * Unload record so history.back has to refire a (failing) request
    
    * Acceptance tests for boot-out and notification
    philrenaud authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    287ad19 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51393dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6bed12f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    94112d8 View commit details
    Browse the repository at this point in the history
  5. CSI: improve controller RPC reliability (#17996)

    The CSI specification says that we "SHOULD" send no more than one in-flight
    request per *volume* at a time, with an allowance for losing state
    (ex. leadership transitions) which the plugins "SHOULD" handle gracefully. We
    mostly successfully serialize node and controller RPCs for the same volume,
    except when Nomad clients are lost. (See also
    container-storage-interface/spec#512)
    
    These concurrency requirements in the spec fall short because Storage Provider
    APIs aren't necessarily safe to call concurrently on the same host even for
    _different_ volumes. For example, concurrently attaching AWS EBS volumes to an
    EC2 instance results in a race for device names, which results in failure to
    attach (because the device name is taken already and the API call fails) and
    confused results when releasing claims. So in practice many CSI plugins rely on
    k8s-specific sidecars for serializing storage provider API calls globally. As a
    result, we have to be much more conservative about concurrency in Nomad than the
    spec allows.
    
    This changeset includes four major changes to fix this:
    * Add a serializer method to the CSI volume RPC handler. When the RPC handler
      makes a destructive CSI Controller RPC, we send the RPC thru this serializer
      and only one RPC is sent at a time. Any other RPCs in flight will block.
    * Ensure that requests go to the same controller plugin instance whenever
      possible by sorting by lowest client ID out of the plugin instances.
    * Ensure that requests go to _healthy_ plugin instances only.
    * Ensure that requests for controllers can go to a controller on any _live_
      node, not just ones eligible for scheduling (which CSI controllers don't care
      about)
    
    Fixes: #15415
    tgross authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    f529124 View commit details
    Browse the repository at this point in the history
  6. state: canonicalize namespace on restore (#18017)

    The upgrade path to Nomad 1.6.0 requires canonicalizing the namespace in
    order to set the default scheduler configuration values.
    
    Previous implementation only canonicalized on namespace upsert
    operations, which works for recent namespaces as those Raft transactions
    are reapplied on upgrade.
    
    But for older namespaces restore from a snapshot the code path did not
    canonicalize them, leaving the scheduler configuration set as `nil`.
    lgfa29 authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    f8b9b5c View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. ui: handle errors from unimplemented services (#18020)

    When a request is made to an RPC service that doesn't exist (for
    example, a cross-region request from a newer version of Nomad to an
    older version that doesn't implement the endpoint) the application
    should return an empty list as well.
    lgfa29 authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    5d3639f View commit details
    Browse the repository at this point in the history
  2. ui: handle node pool requests to older regions (#18021)

    When accessing a region running a version of Nomad without node pools an
    error was thrown because the request is handled by the nodes endpoint
    which fails because it assumes `pools` is the node ID.
    lgfa29 authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    2b3dd86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    91e1baf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    583f877 View commit details
    Browse the repository at this point in the history
  5. Prepare for next release

    hc-github-team-nomad-core authored and tgross committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    0bcc20e View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18028 from hashicorp/post-1.6.1-release

    Post 1.6.1 release
    tgross authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    4768c2a View commit details
    Browse the repository at this point in the history
  7. Retain task states for post stop tasks at the time of node GC (#18005)

    * Retain task states for post stop tasks at the time of node GC
    stswidwinski authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    b9a388f View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Configuration menu
    Copy the full SHA
    2a91bf4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea37488 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    03cde51 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7173d3b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    738bdb2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    55723e5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    937d927 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Configuration menu
    Copy the full SHA
    7f30444 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Configuration menu
    Copy the full SHA
    a8fd803 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c9cd35 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2c463bb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0a5667c View commit details
    Browse the repository at this point in the history
  5. build: support s390x architecture for linux (ent) (#18069)

    Makefile changes required for supporting s390x builds and a corresponding
    changelog entry.
    pkazmierczak authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    ee0b104 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. core: add jwks rpc and http api (#18035)

    Add JWKS endpoint to HTTP API for exposing the root public signing keys used for signing workload identity JWTs.
    
    Part 1 of N components as part of making workload identities consumable by third party services such as Consul and Vault. Identity attenuation (audience) and expiration (+renewal) are necessary to securely use workload identities with 3rd parties, so this merge does not yet document this endpoint.
    
    ---------
    
    Co-authored-by: Tim Gross <tgross@hashicorp.com>
    schmichael and tgross authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d14362e View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    0a32d7f View commit details
    Browse the repository at this point in the history
  2. cli: add help message for -consul-namespace (#18081)

    Add missing help entry for the `-consul-namespace` flag in `nomad job
    run`.
    lgfa29 authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    ee31916 View commit details
    Browse the repository at this point in the history
  3. GHA pinning updates (#18093)

    Trusted Supply Chain Component Registry (TSCCR) enforcement starts Monday and an
    internal report shows our semgrep action is pinned to a version that's not
    currently permitted. Update all the action versions to whatever's the new
    hotness to maximum the time-to-live on these until we have automated pinning
    setup.
    
    Also version bumps our chromedriver action, which randomly broke upstream today.
    tgross authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    b17c0f7 View commit details
    Browse the repository at this point in the history
  4. feature: Add new field render_templates on restart block (#18054)

    This feature is necessary when user want to explicitly re-render all templates on task restart.
    E.g. to fetch all new secrets from Vault, even if the lease on the existing secrets has not been expired.
    nvanthao authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    9e98d69 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    76ebb3f View commit details
    Browse the repository at this point in the history
  2. scheduler: fix panic in render_templates destructive update check (#…

    …18100)
    
    In #18054 we introduced a new field `render_templates` in the `restart`
    block. Previously changes to the `restart` block were always non-destructive in
    the scheduler but we now need to check the new field so that we can update the
    template runner. The check assumed that the block was always non-nil, which
    causes panics in our scheduler tests.
    tgross authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    1ef8ad8 View commit details
    Browse the repository at this point in the history
  3. [ui] Search results are overloading filter with sorted results (#18053)

    * Attempt at a varied end-result when sorting and searching
    
    * Consider sort direction as well
    
    * computed property dep update
    
    * prioritizeSearchOrder and test
    
    * Side-effecty but resets sort on search etc
    
    * changelog
    philrenaud authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    66649d1 View commit details
    Browse the repository at this point in the history
  4. cli: support wildcard namespace in alloc subcommands (#18095)

    The alloc exec and filesystem/logs commands allow passing the `-job` flag to
    select a random allocation. If the namespace for the command is set to `*`, the
    RPC handler doesn't handle this correctly as it's expecting to query for a
    specific job. Most commands handle this ambiguity by first verifying that only a
    single object of the type in question exists (ex. a single node or job).
    
    Update these commands so that when the `-job` flag is set we first verify
    there's a single job that matches. This also allows us to extend the
    functionality to allow for the `-job` flag to support prefix matching.
    
    Fixes: #12097
    tgross authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    4fb5bf9 View commit details
    Browse the repository at this point in the history
  5. [ui] Job Variables page (#17964)

    * Bones of a component that has job variable awareness
    
    * Got vars listed woo
    
    * Variables as its own subnav and some pathLinkedVariable perf fixes
    
    * Automatic Access to Variables alerter
    
    * Helper and component to conditionally render the right link
    
    * A bit of cleanup post-template stuff
    
    * testfix for looping right-arrow keynav bc we have a new subnav section
    
    * A very roundabout way of ensuring that, if a job exists when saving a variable with a pathLinkedEntity of that job, its saved right through to the job itself
    
    * hacky but an async version of pathLinkedVariable
    
    * model-driven and async fetcher driven with cleanup
    
    * Only run the update-job func if jobname is detected in var path
    
    * Test cases begun
    
    * Management token for variables to appear in tests
    
    * Its a management token so it gets to see the clients tab under system jobs
    
    * Pre-review cleanup
    
    * More tests
    
    * Number of requests test and small fix to groups-by-way-or-resource-arrays elsewhere
    
    * Variable intro text tests
    
    * Variable name re-use
    
    * Simplifying our wording a bit
    
    * parse json vs plainId
    
    * Addressed PR feedback, including de-waterfalling
    philrenaud authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    18dd9e7 View commit details
    Browse the repository at this point in the history
  6. build(deps): bump word-wrap from 1.2.3 to 1.2.4 in /ui (#17972)

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 31, 2023
    1 Configuration menu
    Copy the full SHA
    511cb55 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Configuration menu
    Copy the full SHA
    ee917be View commit details
    Browse the repository at this point in the history
  2. add cl

    kevinschoonover committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    4202288 View commit details
    Browse the repository at this point in the history
  3. fix cl

    kevinschoonover committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d956837 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7555fee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c5ced5b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8b4adff View commit details
    Browse the repository at this point in the history