Commit Graph

319 Commits

Author SHA1 Message Date
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
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
Alex Dadgar 58a85f911e Vendor conflicts
Vendored the tagged version of protobuf.
2018-08-07 13:02:47 -07:00
Chelsea Holland Komlo 9fe77e63ce don't vendor protoc-gen-go 2018-08-06 11:45:00 -04:00
Chelsea Holland Komlo 1b598cbbb2 update grpc vendor dependencies 2018-08-06 11:43:24 -04: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 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 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
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
Filip Ochnik ab7e104db5 Fix moby package location 2018-01-21 12:35:41 +01: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