Commit Graph

22092 Commits

Author SHA1 Message Date
Lukas W
bb1fc6ec5f CLI: Return non-zero exit code when deployment fails in nomad run (#11550)
* Exit non-zero from run command if deployment fails
* Fix typo in deployment monitor introduced in 0edda11
2021-12-09 09:09:28 -05:00
Luiz Aoqui
147d97145b ui: revert default mirage scenario to topoMedium and set product links in all scenarios (#11649) 2021-12-08 19:13:22 -05:00
Luiz Aoqui
f54a89177a UI: Add tests for prodcut links (#11645) 2021-12-07 19:51:17 -05:00
Tim Gross
c651f2d94d CI: don't run unit tests over docs backports (#11643)
We don't run tests over documentation PRs marked by the branch prefix
`docs-*`. With the new backport assistant, that should also include
branches with the prefix `backports/docs-*`
2021-12-07 16:39:52 -05:00
Tim Gross
95fa1b30f4 docs: improve docs for troubleshooting and monitoring scheduler (#11623)
This changeset adds more specific recommendations as to what metrics
to monitor, and what resources should be examined during incident
response.

It also renames the "Telemetry" section to "Monitoring Nomad" to
surface the material better and distinguish it from the "Metric
Reference".

Co-authored-by: Charlie Voiselle <464492+angrycub@users.noreply.github.com>
2021-12-07 15:52:13 -05:00
Noel Quiles
7d48372c1d website: Upgrade <HashiStackMenu /> to latest (#11615)
* Update @hashicorp/react-hashi-stack-menu

* Upgrade to latest

* One last upgrade
2021-12-07 15:25:28 -05:00
Vyacheslav Morov
2a8f032172 cli: Add var args to plan output. (#11631) 2021-12-07 10:43:52 -05:00
Kevin Wang
6addbaffa6 fix: backport release branch target (#11627) 2021-12-07 09:45:46 -05:00
James Rasell
8cdb131451 Merge pull request #11630 from hashicorp/f-add-license-metric-doc
docs: add license expiry metric to metrics website doc.
2021-12-07 15:16:40 +01:00
Michael Klein
d061c3d485 ui: cleanup server start script package.json (#11622) 2021-12-07 09:01:25 -05:00
James Rasell
d2132b96b4 docs: add license expiry metric to metrics website doc. 2021-12-07 10:31:51 +00:00
Shantanu Gadgil
d174a38206 mention sysbatch in addition to batch (#11587) 2021-12-06 19:12:03 -05:00
Kevin Wang
9b72f4fcea feat: backport.yml (#11613) 2021-12-06 17:35:33 -05:00
Tim Gross
2c3db7ee1d scheduler: config option to reject job registration (#11610)
During incident response, operators may find that automated processes
elsewhere in the organization can be generating new workloads on Nomad
clusters that are unable to handle the workload. This changeset adds a
field to the `SchedulerConfiguration` API that causes all job
registration calls to be rejected unless the request has a management
ACL token.
2021-12-06 15:20:34 -05:00
Zachary Shilton
aa7aa6b12a website: bump deps to fix print styles (#11365)
* website: bump deps to fix print styles

* website: fix up print styles

* fix: hashi-stack-menu print selector
2021-12-03 10:14:21 -05:00
Derek Strickland
71cafc5d19 Add change log entry for PR 11592 (#11609) 2021-12-02 16:18:56 -05:00
Tim Gross
1391c37ef5 hclfmt on some config files (#11611) 2021-12-02 15:25:46 -05:00
Derek Strickland
bfac8d8456 Fix Vault E2E TLS config (#11483)
* Update e2e/terraform configuration for Vault and default to mtls=true
2021-12-02 12:20:09 -05:00
Derek Strickland
189806f643 Override TLS flags individually for meta commands (#11592)
* Override TLS flags individually for meta commands

* Update command/meta.go

Co-authored-by: Tim Gross <tgross@hashicorp.com>

Co-authored-by: Tim Gross <tgross@hashicorp.com>
2021-12-01 12:07:48 -05:00
Tim Gross
2c53d4f485 changelog: new metrics in Nomad Enterprise (#11591)
This changelog is for a PR that landed in Nomad Enterprise only.
2021-12-01 09:15:12 -05:00
Michael Schurter
16b2428c94 Merge pull request #11579 from hashicorp/b-getscalingpolicy-rpc-index-response
rpc: fix scaling policy get index response when policy is found.
2021-11-30 10:43:20 -08:00
Tim Gross
d38266aef8 client: respect client_auto_join after connection loss (#11585)
The `consul.client_auto_join` configuration block tells the Nomad
client whether to use Consul service discovery to find Nomad
servers. By default it is set to `true`, but contrary to the
documentation it was only respected during the initial client
registration. If a client missed a heartbeat, failed a
`Node.UpdateStatus` RPC, or if there was no Nomad leader, the client
would fallback to Consul even if `client_auto_join` was set to
`false`. This changeset returns early from the client's trigger for
Consul discovery if the `client_auto_join` field is set to `false`.
2021-11-30 13:20:42 -05:00
Tim Gross
216d4f8644 ui: change Consul/Vault base URL field name (#11589)
Give ourselves some room for extension in the UI configuration block
by naming the field `ui_url`, which will let us have an `api_url`.
Fix the template path to ensure we're getting the right value from the
API.
2021-11-30 13:20:29 -05:00
James Rasell
5a2e329408 Merge pull request #11577 from hashicorp/b-gh-11576
docs: add deprecation note to old style network task env vars.
2021-11-30 12:15:31 +01:00
Brandon Romano
e6082862e5 Merge pull request #11586 from hashicorp/use-case-updates
Updates use cases
2021-11-29 09:17:11 -08:00
Brandon Romano
9895a198c0 Updates use cases 2021-11-29 09:16:17 -08:00
Tim Gross
851ed6322f docs: mount_flags takes a slice of strings (#11583)
The `mount_flags` option takes a slice of strings, not a
comma-separated string like the flags passed to `mount(8)`.
2021-11-29 10:07:34 -05:00
James Rasell
30fc0d0149 changelog: add entry for #11579 2021-11-26 11:16:17 +01:00
James Rasell
50c046e8e9 rpc: fix scaling policy get index response when policy is found.
When GetPolicy is called within the scaling handler, the index
table was being used to populate the reply index irregardless of
whether the policy was found or not. This change fixes that
behaviour so that the policy modify index is used when the policy
lookup is successful.
2021-11-26 10:40:27 +01:00
James Rasell
481f5333c6 docs: add deprecation note to old style network task env vars. 2021-11-25 12:58:32 +01:00
James Rasell
de85e58e36 Merge pull request #11573 from pavel-github/patch-1
docs: fix typo in the comment
2021-11-25 08:56:30 +01:00
pavel
97fd970121 docs: fix typo in the comment
comment in the source code for Logger: thhe -> the
2021-11-25 00:35:45 +01:00
Luiz Aoqui
6ad6ad67fe docs: document new Prometheus configuration for the Autoscaler APM plugin (#11562) 2021-11-24 17:37:35 -05:00
Tim Gross
5b418a15ab config: fix test-only failures in UI handler setup (#11571)
The `TestHTTPServer_Limits_Error` test never starts the agent so it
had an incomplete configuration, which caused panics in the test. Fix
the configuration.

The PR #11555 had a branch name like `f-ui-*` which caused CI to skip
the unit tests over the HTTP handler setup, so this wasn't caught in
PR review.
2021-11-24 16:19:04 -05:00
Luiz Aoqui
f9871fbae1 docs: add CLI and config docs for the Autoscaler policy source config (#11559) 2021-11-24 16:17:37 -05:00
Luiz Aoqui
b4e338c430 Merge pull request #11570 from hashicorp/merge-release-1.2.2-branch
Merge release 1.2.2 branch
2021-11-24 15:34:12 -05:00
Luiz Aoqui
523142d25c prepare for next release 2021-11-24 14:42:09 -05:00
Luiz Aoqui
9180e8a188 Merge remote-tracking branch 'origin/release-1.2.2' into merge-release-1.2.2-branch 2021-11-24 14:40:45 -05:00
Luiz Aoqui
53ab5ea169 update download to Nomad v1.2.2 (#11569) 2021-11-24 14:30:09 -05:00
Luiz Aoqui
9a0fee0a17 docs: add upgrade guide notes for Nomad 1.2.2 (#11567) 2021-11-24 14:24:20 -05:00
Jai
e34931628a Merge pull request #11557 from hashicorp/f-ui/consul-vault-link
feat:  🎸 add consul and vault links to global header
2021-11-24 14:02:54 -05:00
Nomad Release Bot
4cf5545532 remove generated files 2021-11-24 18:54:50 +00:00
Nomad Release Bot
e44c543586 Release v1.2.2 2021-11-24 18:54:06 +00:00
Nomad Release bot
78b8c171a2 Generate files for 1.2.2 release 2021-11-24 18:14:19 +00:00
Luiz Aoqui
366300af93 docs: add 1.2.2 to changelog 2021-11-24 13:03:13 -05:00
Tim Gross
e50fe8c7f8 scheduler: fix panic in system jobs when nodes filtered by class (#11565)
In the system scheduler, if a subset of clients are filtered by class,
we hit a code path where the `AllocMetric` has been copied, but the
`Copy` method does not instantiate the various maps. This leads to an
assignment to a nil map. This changeset ensures that the maps are
non-nil before continuing.

The `Copy` method relies on functions in the `helper` package that all
return nil slices or maps when passed zero-length inputs. This
changeset to fix the panic bug intentionally defers updating those
functions because it'll have potential impact on memory usage. See
https://github.com/hashicorp/nomad/issues/11564 for more details.
2021-11-24 12:59:15 -05:00
Tim Gross
036282bafd scheduler: fix panic in system jobs when nodes filtered by class (#11565)
In the system scheduler, if a subset of clients are filtered by class,
we hit a code path where the `AllocMetric` has been copied, but the
`Copy` method does not instantiate the various maps. This leads to an
assignment to a nil map. This changeset ensures that the maps are
non-nil before continuing.

The `Copy` method relies on functions in the `helper` package that all
return nil slices or maps when passed zero-length inputs. This
changeset to fix the panic bug intentionally defers updating those
functions because it'll have potential impact on memory usage. See
https://github.com/hashicorp/nomad/issues/11564 for more details.
2021-11-24 12:28:47 -05:00
Tim Gross
1160817731 config: UI configuration block with Vault/Consul links (#11555)
Add `ui` block to agent configuration to enable/disable the web UI and
provide the web UI with links to Vault/Consul.
2021-11-24 11:20:02 -05:00
Tim Gross
504e93966b tools: update virtualbox networking configuration (#11561)
As of VirtualBox 6.1.28, host-only networks are restricted to
`192.168.56.0/21` by default, so spinning up the Vagrant boxes with
secondary networks fail with an error `E_ACCESSDENIED`.

Update the IP configuration of the Vagrant boxes to fall within the
allowed range so that we don't need to ask developers from the
community to make VirtualBox configuration updates outside of their
normal Vagrant use.
2021-11-24 10:45:58 -05:00
Luiz Aoqui
e784378bcc Don't emit scaling event error when a deployment is underway (#11556) 2021-11-23 10:20:18 -05:00