Commit Graph

18466 Commits

Author SHA1 Message Date
Chris Baker
83c697cdf5 Merge pull request #8171 from hashicorp/changelog-entry-8161
changelog: add entry for GH-8161
2020-06-16 10:41:52 -05:00
James Rasell
b3f6cacb14 changelog: add entry for GH-8161 2020-06-16 17:39:47 +02:00
James Rasell
cc83d19eed Merge pull request #8162 from hashicorp/b-gh-8161
cli: fix malformed alloc status address list when more than 1 addr
2020-06-16 16:35:53 +02:00
Chris Baker
de359b5a9f Merge pull request #8167 from hashicorp/f-8090-add-count-to-scaling-event
add PreviousCount to ScalingEvent
2020-06-16 07:43:59 -05:00
Chris Baker
a3a1c63fef changelog for 8167 2020-06-16 12:43:35 +00:00
Chris Baker
c51c5a0436 core: update Job.Scale to save the previous job count in the ScalingEvent 2020-06-15 19:49:22 +00:00
Chris Baker
eff54843cf wip: added .PreviousCount to api.ScalingEvent and structs.ScalingEvent, with developmental tests 2020-06-15 19:40:21 +00:00
Mahmood Ali
f8c7e3f95f Merge pull request #8164 from hashicorp/docs-cronexpr-link
docs: update cronexpr github link
2020-06-15 09:58:51 -04:00
Seth Hoenig
c371a31e00 docs: update cronexpr github link 2020-06-15 08:48:32 -05:00
James Rasell
c74c84f2c5 cli: fix malformed alloc status address list when more than 1 addr 2020-06-15 14:35:47 +02:00
Mahmood Ali
c52a2909e4 Merge pull request #8131 from hashicorp/f-snapshot-restore
Implement snapshot restore
2020-06-15 08:32:34 -04:00
Mahmood Ali
14cd3da252 Apply suggestions from code review
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2020-06-15 08:32:16 -04:00
Mahmood Ali
fbb1092019 revert changes from earlier change 2020-06-12 14:02:43 -04:00
Mike Wickett
723437f87e Merge pull request #8152 from hashicorp/mw.add-cloudflare-quote-card
website: add cloudflare testimonial
2020-06-12 12:32:01 -04:00
Drew Bailey
9ffbb27deb only report tasklogger is running if both stdout and stderr are still running (#8155)
* only report tasklogger is running if both stdout and stderr are still running

* changelog
2020-06-12 09:17:35 -04:00
Seth Hoenig
ef67b1b784 Merge pull request #8154 from fhemberger/patch-2
[docs/docker driver] fix username in example
2020-06-11 08:52:45 -05:00
Frederic Hemberger
bfe729f7ed [docs/docker driver] fix username in example
> If you do not run Nomad as root, make sure you add the Nomad user to the Docker group so Nomad can communicate with the Docker daemon.

Changing the username in the example from `vagrant` to `nomad`. Vagrant isn't addressed in the entire document, so I guess that this was a mistake.
2020-06-11 12:29:43 +02:00
Mike Wickett
f4f71aa432 website: add cloudflare testimonial 2020-06-10 20:53:05 -04:00
Lang Martin
9ccec0afbb scheduler/reconcile: set FollowupEvalID on lost stop_after_client_disconnect (#8105) (#8138)
* scheduler/reconcile: set FollowupEvalID on lost stop_after_client_disconnect

* scheduler/reconcile: thread follupEvalIDs through to results.stop

* scheduler/reconcile: comment typo

* nomad/_test: correct arguments for plan.AppendStoppedAlloc

* scheduler/reconcile: avoid nil, cleanup handleDelayed(Lost|Reschedules)
2020-06-09 17:13:53 -04:00
Buck Doyle
11d80ae489 Add Ember ESLint plugin (#8134)
This is extracted from #8094, where I have run into some snags. Since
these ESLint fixes aren’t actually connected to the Ember 3.16 update
but involve changes to many files, we might as well address them
separately. Where possible I fixed the problems but in cases where
a fix seemed too involved, I added per-line or -file exceptions.
2020-06-09 16:03:28 -05:00
Mahmood Ali
1f6cb154b9 clarify ccomments, esp related to leadership code 2020-06-09 12:01:31 -04:00
Mahmood Ali
bd48db20e2 clarify error message
Co-authored-by: Tim Gross <tgross@hashicorp.com>
2020-06-09 11:26:52 -04:00
Yishan Lin
a7291fc6bd Merge pull request #8124 from hashicorp/yishan-who-uses-nomad-docs-revised
Updated Nomad README + Who Uses Nomad pages
2020-06-08 09:08:13 -07:00
Mahmood Ali
d13a63c8bb loosen raft timeout 2020-06-07 16:38:11 -04:00
Mahmood Ali
fad0fafa9f tests: client already disabled 2020-06-07 16:38:11 -04:00
Mahmood Ali
519447d1c0 tests: prefix agent logs to identify agent sources 2020-06-07 16:38:11 -04:00
Mahmood Ali
669b75d621 implement snapshot restore CLI 2020-06-07 15:47:07 -04:00
Mahmood Ali
867147c90e api: add snapshot restore 2020-06-07 15:47:07 -04:00
Mahmood Ali
b73e7b0265 reassert leadership 2020-06-07 15:47:06 -04:00
Mahmood Ali
97fb054c9d basic snapshot restore 2020-06-07 15:46:23 -04:00
Yishan Lin
92daea3216 Updated Nomad README + Who Uses Nomad pages
- Guides now point to HashiCorp Learn, rather than old website
- Condensed the documentation & guides section for brevity
- Updated "Who Uses Nomad" page and section in README with new names collected from past 6 months
- Added yearly publication dates to each of the public talks
2020-06-05 13:27:26 -07:00
Chris Baker
0fd6d3c679 Merge pull request #8123 from hashicorp/docs-update-version-for-0.12.0
update version for 0.12.0 dev
2020-06-05 14:34:38 -05:00
Chris Baker
dac302ac10 update version for 0.12.0 dev 2020-06-05 19:32:52 +00:00
Chris Baker
95fa48fca0 Merge pull request #8122 from hashicorp/docs-update-changelog-with-0.11.3
changelog updates from release-0.11.3
2020-06-05 14:31:26 -05:00
Chris Baker
14f36aecdc changelog updates from release-0.11.3 2020-06-05 19:29:57 +00:00
Mahmood Ali
32917738a5 Merge pull request #8120 from hashicorp/c-fix-go-bindata
Ensure we are using the latest go-bindata tools
2020-06-04 19:53:57 -04:00
Mahmood Ali
d81d827b05 Ensure we are using the latest go-bindata tools
go-bindata released tags are very old, few years old, so ensure we use
the latest master as of now.
2020-06-04 18:49:12 -04:00
Mahmood Ali
723ed85f44 ci: run static generators as part of CI
These are used by release process, so add them to CI to notice if we
break release scripts.
2020-06-04 18:23:29 -04:00
Mahmood Ali
192b7e8fdd Merge pull request #8089 from hashicorp/b-leader-worker-count
leadership: pause and unpause workers consistently
2020-06-04 12:01:01 -04:00
Tim Gross
8d60451481 Revert "fix go.mod replace for api by using older semantics (#8113)" (#8115)
This reverts commit e3db589c09.
2020-06-04 11:29:03 -04:00
Tim Gross
e3db589c09 fix go.mod replace for api by using older semantics (#8113) 2020-06-04 10:33:28 -04:00
Tim Gross
c7c2b716fc ignore vagrant directory even if symlinked (#8114) 2020-06-04 10:24:15 -04:00
Mahmood Ali
f3183f137c stop periodic dispatch at end of tests (#8111) 2020-06-04 09:15:00 -04:00
Mahmood Ali
fa845c7a7e Vendor gopsutil with go mod fix (#8108)
Point to gopsutil fork with shirou/gopsutil#889 changes. I used hashicorp/gopsutil rather than pointing to https://github.com/Lomanic/gopsutil/tree/issue832 directly just in case..
2020-06-03 16:09:27 -04:00
Mahmood Ali
87d75f6adf run go mod vendor (#8107) 2020-06-03 15:34:39 -04:00
Drew Bailey
40441df3ed base podman e2e test and provisioning updates (#8104)
* initial setup for terrform to install podman task driver

podman

* Update e2e provisioning to support root podman

Excludes setup for rootless podman. updates source ami to ubuntu 18.04
Installs podman and configures podman varlink

base podman test

ensure client status running

revert terraform directory changes

* back out random go-discover go mod change

* include podman varlink docs

* address comments
2020-06-03 14:06:58 -04:00
Michael Lange
b8623b373e Merge pull request #8103 from hashicorp/b-ui/remove-vendored-xterm
Remove vendored xterm.js files
2020-06-03 09:34:04 -07:00
Michael Lange
ea29d409ef Remove vendored xterm.js files 2020-06-03 09:25:19 -07:00
Lang Martin
422493f38d Delayed evaluations for stop_after_client_disconnect can cause unwanted extra followup evaluations around job garbage collection (#8099)
* client/heartbeatstop: reversed time condition for startup grace

* scheduler/generic_sched: use `delayInstead` to avoid a loop

Without protecting the loop that creates followUpEvals, a delayed eval
is allowed to create an immediate subsequent delayed eval. For both
`stop_after_client_disconnect` and the `reschedule` block, a delayed
eval should always produce some immediate result (running or blocked)
and then only after the outcome of that eval produce a second delayed
eval.

* scheduler/reconcile: lostLater are different than delayedReschedules

Just slightly. `lostLater` allocs should be used to create batched
evaluations, but `handleDelayedReschedules` assumes that the
allocations are in the untainted set. When it creates the in-place
updates to those allocations at the end, it causes the allocation to
be treated as running over in the planner, which causes the initial
`stop_after_client_disconnect` evaluation to be retried by the worker.
2020-06-03 09:48:38 -04:00
Seth Hoenig
045995bffb Merge pull request #8041 from hashicorp/x-gomod
Switch to Go modules for dependency management
2020-06-02 18:26:53 -05:00