Commit Graph

19836 Commits

Author SHA1 Message Date
Mahmood Ali
1f949100db hclv2 tests: test complex config configuration 2020-10-26 16:20:41 -04:00
Seth Hoenig
f6d921f157 Merge pull request #9179 from hashicorp/f-pin-a8m_tree
deps: pin a8m/tree to specific hash
2020-10-26 14:01:33 -05:00
Seth Hoenig
7492c6ba58 deps: pin a8m/tree to specific hash 2020-10-26 13:44:35 -05:00
Michael Lange
47cb6c43bb Merge pull request #9166 from mobiltracker/master
Display class in client details
2020-10-26 10:54:14 -07:00
Michael Lange
f69e3a1e2b Merge pull request #9167 from hashicorp/f-ui/topo-viz-refinements
UI: topo viz refinements
2020-10-26 10:51:31 -07:00
Michael Lange
607aac440a Merge pull request #9172 from hashicorp/b-ui/logs-for-fails
UI: Always show the file browser for allocations and tasks.
2020-10-26 10:36:18 -07:00
Michael Lange
50372a16c5 Merge pull request #9173 from hashicorp/f-ui/show-version
UI: Show the nomad agent version of the agent the UI is served from
2020-10-26 10:28:28 -07:00
fqborges
e9ae4406cc Display class in client details 2020-10-26 11:29:19 -03:00
James Rasell
824633ceda Merge pull request #9174 from hashicorp/f-bump-website-nomad-version
website: bump default version to 0.12.7.
2020-10-26 13:30:39 +01:00
Allen
522204a8fe Fix command typo of vault token create (#9169) 2020-10-26 08:16:19 -04:00
James Rasell
4efee0979e website: bump default version to 0.12.7. 2020-10-26 13:08:21 +01:00
Michael Lange
8d8f9aaa28 Show the nomad agent version of the agent the UI is served from 2020-10-25 23:52:06 -07:00
Michael Lange
05f3bf2d09 Always show the file browser for allocations and tasks.
Before, we'd show a helpful error message when a task isn't running
instead of erroring in a generic way. Turns out when an alloc is
terminal but reachable, the filesystem is left behind so we were hiding
it.

Now it is always shown and in the event that something errors, it'll
either be generic, or--more commonly--a 404 of the allocation.
2020-10-25 22:24:56 -07:00
Michael Lange
b87b4257ae Make alloc association lines conditional on alloc count relative to node count 2020-10-23 15:16:31 -07:00
Michael Lange
9c7bee8a01 Redo column widths on the topology page.
Now the info panel has a fixed width and the TopoViz will display as a
single column if the TopoViz column is too narrow for two columns.
2020-10-23 14:17:03 -07:00
Michael Lange
2385baae80 Reset inline styles on flex-masonry elements when columns is set to 1 2020-10-23 14:17:03 -07:00
Michael Lange
6d8192c065 Truncate text in the topo viz info panel 2020-10-23 14:17:03 -07:00
Michael Lange
d6d2bca48f Highlight starting allocations with a blue tint 2020-10-23 14:17:03 -07:00
Michael Lange
9e87f6a409 Limit the topo viz to only pending and running allocs
Failed allocs immediately vacate their allocated resources which results
in inaccurate distributions of allocations on a client.
2020-10-23 14:17:03 -07:00
Tim Gross
58562234c5 changelog entry for #8967 (#9164) 2020-10-23 14:27:32 -04:00
Drew Bailey
fbb199d416 event sink crud operation api (#9155)
* network sink rpc/api plumbing

state store methods and restore

upsert sink test

get sink

delete sink

event sink list and tests

go generate new msg types

validate sink on upsert

* go generate
2020-10-23 14:23:00 -04:00
Michael Schurter
d002a8f391 Merge pull request #9135 from hashicorp/f-namespaces
core: open source namespaces
2020-10-23 10:23:55 -07:00
Kevin Pruett
2e8f0f373f Merge pull request #9156 from hashicorp/pruett.alertbanner-exp
Document new `expirationDate` prop for AlertBanner
2020-10-23 10:52:35 -04:00
Kevin Pruett
cebcca19ad Document new expirationDate prop for AlertBanner 2020-10-23 10:52:11 -04:00
Stefan Richter
55d00d77ae Add NOMAD_JOB_ID and NOMAD_JOB_PAERENT_ID env variables (#8967)
Beforehand tasks and field replacements did not have access to the
unique ID of their job or its parent. This adds this information as
new environment variables.
2020-10-23 10:49:58 -04:00
Tim Gross
e2f73f3d5c docs: add regression warning for GH-9148 to upgrade guide (#9157)
* docs: add regression warning for GH-9148 to upgrade guide
* changelog entry
2020-10-23 10:05:56 -04:00
Tim Gross
9e9dac4a2c Revert "e2e: fix destination of templates in VaultSecrets test (#9146)" (#9163)
This reverts commit 8aed53c177.
2020-10-23 09:01:25 -04:00
Michael Schurter
47b8db8a33 docs: namespaces are oss in Nomad 1.0 2020-10-22 15:26:32 -07:00
Michael Schurter
6c2f589ed0 Update generate_msgtypes.sh now that iota is gone 2020-10-22 15:26:32 -07:00
Michael Schurter
ecfcb0026e core: open source namespaces 2020-10-22 15:26:32 -07:00
Tim Gross
8a90b7eb16 artifact/template: make destination path absolute inside taskdir (#9149)
Prior to Nomad 0.12.5, you could use `${NOMAD_SECRETS_DIR}/mysecret.txt` as
the `artifact.destination` and `template.destination` because we would always
append the destination to the task working directory. In the recent security
patch we treated the `destination` absolute path as valid if it didn't escape
the working directory, but this breaks backwards compatibility and
interpolation of `destination` fields.

This changeset partially reverts the behavior so that we always append the
destination, but we also perform the escape check on that new destination
after interpolation so the security hole is closed.

Also, ConsulTemplate test should exercise interpolation
2020-10-22 15:47:49 -04:00
Buck Doyle
5237c11817 Add logged Faker seed when none is set in tests (#9140)
This will hopefully make it easier to reproduce test failures
that happen intermittently, especially in CI.
2020-10-22 13:45:51 -05:00
Mahmood Ali
ec3650fe17 Merge pull request #9142 from hashicorp/f-hclv2-2.3
Support HCLv2 for Nomad jobs
2020-10-22 12:26:28 -05:00
Tim Gross
8aed53c177 e2e: fix destination of templates in VaultSecrets test (#9146)
The `$NOMAD_SECRETS_DIR` environment variable is rendered as `/secrets`, which
prior to the recent security patch would unintentionally escape the file
sandbox and get dropped in a directory named `/secrets` where the Nomad client
binary was running. The `VaultSecrets` test was accidentally relying on this
behavior and that causes the test to fail.
2020-10-22 13:00:08 -04:00
Drew Bailey
3347b40d11 remove event durability (#9147)
* remove event durability

temporarily removing go-memdb event durability until a new strategy is developed on how to best handled increased durability needs

* drop events table schema and state store methods

* fix neweventbuffer invocations
2020-10-22 12:21:03 -04:00
Mahmood Ali
93bbe181e0 address review feedback 2020-10-22 11:49:37 -04:00
davidr912
ca1cb4b484 Update job/plan documentation (#9145)
Updated to reflect plan expects the job definition as JSON object and not as the string form of the JSON
2020-10-22 10:17:47 -04:00
Mahmood Ali
4d76e8bd79 Don't parse the server-set fields of the job struct 2020-10-22 08:18:57 -04:00
Tim Gross
fc1b0c11e6 csi: prevent in-use plugin GC from blocking volume GC (#9141)
During CSI plugin GC, we don't return an error if the volume is in use,
because this is not an error condition. If we were to return an error during a
`nomad system gc`, we would not continue on to GC volumes.

But check for the specific error message fails if the GC is performed on a
worker rather than on the leader, due to RPC forwarding wrapping the error
message. Use a less specific test so that we don't return an error.
2020-10-21 16:54:28 -04:00
Mahmood Ali
9fe7423403 api: update /render api to parse hclv2 2020-10-21 15:46:57 -04:00
Mahmood Ali
1d85c6a4eb cli: use HCLv2 parser
Also, fallback to using HCLv1.
2020-10-21 15:46:57 -04:00
Mahmood Ali
034733cdc9 Update vendored libraries 2020-10-21 15:46:56 -04:00
Mahmood Ali
7fb6bc3941 Add hclv2 parser 2020-10-21 15:46:56 -04:00
Tim Gross
8c7ccb2d49 bump website version to 0.12.6 2020-10-21 14:34:12 -04:00
Tim Gross
19b1ca9b4f upgrade guide documentation 2020-10-21 14:34:12 -04:00
Tim Gross
dc451b324f changelog entry 2020-10-21 14:34:12 -04:00
Tim Gross
076db2ef6b artifact/template: prevent file sandbox escapes
Ensure that the client honors the client configuration for the
`template.disable_file_sandbox` field when validating the jobspec's
`template.source` parameter, and not just with consul-template's own `file`
function.

Prevent interpolated `template.source`, `template.destination`, and
`artifact.destination` fields from escaping file sandbox.
2020-10-21 14:34:12 -04:00
Mahmood Ali
2a9232902c hclv1: tweak HCLv1 tests
This ensures that gatway ReadOnly key is tested.  Also, update the hclv1
test-fixtures to be hclv1 compliant.
2020-10-21 14:05:46 -04:00
Mahmood Ali
922b671719 api: parse service gateway name
Adding gateway name eases HCLv2 parsing. This field is only used for parsing the
job and is ignored for any other pruposes
2020-10-21 14:05:46 -04:00
Mahmood Ali
589a9e995d Tag Job spec with HCLv2 tags 2020-10-21 14:05:46 -04:00