Seth Hoenig
bd03d2548f
tests: deflake test that joins a server with non-voting servers to form qourum
...
This PR
- upgrades the serf library
- has the test start the join process using the un-joined server first
- disables schedulers on the servers
- uses the WaitForLeader and wantPeers helpers
Not sure which, if any of these actually improves the flakiness of this test.
2022-02-24 17:02:58 -06:00
Sander Mol
0ae76b1af4
add go-sockaddr templating support to nomad consul address ( #12084 )
2022-02-24 09:34:54 -05:00
Seth Hoenig
16efcf4e71
core: switch to go.etc.io/bbolt
...
This PR swaps the underlying BoltDB implementation from boltdb/bolt
to go.etc.io/bbolt.
In addition, the Server has a new configuration option for disabling
NoFreelistSync on the underlying database.
Freelist option: https://github.com/etcd-io/bbolt/blob/master/db.go#L81
Consul equivelent PR: https://github.com/hashicorp/consul/pull/11720
2022-02-23 14:26:41 -06:00
Seth Hoenig
49b97eb530
deps: upgrade hashicorp/raft to v1.3.5
2022-02-17 13:49:56 -06:00
Luiz Aoqui
fafb7cecce
Add go-bexpr filters to evals and deployment list endpoints ( #12034 )
2022-02-16 11:40:30 -05:00
Seth Hoenig
53577ea398
Merge pull request #11955 from hashicorp/f-update-gopsutil
...
Update gopsutil to 3.21.12
2022-02-15 08:31:57 -06:00
Seth Hoenig
e9ef2c0523
Merge pull request #12002 from hashicorp/dependabot/go_modules/github.com/hashicorp/go-version-1.4.0
...
build(deps): bump github.com/hashicorp/go-version from 1.3.0 to 1.4.0
2022-02-04 08:31:53 -06:00
dependabot[bot]
de7e94cf2e
build(deps): bump github.com/hashicorp/go-version from 1.3.0 to 1.4.0
...
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/hashicorp/go-version/releases )
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/go-version/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-03 21:41:10 +00:00
dependabot[bot]
3efd36ebb1
build(deps): bump google.golang.org/grpc from 1.42.0 to 1.44.0
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.42.0 to 1.44.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.42.0...v1.44.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-03 21:40:06 +00:00
Seth Hoenig
99e7735e8a
Merge pull request #11929 from hashicorp/dependabot/go_modules/github.com/mitchellh/copystructure-1.2.0
...
build(deps): bump github.com/mitchellh/copystructure from 1.1.1 to 1.2.0
2022-02-03 15:28:21 -06:00
Seth Hoenig
97176a5654
deps: import libtime the normal way
...
Previously we copied this library by hand to avoid vendor-ing a bunch of
files related to minimock. Now that we no longer vendor, just import the
library normally.
Also we might use more of the library for handling `time.After` uses,
for which this library provides a Context-based solution.
2022-01-31 14:49:05 -06:00
Charlie Voiselle
fd3928313f
Update gopsutil to 3.21.12
2022-01-27 14:10:15 -05:00
dependabot[bot]
d164917ce2
build(deps): bump github.com/mitchellh/copystructure from 1.1.1 to 1.2.0
...
Bumps [github.com/mitchellh/copystructure](https://github.com/mitchellh/copystructure ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/mitchellh/copystructure/releases )
- [Commits](https://github.com/mitchellh/copystructure/compare/v1.1.1...v1.2.0 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/copystructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 16:43:36 +00:00
dependabot[bot]
cce845ab45
build(deps): bump github.com/rs/cors from 1.8.0 to 1.8.2
...
Bumps [github.com/rs/cors](https://github.com/rs/cors ) from 1.8.0 to 1.8.2.
- [Release notes](https://github.com/rs/cors/releases )
- [Commits](https://github.com/rs/cors/compare/v1.8.0...v1.8.2 )
---
updated-dependencies:
- dependency-name: github.com/rs/cors
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-24 20:35:06 +00:00
Seth Hoenig
6c51333e97
Merge pull request #11918 from hashicorp/deps-update-api-deps
...
deps: update api go version and dependencies
2022-01-24 14:33:04 -06:00
Seth Hoenig
204e2d7f2d
Merge pull request #11883 from hashicorp/dependabot/go_modules/github.com/prometheus/client_golang-1.12.0
...
build(deps): bump github.com/prometheus/client_golang from 1.7.1 to 1.12.0
2022-01-24 12:26:50 -06:00
Seth Hoenig
5ef844c827
deps: update api go version and dependencies
...
This PR sets the minimum Go version for the `api` submodule to Go 1.17.
It also upgrades
- gorilla/websocket 1.4.1 -> 1.4.2
- mitchelh/mapstructure 1.4.2 -> 1.4.3
- stretchr/testify 1.5.1 -> 1.7.0
Closes #11518 #11602 #11528
2022-01-24 12:23:26 -06:00
Seth Hoenig
ab6dcebdb3
Merge pull request #11836 from hashicorp/dependabot/go_modules/github.com/hashicorp/memberlist-0.3.1
...
chore(deps): bump github.com/hashicorp/memberlist from 0.2.2 to 0.3.1
2022-01-24 11:56:18 -06:00
Seth Hoenig
3dc5214c3b
deps: upgrade containernetworking/plugins
...
Upgrade containernetworking/plugins to v1.0.1 release, along with
its transitive dependencies.
Closes #11108
2022-01-24 08:40:30 -06:00
Seth Hoenig
143705fb28
deps: pty has new home
...
github.com/kr/pty was moved to github.com/creack/pty
Swap this dependency so we can upgrade to the latest version
and no longer need a replace directive.
2022-01-19 12:33:05 -06:00
Seth Hoenig
d061e8eadf
deps: swap gzip handler for gorilla
...
This has been pinned since the Go modules migration, because the
nytimes gzip handler was modified in version v1.1.0 in a way that
is no longer compatible.
Pretty sure it is this commit: c551b6c3b4
Instead use handler.CompressHandler from gorilla, which is a web toolkit we already
make use of for other things.
2022-01-19 11:52:19 -06:00
dependabot[bot]
e23bc514ef
build(deps): bump github.com/prometheus/client_golang
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.7.1 to 1.12.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.7.1...v1.12.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-19 17:40:19 +00:00
Seth Hoenig
87dbc7162b
deps: upgrade docker and runc
...
This PR upgrades
- docker dependency to the latest tagged release (v20.10.12)
- runc dependency to the latest tagged release (v1.0.3)
Docker does not abide by [semver](https://github.com/moby/moby/issues/39302 ), so it is marked +incompatible,
and transitive dependencies are upgrade manually.
Runc made three relevant breaking changes
* cgroup manager .Set changed to accept Resources instead of Cgroup
3f65946756
* config.Device moved to devices.Device
https://github.com/opencontainers/runc/pull/2679
* mountinfo.Mounted now returns an error if the specified path does not exist
https://github.com/moby/sys/blob/mountinfo/v0.5.0/mountinfo/mountinfo.go#L16
2022-01-18 08:35:26 -06:00
Luiz Aoqui
3bf78fde47
Fix log level parsing from lines that include a timestamp ( #11838 )
2022-01-13 09:56:35 -05:00
dependabot[bot]
dc89c6b31e
chore(deps): bump github.com/hashicorp/memberlist from 0.2.2 to 0.3.1
...
Bumps [github.com/hashicorp/memberlist](https://github.com/hashicorp/memberlist ) from 0.2.2 to 0.3.1.
- [Release notes](https://github.com/hashicorp/memberlist/releases )
- [Commits](https://github.com/hashicorp/memberlist/compare/v0.2.2...v0.3.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/memberlist
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-13 00:45:05 +00:00
Michael Schurter
d65c6fcad8
deps: update go-getter to v1.5.11
...
Pulls in https://github.com/hashicorp/go-getter/pull/348
Fixes the possibility to log an sshkey if a specific error condition is
hit.
2022-01-12 14:11:16 -08:00
Tim Gross
000354a70e
deps: upgrade go-getter to 1.5.10 ( #11740 )
...
The `go-getter` library was updated to 1.5.9 in #11481 to pick up a
bug fix for automatically unpacking uncompressed tar archives. But
this version had a regression in git `ref` param behavior and was
patched in 1.5.10.
2021-12-23 10:37:52 -05:00
dependabot[bot]
9088bc3df0
build(deps): bump github.com/hashicorp/cronexpr from 1.1.0 to 1.1.1 in /api ( #11132 )
...
* build(deps): bump github.com/hashicorp/cronexpr in /api
Bumps [github.com/hashicorp/cronexpr](https://github.com/hashicorp/cronexpr ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/hashicorp/cronexpr/releases )
- [Commits](https://github.com/hashicorp/cronexpr/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/cronexpr
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* go mod tidy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Gross <tim@0x74696d.com >
2021-11-17 11:46:48 -05:00
Tim Gross
df41bdede9
deps: update go-getter to 1.5.9 ( #11481 )
...
go-getter 1.5.9 includes a patch in 1.5.6 that automatically unpacks
uncompressed tar archives. Previously Nomad only unpacked compressed
archives, but documented that it unpacked all archives.
2021-11-17 11:14:44 -05:00
dependabot[bot]
3e2bbc1db4
build(deps): bump github.com/kr/pretty from 0.1.0 to 0.3.0 in /api ( #11135 )
...
* build(deps): bump github.com/kr/pretty from 0.1.0 to 0.3.0 in /api
Bumps [github.com/kr/pretty](https://github.com/kr/pretty ) from 0.1.0 to 0.3.0.
- [Release notes](https://github.com/kr/pretty/releases )
- [Commits](https://github.com/kr/pretty/compare/v0.1.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/kr/pretty
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update in core as well and tidy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Gross <tim@0x74696d.com >
2021-11-17 10:41:21 -05:00
dependabot[bot]
7e9a3d8077
build(deps): bump github.com/aws/aws-sdk-go from 1.38.20 to 1.42.6 ( #11515 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.20 to 1.42.6.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.20...v1.42.6 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 10:20:48 -05:00
dependabot[bot]
4236f0200b
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2 ( #11325 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 09:32:20 -05:00
dependabot[bot]
1a3611e629
build(deps): bump github.com/fatih/color from 1.9.0 to 1.13.0 ( #11324 )
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.9.0 to 1.13.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.9.0...v1.13.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 09:16:12 -05:00
dependabot[bot]
b6f1bc1088
build(deps): bump github.com/rs/cors from 1.7.0 to 1.8.0 ( #11323 )
...
Bumps [github.com/rs/cors](https://github.com/rs/cors ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/rs/cors/releases )
- [Commits](https://github.com/rs/cors/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/cors
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 09:03:10 -05:00
James Rasell
cccec5beba
deps: update armon/go-metrics to v0.3.10.
2021-11-15 11:55:50 +01:00
Mahmood Ali
5f6ad87ca8
Fix arm64 panics by updating google/snappy library to latest, 0.0.4 ( #11396 )
...
Pick up https://github.com/golang/snappy/pull/56 to handle arm64 architectures to fix panics. tldr; Golang 1.16 changed `memmove` implementation for arm64 requiring additional cpu registers that snappy wasn't preserving in its assembly implementation.
Other projects have experienced this issue as well, searching for `encode_arm64.s:666` on your favorite search engine will reveal some. Vault updated the dependency earlier this August: https://github.com/hashicorp/vault/pull/12371 .
I believe this issue affects Nomad 1.2.x and 1.1.x. Nomad 1.0.x use Golang 1.15 and isn't affected. However, backporting the change to 1.0.x should be harmless.
Fixed https://github.com/hashicorp/nomad/issues/11385 .
2021-10-27 06:39:16 -07:00
Florian Apolloner
cc8d9443d2
Follow up fixes for #11237 ( #11260 )
2021-10-14 17:23:38 -04:00
James Rasell
594ba94878
deps: update hashicorp/go-hclog to v1.0.0
2021-10-07 07:48:41 +01:00
Mahmood Ali
60a66a14b1
logmon: add a test for leaked goroutines
2021-10-05 12:11:42 -04:00
Tim Gross
420bce0af0
devices: externalize nvidia device driver
2021-09-29 13:43:37 -07:00
Luiz Aoqui
b7d2da3a9e
deps: update go-memdb to 1.3.2 ( #11185 )
2021-09-14 20:26:45 -04:00
James Rasell
d71e4640d1
deps: update go-plugin to v1.4.3 to fix Windows handle leak.
2021-09-07 09:27:00 +02:00
Roopak Venkatakrishnan
5f5ec95282
Update x/sys to support go 1.17 ( #11065 )
...
Co-authored-by: James Rasell <jrasell@hashicorp.com >
2021-08-25 17:23:01 +02:00
Mahmood Ali
79cd4f8ffe
Update some dependencies to match Enterprise ( #10940 )
...
Noticed that the private Enterprise repository dependencies drifted a bit. Here, we update the OSS to the dependencies used by Enterprise.
We should update all dependencies as a matter of hygiene, but that's an issue for another time.
2021-07-27 16:33:18 -04:00
Michael Schurter
2315d7db71
Merge pull request #10916 from hashicorp/f-audit-log-mode
...
Add audit log file mode config parameter
2021-07-27 12:16:37 -07:00
Mahmood Ali
44ea61ef3a
cli: Use glint to determine if os.Stdout is tty ( #10926 )
...
Use glint to determine if os.Stdout is a terminal.
glint Terminal renderer expects os.Stdout [not only to be a terminal, but also to have non-zero size](b492b545f6/renderer_term.go (L39-L46) ). It's unclear how this condition arises, but this additional check causes Nomad to render deployments progress through glint when glint cannot support it.
By using golint to perform the check, we eliminate the risk of mis-judgement.
2021-07-23 11:27:47 -04:00
Seth Hoenig
950aa05790
deps: upgrade consul api to 1.9.1
2021-07-22 09:26:20 -05:00
Michael Schurter
afeebb42bf
deps: sync oss versions with enterprise
...
see hashicorp/nomad-enterprise#586 for audit logger related dependency
updates
2021-07-20 10:55:31 -07:00
James Rasell
0e197d540e
deps: update consul-template to v0.25.2.
2021-07-13 09:46:32 +02:00
Huan Wang
df74bc0cbb
update-gopsutil ( #10790 )
2021-06-21 10:19:39 -04:00