Chris Baker
d0cc0a768b
Update nomad/job_endpoint.go
2020-09-10 17:18:23 -05:00
Chris Baker
eff726609d
move variable out of oss-only build into shared file, fixes ent compile error introduced by #8834
2020-09-10 22:08:25 +00:00
Mahmood Ali
fd54cfce6e
Revert the `requireCanary` check introduced in https://github.com/hashicorp/nomad/pull/8691/files#diff-1801138ac4d10f2064ba6f2e434ac9b4L430-R431 .
...
The change was intended to fix a case where a canary alloc may fail to
be rescheduled if all the other allocs fail as well (e.g. if all allocs
happen to be placed on a node that died). However, it introduced some
unintended side-effects.
Reverting the change for now and will investigate further.
2020-09-10 14:59:02 -04:00
Mahmood Ali
c6e1d22697
test for rescheduling non-canaries
2020-09-10 14:59:02 -04:00
Tim Gross
572ae37856
Merge pull request #8860 E2E: rescheduling tests
2020-09-10 13:43:55 -04:00
Tim Gross
b927a4c061
remove direct dependency on ginkgo
2020-09-10 13:00:42 -04:00
Tim Gross
294c7149a2
e2e: rescheduling tests
...
Ports the rescheduling tests (which aren't running in CI) into the current
test framework so that they're run on nightly, and exercises the new CLI
helpers.
2020-09-10 13:00:37 -04:00
Tim Gross
28e9bbbbf4
e2e: helper for sending CLI commands and parsing output
...
The E2E suite exercises the API, but not the CLI. This changeset adds a helper
function to send commands via a locally-built Nomad binary (which we'll need
to add to the E2E setup), and some helpers to parse the resulting structured
outputs in a way that tests can consume.
2020-09-10 13:00:32 -04:00
Michael Schurter
1544341f09
Merge pull request #8862 from hashicorp/release-0.12.4
...
Prepare for 0.13 development cycle
2020-09-10 09:14:44 -07:00
Michael Schurter
2728d06cc6
release: remove generated files after release
2020-09-10 08:57:30 -07:00
Michael Schurter
2c63934f7c
prepare version for next release
2020-09-09 15:38:13 -07:00
Michael Schurter
88e674c0dd
Merge pull request #8861 from hashicorp/docs-nomad-0.12.4
...
Update website to Nomad 0.12.4
2020-09-09 15:27:06 -07:00
Michael Schurter
5f3a71d0b9
docs: update scripts to 0.12.4
2020-09-09 15:22:37 -07:00
Michael Schurter
b41a54fb98
docs: update website to 0.12.4
2020-09-09 15:22:22 -07:00
Benjamin Buzbee
4c91f20c44
Add API support for cancelation contexts passed via QueryOptions and WriteOptions ( #8836 )
...
Copy Consul API's format: QueryOptions.WithContext(context) will now return
a new QueryOption whose HTTP requests will be canceled with the context
provided (and similar for WriteOptions)
2020-09-09 16:22:07 -04:00
Mahmood Ali
d4f385d6e1
Upgrade to golang 1.15 ( #8858 )
...
Upgrade to golang 1.15
Starting with golang 1.5, setting Ctty value result in `Setctty set but Ctty not valid in child` error, as part of https://github.com/golang/go/issues/29458 .
This commit lifts the fix in https://github.com/creack/pty/pull/97 .
2020-09-09 15:59:29 -04:00
Nomad Release Bot
a6d7d1e639
Release v0.12.4
2020-09-09 17:34:53 +00:00
Nomad Release bot
ccceb652ad
Generate files for 0.12.4 release
2020-09-09 16:59:58 +00:00
Michael Lange
2a73242662
Merge pull request #8850 from hashicorp/d/changelog
...
Changelog entry for 8833
2020-09-09 08:36:04 -07:00
Michael Schurter
df167e1487
docs: bump 0.12.4 GA date to today
2020-09-09 08:32:50 -07:00
James Rasell
4aec26241e
Merge pull request #8855 from hashicorp/b-docs-fix-autopilot-configblock-format
...
docs: format Autopilot config stanza example.
2020-09-09 16:15:41 +02:00
Yoan Blanc
48d07c4d12
fix: panic in test introduced by #8453 ( #8834 )
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-09-09 09:38:15 -04:00
James Rasell
b44e703506
docs: format Autopilot config stanza example.
2020-09-09 15:37:39 +02:00
James Rasell
e732d4025e
Merge pull request #8851 from hashicorp/b-fix-e2e-8842
...
e2e: fix failure in running metrics test suite jobs.
2020-09-09 15:14:47 +02:00
Chris Baker
e0502dd232
Merge pull request #8848 from hashicorp/b-deployment-500-error
...
GetDeployment should not return 500 error
2020-09-09 07:20:13 -05:00
James Rasell
76b03d3a2f
e2e: fix failure in running metrics test suite jobs.
...
When running the Fabio and Prometheus jobs for the metrics suite
it seems the outer directory is required in the call when
registering the job.
error: "e2e/input/fabio.nomad: no such file or directory"
2020-09-09 08:40:35 +02:00
Chris Baker
bfa366ea72
Update nomad/deployment_endpoint.go
2020-09-08 16:39:51 -05:00
Michael Lange
4b217dc56c
Changelog entry for 8833
2020-09-08 14:11:13 -07:00
Michael Lange
1abfeb6bcf
Merge pull request #8833 from hashicorp/b-ui/wrong-task-logs
...
UI: Fix bug where task logs would suddenly switch to another task's logs
2020-09-08 14:05:22 -07:00
Chris Baker
0e509bc11e
check ACLs against deployment namespace on Deployment.GetDeployment, filtering the deployment if the ACL isn't appropriate
2020-09-08 19:57:28 +00:00
davemay99
46047909b4
Verify iter to avoid panic
2020-09-08 15:46:33 -04:00
Dave May
1866c667e4
Merge pull request #8847 from hashicorp/dmay-array-fix
...
Verify iter to avoid panic
2020-09-08 15:20:30 -04:00
davemay99
d330da9434
Verify iter to avoid panic
2020-09-08 14:10:38 -04:00
Kevin Pruett
f61dab2a75
Merge pull request #8818 from hashicorp/pruett.search-fixes
...
Fix several search-related issues
2020-09-08 13:42:05 -04:00
Tim Gross
f499b44101
e2e: move setup jobs for metrics test into that suite ( #8842 )
...
The fabio and prometheus workloads are specific to the metrics test and aren't
used by any other test suite.
2020-09-08 13:21:44 -04:00
Kevin Pruett
97e4f376fc
Fix several search-related issues
...
* CSS on mobile
* Remove stale partial indices
* Fix broken hit links
* Leverage @hashicorp/react-search/tools
2020-09-08 11:02:57 -04:00
Lens0021
db91bfd676
Fix Vagrant link in README ( #8839 )
2020-09-08 08:45:46 -05:00
James Rasell
eca9ed49c4
docs: add Nomad Autoscaler Datadog APM plugin details. ( #8755 )
2020-09-08 09:40:45 +02:00
James Rasell
c26421a56b
Merge pull request #8837 from hashicorp/docs-autoscaler-gh-257
...
docs: update Autoscaler AWS target with new purge config option.
2020-09-08 09:15:27 +02:00
James Rasell
75adfabf31
docs: add Autoscaler telemetry documentation to website. ( #8733 )
...
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2020-09-08 09:13:53 +02:00
James Rasell
75d2330ff7
docs: update Autoscaler AWS target with new purge config option.
2020-09-07 10:45:41 +02:00
Michael Lange
252fa69ce6
Sort keys when converting objects to arrays for stable model fragments
2020-09-04 19:44:21 -07:00
Michael Lange
9572b78369
Merge pull request #8726 from hashicorp/ui/mirage-job-resources
...
UI: Allow for setting job resource requirements in via the Mirage job factory
2020-09-04 14:03:42 -07:00
Michael Lange
0f2fd905d8
Derive allocation Resources property from TaskResources
2020-09-04 13:46:50 -07:00
Michael Lange
edd904c1c4
Allow for custom resource requirements for jobs that are recognized by allocations
...
The job factory will now accept an array of resourceSpecs that is a shorthand
notation for memory, cpu, disk, and iops requirements.
These specs get passed down to task groups. The task group factory will
split the resource requirements near evenly (there is variance
threshold) across all expected tasks.
Allocations then construct task-resource objects based on the resources
from the matching task.
2020-09-04 13:46:49 -07:00
Michael Lange
f9864930ce
Parameterize generateResources to enable property overrides
2020-09-04 13:46:35 -07:00
Drew Bailey
d3b41b0d69
Merge pull request #8772 from hashicorp/state/track-changes
...
track transaction changes
2020-09-04 14:12:27 -04:00
Tim Gross
903f5c3199
changelog item for CSI socket connect ( #8829 )
2020-09-04 11:24:01 -04:00
Tim Gross
a47b1c1081
e2e: move configurations into profile-specific directories ( #8828 )
...
This changeset stages upcoming E2E provisioning improvements work. It splits
the existing shared configuration directory into 3 profiles:
* "full-cluster": the set of configurations currently in use
* "dev-cluster": a simplified set of mostly existing configurations that
weren't in use.
* "custom": an empty profile for developers to keep non-standard
configurations during complex feature development.
The tooling to switch between profiles will be in a later changeset.
Also drops some unused configuration knobs from the provisioning scripts to
make the next stage of work easier.
2020-09-04 11:23:32 -04:00
Tim Gross
571365dc62
changelog item for CSI socket connect ( #8829 )
2020-09-04 11:22:49 -04:00