Commit graph

16789 commits

Author SHA1 Message Date
Mahmood Ali ded2a725db
Merge pull request #6788 from hashicorp/b-timeout-logmon-stop
logmon: add timeout to RPC operations
2019-12-06 19:12:06 -05:00
abhip c81b3f5cbd Update consensus.html.md (#6813)
The url for raft algorithm pdf is no longer valid. Here is correct url - https://raft.github.io/raft.pdf  and website is https://raft.github.io/
2019-12-06 06:17:30 -08:00
Seth Hoenig c83d479bf8
Merge pull request #6814 from hashicorp/f-use-golangci-lint
swap gometalint for golangci-lint
2019-12-06 08:16:17 -06:00
dependabot[bot] 12e34aef1d
Bump lodash.defaultsdeep from 4.6.0 to 4.6.1 in /ui
Bumps [lodash.defaultsdeep](https://github.com/lodash/lodash) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.6.0...4.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-06 14:13:32 +00:00
dependabot[bot] 66ff8a191f
Bump handlebars from 4.1.1 to 4.1.2 in /ui
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.1...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-06 14:13:27 +00:00
dependabot[bot] 2020fbc7a4
Bump fstream from 1.0.11 to 1.0.12 in /ui
Bumps [fstream](https://github.com/npm/fstream) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/npm/fstream/releases)
- [Commits](https://github.com/npm/fstream/compare/v1.0.11...v1.0.12)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-06 14:13:19 +00:00
Charlie Voiselle ad09167b08 Added Discuss badge to README (#6695) 2019-12-06 06:09:23 -08:00
Fredrik Hoem Grelland 3e164b42fe Update network.html.md (#6782)
There is an undocumented way of mapping a dynamically allocated port to the container. This is applicable in bridge networking ( necessary for consul connect enabled services ) to expose the service *directly*. This is needed when using upstream connect services, but you need to expose the service by normal means. By referencing the current documentation you need to use static ports in order to do so. Introduced in #6189 but undocumented
2019-12-06 06:08:56 -08:00
James Rasell 6fcb19890b docs: add jrasell/chemtrail to community resources. (#6798) 2019-12-06 06:07:00 -08:00
Seth Hoenig 37c7e60cd5 spellcheck: add misspell to linter dependencies
You'd think since golangci-lint embeds misspell we could use that,
but it fails to run if it finds no Go source files, which is the
case in our website/ directory that we want to check.
2019-12-05 19:27:14 -06:00
Danielle Lancashire d2075ebae9 spellcheck: Fix spelling of retrieve 2019-12-05 18:59:47 -06:00
Danielle Lancashire 0071a06c8b chore: Switch from gometalinter to golangci-lint
gometalinter has been deprecated, with golangci-lint as its spiritual
and recommended successor. Here we switch to using it with an equivalent
configuration, albeit with newer versions of some linters.

To maintain compatibility with existing settings, we have a couple of
things disabled here, specifically:

- tests
        We have a lot of unused code in our tests that choke deadcode.
        We should attempt to clean these up soon so that we can lint our
        testcode.
- govet.check-shadowing = false
        This breaks on redefining `err` which we do all over the nomad
        codebase.
2019-12-05 18:58:13 -06:00
Michael Lange 13d9e5ead7 Don't initialize variables before you need them 2019-12-05 10:51:51 -08:00
Mahmood Ali 574dac202c
Merge pull request #6809 from hoh/patch-1
docs: port name requires quotes in hcl
2019-12-05 10:09:28 -05:00
Hugo Herter a98e59e0fc docs: port name requires quotes in hcl
When trying to run this example, Nomad v0.10.2 raises the following error:
`Error getting job struct: Error parsing job file from example-ipv6.hcl: error parsing: At 33:22: Unknown token: 27:16 IDENT db`

Adding quotes around the port map `db` fixes the problem and the job works as expected.
2019-12-05 12:37:24 +01:00
Michael Lange 2c6392ff1e Light test coverage for the stream-logger class 2019-12-05 00:19:36 -08:00
Michael Lange 9504d10ce7 Fix a race condition where a response sent after the logger stops never gets canceled 2019-12-05 00:19:35 -08:00
Michael Schurter c26ec9a59c
Merge pull request #6807 from hashicorp/docs-097
docs: add #6792 backport to 0.9.7 changelog
2019-12-04 14:49:16 -08:00
Michael Schurter ba88ff874b docs: add #6792 backport to 0.9.7 changelog 2019-12-04 14:48:45 -08:00
Michael Schurter 1abc36c42c
Merge pull request #6805 from hashicorp/release-0102
Release 0102
2019-12-04 14:38:44 -08:00
Michael Schurter 8daeeb84c8
Merge pull request #6806 from hashicorp/docs-0102
docs: release 0.10.2 and 0.9.7
2019-12-04 14:27:53 -08:00
Michael Schurter 3ae3d43ec6 docs: release 0.10.2 and 0.9.7 2019-12-04 14:18:17 -08:00
Michael Schurter a30a5d6a78 release: prep for 0.10.3 development 2019-12-04 14:14:22 -08:00
Michael Schurter 3008473f9b
Merge branch 'master' into release-0102 2019-12-04 14:13:34 -08:00
Luiz Aoqui a388b1aa7c
Merge pull request #6803 from hashicorp/docs-driver-skeleton-reference
docs: add reference to the driver plugin skeleton project
2019-12-04 18:49:17 +00:00
Michael Schurter 9982190d33
Merge pull request #6804 from hashicorp/docs-cni-version
docs: reference cni-plugins v0.8.3
2019-12-04 10:49:03 -08:00
Michael Schurter 9fee893f80 release: remove 0.10.2 generated files 2019-12-04 10:45:57 -08:00
Michael Schurter 7f0ae677c9 docs: reference cni-plugins v0.8.3 2019-12-04 10:20:33 -08:00
Michael Schurter 2ad4aef365
Release v0.10.2 2019-12-04 10:14:01 -08:00
Nomad Release bot 6122c25572 Generate files for 0.10.2 release 2019-12-04 17:03:20 +00:00
Michael Schurter d1c03c76f6 release: unset prerelease for final release 2019-12-04 08:52:25 -08:00
Mahmood Ali 7ddef99eb4
Merge pull request #6795 from hashicorp/vendor-update-aws-sdk-v1.25.41
update aws sdk v1.25.41
2019-12-04 07:59:12 -05:00
Luiz Aoqui 31d0d99148
docs: add reference to the drivir plugin skeleton project 2019-12-03 17:17:52 -05:00
Charlie Voiselle 44e3cf6779
Merge pull request #6791 from hashicorp/docs/cv/stateful_to_learn
Stateful Workload guides to learn.hashicorp.com
2019-12-03 14:48:01 -05:00
Mahmood Ali a7d8513ced vendor: Update go-discover for AWS SDK change
Update go-discover to pull in latest AWS SDK change through its vendored
path, along with other provider changes.
2019-12-03 13:49:52 -05:00
Michael Schurter 4e5ebe6de5 Merge pull request #6792 from hashicorp/b-propose-panic
scheduler: fix panic when preempting and evicting allocs
2019-12-03 10:42:12 -08:00
Michael Schurter 7655e0cee4
Merge pull request #6792 from hashicorp/b-propose-panic
scheduler: fix panic when preempting and evicting allocs
2019-12-03 10:40:19 -08:00
Mahmood Ali b0dc6fde35 gitignore: only ignore toplevel tags and bin
Primarily don't ignore tags and bin packages in vendored folders
2019-12-03 13:36:54 -05:00
Mahmood Ali 3f15326248 Update AWS SDK library to v1.25.41
Update github.com/aws/aws-sdk-go and github.com/hashicorp/go-discover to
pick up support for EC2 Metadata Instance Service v2 changes.

Follow up to https://github.com/hashicorp/go-discover/pull/128 .
2019-12-03 13:35:03 -05:00
Michael Schurter 3aa85a770d docs: mention #6787 in upgrade guide 2019-12-03 08:46:23 -08:00
Tim Gross 938b69504d changelog: node-reschedule-penalty 2019-12-03 08:40:02 -08:00
Tim Gross c50057bf1f
scheduler: fix job update placement on prev node penalized (#6781)
Fixes #5856

When the scheduler looks for a placement for an allocation that's
replacing another allocation, it's supposed to penalize the previous
node if the allocation had been rescheduled or failed. But we're
currently always penalizing the node, which leads to unnecessary
migrations on job update.

This commit leaves in place the existing behavior where if the
previous alloc was itself rescheduled, its previous nodes are also
penalized. This is conservative but the right behavior especially on
larger clusters where a group of hosts might be having correlated
trouble (like an AZ failure).

Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2019-12-03 06:14:49 -08:00
Michael Schurter 603bbd7f8d docs: add #6792 to changelog 2019-12-02 20:30:18 -08:00
Michael Schurter 0374069f82 scheduler: update tests with modern error helper 2019-12-02 20:25:52 -08:00
Michael Schurter 19a2ee71d3 scheduler: fix panic when preempting and evicting
Fixes #6787

In ProposedAllocs the proposed alloc slice was being copied while its
contents were not. Since RemoveAllocs nils elements of the proposed
alloc slice and is called twice, it could panic on the second call when
erroneously accessing a nil'd alloc.

The fix is to not copy the proposed alloc slice and pass the slice
returned by the 1st RemoveAllocs call to the 2nd call, thus maintaining
the trimmed length.
2019-12-02 20:22:22 -08:00
Charlie Voiselle 3f794f2df1 Stateful Workload guides to learn.hashicorp.com 2019-12-02 16:37:06 -05:00
Seth Hoenig d81a091ccd
Merge pull request #6752 from hashicorp/docs-vault-token_period
docs: vault integration docs should reference new token_period field
2019-12-02 16:21:17 -05:00
Michael Lange 295713b1d7
Merge pull request #6591 from hashicorp/d-remove-old-ui-guide
Docs: Remove the old UI guide
2019-12-02 12:26:38 -08:00
Seth Hoenig 953e40c8ed docs: vault integration docs should reference new token_explicit_max_ttl field 2019-12-02 14:22:47 -06:00
Michael Lange 83b990d333 Fix incorrect page title on the operating a job UI guide 2019-12-02 11:27:56 -08:00