Commit graph

16771 commits

Author SHA1 Message Date
Lars Lehtonen c9383ca17d
e2e/cli/command: Wait() after execution 2019-11-25 10:56:40 -08:00
Tim Gross 781c20ea90
docs: show /etc/passwd in minimal chroot (#6769) 2019-11-25 13:47:18 -05:00
Tim Gross c9d92f845f
e2e: add a Windows client to test runner (#6735)
* Adds a constraint to prevent tests from landing on Windows
* Improve Terraform output for mixed windows/linux clients
* Makes some Windows client config fixes from 0.10.2 testing
2019-11-25 13:31:00 -05:00
Mahmood Ali f0378a2050
Merge pull request #6771 from hashicorp/b-deflake-TestHTTP_FreshClientAllocMetrics-test
tests: deflake TestHTTP_FreshClientAllocMetrics
2019-11-25 08:33:03 -05:00
Ruslan Stelmachenko 62fe9df044
Fix demo vagrant provision hung when libssl asks for confirmation
The provision shell script tries to install libssl1.1 package as dependency of ca-certificates package.

The installing of libssl requires to restart some services, and it asks for confirmation of this.
But there are no interactive session at this stage, so Vagrant provisioning just hungs.

This commit add a `libraries/restart-without-asking boolean true` setting before installing libssl,
so it doesn't ask confirmation anymore and the provisioning works again.
2019-11-24 02:35:09 +02:00
Mahmood Ali 7b8cfee162 tests: deflake TestHTTP_FreshClientAllocMetrics
The test asserts that alloc counts get reported accurately in metrics by
inspecting the metrics endpoint directly.  Sadly, the metrics as
collected by `armon/go-metrics` seem to be stateful and may contain info
from other tests.

This means that the test can fail depending on the order of returned
metrics.

Inspecting the metrics output of one failing run, you can see the
duplicate guage entries but for different node_ids:

```
    {
      "Name": "service-name.default-0a3ba4b6-2109-485e-be74-6864228aed3d.client.allocations.terminal",
      "Value": 10,
      "Labels": {
        "datacenter": "dc1",
        "node_class": "none",
        "node_id": "67402bf4-00f3-bd8d-9fa8-f4d1924a892a"
      }
    },
    {
      "Name": "service-name.default-0a3ba4b6-2109-485e-be74-6864228aed3d.client.allocations.terminal",
      "Value": 0,
      "Labels": {
        "datacenter": "dc1",
        "node_class": "none",
        "node_id": "a2945b48-7e66-68e2-c922-49b20dd4e20c"
      }
    },
```
2019-11-22 18:41:21 -05:00
Mahmood Ali f819d406ff
Merge pull request #6767 from hashicorp/c-ci-tweaks-20191122
Further tweaks to CircleCI build scripts
2019-11-22 15:52:43 -05:00
Mahmood Ali e8dc686019 ci: avoid building binaries in stable-website
This speeds up building and pushing releases
2019-11-22 15:40:22 -05:00
Charlie Voiselle 5e4dcfb8cc Removed 404 links; pointed to learn.hashicorp.com 2019-11-22 15:30:32 -05:00
Michael Schurter e7587aa458 Remove generated 0.10.2-rc1 files 2019-11-22 11:51:11 -08:00
Mahmood Ali 500fb6f8ce ci: verify .circleci/config.yml is up to date 2019-11-22 14:50:49 -05:00
Charlie Voiselle 395ebf3dcc Removed sidenav links for LB guides 2019-11-22 14:46:45 -05:00
Charlie Voiselle ca0ebc8f5b Migrating the Load-balancing guides to Nomad
Added redirects and stub-ified the index page
2019-11-22 14:29:12 -05:00
Michael Schurter 5be6b1eddf
Release v0.10.2-rc1 2019-11-22 11:19:57 -08:00
Michael Schurter 603773b22f
Merge pull request #6765 from hashicorp/docs-connect-bugs
docs: update connect limitations
2019-11-22 11:18:31 -08:00
Nomad Release bot db6420367d Generate files for 0.10.2-rc1 release 2019-11-22 18:42:49 +00:00
Michael Schurter e83634490c release: bump version to 0.10.2-rc1 2019-11-22 10:31:34 -08:00
Mahmood Ali a8d706db46
Merge pull request #6766 from hashicorp/docs-docker-dangling-containers-followup
docs: address more GH-6762 review comments
2019-11-22 13:24:59 -05:00
Mahmood Ali d9e7599ced docs: address more GH-6762 review comments
Incorporate suggestions in https://github.com/hashicorp/nomad/pull/6762#pullrequestreview-321716747

[ci skip]
2019-11-22 13:22:14 -05:00
Michael Schurter 18534b12a2 docs: update connect limitations 2019-11-22 10:18:10 -08:00
Mahmood Ali cfd78c266d
Merge pull request #6762 from hashicorp/d-docker-dangling-containers
document docker dangling container reaper
2019-11-22 13:10:59 -05:00
Mahmood Ali 12e65c054d address more review comments 2019-11-22 13:10:10 -05:00
Mahmood Ali eda18fff76
Apply suggestions from code review
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2019-11-22 13:03:20 -05:00
Mahmood Ali 57ff36df5c ci: avoid paging 2019-11-22 11:52:01 -05:00
Mahmood Ali 5c17bf36b8 ci: ignore docs only changes
Skip running backend and UI changes for docs/website updates, as
indicated by branch name.
2019-11-22 11:51:57 -05:00
Mahmood Ali e85886d33c git: only .circleci/config.yml is a generated one 2019-11-22 11:24:13 -05:00
Mahmood Ali ea888b3876 Merge pull request #6763 from hashicorp/b-handle-initialize-logger
drivers: always initialize taskHandle.logger
2019-11-22 11:13:31 -05:00
Mahmood Ali 6b90a179f1
Merge pull request #6763 from hashicorp/b-handle-initialize-logger
drivers: always initialize taskHandle.logger
2019-11-22 11:04:54 -05:00
Mahmood Ali 51a8b21cc6 changelog
[ci skip]
2019-11-22 11:04:24 -05:00
Mahmood Ali aa1c83871b drivers: always initialize taskHandle.logger
Looks like the RecoverTask doesn't set taskHandle.logger field causing
a panic when the handle attempts to log (e.g. when Shutdown or Signaling
fails).
2019-11-22 10:44:59 -05:00
Mahmood Ali d694f1d61c document docker dangling container repeaper 2019-11-22 09:58:00 -05:00
Mahmood Ali 02e20c720b acl_endpoint: permission denied for unauthenticated requests
If ACL Request is unauthenticated, we should honor the anonymous token.
This PR makes few changes:

* `GetPolicy` endpoints may return policy if anonymous policy allows it,
or return permission denied otherwise.
* `ListPolicies` returns an empty policy list, or one with anonymous
policy if one exists.

Without this PR, the we return an incomprehensible error.

Before:
```
$ curl http://localhost:4646/v1/acl/policy/doesntexist; echo
acl token lookup failed: index error: UUID must be 36 characters
$ curl http://localhost:4646/v1/acl/policies; echo
acl token lookup failed: index error: UUID must be 36 characters
```

After:
```
$ curl http://localhost:4646/v1/acl/policy/doesntexist; echo
Permission denied
$ curl http://localhost:4646/v1/acl/policies; echo
[]
```
2019-11-22 08:43:09 -05:00
Chris Baker ee066bdaca
Merge pull request #6755 from hashicorp/docs-device-plugin-guide
cherry-pick: device plugin authoring guide
2019-11-21 18:39:57 -06:00
Chris Baker bde82d7d0e added the device plugin authoring guide, made minor formatting changes to task driver plugin authoring guide. 2019-11-22 00:38:46 +00:00
Michael Schurter a5642dee2a Merge pull request #6754 from hashicorp/docs-0.10.2
Changelog updates and download link for 0.10.2-rc1
2019-11-21 15:26:07 -08:00
Michael Schurter 9cd6aa24da
Merge pull request #6754 from hashicorp/docs-0.10.2
Changelog updates and download link for 0.10.2-rc1
2019-11-21 15:19:32 -08:00
Michael Schurter ae61a80de5 docs: add Nomad v0.10.2-rc1 download link 2019-11-21 15:05:29 -08:00
Michael Schurter 9c4a96358b docs: reformat changelog for 0.10.2-rc1 2019-11-21 15:05:29 -08:00
Drew Bailey b45ce9e997
add server-id to -h output 2019-11-21 16:04:28 -05:00
Drew Bailey 0e0e985cc4
Merge pull request #6753 from hashicorp/monitor-add-server-id-help
add server-id to -h output
2019-11-21 16:03:33 -05:00
Drew Bailey b3765b06ea
add server-id to -h output 2019-11-21 16:01:09 -05:00
Mahmood Ali 54b22ae3a6 changelog GH-6580 2019-11-21 15:49:49 -05:00
Seth Hoenig 75539ff281 docs: vault integration docs should reference new token_period field 2019-11-21 14:19:34 -06:00
Drew Bailey 6d5156bbba
Allows a node uuid prefix to be passed in 2019-11-21 15:15:41 -05:00
Drew Bailey 95e017c56d
Merge pull request #6750 from hashicorp/nomad-monitor-node-id-prefix
Allows a node uuid prefix to be passed in
2019-11-21 15:14:20 -05:00
Drew Bailey 7ca6dbe61e
Allows a node uuid prefix to be passed in 2019-11-21 14:51:48 -05:00
Lang Martin 850ca88635 CHANGELOG quota network 2019-11-21 10:34:05 -05:00
Mahmood Ali 5e3dbe7a42
Merge pull request #6749 from hashicorp/b-test-tweaks-20191120
CI and Test tweaks
2019-11-21 08:29:42 -05:00
Mahmood Ali e89108fb01 fixup! tests: don't assume eth0 network is available 2019-11-21 08:28:20 -05:00
Mahmood Ali 07fe93da3c ci: match ci timeout to go test timeout
make test-nomad sets 15 minute time out for build.  Increase the ci
timeout to 20m, so we can get meaningful output and goroutine stack
traces rather than have test be simply killed by CircleCI.

The extra 5 minutes is a buffer for generating-structs and some
unnecessary padding.
2019-11-20 20:39:23 -05:00