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. 07 Sep, 2022 11 commits
    • Phil Renaud's avatar
      Merge pull request #14408 from hashicorp/f-ui/service-discovery · 0029de8a
      Phil Renaud authored
      Service discovery in the Nomad UI
      0029de8a
    • Phil Renaud's avatar
      Remove an unused internal test comment · e9169e1b
      Phil Renaud authored
      e9169e1b
    • Phil Renaud's avatar
      Further unused test deletion · 9a1d7210
      Phil Renaud authored
      9a1d7210
    • Phil Renaud's avatar
      Changelog added and unused tests removed · 5674dd42
      Phil Renaud authored
      5674dd42
    • Phil Renaud's avatar
      [ui] Service Discovery: Allocation Service fly-out (#14389) · e68f07e9
      Phil Renaud authored
      * Bones of a new flyout section
      
      * Basic sidebar behaviour and style edits
      
      * Concept of a refID for service fragments to disambiguate task and group
      
      * A11y audit etc
      
      * Moves health check aggregation to serviceFragment model and retains history
      
      * Has to be a getter
      
      * flyout populated
      
      * Sidebar styling
      
      * Sidebar table and details added
      
      * Mirage fixture
      
      * Active status and table styles
      
      * Unit test mock updated
      
      * Acceptance tests for alloc services table and flyout
      
      * Chart styles closer to mock
      
      * Without a paused test
      
      * Consul and Nomad icons in services table
      
      * Alloc services test updates in light of new column changes
      
      * without using an inherited scenario
      e68f07e9
    • Jai's avatar
      ui: add to collection (#14472) · 9f0d9c92
      Jai authored
      9f0d9c92
    • Phil Renaud's avatar
      [ui] Jobs/jobid/services table sorting (#14410) · e39246f1
      Phil Renaud authored
      * Sortable job service table
      
      * sorting removed from specific service page
      e39246f1
    • Phil Renaud's avatar
      Job Services: fixtures and acceptance tests (#14319) · bf73a51a
      Phil Renaud authored
      * Added to subnav and basic table implemented
      
      * Existing services become service fragments, and services tab aggregated beneath job route
      
      * Index page within jobs/job/services
      
      * Watchable services
      
      * Lintfixes
      
      * Links to clients and individual services set up
      
      * Child service route
      
      * Keyboard shortcuts on service page
      
      * Model that shows consul services as well, plus level and provider cols
      
      * lintfix
      
      * Level as query param
      
      * Watch job for service name changes too
      
      * Group level service fixtures established
      
      * Progress at task level and job-linked services
      
      * Task and group services on update
      
      * Fixture side-effect cleanup
      
      * Basic acceptance tests for job services
      
      * Testmodel cleanup
      
      * Disabled mirage logging
      
      * New cluster type specifically for services
      
      * Without explicit job-model binding
      
      * Trying to isolate a tostring error
      
      * Account for new tab in keyboardnav
      
      * More test isolation attempts
      
      * Remove skipped tests and link task to parent group by id
      
      ui: add service health viz to table (#14369)
      
      * ui: add service-status-bar
      
      * test: service-status-bar
      
      * refact: update component api for new data struct
      
      * ui: format service health struct
      
      * ui:  add service health viz to table
      
      * temp: add placeholder to remind conditional watcher
      
      * test: write tests for transformation algorithm
      
      * refact: update transformation algo
      
      * ui: conditionally long poll checks endpoint
      
      * refact: add conditional logic for nomad provider
      
      refact: update service-fragment model to include owner info
      
      ui: differentiate between task and group-level in derived state comp
      
      test: add test to document behavior
      
      refact: update tests for api change
      
      refact: update integration test for API change
      
      chore: remove unsused vars
      
      chore: elvis operator to protect mirage
      
      refact: create refId instead of internalModel
      
      refact: update algo
      
      refact: update conditional template logic
      
      refact: update test for api change:
      
      chore: cant use if and not in hbs conditional
      bf73a51a
    • Jai's avatar
      ui: long poll `/checks` endpoint (#14354) · 08fe41fe
      Jai authored
      * chore: add lodash isEqual package
      
      * ui: fetch non ember-data records
      
      * ui: create watcher to poll non ember-data records
      08fe41fe
    • Phil Renaud's avatar
      Nomad Services: job routes, model, and serializer updates (#14226) · 90fbaa15
      Phil Renaud authored
      * Added to subnav and basic table implemented
      
      * Existing services become service fragments, and services tab aggregated beneath job route
      
      * Index page within jobs/job/services
      
      * Watchable services
      
      * Lintfixes
      
      * Links to clients and individual services set up
      
      * Child service route
      
      * Keyboard shortcuts on service page
      
      * Model that shows consul services as well, plus level and provider cols
      
      * lintfix
      
      * Level as query param
      
      * Watch job for service name changes too
      
      * Lintfix
      
      * Testfixes
      
      * Placeholder mirage route
      90fbaa15
    • Tim Gross's avatar
      autopilot: deflake tests (#14475) · 534869eb
      Tim Gross authored
      Includes:
      
      * Remove leader upgrade raft version test, as older versions of raft are now
        incompatible with our autopilot library.
      
      * Remove attempt to assert initial non-voter status on the `PromoteNonVoter`
        test, as this happens too quickly to reliably detect.
      
      * Unskip some previously-skipped tests which we should make stable.
      
      * Remove the `consul/sdk` retry helper for these tests; this uses panic recovery
        in a kind of a clever/gross way to reduce LoC but it seems to introduce some
        timing issues in the process.
      
      * Add more test step logging and reduce logging noise from the scheduler
        goroutines to make it easier to debug failing tests.
      
      * Be more consistent about using the `waitForStableLeadership` helper so that we
        can assert the cluster is fully stable and not just that we've added peers.
      534869eb
  2. 06 Sep, 2022 5 commits
  3. 02 Sep, 2022 5 commits
  4. 01 Sep, 2022 9 commits
  5. 31 Aug, 2022 5 commits
  6. 30 Aug, 2022 5 commits
    • Luiz Aoqui's avatar
      ci: fix TestNomad_BootstrapExpect_NonVoter test (#14407) · 53da285c
      Luiz Aoqui authored
      PR #12130 refactored the test to use the `wantPeers` helper, but this
      function only returns the number of voting peers, which in this test
      should be equal to 2.
      
      I think the tests were passing back them because of a bug in Raft
      (https://github.com/hashicorp/raft/pull/483) where a non-voting server
      was able to transition to candidate state.
      
      One possible evidence of this is that a successful test run would have
      the following log line:
      
      ```
      raft@v1.3.5/raft.go:1058: nomad.raft: updating configuration: command=AddVoter server-id=127.0.0.1:9101 server-addr=127.0.0.1:9101 servers="[{Suffrage:Voter ID:127.0.0.1:9107 Address:127.0.0.1:9107} {Suffrage:Voter ID:127.0.0.1:9105 Address:127.0.0.1:9105} {Suffrage:Voter ID:127.0.0.1:9103 Address:127.0.0.1:9103} {Suffrage:Voter ID:127.0.0.1:9101 Address:127.0.0.1:9101}]"
      ```
      
      This commit reverts the test logic to check for peer count, regardless
      of voting status.
      53da285c
    • Charlie Voiselle's avatar
      Vars: Update CT dependency to support variables. (#14399) · 015e4617
      Charlie Voiselle authored
      * Update Consul Template dep to support Nomad vars
      
      * Remove `Peering` config for Consul Testservers
      Upgrading to the 1.14 Consul SDK introduces and additional default
      configuration—`Peering`—that is not compatible with versions of Consul
      before v1.13.0. because Nomad tests against Consul v1.11.1, this
      configuration has to be nil'ed out before passing it to the Consul
      binary.
      015e4617
    • Tim Gross's avatar
      testing: setting env var incompatible with parallel tests (#14405) · 13bc6d6d
      Tim Gross authored
      Neither the `os.Setenv` nor `t.Setenv` helper are safe to use in parallel tests
      because environment variables are process-global. The stdlib panics if you try
      to do this. Remove the `ci.Parallel()` call from all tests where we're setting
      environment variables.
      13bc6d6d
    • Tim Gross's avatar
    • Tim Gross's avatar
      keyring: wrap root key in key encryption key (#14388) · b7fea76f
      Tim Gross authored
      Update the on-disk format for the root key so that it's wrapped with a unique
      per-key/per-server key encryption key. This is a bit of security theatre for the
      current implementation, but it uses `go-kms-wrapping` as the interface for
      wrapping the key. This provides a shim for future support of external KMS such
      as cloud provider APIs or Vault transit encryption.
      
      * Removes the JSON serialization extension we had on the `RootKey` struct; this
        struct is now only used for key replication and not for disk serialization, so
        we don't need this helper.
      
      * Creates a helper for generating cryptographically random slices of bytes that
        properly accounts for short reads from the source.
      
      * No observable functional changes outside of the on-disk format, so there are
        no test updates.
      b7fea76f