This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 24 Jan, 2022 1 commit
    • Seth Hoenig's avatar
      build: upgrade and speedup circleci configuration · 8492c657
      Seth Hoenig authored
      This PR upgrades our CI images and fixes some affected tests.
      
      - upgrade go-machine-image to premade latest ubuntu LTS (ubuntu-2004:202111-02)
      
      - eliminate go-machine-recent-image (no longer necessary)
      
      - manage GOPATH in GNUMakefile (see https://discuss.circleci.com/t/gopath-is-set-to-multiple-directories/7174)
      
      - fix tcp dial error check (message seems to be OS specific)
      
      - spot check values measured instead of specifically 'RSS' (rss no longer reported in cgroups v2)
      
      - use safe MkdirTemp for generating tmpfiles
      
      NOT applied: (too flakey)
      
      - eliminate setting GOMAXPROCS=1 (build tools were also affected by this setting)
      
      - upgrade resource type for all imanges to large (2C -> 4C)
      8492c657
  2. 05 Nov, 2021 1 commit
    • Dave May's avatar
      cli: refactor operator debug capture (#11466) · 6ede4b92
      Dave May authored
      * debug: refactor Consul API collection
      * debug: refactor Vault API collection
      * debug: cleanup test timing
      * debug: extend test to multiregion
      * debug: save cmdline flags in bundle
      * debug: add cli version to output
      * Add changelog entry
      6ede4b92
  3. 19 Oct, 2021 1 commit
  4. 13 Oct, 2021 1 commit
  5. 12 Oct, 2021 1 commit
    • Dave May's avatar
      debug: Improve namespace and region support (#11269) · 1bd132f0
      Dave May authored
      * Include region and namespace in CLI output
      * Add region and prefix matching for server members
      * Add namespace and region API outputs to cluster metadata folder
      * Add region awareness to WaitForClient helper function
      * Add helper functions for SliceStringHasPrefix and StringHasPrefixInSlice
      * Refactor test client agent generation
      * Add tests for region
      * Add changelog
      1bd132f0
  6. 21 Jun, 2021 1 commit
  7. 09 Jun, 2021 1 commit
    • Mahmood Ali's avatar
      tests: use standard library testing.TB · 122a4cb8
      Mahmood Ali authored
      Glint pulled in an updated version of mitchellh/go-testing-interface
      which broke some existing tests because the update added a Parallel()
      method to testing.T. This switches to the standard library testing.TB
      which doesn't have a Parallel() method.
      122a4cb8
  8. 16 Mar, 2021 1 commit
    • Charlie Voiselle's avatar
      Fixup uses of `sanity` (#10187) · d914990e
      Charlie Voiselle authored
      * Fixup uses of `sanity`
      * Remove unnecessary comments.
      
      These checks are better explained by earlier comments about
      the context of the test. Per @tgross, moved the tests together
      to better reinforce the overall shared context.
      
      * Update nomad/fsm_test.go
      d914990e
  9. 07 Dec, 2020 1 commit
  10. 12 Nov, 2020 1 commit
    • Dave May's avatar
      nomad operator debug - add client node filtering arguments (#9331) · 205b0e7c
      Dave May authored
      * operator debug - add client node filtering arguments
      
      * add WaitForClient helper function
      
      * use RPC in WaitForClient to avoid unnecessary imports
      
      * guard against nil values
      
      * move initialization up and shorten test duration
      
      * cleanup nodeLookupFailCount logic
      
      * only display max node notice if we actually tried to capture nodes
      205b0e7c
  11. 14 Oct, 2020 1 commit
    • Dave May's avatar
      Metrics gotemplate support, debug bundle features (#9067) · 71a022ad
      Dave May authored
      
      * add goroutine text profiles to nomad operator debug
      
      * add server-id=all to nomad operator debug
      
      * fix bug from changing metrics from string to []byte
      
      * Add function to return MetricsSummary struct, metrics gotemplate support
      
      * fix bug resolving 'server-id=all' when no servers are available
      
      * add url to operator_debug tests
      
      * removed test section which is used for future operator_debug.go changes
      
      * separate metrics from operator, use only structs from go-metrics
      
      * ensure parent directories are created as needed
      
      * add suggested comments for text debug pprof
      
      * move check down to where it is used
      
      * add WaitForFiles helper function to wait for multiple files to exist
      
      * compact metrics check
      Co-authored-by: default avatarDrew Bailey <2614075+drewbailey@users.noreply.github.com>
      
      * fix github's silly apply suggestion
      Co-authored-by: default avatarDrew Bailey <2614075+drewbailey@users.noreply.github.com>
      71a022ad
  12. 27 May, 2020 1 commit
  13. 06 Mar, 2020 1 commit
  14. 02 Mar, 2020 1 commit
  15. 30 Jan, 2020 1 commit
    • Michael Schurter's avatar
      core: add limits to unauthorized connections · e3e1f5cb
      Michael Schurter authored
      Introduce limits to prevent unauthorized users from exhausting all
      ephemeral ports on agents:
      
       * `{https,rpc}_handshake_timeout`
       * `{http,rpc}_max_conns_per_client`
      
      The handshake timeout closes connections that have not completed the TLS
      handshake by the deadline (5s by default). For RPC connections this
      timeout also separately applies to first byte being read so RPC
      connections with TLS enabled have `rpc_handshake_time * 2` as their
      deadline.
      
      The connection limit per client prevents a single remote TCP peer from
      exhausting all ephemeral ports. The default is 100, but can be lowered
      to a minimum of 26. Since streaming RPC connections create a new TCP
      connection (until MultiplexV2 is used), 20 connections are reserved for
      Raft and non-streaming RPCs to prevent connection exhaustion due to
      streaming RPCs.
      
      All limits are configurable and may be disabled by setting them to `0`.
      
      This also includes a fix that closes connections that attempt to create
      TLS RPC co...
      e3e1f5cb
  16. 09 Dec, 2019 1 commit
    • Seth Hoenig's avatar
      tests: swap lib/freeport for tweaked helper/freeport · 94c60b4c
      Seth Hoenig authored
      Copy the updated version of freeport (sdk/freeport), and tweak it for use
      in Nomad tests. This means staying below port 10000 to avoid conflicts with
      the lib/freeport that is still transitively used by the old version of
      consul that we vendor. Also provide implementations to find ephemeral ports
      of macOS and Windows environments.
      
      Ports acquired through freeport are supposed to be returned to freeport,
      which this change now also introduces. Many tests are modified to include
      calls to a cleanup function for Server objects.
      
      This should help quite a bit with some flakey tests, but not all of them.
      Our port problems will not go away completely until we upgrade our vendor
      version of consul. With Go modules, we'll probably do a 'replace' to swap
      out other copies of freeport with the one now in 'nomad/helper/freeport'.
      94c60b4c
  17. 08 Oct, 2019 1 commit
    • Mahmood Ali's avatar
      acl: check ACL against object namespace · 7a387842
      Mahmood Ali authored
      Fix a bug where a millicious user can access or manipulate an alloc in a
      namespace they don't have access to.  The allocation endpoints perform
      ACL checks against the request namespace, not the allocation namespace,
      and performs the allocation lookup independently from namespaces.
      
      Here, we check that the requested can access the alloc namespace
      regardless of the declared request namespace.
      
      Ideally, we'd enforce that the declared request namespace matches
      the actual allocation namespace.  Unfortunately, we haven't documented
      alloc endpoints as namespaced functions; we suspect starting to enforce
      this will be very disruptive and inappropriate for a nomad point
      release.  As such, we maintain current behavior that doesn't require
      passing the proper namespace in request.  A future major release may
      start enforcing checking declared namespace.
      7a387842
  18. 04 Sep, 2019 1 commit
  19. 30 Apr, 2019 1 commit
  20. 20 Feb, 2019 2 commits
  21. 22 Jan, 2019 1 commit
  22. 17 Jan, 2019 4 commits
  23. 10 Jan, 2019 2 commits
  24. 16 Oct, 2018 2 commits
  25. 19 Sep, 2018 1 commit
  26. 06 Sep, 2018 1 commit
    • Michael Schurter's avatar
      client: set host name when migrating over tls · c55d1667
      Michael Schurter authored
      Not setting the host name led the Go HTTP client to expect a certificate
      with a DNS-resolvable name. Since Nomad uses `${role}.${region}.nomad`
      names ephemeral dir migrations were broken when TLS was enabled.
      
      Added an e2e test to ensure this doesn't break again as it's very
      difficult to test and the TLS configuration is very easy to get wrong.
      c55d1667
  27. 18 Apr, 2018 1 commit
  28. 03 Apr, 2018 2 commits
  29. 29 Mar, 2018 1 commit
  30. 21 Mar, 2018 4 commits