Commit Graph

409 Commits

Author SHA1 Message Date
Mahmood Ali 04f787d3fa remove unused go-lxc vendored library 2019-01-08 09:28:21 -05:00
Danielle Tomlinson 734574bc25 deps: Update x/net/context
This allows std context to be used in place of an x/net/context and
unblocks updating to the latest version of go-plugin.
2019-01-08 13:45:10 +01:00
Chris Baker 4109306fff updated serf along with raft 2019-01-04 16:56:26 +00:00
Chris Baker 11c4496a4d updated to latest hashicorp/raft and hashicorp/memberlist to pull
upstream fixes for accept-loop error handling
2019-01-04 14:01:36 +00:00
Alex Dadgar 4c57d2ec4d Add plugin API versioning to plugin loader and plugins 2018-12-18 16:48:00 -08:00
Chris Baker 4bbb8106c1 updated memberlist dependency to latest, which is missing NMD-1173 error 2018-12-07 22:15:05 +00:00
Mahmood Ali 91a67f347d Vendor libcontainer/devices 2018-12-07 09:13:27 -05:00
Mahmood Ali 3f1887db8c Update go-lxc library to handle LXC 3.0 2018-11-27 21:40:43 -05:00
Preetha Appan cba7ed58e0
update consul template 2018-11-15 14:15:12 -06:00
Mahmood Ali 1010213db2 format vendor.json 2018-11-14 20:17:11 -05:00
Mahmood Ali 713c9fe683 Move Stat{Object|Value} to plugins/shared/structs
Moving them as they may be useful for other packages/plugins besides
devices.
2018-11-14 09:01:26 -05:00
Alex Dadgar 204ca8230c Device manager
Introduce a device manager that manages the lifecycle of device plugins
on the client. It fingerprints, collects stats, and forwards Reserve
requests to the correct plugin. The manager, also handles device plugins
failing and validates their output.
2018-11-07 10:43:15 -08:00
Nick Ethier 5dee1141d1 executor v2 (#4656)
* client/executor: refactor client to remove interpolation

* executor: POC libcontainer based executor

* vendor: use hashicorp libcontainer fork

* vendor: add libcontainer/nsenter dep

* executor: updated executor interface to simplify operations

* executor: implement logging pipe

* logmon: new logmon plugin to manage task logs

* driver/executor: use logmon for log management

* executor: fix tests and windows build

* executor: fix logging key names

* executor: fix test failures

* executor: add config field to toggle between using libcontainer and standard executors

* logmon: use discover utility to discover nomad executable

* executor: only call libcontainer-shim on main in linux

* logmon: use seperate path configs for stdout/stderr fifos

* executor: windows fixes

* executor: created reusable pid stats collection utility that can be used in an executor

* executor: update fifo.Open calls

* executor: fix build

* remove executor from docker driver

* executor: Shutdown func to kill and cleanup executor and its children

* executor: move linux specific universal executor funcs to seperate file

* move logmon initialization to a task runner hook

* client: doc fixes and renaming from code review


* taskrunner: use shared config struct for logmon fifo fields

* taskrunner: logmon only needs to be started once per task
2018-10-16 16:53:31 -07:00
Nick Ethier 03422aa529 fifo: add new fifo package for named pipes (#4665)
* fifo: add new fifo package for named pipes
2018-10-16 16:53:30 -07:00
Nick Ethier 66ff12e5f7 Update runc/libcontainer and friends (#4655)
* vendor: bump libcontainer and docker to remove Sirupsen imports

* vendor: fix bad vendoring of archive package

* vendor: fix api changes to cgroups in executor

* vendor: fix docker api changes

* vendor: update github.com/Azure/go-ansiterm to use non capitalized logrus import
2018-10-16 16:53:30 -07:00
oleksii.shyman b4a4b395e3 Introduce nvidia-plugin fingerprinting
- created go-nvml wrapper for fingerprinting
  - added fingerprinting feature to nvidia-plugin
2018-10-03 15:11:56 -07:00
Alex Dadgar d58595b0b9 vendor vault api for backwards compatibility 2018-09-19 10:23:18 -07:00
Alex Dadgar 9dc26699b4 vendor yamux 2018-09-17 13:58:51 -07:00
Alex Dadgar 8b01793d63 vault consts 2018-09-11 12:05:47 -07:00
Alex Dadgar 66d40431f1 remove toplevel vault dependency 2018-09-11 10:19:03 -07:00
Alex Dadgar 50bf6b3e93 Missing vendors 2018-09-10 15:08:34 -07:00
Alex Dadgar 808397eca6 circonus 2018-09-10 15:03:17 -07:00
Alex Dadgar 08286a54dc Update retryablehttp 2018-09-10 15:02:05 -07:00
Alex Dadgar 38268aab24 vendor vault 0.11.1 api 2018-09-10 14:58:31 -07:00
Chelsea Holland Komlo 67f2e6c046 vendor github.com/golang/protobuf/ptypes/empty 2018-08-14 16:20:20 -04:00
Michael Schurter 2a3eac1ce3
Merge pull request #4568 from hashicorp/vendor-fix-blake2b
vendor: fix blake2b on non-amd64 archs
2018-08-13 15:46:32 -07:00
Alex Dadgar c324e98a25 Initial go-plugin 2018-08-12 15:58:39 -07:00
Alex Dadgar 42b432d18d block attr spec 2018-08-10 11:14:12 -07:00
Michael Schurter 080dca7329 vendor: fix blake2b on non-amd64 archs
The blake2b package only includes an asm implementation for amd64. Other
architectures use a generic Go implementation. Unfortunately appengine
is one of those architectures and we explicitly ignore appengine when
vendoring because it is an unsupported platform for Nomad.

Commit 925ec07a4 started ignoring appengine to help trim down the vendor
package. We now need to include appengine again - despite not building
for it - just to avoid accidently breaking other archs we do support.
2018-08-09 10:33:21 -07:00
Alex Dadgar 58a85f911e Vendor conflicts
Vendored the tagged version of protobuf.
2018-08-07 13:02:47 -07:00
Chelsea Holland Komlo 7f7e149b80 fix up merge 2018-08-06 11:54:56 -04:00
Chelsea Holland Komlo 9fe77e63ce don't vendor protoc-gen-go 2018-08-06 11:45:00 -04:00
Chelsea Holland Komlo d8fb48a45e vendorfmt 2018-08-06 11:45:00 -04:00
Michael Schurter 1adf360d40
Merge pull request #4553 from hashicorp/vendor-blake2b
vendor: update blake2b and dependencies
2018-08-03 16:52:27 -07:00
Michael Schurter 69780b9943 vendor: update blake2b and dependencies
All of this just to get something faster than md5... yeesh.
2018-08-02 12:00:51 -07:00
Nick Ethier bba732b2c3
vendor: update github.com/hashicorp/go-hclog 2018-07-31 13:51:30 -04:00
Nick Ethier a3be46b5ee
vendor: remove unused github.com/kardianos/osext 2018-07-05 11:04:12 -04:00
Alvin Huang ca3d767d40 bump go-discover to fix Azure provider `vendor.json` file 2018-06-20 12:51:52 -04:00
Preetha Appan ca5758741b
Update serf to pick up graceful leave fix 2018-05-10 11:16:24 -05:00
Preetha e7ae6e98d9
Merge pull request #4259 from hashicorp/f-deployment-improvements 2018-05-08 16:37:10 -05:00
Chelsea Holland Komlo 8d3c739832 remove unused dependencies 2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo d215326de7 update go-discover 2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo a6aa2f6bfa vendor go-discover 2018-05-07 16:57:07 -04:00
Alex Dadgar d7e01b2531
vendor testify 2018-05-07 14:50:01 -05:00
Michael Schurter 0996c7da4e vendor: update consul for grpc 2018-05-04 11:08:11 -07:00
Preetha Appan 698a52f4d1 Fix vendor file format 2018-04-25 16:32:36 -07:00
Preetha Appan f2a817fdf4 Update go-getter to pick up file accesstime fix 2018-04-25 16:32:36 -07:00
Charlie Voiselle 4a5f90194c Vendored hashicorp/go-getter
Brings in fix for directory permissions when expanding tarballs
2018-04-10 13:07:35 -05:00
Nick Ethier f6b0473900 vendor: update mitchellh/cli and transitive deps 2018-04-09 18:02:14 -04:00
Nick Ethier a541707528 vendor: pull in go-safetemp 2018-04-09 17:19:26 -04:00
Alex Dadgar 0733ef47e6 vendor go-getter 2018-04-09 13:34:38 -07:00
Alex Dadgar 73d2d8eb1a vendor vault/api to get fix from https://github.com/hashicorp/vault/pull/4258 2018-04-03 15:48:26 -07:00
Alex Dadgar a950db3a95 vendor gosockaddr 2018-03-20 10:39:39 -07:00
Preetha Appan 913317a767
Update yamux library to pick up memory performance optimization 2018-03-14 15:14:52 -05:00
Alex Dadgar 4844317cc2
Merge pull request #3890 from hashicorp/b-heartbeat
Heartbeat improvements and handling failures during establishing leadership
2018-03-12 14:41:59 -07:00
Preetha Appan df0d3358bc
Add missing deps needed for ginkgo 2018-03-12 10:30:56 -05:00
Preetha Appan e0a39c7e40
Initial commit of end to end tests integration tests for rescheduling using ginkgo 2018-03-09 16:24:50 -06:00
Charlie Voiselle 192176b89e Vendored gopsutil to fix partial vendoring 2018-03-05 20:26:23 -05:00
Alvin Huang bb09314d84 pin github.com/stretchr/testify/assert in vendor.json 2018-03-01 18:31:21 -05:00
Michael Ihde 359e1f3497 Update vendor package github.com/shirou/gopsutil/process, resolves #3881 2018-02-26 22:34:44 -05:00
Alex Dadgar 9fee7b2afc Pull in new autopilot 2018-02-21 10:24:32 -08:00
Charlie Voiselle 3ce3aaf0c0 Vendored go-sockaddr and go-sockaddr/template 2018-02-08 09:30:05 -05:00
Kyle Havlovitz c807fc5b86
Merge pull request #3787 from hashicorp/server-health-loop
Move server health loop into autopilot leader actions
2018-01-23 15:22:25 -08:00
Kyle Havlovitz a162b9ce14 Move server health loop into autopilot leader actions 2018-01-23 12:57:02 -08:00
Alex Dadgar 98a03ad689
Merge pull request #3754 from filipochnik/docker-caps
Add an option to add and drop capabilities in the Docker driver
2018-01-23 12:02:50 -08:00
Chelsea Komlo d09cc2a69f
Merge pull request #3492 from hashicorp/f-client-tls-reload
Client/Server TLS dynamic reload
2018-01-23 05:51:32 -05:00
Michael Schurter 2fb69d33c4 Update go-envparse to allow dots in env vars
Includes hashicorp/go-envparse#2
2018-01-22 14:02:39 -08:00
Chelsea Holland Komlo db83b203e7 specified version of raft should be master 2018-01-22 09:02:26 -05:00
Filip Ochnik 4abd269a68
Merge branch 'master' into docker-caps 2018-01-21 12:18:22 +01:00
Filip Ochnik 558812350d Finish implementation of the capabilities whitelist 2018-01-21 12:14:24 +01:00
Chelsea Holland Komlo d86bee57da vendor raft to master branch 2018-01-19 17:00:15 -05:00
Kyle Havlovitz 12ff22ea70 Merge branch 'master' into autopilot 2018-01-18 13:29:25 -08:00
Kyle Havlovitz 7b980c42d8 Add raft remove by id endpoint/command 2018-01-16 13:35:32 -08:00
Alex Dadgar 40f614699d add require 2018-01-04 14:40:11 -08:00
Kyle Havlovitz 60279e328f vendor: add autopilot and flags packages from consul 2017-12-18 14:29:35 -08:00
Preetha Appan 61a7606cd4
Changes vendor.json to one dependency per line 2017-12-12 10:30:36 -06:00
Michael Schurter 1dd5b3822c
Merge pull request #3608 from hashicorp/b-3342-windows-log-leak
Fix bug in log framer only affecting Windows
2017-12-08 10:59:26 -08:00
Alex Dadgar 5c9e4a5321 Update go-getter 2017-12-06 11:16:17 -08:00
Michael Schurter 5c00d10fe2 Update tail, x/sys, and fsnotify deps 2017-11-30 15:52:43 -08:00
Chelsea Holland Komlo 2208964948 Support StopTimeout for Docker tasksw
Update github.com/fsouza/go-dockerclient
2017-11-29 14:33:05 -05:00
Alex Dadgar 69d3bf7392
Merge pull request #3559 from hashicorp/b-metrics
Don't emit metrics for non-running tasks
2017-11-17 10:33:23 -08:00
Michael Schurter 737fb45640
Merge pull request #3551 from hashicorp/b-3419-docker-409-bug
Fix Docker name conflict bug by updating dockerclient
2017-11-16 16:38:54 -08:00
Alex Dadgar 7e509e24ba Vendor in fixed go-metrics 2017-11-16 10:42:49 -08:00
Michael Schurter a3ad2771da Update go-dockerclient to fix #3419
Includes this workaround:
99ba9a9ff4/container.go (L634-L637)
2017-11-14 15:57:09 -08:00
Preetha 8e20aba14a
Merge pull request #3543 from hashicorp/b-consul-template-vendor-update
Vendor update to consul template 0.19.4
2017-11-14 09:35:33 -06:00
Preetha Appan c60b7d45ed Vendor update to consul template 0.19.4 2017-11-13 14:58:36 -06:00
Alex Dadgar 8f6f9e9e49 Clean vendored packages
This PR removes unused packages from the vendor folder.
2017-11-10 13:00:32 -08:00
Alex Dadgar 57cb99ea54 update consul-lib 2017-10-31 09:41:02 -07:00
Alex Dadgar 506f32b303 vendor freeport 2017-10-25 15:49:53 -07:00
preetapan 333baf0c86 Merge pull request #3443 from hashicorp/vendor_update_codegen
Updates vendor directory to get code generation working correctly
2017-10-25 13:00:34 -05:00
Preetha Appan a3e8de3090 Updates vendor directory to get code generation working correctly 2017-10-25 12:15:31 -05:00
Alex Dadgar cb0d0ef009 move to consul freeport implementation 2017-10-23 16:51:40 -07:00
Alex Dadgar 9c1d17c242 vendor consul testutil 2017-10-20 17:22:30 -07:00
Michael Schurter c9a73ac76e Support CORS for client endpoints
Added to /v1/client/stats and /v1/client/allocation/
2017-10-18 17:32:36 -07:00
Michael Schurter 84f480528a Consul test server fork without porter/rpc.ports 2017-10-16 17:05:00 -07:00
Michael Schurter c01efb0a6d Update vendored Consul to 1.0.0
Also install new porter dep
2017-10-16 16:04:14 -07:00
Alex Dadgar 1b3af355a6 vendor consul-template 2017-10-11 17:23:09 -07:00
Alex Dadgar a2a543114e Merge pull request #3348 from hashicorp/f-ui
Nomad UI Command
2017-10-11 15:52:29 -07:00
Michael Schurter 67ebc44eae Merge pull request #3345 from hashicorp/vendor-checkpoint-with-timeout
Updating go-checkpoint lib to have a fixed timeout
2017-10-10 09:52:17 -07:00
Alex Dadgar 6d3d0a9391 Nomad UI Command 2017-10-09 23:01:55 -07:00
Matt McQuillan 120ab59e0e Updating go-checkpoint lib to have a fixed timeout 2017-10-09 15:23:46 -04:00
Michael Schurter 0c83edbceb Update go-testing-interface
Needed for T.Helper and T.Skipf
2017-10-06 14:35:14 -07:00
Alex Dadgar e6bfbe261b Merge pull request #3269 from hashicorp/v-bolt
Update bolt
2017-09-27 11:53:32 -07:00
Alex Dadgar dd98953f02 Update bolt 2017-09-25 14:43:44 -07:00
Lasse Dalegaard cbcbe0da2e Expose rkt DriverNetwork
Currently the rkt driver does not expose a DriverNetwork instance after
starting the container, which means that address_mode = 'driver' does
not work.

To get the container network information, we can call `rkt status` on
the UUID of the container and grab the container IP from there.

For the port map, we need to grab the pod manifest as it will tell us
which ports the container exposes. We then cross-reference the
configured port name with the container port names, and use that to
create a correct port mapping.

To avoid doing a (bad) reimplementation of the appc schema(which rkt
uses for its manifest) and rkt apis, we pull those in as vendored
dependencies. The versions used are the same ones that rkt use in their
glide dependency configuration for version 1.28.0.
2017-09-21 00:34:22 +02:00
Alex Dadgar fce29e44e8 vendor gzip 2017-09-19 11:31:42 -05:00
Alex Dadgar e5ec915ac3 sync 2017-09-19 10:08:23 -05:00
Chelsea Holland Komlo 4ccb73ac67 vendor go-metrics 2017-09-13 19:31:26 +00:00
Chelsea Holland Komlo 2939751811 vendor gzip libarary 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo 1da4027758 vendor necessary libraries for prometheus metrics 2017-09-13 19:21:21 +00:00
Alex Dadgar a2363e7583 sync acls 2017-09-13 11:38:29 -07:00
Chelsea Holland Komlo efa61e80f2 vendor blake2b to allow for building on 386 architecture 2017-09-11 18:10:34 +00:00
Alex Dadgar 19a11f15d5 Merge pull request #3177 from hashicorp/f-cli-hidden
Hide non-user commands from autocomplete output
2017-09-11 10:02:08 -07:00
James Nugent 6d805dfad0 deps: Update golang.org/x/sys/{unix,windows} 2017-09-08 13:33:25 -05:00
Alex Dadgar 41b22ba9eb Hide non-user commands from autocomplete output
This PR hides non-user CLI commands from the list of autocomplete
suggestions.
2017-09-08 11:24:21 -07:00
Alex Dadgar cc13d4db7d Vendor cli to get exit code 127 on unknown command 2017-09-06 17:19:07 -07:00
Alex Dadgar 50058386bb Merge pull request #3164 from hashicorp/v-go-getter
Update go-getter
2017-09-05 16:54:19 -07:00
Alex Dadgar 6de1e5d208 Vendor consul-template (#3153)
* Vendor consul-template

Fixes https://github.com/hashicorp/nomad/issues/3133

* changelog
2017-09-05 16:53:28 -07:00
Alex Dadgar 5e8635ff15 Update go-getter
Fixes https://github.com/hashicorp/nomad/issues/3154
2017-09-05 16:41:33 -07:00
Chelsea Holland Komlo f59cef0c2f vendor latest version of go-metrics and datadog-go/statsd 2017-09-05 14:11:49 +00:00
Armon Dadgar 568ccf0485 vendoring blake2b 2017-09-04 13:07:44 -07:00
Alex Dadgar ad87c6fba5 Include google compare library 2017-09-01 16:42:09 -07:00
Alex Dadgar 8486042a86 vendor go-memdb 2017-08-31 15:16:11 -07:00
Alex Dadgar 590ff91bf3 Deployment watcher takes state store 2017-08-30 18:51:59 -07:00
Alex Dadgar 6aaffa30f0 vendor template 2017-08-29 16:57:40 -07:00
Alex Dadgar 3fceafe2b6 Fix path completions on zsh
This PR fixes autocompletion of paths that include folders on zsh.
2017-08-29 16:39:44 -07:00
Michael Schurter 985f571c37 Vendor missing windows dep 2017-08-28 16:13:48 -07:00
Chelsea Holland Komlo 2992c0ccd0 vendor updated cli and autocomplete dependencies 2017-08-25 16:43:49 +00:00
Alex Dadgar 95c68156bc vendor complete library 2017-08-25 09:39:04 -07:00
Alex Dadgar 860db2e4a9 Revendor isatty since it is used by mitchellh/cli 2017-08-23 15:46:56 -07:00
Alex Dadgar 2ee5b6c39d Change tty detection library 2017-08-23 14:35:50 -07:00
Alex Dadgar 3f0fc016e5 Detect STDOUT isn't a TTY and disable color
This PR disables color output when the STDOUT is not a TTY. This makes
running commands under `watch` or other commands nicer.
2017-08-23 14:35:26 -07:00
Alex Dadgar 14bae424e1 Merge pull request #3041 from hashicorp/b-3036-update-gopsutil
Update gopsutil to stop calling SetEnv
2017-08-21 10:42:04 -07:00
Michael Schurter 6b8bac4929 Update to latest upstream gopsutil 2017-08-17 16:52:53 -07:00
Michael Schurter b16304416e Add missing consul/testutil/retry pkg 2017-08-17 16:44:21 -07:00
Michael Schurter 4e72a8dedf Update Consul to v0.9.2 for Header and Method 2017-08-17 16:44:21 -07:00
Michael Schurter 192db801d1 Update gopsutil to stop calling SetEnv
Fixes #3036
2017-08-16 15:05:24 -07:00
Michael Schurter 9d93df6dc5 Vendor vault test deps
This is a weird one because `make bootstrap` does a `go get vault` so CI
never fails due to missing Vault dependencies. However developer
machines will have whatever version of vault they grabbed last time they
bootstrapped a new dev environment.

This can lead to surprising build issues and different devs testing
slightly different code.

So let's vendor all test deps to try to keep the Nomad repo
self-contained.
2017-08-11 10:31:05 -07:00
Alex Dadgar 6b238edc22 Merge pull request #3001 from hashicorp/f-template-events
Template emits events explaining why it is blocked
2017-08-10 13:00:58 -07:00
Alex Dadgar 4dbf88c354 Vendor new consul-template 2017-08-09 14:42:16 -07:00
Michael Schurter d1888f5b97 Merge pull request #2983 from hashicorp/b-update-raft-atomics2
Update raft to fix atomics alingment on 32bit
2017-08-07 16:40:54 -07:00
Michael Schurter c1be2c3193 Update raft to fix atomics alingment on 32bit
Related to #2963

Also pulls in some state file syncing improvements
2017-08-07 16:07:35 -07:00
Alex Dadgar 562ea52c8e vendor vault api 2017-08-01 09:30:55 -07:00
Alex Dadgar 8df67563c7 Update consul-template 2017-08-01 09:24:23 -07:00
Alex Dadgar 96252a0f1a Merge pull request #2928 from hashicorp/b-cli-autocomplete
Fix autocmpleting global flags
2017-07-31 11:25:34 -07:00
James Nugent d778d9d566 Update gopsutil (#2927)
* deps: Update github.com/go-ole/go-ole/...

* deps: Update github.com/StackExchange/wmi

* deps: Update github.com/shirou/gopsutil/...

* deps: Update github.com/ugorji/go/codec
2017-07-28 09:46:44 -07:00
Alex Dadgar bce0ff2640 Fix autocmpleting global flags
This PR vendors a change to the CLI package that allows autocompleting
global flags at the top level command.
2017-07-28 09:44:48 -07:00
Michael Schurter 5f1f91a46c Use go-testing-interface instead of testing
This drops the testings stdlib pkg from our dependencies. Saves a
whopping 46kb on our binary (was really hoping for more of a win there),
but also avoids potential ugliness with how testing sets flags.
2017-07-25 15:35:19 -07:00
Alex Dadgar a8f440bade Vendor go-plugin 2017-07-21 12:11:21 -07:00
Michael Schurter 96e9857f12 Missing hashicorp/serf/serf dep 2017-07-19 11:53:53 -07:00