Commit Graph

373 Commits

Author SHA1 Message Date
Mahmood Ali b08f59cdda
Merge pull request #5162 from hashicorp/f-extract-lxc
Extract LXC from nomad
2019-01-09 13:07:05 -05:00
Danielle Tomlinson cca5f41360 vendor: Update go-plugin
This fixes a bug related to shutting down of GRPC plugin interfaces
(more info: https://github.com/hashicorp/go-plugin/pull/88)

This does not yet fix all test cases for subprocess leaking, but is a
useful independant change.
2019-01-08 17:43:20 +01:00
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 ca121ce110 review feedback 2018-08-07 13:03: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
Chelsea Holland Komlo 1b598cbbb2 update grpc vendor dependencies 2018-08-06 11:43:24 -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