Commit Graph

17554 Commits

Author SHA1 Message Date
Mahmood Ali
4bbde0ea33 tests: test agent to use a noop auditor 2020-03-25 08:45:44 -04:00
Mahmood Ali
3a0f29c076 tests: TestCSIPluginEndpoint_ACLNamespaceAlloc is ent
TestCSIPluginEndpoint_ACLNamespaceAlloc uses namespace features not
present in OSS.
2020-03-25 08:45:44 -04:00
Mahmood Ali
e6b1e7ba50 tests: relax index checks
TestStateStore_Indexes specifically tests for `nodes` index, but asserts
on the exact number of indexes present in the state.  This is fragile
and will break almost everytime we add a state index.
2020-03-25 08:45:38 -04:00
Mahmood Ali
4a27cddec8 Merge pull request #7383 from hashicorp/b-health-detect-failing-tasks
health: detect failing tasks
2020-03-25 06:30:05 -04:00
Mahmood Ali
e718b2f5ec Merge pull request #7482 from hashicorp/b-fix-tests-20200324
Fix some flaky tests
2020-03-24 22:24:22 -04:00
Mahmood Ali
e43468ec91 tweaks 0.11.0 changelog (#7481) 2020-03-24 22:20:51 -04:00
Mahmood Ali
d155e4d412 tests: restart restartpolicy for all tasks in tests 2020-03-24 21:52:48 -04:00
Mahmood Ali
c31dbc24c9 ci: collect json file
Start collecting raw `go test -json` output to help with debugging odd
CI failures.
2020-03-24 21:47:21 -04:00
Mahmood Ali
df08c6c399 tests: populate task restart policy properly 2020-03-24 21:44:37 -04:00
Mahmood Ali
64928b770a Merge pull request #7466 from hashicorp/csi_changelog
add changelog entries for 0.11.0
2020-03-24 20:47:25 -04:00
Drew Bailey
9b63044400 Merge pull request #7480 from hashicorp/docs-ent-fix-typo
fix typo
2020-03-24 19:50:18 -04:00
Drew Bailey
0db69748d4 fix typo 2020-03-24 19:48:29 -04:00
Drew Bailey
6c4fca0c7e Merge pull request #7479 from hashicorp/docs-ent-audit
update enterprise audit blurb
2020-03-24 19:46:38 -04:00
Drew Bailey
9cc96d18b5 update enterprise audit blurb 2020-03-24 19:42:02 -04:00
Buck Doyle
27df92a967 UI: add exec terminal (#6697)
This connects Xterm.js to a Nomad exec websocket so people
can interact on clients via live sessions. There are buttons on
job, allocation, task group, and task detail pages that open a
popup that lets them edit their shell command and start a
session.

More is to come, as recorded in issues.
2020-03-24 18:22:16 -05:00
Mahmood Ali
b80749157e Merge pull request #7288 from hashicorp/f-task-restart-policy
Support per-task RestartPolicy
2020-03-24 18:33:26 -04:00
Mahmood Ali
80830221fe tests: fix TestAllocations_GarbageCollect 2020-03-24 17:38:59 -04:00
Mahmood Ali
55db937f16 tests: update AR task restart policy 2020-03-24 17:00:42 -04:00
Mahmood Ali
c55f3ed084 per-task restart policy 2020-03-24 17:00:41 -04:00
Chris Baker
10bdc6f348 Merge pull request #7474 from hashicorp/f-scaling-changes-from-review
more testing for scaling API
2020-03-24 15:32:10 -05:00
Chris Baker
de0a835261 update RPC scaling endpoint tests to use renamed 'scale' policy disposition 2020-03-24 20:18:12 +00:00
Jasmine Dahilig
e237f8a97c update changelog 0.11 with task dependencies 2020-03-24 12:52:47 -07:00
Chris Baker
1c7c599372 more testing for ScalingPolicy, mainly around parsing and canonicalization for Min/Max 2020-03-24 19:43:50 +00:00
Chris Baker
ea6cd7bc50 test coverage for scaling policy min/max parsing 2020-03-24 19:28:24 +00:00
Lang Martin
5485cff30b csi: return an empty result list from plugins & volumes without type, not an error (#7471) 2020-03-24 14:28:28 -04:00
Drew Bailey
f8eac80336 Merge pull request #7429 from hashicorp/docs-audit-logging
docs: audit logging
2020-03-24 14:24:31 -04:00
Drew Bailey
d6a7fae70e enterprise index page update 2020-03-24 14:22:37 -04:00
Tim Gross
915fec80a8 CSI: HTTP API docs (#7435)
HTTP API documentation for the `/plugin` and `/volume` endpoints, to
support CSI.
2020-03-24 14:21:45 -04:00
Drew Bailey
09e0841f7b Audit logging documentation
docs for audit logging

enterprise only note

enterprise page audit blurb

add audit to sidebar

add general options audit info

fix name for docs-navigation

link to docs

more docs

add audit log entry examples

fix audit link

clean up audit log docs
2020-03-24 14:20:27 -04:00
Chris Baker
ecde5f13f6 Job.Scale should not result in job update or eval create if args.Count == nil
plus tests
2020-03-24 17:36:06 +00:00
Tim Gross
9edba971f5 csi: remove client from plugin on client node update (#7462)
Plugins track the client nodes where they are placed. On client
updates, remove the client from the plugin tracking if the client is
no longer running an instance of that controller/node plugin.

Extends the state store tests to ensure deregistration works as
expected and that controllers and nodes are being tracked
independently.
2020-03-24 13:26:31 -04:00
Mahmood Ali
44bef3d827 batch update with Mahmood's entries 2020-03-24 13:20:11 -04:00
Chris Baker
ea41f2ccb7 updated changelog: scaling APIs 2020-03-24 16:20:37 +00:00
Drew Bailey
e4e05645c0 changelog: enterprise audit logging 2020-03-24 12:19:17 -04:00
Tim Gross
beccbae6ee Update CHANGELOG.md
Co-Authored-By: James Rasell <jrasell@users.noreply.github.com>
2020-03-24 12:12:43 -04:00
Chris Baker
33360be3cf Merge pull request #7409 from hashicorp/scaling-api
Scaling API changes
2020-03-24 11:02:09 -05:00
Buck Doyle
a2b7180c47 Update changelog for exec UI 2020-03-24 10:57:14 -05:00
Tim Gross
2a609250d6 add changelog entries for CSI 2020-03-24 11:14:51 -04:00
Tim Gross
0e3c33110a Documentation for CSI command line and jobspec (#7439)
Includes:

* changes `nomad alloc status` and `nomad node status`
* changes to `volume` block in jobspec
* new `csi_plugin` block in jobspec
* new `nomad volume register/deregister/status` commands
* new `nomad plugin status` command
2020-03-24 11:09:46 -04:00
Chris Baker
4330fe8497 bad conversion between api.ScalingPolicy and structs.ScalingPolicy meant
that we were throwing away .Min if provided
2020-03-24 14:39:06 +00:00
Chris Baker
e831ec3bd5 added new int64ToPtr method to api/util to avoid pulling in other packages 2020-03-24 14:39:05 +00:00
Chris Baker
ff652bff03 add acl validation to Scaling.ListPolicies and Scaling.GetPolicy 2020-03-24 14:39:05 +00:00
Chris Baker
d4f967cdd4 made count optional during job scaling actions
added ACL protection in Job.Scale
in Job.Scale, only perform a Job.Register if the Count was non-nil
2020-03-24 14:39:05 +00:00
Chris Baker
ac5a166ca3 wip: ACL checking for RPC Job.ScaleStatus 2020-03-24 14:39:05 +00:00
Chris Baker
f704a49962 added new ACL capabilities related to autoscaling:
- read-job-scaling
- scale-job
- list-scaling-policies
- read-scaling-policy

updated the read and right policy dispositions, added the new autoscaler disposition
2020-03-24 14:38:58 +00:00
Lang Martin
e3a3c332a6 csi: volume deregister fails for volumes actively in use (#7445)
* nomad/structs/csi: add InUse to CSIVolume

* nomad/state/state_store: block volume deregistration for in use vols
2020-03-24 10:10:44 -04:00
Tim Gross
d2ae84bd53 Merge pull request #7450 from hashicorp/b-csi-plugin-health-counts
csi: fix missing health count from volume list stub
2020-03-24 10:07:07 -04:00
Chris Baker
9292e88f2b changes to Canonicalize, Validate, and api->struct conversion so that tg.Count, tg.Scaling.Min/Max are well-defined with reasonable defaults.
- tg.Count defaults to tg.Scaling.Min if present (falls back on previous default of 1 if Scaling is absent)
- Validate() enforces tg.Scaling.Min <= tg.Count <= tg.Scaling.Max

modification in ApiScalingPolicyToStructs, api.TaskGroup.Validate so that defaults are handled for TaskGroup.Count and
2020-03-24 13:57:17 +00:00
Chris Baker
41560096d0 scaling api: put api.* objects in agreement with structs.* objects 2020-03-24 13:57:16 +00:00
Chris Baker
2d88d57e52 fixed http endpoints for job.register and job.scalestatus 2020-03-24 13:57:16 +00:00