This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 20 Apr, 2020 1 commit
  2. 17 Apr, 2020 3 commits
  3. 14 Apr, 2020 2 commits
  4. 13 Apr, 2020 7 commits
  5. 11 Apr, 2020 2 commits
  6. 10 Apr, 2020 8 commits
    • Tim Gross's avatar
      refactor: make nodeForControllerPlugin private to ClientCSI (#7688) · 09abe0c7
      Tim Gross authored
      The current design of `ClientCSI` RPC requires that callers in the
      server know about the free-standing `nodeForControllerPlugin`
      function. This makes it difficult to send `ClientCSI` RPC messages
      from subpackages of `nomad` and adds a bunch of boilerplate to every
      server-side caller of a controller RPC.
      
      This changeset makes it so that the `ClientCSI` RPCs will populate and
      validate the controller's client node ID if it hasn't been passed by
      the caller, centralizing the logic of picking and validating
      controller targets into the `nomad.ClientCSI` struct.
      09abe0c7
    • Seth Hoenig's avatar
      Merge pull request #7684 from hashicorp/b-connect-sidecar-name · 47dfa762
      Seth Hoenig authored
      connect: enable configuring sidecar_task.name
      47dfa762
    • Seth Hoenig's avatar
      Merge pull request #7683 from hashicorp/b-no-sidecar-panic · ce3b57e1
      Seth Hoenig authored
      connect: correctly handle missing sidecar_service task stanza
      ce3b57e1
    • Seth Hoenig's avatar
      connect: extract common task keys · 0eb28449
      Seth Hoenig authored
      0eb28449
    • Drew Bailey's avatar
      changelog · e2886582
      Drew Bailey authored
      e2886582
    • Drew Bailey's avatar
      Run task shutdown_delay regardless of service registration · 3af2d05f
      Drew Bailey authored
      task shutdown_delay will currently only run if there are registered
      services for the task. This implementation detail isn't explicity stated
      anywhere and is defined outside of the service stanza.
      
      This change moves shutdown_delay to be evaluated after prekill hooks are
      run, outside of any task runner hooks.
      
      just use time.sleep
      3af2d05f
    • Seth Hoenig's avatar
      connect: enable configuring sidecar_task.name · 729931ac
      Seth Hoenig authored
      Before, the submitted jobspec for sidecar_task would pass
      through 2 key validation steps - once for the subset specific
      to connect sidecar task definitions, and once again for the set
      of normal task definition where the task would actually get
      unmarshalled.
      
      The valid keys for the normal task definition did not include
      "name", which is supposed to be configurable for the sidecar
      task. To fix this, just eliminate the double validation step,
      and instead pass-in the correct set of keys to validate against
      to the one generic task parser.
      
      Fixes #7680
      729931ac
    • Seth Hoenig's avatar
      connect: correctly deal with nil sidecar_service task stanza · 79a52411
      Seth Hoenig authored
      Before, if the sidecar_service stanza of a connect enabled service
      was missing, the job submission would cause a panic in the nomad
      agent. Since the panic was happening in the API handler the agent
      itself continued running, but this change will the condition more
      gracefully.
      
      By fixing the `Copy` method, the API handler now returns the proper
      error.
      
      $ nomad job run foo.nomad
      Error submitting job: Unexpected response code: 500 (1 error occurred:
      	* Task group api validation failed: 2 errors occurred:
      	* Missing tasks for task group
      	* Task group service validation failed: 1 error occurred:
      	* Service[0] count-api validation failed: 1 error occurred:
      	* Consul Connect must be native or use a sidecar service
      79a52411
  7. 09 Apr, 2020 16 commits
  8. 08 Apr, 2020 1 commit