Commit Graph

17195 Commits

Author SHA1 Message Date
Michael Schurter
64c40af018 Merge pull request #7170 from fredrikhgrelland/consul_template_upgrade
Update consul-template to v0.24.1 and remove deprecated vault grace
2020-03-10 14:15:47 -07:00
Chris Baker
994b58533f Merge pull request #7300 from hashicorp/cgbaker-patch-1
updated /agent/monitor query parameter
2020-03-09 13:51:43 -04:00
Chris Baker
6e3fddb880 updated /agent/monitor query parameter
query param is `log_json`, not `json`
2020-03-09 12:38:15 -05:00
Michael Schurter
fac5f9c8e8 Merge pull request #7231 from hashicorp/b-alloc-dev-panic
api: fix panic when displaying devices w/o stat
2020-03-09 07:34:59 -07:00
Mahmood Ali
79ce20af65 Merge pull request #7286 from hashicorp/deflake-tests-20200306
Deflake TestServer_ReconcileMember and some leadership related tests
2020-03-06 17:36:05 -05:00
Mahmood Ali
96a0938b0e tests: wait until leadership loop finishes
Reverts d5c7d6e491 .

We actually need to forward the request to ensure that the leader is
properly configured and that establishedLeadership completes.
2020-03-06 14:41:59 -05:00
Mahmood Ali
3d342e2379 tests: deflake TestServer_ReconcileMember
TestServer_ReconcileMember assumes that S3 isn't the leader:
`reconcileMembers` call would fail when attempting to remove itself!
2020-03-06 14:14:41 -05:00
Mahmood Ali
8fe78c2854 Merge pull request #7274 from hashicorp/b-exec-tls
api: alloc exec recovers from bad client connection
2020-03-05 10:16:37 -05:00
Buck Doyle
d5fa078193 UI: Remove build-binaries job for UI-only branches (#7273) 2020-03-04 17:36:18 -08:00
Mahmood Ali
c50f295629 api: alloc exec recovers from bad client connection
If alloc exec fails to connect to the nomad client associated with the
alloc, fail over to using a server.

The code attempted to special case `net.Error` for failover to rule out
other permanent non-networking errors, by reusing a pattern in the
logging handling.

But this pattern does not apply here.  `net/http.Http` wraps all errors
as `*url.Error` that is net.Error.  The websocket doesn't, and instead
returns the raw error.  If the raw error isn't a `net.Error`, like in
the case of TLS handshake errors, the api package would fail immediately
rather than failover.
2020-03-04 17:43:00 -05:00
Charlie Voiselle
34b6342d75 Merge pull request #7263 from hashicorp/docs-more-guide-redirects
Add redirects to learn for migrated guides
2020-03-04 17:10:35 -05:00
Tim Gross
951fb027a0 e2e: add EBS and EFS volumes for testing CSI (#7266)
This changeset adds volumes but does not mount them to instances so
that we can test the mounting ("staging") via CSI plugins. The CSI
plugins themselves will be installed as Nomad jobs.

In order to ensure we can always mount the EFS volume, this changeset
pins the deployment of the cluster to a specific subnet. In future
work we should spread the cluster out among several AZs and test that
behavior explicitly.
2020-03-04 10:44:51 -05:00
Mahmood Ali
3284a34b42 Merge pull request #7255 from hashicorp/vendor-update-grpc-20200302
update grpc
2020-03-04 09:32:16 -05:00
Jeff Escalante
ce282a32ac update bugsnag config (#7261) 2020-03-03 17:51:24 -05:00
Charlie Voiselle
4dce6ebb50 Add redirects to learn for migrated guides 2020-03-03 17:24:21 -05:00
Mahmood Ali
d7896b9d10 Merge pull request #7252 from hashicorp/b-test-cluster-forming
Simplify Bootstrap logic in tests
2020-03-03 16:56:08 -05:00
Mahmood Ali
5e635bb276 fix typo 2020-03-03 16:55:54 -05:00
Mahmood Ali
e31695b5bb Merge pull request #7237 from hashicorp/b-config-cnipath-parsing
Honor CNI and bridge related config fields
2020-03-03 08:43:19 -05:00
Mahmood Ali
d2ddef5ba3 update grpc
Upgrade grpc to v1.27.1 and protobuf plugins to v1.3.4.
2020-03-03 08:39:54 -05:00
Nick Ethier
e70221216d Merge pull request #6930 from JanMa/add-nspawn-driver
docs: add nspawn as external task driver plugin
2020-03-03 07:33:13 -05:00
James Rasell
d05bdd8b72 Merge pull request #7242 from hashicorp/b-gh-7240
docs: remove Nomad binary size specifics from documentation.
2020-03-03 08:41:50 +01:00
Mahmood Ali
41d561dff9 Merge pull request #7247 from hashicorp/build-go1.14
use golang 1.14
2020-03-02 20:28:54 -05:00
Mahmood Ali
e40704bb71 Merge pull request #7246 from hashicorp/b-e2e-args-parsing
e2e: avoid parsing Args in pkg init
2020-03-02 20:28:42 -05:00
Jeff Escalante
0d43b0ba2e a couple more updates (#7211) 2020-03-02 17:15:29 -05:00
Jonathan Neal
98cc995b6f [website] add print styles (#7182) 2020-03-02 17:13:24 -05:00
Mahmood Ali
e150cfb1a3 changelog 2020-03-02 15:20:25 -05:00
Mahmood Ali
8b7db37613 update protobuf generated files 2020-03-02 15:19:46 -05:00
Jeff Escalante
b633c7d99b downloads page community link correction (#7134) 2020-03-02 15:11:18 -05:00
Michael Schurter
503242f258 docs: updating from go1.13 -> 1.14 for 0.11 2020-03-02 12:09:13 -08:00
Jeff Escalante
134b63bb2e fix subnav css overlap, inconsistent subnav data (#7230) 2020-03-02 14:53:43 -05:00
Mahmood Ali
88ab2c8d7a e2e: avoid parsing Args in pkg init
Golang 1.13 introduced a change in test flag parsing:

> testing
> ...
> Testing flags are now registered in the new Init function, which is invoked by the generated main function for the test. As a result, testing flags are now only registered when running a test binary, and packages that call flag.Parse during package initialization may cause tests to fail.

https://golang.org/doc/go1.13#testing

Here, we ensure that e2e framework parsing occur in TestMain, by only
initializing Framework at Run invocation.
2020-03-02 14:13:54 -05:00
Mahmood Ali
7515da6231 use golang 1.14 2020-03-02 13:55:02 -05:00
Mahmood Ali
d5c7d6e491 avoid forwarding leadership checks in tests
The tests only care if a test server recognizes the leader.
2020-03-02 13:47:43 -05:00
Mahmood Ali
e812954bd9 Simplify Bootstrap logic in tests
This change updates tests to honor `BootstrapExpect` exclusively when
forming test clusters and removes test only knobs, e.g.
`config.DevDisableBootstrap`.

Background:

Test cluster creation is fragile.  Test servers don't follow the
BootstapExpected route like production clusters.  Instead they start as
single node clusters and then get rejoin and may risk causing brain
split or other test flakiness.

The test framework expose few knobs to control those (e.g.
`config.DevDisableBootstrap` and `config.Bootstrap`) that control
whether a server should bootstrap the cluster.  These flags are
confusing and it's unclear when to use: their usage in multi-node
cluster isn't properly documented.  Furthermore, they have some bad
side-effects as they don't control Raft library: If
`config.DevDisableBootstrap` is true, the test server may not
immediately attempt to bootstrap a cluster, but after an election
timeout (~50ms), Raft may force a leadership election and win it (with
only one vote) and cause a split brain.

The knobs are also confusing as Bootstrap is an overloaded term.  In
BootstrapExpect, we refer to bootstrapping the cluster only after N
servers are connected.  But in tests and the knobs above, it refers to
whether the server is a single node cluster and shouldn't wait for any
other server.

Changes:

This commit makes two changes:

First, it relies on `BootstrapExpected` instead of `Bootstrap` and/or
`DevMode` flags.  This change is relatively trivial.

Introduce a `Bootstrapped` flag to track if the cluster is bootstrapped.
This allows us to keep `BootstrapExpected` immutable.  Previously, the
flag was a config value but it gets set to 0 after cluster bootstrap
completes.
2020-03-02 13:47:43 -05:00
James Rasell
0c543a5177 docs: remove Nomad binary size specifics from documentation. 2020-03-02 19:31:06 +01:00
JanMa
d93af4f449 add missing sidebar item 2020-02-29 20:54:46 +01:00
JanMa
ab017b8591 fix page layout settings 2020-02-29 18:07:15 +01:00
Jan Martens
24312076e1 docs: add nspawn as external task driver plugin 2020-02-29 17:52:06 +01:00
Michael Schurter
f359bfe853 docs: mention #7231 in changelog 2020-02-28 13:40:51 -08:00
Mahmood Ali
56e8ee180f Honor CNI and bridge related fields
Nomad agent may silently ignore cni_path and bridge setting, when it
merges configs from multiple files (or against default/dev config).

This PR ensures that the values are merged properly.
2020-02-28 14:23:13 -05:00
Mahmood Ali
4b806b1c41 tests: add tests for parsing cni fields 2020-02-28 14:18:45 -05:00
Michael Schurter
ab4950b684 api: fix panic when displaying devices w/o stat
"<none>" mathces `node status -verbose` output
2020-02-26 21:24:31 -05:00
Brandon Romano
ddab0a99bb Merge pull request #7222 from jescalan/redesigned-website
website: Homepage redesign & use-cases pages
2020-02-24 16:43:08 -08:00
Brandon Romano
cc1f2131c6 Fix the line spacing for the codeblock 2020-02-24 19:31:43 -05:00
Brandon Romano
c4d5d79074 Fix indentation 2020-02-24 19:08:57 -05:00
Brandon Romano
25f780e140 Remove global mega-nav component
We've temporarily ejected the meganav component to add some custom
styling that needed to happen for NomadProject.io
2020-02-23 13:40:37 -08:00
Brandon Romano
2a149b6b52 Update website/pages/use-cases/non-containerized-application-orchestration.jsx
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:28:32 -08:00
Brandon Romano
e355b24c19 Title case consul connect feature
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:27:02 -08:00
Brandon Romano
7cb74d7a0c Feature capitalization
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:23:15 -08:00
Brandon Romano
e3b6e2e34c Simplify mini-cta optional code
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:14:23 -08:00