Commit Graph

17344 Commits

Author SHA1 Message Date
Mahmood Ali 54299a4caa
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 70d3491c4c
UI: Remove build-binaries job for UI-only branches (#7273) 2020-03-04 17:36:18 -08:00
Mahmood Ali 37e0598344 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 0496232b59
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
Drew Bailey 680f5301b8
add note to check for job diff 2020-03-04 12:06:32 -05:00
Tim Gross 79222c36bf
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 21e19ef40d
Merge pull request #7255 from hashicorp/vendor-update-grpc-20200302
update grpc
2020-03-04 09:32:16 -05:00
Jeff Escalante a78288b980
update bugsnag config (#7261) 2020-03-03 17:51:24 -05:00
Charlie Voiselle 2f723d4115 Add redirects to learn for migrated guides 2020-03-03 17:24:21 -05:00
Mahmood Ali 19f25f588f
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 17ee94b52b fix typo 2020-03-03 16:55:54 -05:00
Mahmood Ali dd40d55cba
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 88cfe504a0 update grpc
Upgrade grpc to v1.27.1 and protobuf plugins to v1.3.4.
2020-03-03 08:39:54 -05:00
JohnnyB fe46bbd31d
Silly copy pasta tabs vs spaces... 🤦 2020-03-03 13:16:45 +00:00
Nick Ethier 73d8fdbe31
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
JohnnyB 9a27fab8b2
Completed a ppc64le build for testing.
Ran into this missing target on ppc64le.  Consul had no issue.
2020-03-03 12:25:21 +00:00
James Rasell 8eb62fccb8
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 94a5b61d7a
Merge pull request #7247 from hashicorp/build-go1.14
use golang 1.14
2020-03-02 20:28:54 -05:00
Mahmood Ali 753c75f2bd
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 86f72a6c40
a couple more updates (#7211) 2020-03-02 17:15:29 -05:00
Jonathan Neal a3b6be0024
[website] add print styles (#7182) 2020-03-02 17:13:24 -05:00
Mahmood Ali 15c2504a30 changelog 2020-03-02 15:20:25 -05:00
Mahmood Ali 503d99e960 update protobuf generated files 2020-03-02 15:19:46 -05:00
Jeff Escalante 5506a0e5fb
downloads page community link correction (#7134) 2020-03-02 15:11:18 -05:00
Michael Schurter f1d493f46a docs: updating from go1.13 -> 1.14 for 0.11 2020-03-02 12:09:13 -08:00
Jeff Escalante 757b2db83d
fix subnav css overlap, inconsistent subnav data (#7230) 2020-03-02 14:53:43 -05:00
Mahmood Ali f5bd51ec30 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 67bea52866 use golang 1.14 2020-03-02 13:55:02 -05:00
Mahmood Ali 6daac02548 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 acbfeb5815 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 00c163fd5c
docs: remove Nomad binary size specifics from documentation. 2020-03-02 19:31:06 +01:00
JanMa 9309084ec8 add missing sidebar item 2020-02-29 20:54:46 +01:00
JanMa df1ee5b4d1 fix page layout settings 2020-02-29 18:07:15 +01:00
Jan Martens 5e082c7ac3 docs: add nspawn as external task driver plugin 2020-02-29 17:52:06 +01:00
Michael Schurter 5276c573e5 docs: mention #7231 in changelog 2020-02-28 13:40:51 -08:00
Mahmood Ali 386f20099b 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 437d03779c tests: add tests for parsing cni fields 2020-02-28 14:18:45 -05:00
Mahmood Ali a8d6950007 Remove rkt as a built-in driver
Rkt has been archived and is no longer an active project:
* https://github.com/rkt/rkt
* https://github.com/rkt/rkt/issues/4024

The rkt driver will continue to live as an external plugin.
2020-02-26 22:16:41 -05:00
Michael Schurter ac3db90497 api: fix panic when displaying devices w/o stat
"<none>" mathces `node status -verbose` output
2020-02-26 21:24:31 -05:00
Dane Harrigan 84f8ac8656
Fix rendered backslash in group "<required>"
The `<require>` tag contained backslashes and the first backslash was getting rendered. See on live site: https://nomadproject.io/docs/job-specification/job/#inlinecode-group-7
2020-02-25 19:22:30 -08:00
Brandon Romano ad126af9c7
Merge pull request #7222 from jescalan/redesigned-website
website: Homepage redesign & use-cases pages
2020-02-24 16:43:08 -08:00
Brandon Romano f2c119d3b0 Fix the line spacing for the codeblock 2020-02-24 19:31:43 -05:00
Brandon Romano 93414b7190 Fix indentation 2020-02-24 19:08:57 -05:00
Brandon Romano 6433c4e2f9 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 7580bdb821
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 a2d5049a01
Title case consul connect feature
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:27:02 -08:00
Brandon Romano 7d51ffe312
Feature capitalization
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:23:15 -08:00
Brandon Romano e0ce5e74c1
Simplify mini-cta optional code
Co-Authored-By: Mike Wickett <mike@wickett.ca>
2020-02-23 13:14:23 -08:00
Fredrik Hoem Grelland edb3bd0f3f Update consul-template to v0.24.1 and remove deprecated vault_grace (#7170) 2020-02-23 16:24:53 +01:00
nicolelyn f056b3353f Homepage redesign & use-cases pages 2020-02-22 15:41:06 -08:00