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. 06 Apr, 2022 1 commit
  2. 05 Apr, 2022 24 commits
    • Derek Strickland's avatar
      disconnected clients: `TaskGroup` validation (#12418) · 67911472
      Derek Strickland authored
      * TaskGroup: Validate that max_client_disconnect and stop_after_client_disconnect are mutually exclusive.
      67911472
    • Derek Strickland's avatar
      reconciler: 2 phase reconnects and tests (#12333) · 8ac3e642
      Derek Strickland authored
      * structs: Add alloc.Expired & alloc.Reconnected functions. Add Reconnect eval trigger by.
      
      * node_endpoint: Emit new eval for reconnecting unknown allocs.
      
      * filterByTainted: handle 2 phase commit filtering rules.
      
      * reconciler: Append AllocState on disconnect. Logic updates from testing and 2 phase reconnects.
      
      * allocs: Set reconnect timestamp. Destroy if not DesiredStatusRun. Watch for unknown status.
      8ac3e642
    • Derek Strickland's avatar
      comments: update some stale comments referencing deprecated config name (#12271) · 9a82b636
      Derek Strickland authored
      * comments: update some stale comments referencing deprecated config name
      9a82b636
    • Derek Strickland's avatar
    • Derek Strickland's avatar
      b317aaa8
    • Derek Strickland's avatar
      disconnected clients: ensure servers meet minimum required version (#12202) · 6329f441
      Derek Strickland authored
      * planner: expose ServerMeetsMinimumVersion via Planner interface
      * filterByTainted: add flag indicating disconnect support
      * allocReconciler: accept and pass disconnect support flag
      * tests: update dependent tests
      6329f441
    • Derek Strickland's avatar
      `MaxClientDisconnect` Jobspec checklist (#12177) · 83dd636b
      Derek Strickland authored
      * api: Add struct, conversion function, and tests
      * TaskGroup: Add field, validation, and tests
      * diff: Add diff handler and test
      * docs: Update docs
      83dd636b
    • Derek Strickland's avatar
      disconnected clients: Observability plumbing (#12141) · 5b5c8535
      Derek Strickland authored
      * Add disconnects/reconnect to log output and emit reschedule metrics
      
      * TaskGroupSummary: Add Unknown, update StateStore logic, add to metrics
      5b5c8535
    • Derek Strickland's avatar
      Fix client test reconnect test; Remove guard test (#12173) · b3fb9430
      Derek Strickland authored
      * Update reconnect test to new algorithm and interface; remove guard test
      b3fb9430
    • Derek Strickland's avatar
      disconnected clients: Add reconnect task event (#12133) · 35752655
      Derek Strickland authored
      * Add TaskClientReconnectedEvent constant
      * Add allocRunner.Reconnect function to manage task state manually
      * Removes server-side push
      35752655
    • DerekStrickland's avatar
      reconciler: fix loop control bug · 97ce949f
      DerekStrickland authored
      97ce949f
    • DerekStrickland's avatar
    • DerekStrickland's avatar
    • DerekStrickland's avatar
      042a07bc
    • Derek Strickland's avatar
      reconciler: support disconnected clients (#12058) · 78618060
      Derek Strickland authored
      
      * Add merge helper for string maps
      * structs: add statuses, MaxClientDisconnect, and helper funcs
      * taintedNodes: Include disconnected nodes
      * upsertAllocsImpl: don't use existing ClientStatus when upserting unknown
      * allocSet: update filterByTainted and add delayByMaxClientDisconnect
      * allocReconciler: support disconnecting and reconnecting allocs
      * GenericScheduler: upsert unknown and queue reconnecting
      Co-authored-by: default avatarTim Gross <tgross@hashicorp.com>
      78618060
    • Shishir's avatar
      4042c282
    • Jai's avatar
      ui: eval filter (#12243) · 1d285537
      Jai authored
      * ui:  add triggeredBy filter
      
      * add namespace filter
      
      * fix:  namespace is a reserved keyword
      
      * ui: filter by type and search
      
      * fix:  rename closure action to
      
      * chore:  fix data-test-attr
      1d285537
    • Jai's avatar
      Epic: Evaluation Detail Sidebar (#12370) · 3e0a1e19
      Jai authored
      
      * chore: prettify gutter-menu
      
      * chore:  add portal packages
      
      * styling:  add styles sidebar and portal behavior
      
      * ui:  sidebar component
      
      * ui:  create and implement statechart for evals
      
      * ui:  actor-relationship service and provider component
      
      * ui:  d3 hierarchy computation
      
      * chore:  add render-modifiers and curved arrows
      
      * ui:  create evaluation actor div
      
      * fix related evaluations schema
      
      * ui:  register/deregister evaluation divs
      
      * ui:  handle resize behavior
      
      * bug:  infinite re-render cycle
      
      * fix:  conditional logic to prevent infinite render of flex resizing
      
      * ui: related evaluations schema and request param
      
      * ui: fix testing for evaluations
      
      * refact: make related-evals a proper has-many
      
      * chore: don't pauseTest
      
      * temp:  debug d3 hierarchy
      
      * ui:  move derived state logic into backing component class for detail
      
      * ui:  deprecated related evaluations logic in statechart
      
      * ui:  update evaluation models
      
      * ui:  update logic to paint svg in non-viewable scroll region
      
      * ui:  update styling
      
      * ui:  testing for eval detail view
      
      * ui:  delete detail from template directory
      
      * ui:  break detail component down
      
      * ui:  static data for /evaluation/:id endpoint
      
      * ui:  fix styling of d3 viz
      
      * ui:  add query parameter adapter for evals
      
      * ui:  last minute design requests
      
      * wip:  address browser updating detail view behavior
      
      * refact: handle query-state change in statechart
      
      * conditional class looking for currentEval equality (#12411)
      
      * F UI/evaluation detail sidebar rel evals (#12415)
      
      * ui:  remove busy id alias from statechart
      
      * ui: edit related evaluations viz error message
      
      * ui:  bug fixes on related evaluations view (#12423)
      
      * ui:  remove busy id alias from statechart
      
      * ui: edit related evaluations viz error message
      
      * ui:  update error state
      
      * ui:  related evaluation outline styling
      
      * Related evaluation stylefile and non-link if it matches the active sidebar (#12428)
      
      * Adds tabbable and keyboard pressable evaluation table rows (#12433)
      
      * ui:  fix failing eval list tests (#12437)
      
      * ui:  move styling into classes (#12438)
      
      * fix test failures (#12444)
      
      * ui:  move styling into classes
      
      * ui:  eslint disable
      
      * ui:  allocations have evaluations as async relationships
      
      * ui:  fix evaluation refresh button (#12447)
      
      * ui:  move styling into classes
      
      * ui:  eslint disable
      
      * ui:  allocations have evaluations as async relationships
      
      * ui:  refresh bug
      
      * ui:  final touches on sidebar (#12462)
      
      * chore: turn off template linting rules
      
      Temporarily turning off template linting because we dont have a set CSS convention and the release needs to go out ASAP.
      
      * doc:  deprecate out of date comments and vars
      
      * ui:  edit mirage server fetch logic
      
      * ui:  style sidebar relative
      
      * Modification to mocked related evals and manually set 100% height on svg (#12460)
      
      * F UI/evaluation detail sidebar final touches (#12463)
      
      * chore: turn off template linting rules
      
      Temporarily turning off template linting because we dont have a set CSS convention and the release needs to go out ASAP.
      
      * doc:  deprecate out of date comments and vars
      
      * ui:  edit mirage server fetch logic
      
      * ui:  style sidebar relative
      
      * ui:  account for new related eval added to chain
      Co-authored-by: default avatarMichael Klein <michael@firstiwaslike.com>
      Co-authored-by: default avatarPhil Renaud <phil@riotindustries.com>
      3e0a1e19
    • Luiz Aoqui's avatar
      Support Vault entity aliases (#12449) · d412f7b4
      Luiz Aoqui authored
      Move some common Vault API data struct decoding out of the Vault client
      so it can be reused in other situations.
      
      Make Vault job validation its own function so it's easier to expand it.
      
      Rename the `Job.VaultPolicies` method to just `Job.Vault` since it
      returns the full Vault block, not just their policies.
      
      Set `ChangeMode` on `Vault.Canonicalize`.
      
      Add some missing tests.
      
      Allows specifying an entity alias that will be used by Nomad when
      deriving the task Vault token.
      
      An entity alias assigns an indentity to a token, allowing better control
      and management of Vault clients since all tokens with the same indentity
      alias will now be considered the same client. This helps track Nomad
      activity in Vault's audit logs and better control over Vault billing.
      
      Add support for a new Nomad server configuration to define a default
      entity alias to be used when deriving Vault tokens. This default value
      will be used if the task doesn't have an entity alias defined.
      d412f7b4
    • Tim Gross's avatar
      CSI: don't block client shutdown for node unmount (#12457) · a8d5e5e7
      Tim Gross authored
      When we unmount a volume we need to be able to recover from cases
      where the plugin has been shutdown before the allocation that needs
      it, so in #11892 we blocked shutting down the alloc runner hook. But
      this blocks client shutdown if we're in the middle of unmounting. The
      client won't be able to communicate with the plugin or send the
      unpublish RPC anyways, so we should cancel the context and assume that
      we'll resume the unmounting process when the client restarts.
      
      For `-dev` mode we don't send the graceful `Shutdown()` method and
      instead destroy all the allocations. In this case, we'll never be able
      to communicate with the plugin but also never close the context we
      need to prevent the hook from blocking. To fix this, move the retries
      into their own goroutine that doesn't block the main `Postrun`.
      a8d5e5e7
    • James Rasell's avatar
      Merge pull request #12454 from hashicorp/f-rename-service-event-stream · b7d19a60
      James Rasell authored
      events: add service API logic and rename topic to service from serviceregistration
      b7d19a60
    • Grant Griffiths's avatar
    • James Rasell's avatar
    • James Rasell's avatar
  3. 04 Apr, 2022 9 commits
  4. 02 Apr, 2022 1 commit
  5. 01 Apr, 2022 5 commits