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

Refactor Consul Syncer into new ServiceClient #2467

Merged
merged 38 commits into from
Apr 19, 2017
Merged

Commits on Apr 19, 2017

  1. Refactor Consul Syncer into new ServiceClient

    Fixes #2478 #2474 #1995 #2294
    
    The new client only handles agent and task service advertisement. Server
    discovery is mostly unchanged.
    
    The Nomad client agent now handles all Consul operations instead of the
    executor handling task related operations. When upgrading from an
    earlier version of Nomad existing executors will be told to deregister
    from Consul so that the Nomad agent can re-register the task's services
    and checks.
    
    Drivers - other than qemu - now support an Exec method for executing
    abritrary commands in a task's environment. This is used to implement
    script checks.
    
    Interfaces are used extensively to avoid interacting with Consul in
    tests that don't assert any Consul related behavior.
    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    10cb924 View commit details
    Browse the repository at this point in the history
  2. Remove unused syncInterval

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    e13b149 View commit details
    Browse the repository at this point in the history
  3. Remove some lies

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    7930d35 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b693791 View commit details
    Browse the repository at this point in the history
  5. Switch ServiceClient to synchronizing state

    Previously it applied a stream of operations. Reconciling state is less
    complex and error prone at the cost of slightly higher CPU/memory usage.
    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    80882f3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b4e40ef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    63a8307 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a3fc76b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fd69d48 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b4c7d92 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4002d87 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0e0845e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7ac9215 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    80617a9 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    48269c3 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5d75efc View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6bb7d8b View commit details
    Browse the repository at this point in the history
  18. Fix circular test imports

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    db8aabe View commit details
    Browse the repository at this point in the history
  19. Remove stale comment

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    4f22413 View commit details
    Browse the repository at this point in the history
  20. Remove commits return value

    ...and still protect against leaking agent entries in Consul on
    shutdown.
    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    7de3ada View commit details
    Browse the repository at this point in the history
  21. Rework to account for ports not being in IDs

    Previous implementation assumed all struct fields were included in
    service and check IDs. Service IDs never include port labels and check
    IDs *optionally* include port labels, so lots of things had to change.
    
    Added a really big test to exercise this.
    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    927b265 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6a56b0e View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    465cc51 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    d3f3af8 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    de3d783 View commit details
    Browse the repository at this point in the history
  26. Explain weird timer logic

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    f0bec63 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8e0c97e View commit details
    Browse the repository at this point in the history
  28. Only register HTTPS agent check when Consul>=0.7.2

    Support for TLSSkipVerify in other checks coming soon!
    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    3468383 View commit details
    Browse the repository at this point in the history
  29. Forgot an important word

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    5948daf View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    6d9e61b View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    64057d4 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    86bc2fb View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    7c67166 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    4cf34ed View commit details
    Browse the repository at this point in the history
  35. Document tls_skip_verify

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    a5dcf6b View commit details
    Browse the repository at this point in the history
  36. Thanks go vet!

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    b9ea276 View commit details
    Browse the repository at this point in the history
  37. Fix Windows build.

    schmichael committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    fb3b30b View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    58430bf View commit details
    Browse the repository at this point in the history