Commit Graph

17384 Commits

Author SHA1 Message Date
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
Nick Ethier eb9c8593ba
Merge pull request #7163 from hashicorp/b-driver-plugin-recovery
drivermanager: attempt dispense on reattachment failure
2020-02-21 10:33:20 -05:00
Seth Hoenig 0f99cdd0d9
Merge pull request #7192 from hashicorp/b-connect-stanza-ignore
consul/connect: in-place update sidecar service registrations on changes
2020-02-21 09:24:53 -06:00
Seth Hoenig 07b9b24ceb
nomad: note why AddressMode is not part of CSD hash
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2020-02-21 09:24:42 -06:00
James Rasell 50f9b08b00
Merge pull request #7207 from hashicorp/b-gh-7203
Fix panic when canonicalizing a jobspec with incorrect job type.
2020-02-21 16:01:13 +01:00
James Rasell b1e372a275
Update CHANGELOG.md 2020-02-21 14:21:34 +01:00
James Rasell 6463532577
Fix panic when canonicalizing a jobspec with incorrect job type.
When canonicalizing the ReschedulePolicy a panic was possible if
the passed job type was not valid. This change protects against
this possibility, in a verbose way to ensure the code path is
clear.
2020-02-21 09:14:36 +01:00
Jeff Escalante e9ea75b108
correct analytics traffic pointer (#7212) 2020-02-20 20:16:48 -05:00
Michael Schurter d3a9ab3a79
Merge pull request #7083 from hashicorp/d-service-lifecycle
Document service lifecycle
2020-02-20 14:56:17 -08:00
Michael Schurter 17ddd46322
Merge pull request #7196 from hashicorp/website-0104
Update website to v0.10.4
2020-02-20 09:24:12 -08:00
James Rasell e7eb49fe84 api: check response content length before decoding.
The API decodeBody function will now check the content length
before attempting to decode. If the length is zero, and the out
interface is nil then it is safe to assume the API call is not
returning any data to the user. This allows us to better handle
passing nil to API calls in a single place.
2020-02-20 10:07:44 +01:00