Commit Graph

14372 Commits

Author SHA1 Message Date
Yishan Lin
1ff9798daa Update README.md 2019-04-26 11:28:09 -07:00
Michael Schurter
6674b270ff Merge pull request #5456 from hashicorp/test-taskenv
tests: port pre-0.9 task env tests
2019-03-25 10:41:38 -07:00
Michael Schurter
2dbc06de61 tests: port pre-0.9 task env tests
I chose to make them more of integration tests since there's a lot more
plumbing involved. The internal implementation details of how we craft
task envs can now change and these tests will still properly assert the
task runtime environment is setup properly.
2019-03-25 09:46:53 -07:00
Mahmood Ali
68dc573faf Merge pull request #5460 from hashicorp/test-skip-clientstate
test: properly skip client state in beforeall
2019-03-22 17:37:45 -04:00
Mahmood Ali
14151c93b6 Merge pull request #5457 from hashicorp/r-skip-prerelease-check
release: skip check step when cutting release
2019-03-22 12:29:13 -04:00
Preetha Appan
613707b32c Update release candidate download link on website 2019-03-22 10:46:49 -05:00
Michael Schurter
a77f769f1e Bump to dev post-0.9.0-rc1 release 2019-03-22 08:26:30 -07:00
Michael Schurter
8f8a18b4fa Release v0.9.0-rc1 2019-03-22 08:14:55 -07:00
Michael Schurter
8cd191dd39 test: properly skip client state in beforeall 2019-03-22 06:42:04 -07:00
Nomad Release bot
7c00ab4f3f Generate files for 0.9.0-rc1 release 2019-03-21 19:06:13 +00:00
Mahmood Ali
4611b9998c release: only install deps when installing
Now `prerelease` no longer requires linters
2019-03-21 15:02:09 -04:00
Mahmood Ali
8feb07ad9e release: skip check step when cutting release
`make check` runs very intensive linters that slow and seem to behave
differently on different machines.

Linting is still a part of our CI and we shouldn't be cutting a release
when CI isn't green anyway.
2019-03-21 14:57:03 -04:00
Mahmood Ali
3829fc0ee0 allow configurable release target in mac 2019-03-21 14:46:35 -04:00
Mahmood Ali
7299e0015a Merge pull request #5428 from hashicorp/b-dropped-logs-on-task-restart
client/logmon: restart log collection correctly when a task is restarted
2019-03-21 14:02:08 -04:00
Mahmood Ali
df9b877ef4 fix TestLogmon_Start_restart 2019-03-21 13:36:46 -04:00
Preetha
8ac39a17a9 Merge pull request #5405 from hashicorp/e2e_metrics
Prometheus metrics for the e2e environment
2019-03-21 09:30:12 -05:00
Preetha Appan
a30fbb55ad remove stray println 2019-03-21 09:23:37 -05:00
Michael Schurter
5021b01b40 Merge pull request #5247 from hashicorp/test-state-corruption
Test state corruption
2019-03-21 07:18:29 -07:00
Michael Schurter
c43515cd14 test: skip slow state test without flag 2019-03-21 07:17:02 -07:00
Michael Schurter
91d36f9f6a e2e: add NomadAgent and basic client state test
The e2e test code is absolutely hideous and leaks processes and files
on disk. NomadAgent seems useful, but the clientstate e2e tests are very
messy and slow. The last test "Corrupt" is probably the most useful as
it explicitly corrupts the state file whereas the other tests attempt to
reproduce steps thought to cause corruption in earlier releases of
Nomad.
2019-03-21 07:14:34 -07:00
Nick Ethier
31cdf54214 logmon: fix test assertion 2019-03-20 21:37:17 -04:00
Nick Ethier
cc12c8443f logmon: fix logmon handling in driver test harness 2019-03-20 21:14:08 -04:00
Michael Schurter
74aca9a465 Merge pull request #5443 from hashicorp/f-systemd-fixes
docs: sync systemd unit files; update deploy guide
2019-03-20 10:40:53 -07:00
Michael Schurter
673a168b72 docs: remove partial sig/checksum verification
Point users to security doc instead. Right now it takes a lot of
explaining to describe to users exactly how to validate the binary and
what the output of the tools used means.

For example, this is the output when validating according to the
instructions in this guide and the linked doc:

```
vagrant@linux:/tmp$ gpg --verify nomad_0.8.7_SHA256SUMS.sig
nomad_0.8.7_SHA256SUMS
gpg: Signature made Fri 11 Jan 2019 09:47:56 PM UTC using RSA key ID
348FFC4C
gpg: Good signature from "HashiCorp Security <security@hashicorp.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the
owner.
Primary key fingerprint: 91A6 E7F8 5D05 C656 30BE  F189 5185 2D87 348F
FC4C
vagrant@linux:/tmp$ shasum -a 256 -c nomad_0.8.7_SHA256SUMS
shasum: ./nomad_0.8.7_darwin_amd64.zip:
./nomad_0.8.7_darwin_amd64.zip: FAILED open or read
shasum: ./nomad_0.8.7_linux_386.zip: No such file or directory
./nomad_0.8.7_linux_386.zip: FAILED open or read
shasum: ./nomad_0.8.7_linux_amd64-lxc.zip: No such file or directory
./nomad_0.8.7_linux_amd64-lxc.zip: FAILED open or read
./nomad_0.8.7_linux_amd64.zip: OK
shasum: ./nomad_0.8.7_linux_arm64.zip: No such file or directory
./nomad_0.8.7_linux_arm64.zip: FAILED open or read
shasum: ./nomad_0.8.7_linux_arm.zip: No such file or directory
./nomad_0.8.7_linux_arm.zip: FAILED open or read
shasum: ./nomad_0.8.7_windows_386.zip: No such file or directory
./nomad_0.8.7_windows_386.zip: FAILED open or read
shasum: ./nomad_0.8.7_windows_amd64.zip: No such file or directory
./nomad_0.8.7_windows_amd64.zip: FAILED open or read
shasum: WARNING: 7 listed files could not be read
```

There are only two lines that matter in all of that output:

```
...
gpg: Good signature from "HashiCorp Security <security@hashicorp.com>"
...
./nomad_0.8.7_linux_amd64.zip: OK
...
```

I feel like trying to teach users how to use and interpret these tools
in our deployment guide may be as likely to reduce confidence as
increase it.
2019-03-20 09:36:29 -07:00
Mahmood Ali
b1ce0d8204 doc: fix tls_cipher_suites type (#5441)
tls_cipher_suites only accept a comma-separated string, as evident in:

0535dfd414/nomad/structs/config/tls.go (L61)
d37ed5c193/helper/tlsutil/config.go (L405)
2019-03-20 12:17:38 -04:00
Mahmood Ali
ce959931c5 update some changelog items 2019-03-20 11:20:25 -04:00
Mahmood Ali
608f17e7c9 Don't use "datacenter" in a confusing way
Co-Authored-By: schmichael <michael.schurter@gmail.com>
2019-03-20 08:08:37 -07:00
Michael Schurter
f6d670a096 Merge pull request #5450 from hashicorp/docs-changelog
docs: add #5381 to changelog
2019-03-20 07:53:49 -07:00
Nick Ethier
b4faaa89bb logmon: remove sleeps from tests 2019-03-20 10:45:09 -04:00
Michael Schurter
c827232581 docs: add #5381 to changelog 2019-03-20 07:05:05 -07:00
Mahmood Ali
ba5078f7ca Merge pull request #5430 from HashedDan/server-typo
server: inconsistent receiver notation corrected
2019-03-20 08:48:17 -04:00
Mahmood Ali
a0d025e90d Revert "executor: synchronize exitState accesses" (#5449)
Reverts hashicorp/nomad#5433

Apparently, channel communications can constitute Happens-Before even for proximate variables, so this syncing isn't necessary.

> _The closing of a channel happens before a receive that returns a zero value because the channel is closed._
https://golang.org/ref/mem#tmp_7
2019-03-20 07:33:05 -04:00
Mahmood Ali
c28b59267c Merge pull request #5435 from hashicorp/release-scripts-20190318
Scripts for automating binary building
2019-03-20 07:26:10 -04:00
Mahmood Ali
a8c255665d release: Upgrade to use 1.11.6 golang on macOS
To correspond to the Linux scripts in 855761a5df
2019-03-19 21:18:44 -04:00
Mahmood Ali
5ad4c10a58 Add some release script comments 2019-03-19 21:18:27 -04:00
Michael Schurter
475bcaafd6 docs: sync systemd unit files; update deploy guide
The systemd configs spread across our repo were fairly out of sync. This
should get them on our best practices.

The deployment guide also had some strange things like running Nomad as
a non-root user. It would be fine for servers but completely breaks
clients. For simplicity I simply removed the non-root user references.
2019-03-19 15:18:12 -07:00
Nick Ethier
d9d90fa5f0 Merge pull request #5429 from hashicorp/b-blocking-executor-shutdown
executor: block shutdown on process exiting
2019-03-19 15:18:01 -04:00
Nick Ethier
76c9decfe6 logmon: add tests for rotation and open/closing of fifos 2019-03-19 14:41:23 -04:00
Nick Ethier
c62f9a0f58 logmon: make Start rpc idempotent and simplify hook 2019-03-19 14:02:36 -04:00
Michael Schurter
d37ed5c193 Merge pull request #5436 from hashicorp/f-vagrant-go1.11.6
vagrant: upgrade to Go 1.11.6
2019-03-19 08:20:13 -07:00
Michael Schurter
855761a5df vagrant: upgrade to Go 1.11.6 2019-03-18 13:38:00 -07:00
Nick Ethier
a28a67d263 logmon:add static check for logmon exited hook 2019-03-18 15:59:43 -04:00
Mahmood Ali
f3a186cef5 accept macos host as a env-var with a default 2019-03-18 15:05:32 -04:00
Mahmood Ali
55dea4faaa use bash set long form 2019-03-18 14:34:09 -04:00
Mahmood Ali
31e89623df ensure node is present in PATH 2019-03-18 14:31:31 -04:00
Mahmood Ali
b3bedeb330 Merge pull request #5433 from hashicorp/b-exit-state-lock
executor: synchronize exitState accesses
2019-03-18 13:50:16 -04:00
Mahmood Ali
38aa059e43 scripts: only shellcheck shell scripts 2019-03-18 08:45:25 -04:00
Mahmood Ali
60b045b13f handle when no files are generated 2019-03-18 08:29:25 -04:00
Mahmood Ali
bf48fe2403 initial attempt at building mac 2019-03-18 08:29:25 -04:00
Mahmood Ali
f2760b55c4 remove chown 2019-03-18 08:29:22 -04:00