Commit Graph

18382 Commits

Author SHA1 Message Date
Mahmood Ali
3b04afee2e Merge pull request #8047 from hashicorp/f-snapshot-save
API for atomic snapshot backups
2020-06-01 07:55:16 -04:00
Mahmood Ali
e6f521301d If leadership fails, consider it handled
The callers for `forward` and old implementation expect failures to be
accompanied with a true value!  This fixes the issue and have tests
passing!
2020-05-31 22:06:17 -04:00
Mahmood Ali
081c1b6d4a more review feedback 2020-05-31 21:39:09 -04:00
Mahmood Ali
781f110489 Apply suggestions from code review
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com>
2020-05-31 21:29:17 -04:00
Mahmood Ali
65937ffd21 Merge pull request #8001 from hashicorp/f-jobs-list-across-nses
endpoint to expose all jobs across all namespaces
2020-05-31 21:28:03 -04:00
Mahmood Ali
ca0b03201e Merge pull request #8036 from hashicorp/f-background-vault-revoke-on-restore
Speed up leadership establishment
2020-05-31 21:27:16 -04:00
Mahmood Ali
127a960a54 clarify rpc consistency readiness comment 2020-05-31 21:26:41 -04:00
Mahmood Ali
5ad6790189 Merge pull request #8043 from greut/distribution-v2.7.1
vendor: pin docker/distribution to v2.7.1
2020-05-31 21:20:54 -04:00
Mahmood Ali
e9d14a3e19 Apply suggestions from code review
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2020-05-31 21:04:39 -04:00
Mahmood Ali
4fbc13e0bf Merge pull request #8078 from hashicorp/b-empty-cluster-metadata
Handle nil/empty cluster metadata
2020-05-31 20:59:29 -04:00
changli0617
c4416b26d3 Merge pull request #8077 from hashicorp/changli0617-patch-1
Update alert-banner.js
2020-05-29 13:36:53 -07:00
Mahmood Ali
d5350c119d Handle nil/empty cluster metadata
Handle case where a snapshot is made before cluster metadata is created.

This fixes a bug where a server may have empty cluster metadata if it
created and installed a Raft snapshot before a new cluster metadata ID is
generated.

This case is very unlikely to arise.  Most likely reason is when
upgrading from an old version slowly where servers may use snapshots
before all servers upgrade.  This happened for a user with a log line
like:

```
2020-05-21T15:21:56.996Z [ERROR] nomad.fsm: ClusterSetMetadata failed: error=""set cluster metadata failed: refusing to set new cluster id, previous: , new: <<redacted>
```
2020-05-29 13:34:21 -04:00
changli0617
f1746a75cc Update alert-banner.js 2020-05-29 10:09:43 -07:00
Seth Hoenig
abbf4b27cf Merge pull request #8074 from ogadaki/patch-2
docs: fix typo in eligibility command doc
2020-05-29 08:44:56 -05:00
Nicolas Decoster
6f8829e57e docs: fix typo in eligibility command doc 2020-05-29 15:14:59 +02:00
Drew Bailey
5be192fac3 give enterpriseclient a logger (#8072) 2020-05-28 15:43:16 -04:00
Drew Bailey
967facc55e removes pro tags (#8014) 2020-05-28 15:40:17 -04:00
Seth Hoenig
88bb1c785e Merge pull request #8071 from hashicorp/docs-update-cni-version-reference
docs: update CNI version in connect setup docs
2020-05-28 10:33:50 -05:00
Seth Hoenig
c9d1ae133b docs: update CNI version in setup docs
Update reference to CNI from version 0.8.4 to 0.8.6, which includes
bug fixes, new features, etc.

https://github.com/containernetworking/plugins/releases/tag/v0.8.6
2020-05-28 10:23:02 -05:00
Seth Hoenig
003281d1a1 Merge pull request #8069 from hashicorp/deps-update-go-getter
deps: update go-getter for redirects fix
2020-05-28 08:56:43 -05:00
Seth Hoenig
6215a3dd82 deps: update go-getter for redirects fix
Fixes #7854

Nomad requires a version of go-getter that is currently in PR (https://github.com/hashicorp/go-getter/pull/256)
We also require some recent bug fix to go-getter around the handling of URL redirects.

Update our vendor'd copy of go-getter to the newly rebased umask changes so that we can incorporate
the latest changes for go-getter.
2020-05-28 08:24:40 -05:00
Mahmood Ali
d6591a55d8 Merge pull request #8065 from hashicorp/f-oss-preemption
Open source Preemption
2020-05-27 16:56:51 -04:00
Mahmood Ali
48cc0ae176 Merge pull request #8060 from hashicorp/tests-deflake-20200526
Deflake some tests - 2020-05-27 edition
2020-05-27 15:24:31 -04:00
Mahmood Ali
f6f949323e keep promotion score constants next to use 2020-05-27 15:13:19 -04:00
Mahmood Ali
bab3959fa2 update changelog 2020-05-27 15:07:11 -04:00
Mahmood Ali
379a85c8f0 docs: preemption is no longer an Enterprise feature 2020-05-27 15:05:52 -04:00
Mahmood Ali
9f11857ad1 Open source Preemption code
Nomad 0.12 OSS is to include preemption feature.

This commit moves the private code for managing preemption to OSS
repository.
2020-05-27 15:02:01 -04:00
Tim Gross
03f277b965 changelog items for CSI in 0.11.3 (#8064) 2020-05-27 13:50:34 -04:00
Drew Bailey
7fc495e30e Oss license support for ent builds (#8054)
* changes necessary to support oss licesning shims

revert nomad fmt changes

update test to work with enterprise changes

update tests to work with new ent enforcements

make check

update cas test to use scheduler algorithm

back out preemption changes

add comments

* remove unused method
2020-05-27 13:46:52 -04:00
Michael Lange
5453e84ca3 Merge pull request #8056 from hashicorp/f-ui/remove-jquery
UI: Remove jQuery
2020-05-27 10:04:55 -07:00
Michael Lange
e40f10bf9b Disable and remove the jquery integration 2020-05-27 09:16:36 -07:00
Michael Lange
d4e15451a8 Merge pull request #8055 from hashicorp/f-ui/remove-jquery-from-templates
UI: Remove jQuery from the rest of application code
2020-05-27 09:15:01 -07:00
Mahmood Ali
74af591a70 tests: use GreaterOrEqual and apply change to other tests 2020-05-27 11:22:48 -04:00
Mahmood Ali
35d039e583 tests: use t.Fatalf when it's clearer 2020-05-27 10:09:56 -04:00
Mahmood Ali
6a1be11f78 Merge pull request #8059 from hashicorp/tests-log-output
tests: log to stderr directly
2020-05-27 09:20:02 -04:00
Mahmood Ali
bcc4ec910d gracefully shutdown test server 2020-05-27 08:59:06 -04:00
Mahmood Ali
41a450c8d8 tests: node drain events may be duplicated 2020-05-27 08:59:06 -04:00
Mahmood Ali
8396fb63c6 tests: log to stderr directly
Go 1.14 now streams t.Log output as it happens [1], so we no longer need
to maintain our log STDOUT helper.

I preserved the interface, so `testlog` still takes in a `*testing.T`
though unused. Changing it requires so too many changes that I didn't
want to make quite yet.

[1] https://golang.org/doc/go1.14#go-test
2020-05-27 08:42:29 -04:00
Mahmood Ali
76324a1511 don't GC images in tests by default 2020-05-26 21:24:55 -04:00
Mahmood Ali
50c9a0a07f tests: wait until clients are in the state store 2020-05-26 18:53:24 -04:00
Mahmood Ali
5de673e6f2 tests: don't delete images after tests complete
Fix some docker test flakiness where image cleanup process may
contaminate other tests. A clean up process may attempt to delete an
image while it's used by another test.
2020-05-26 18:53:24 -04:00
Mahmood Ali
612dd36d2f tests: eval may be processed quickly 2020-05-26 18:53:24 -04:00
Michael Lange
97e26b82e4 Remove test code 2020-05-26 14:54:59 -07:00
Michael Lange
07ce413ce8 Remove jquery from the window resize helper 2020-05-26 14:35:57 -07:00
Michael Lange
4bb24ac8f0 Remove jquery from the lazy-click helper 2020-05-26 14:31:15 -07:00
Michael Lange
756069c9a2 Remove jquery from gauge chart 2020-05-26 14:13:29 -07:00
Michael Lange
718114cb98 Remove jquery from the distribution bar chart 2020-05-26 14:11:08 -07:00
Michael Lange
6ffa836a64 Remove jquery from line-chart 2020-05-26 14:05:45 -07:00
Buck Doyle
6e7c180277 Remove minor version from audit comparison action (#8048)
Making this less specific means we can benefit from updates
to the action without needing to change the workflow, such
as the bug fix in backspace/ember-test-audit-comparison-action@a87d252,
which addresses the incorrect duration delta here:
https://github.com/hashicorp/nomad/pull/7964#issuecomment-632351171
2020-05-26 15:34:12 -05:00
Mahmood Ali
4335b0d31a Merge pull request #8049 from hashicorp/test-goroutine-cleanup
Cleanup goroutines in tests
2020-05-26 16:01:42 -04:00