Commit Graph

18945 Commits

Author SHA1 Message Date
Mahmood Ali
f68ed41453 mrd: only output evalID if found
If the multi-region job is a periodic/dispatch job, stopping them
returns an empty EvalID. This removes some unexpected empty lines.
2020-07-22 16:43:03 -04:00
Brandon Romano
ac769420bc Merge pull request #8507 from hashicorp/pcmccarron-nomad-webinar-7-23
updating banner for webinar
2020-07-22 13:34:10 -07:00
Peter M
2c4a801b7d updating banner for webinar
webinar scheduled for July 23rd, can roll back to the previous banner afterwards
2020-07-22 13:31:02 -07:00
Lars Lehtonen
3f6475f262 command/agent: fix dropped test error (#8504) 2020-07-22 15:06:35 -04:00
Drew Bailey
4cb446ea04 move podman out of external task drivers (#8502)
* move podman out of external task drivers

* document driver capabilities

* add redirect from old podman url to new one

* fix syntax
2020-07-22 14:55:40 -04:00
Mahmood Ali
fa7da0ca1e Merge pull request #8501 from hashicorp/docs-snapshot-docs-tweaks
Docs snapshot docs tweaks
2020-07-22 14:11:40 -04:00
Mahmood Ali
9310009dde changelog node networks change 2020-07-22 13:56:52 -04:00
Mahmood Ali
ba6832ffff docs: snapshot uses consul 2020-07-22 13:53:54 -04:00
Buck Doyle
8241a02b7d Fix layout of title component elements (#8495)
The spacing has been broken for job types that use this yield
(parameterised and periodic) since I added the exec button
to this template. This could be further refined to allow a more
logical grouping of elements where buttons and tags are
separate.
2020-07-22 11:30:58 -05:00
Tim Gross
31be70bbb3 docs: expand explanation of task driver capabilities (#8485) 2020-07-22 12:14:20 -04:00
Michael Schurter
e8ce66df65 Merge pull request #8500 from hashicorp/docs-no-custom-schedulers
docs: remove mention of custom schedulers
2020-07-22 09:09:32 -07:00
Michael Lange
b27c740c72 Merge pull request #8489 from hashicorp/d/add-ui-bugfix-to-changelog
Add orphaned job detail page hanging bugfix to changelog
2020-07-22 09:07:26 -07:00
Michael Schurter
d17edcae52 docs: remove mention of custom schedulers
Not sure if this was meant to imply adding more schedulers to Nomad is
easy, or that we plan on adding pluggable schedulers. Either way,
neither of those statements is really true unless you really stretch the
definitions of "easy" and "plan".

So remove this sentence as I can't imagine it does anything other than
confuse people.
2020-07-22 08:57:43 -07:00
Michael Schurter
dd47313bbd docs: create a shortcut for stop_after_client_...
Some code names are too good not to mention.
2020-07-22 08:56:50 -07:00
Mahmood Ali
e6f5fb67a1 Merge pull request #8486 from hashicorp/b-node-network-devices-1
honor config.NetworkInterface in NodeNetworks
2020-07-22 10:44:28 -04:00
Drew Bailey
94f09bfb6e remove duplicate license info (#8496) 2020-07-22 10:21:56 -04:00
James Rasell
e8c0deb2e1 Merge pull request #8494 from hashicorp/b-fix-snapshot-agent-example-config-file
docs: fix snapshot agent example config file syntax and values.
2020-07-22 14:09:11 +02:00
Mahmood Ali
59d5e84f0f Merge pull request #8493 from lhaig/master
Update snapshot-save.mdx
2020-07-22 07:41:05 -04:00
James Rasell
762efec025 docs: fix snapshot agent example config file syntax and values. 2020-07-22 13:30:18 +02:00
Lance Haig
52f4242374 Update snapshot-save.mdx
Fix the nomad operator snapshot command examples.
They were missing the "operator" option
2020-07-22 13:04:47 +02:00
Michael Lange
972e39e277 Add orphaned job detail page hanging bugfix to changelog 2020-07-21 21:57:15 -07:00
Mahmood Ali
6bf248c790 honor config.NetworkInterface in NodeNetworks 2020-07-21 15:43:45 -04:00
kobayashi
9aae2950be Add capabilities to task drivers' pages (#8476) 2020-07-21 14:54:31 -04:00
Michael Lange
248e844895 Merge pull request #8477 from hashicorp/b-ui/cross-region-alloc-lifecycle-buttons
UI: Always add the active region as a query param to API requests
2020-07-21 09:21:54 -07:00
Michael Lange
544d941148 Changelog entry for the region qp bug fix 2020-07-21 09:02:39 -07:00
Michael Lange
9882614aa5 Test coverage for the deployment adapter action 2020-07-21 09:02:39 -07:00
Michael Lange
4afedbd06a Add region coverage to node adapter action tests 2020-07-21 09:02:39 -07:00
Michael Lange
4e152a75f5 Test all allocation adapter actions with and without a region
This involves a refactor to prevent immense verbosity.
2020-07-21 09:00:21 -07:00
Michael Lange
08bd435052 Test region query param for job adapter actions 2020-07-21 09:00:20 -07:00
Michael Lange
23b024eb49 Always send region as a query param 2020-07-21 09:00:20 -07:00
Michael Lange
6bfebe2321 Refactor job adapter test to simplify setting up region and namespace state 2020-07-21 09:00:20 -07:00
Mahmood Ali
133e93e336 format job init hcl (#8483) 2020-07-21 11:49:02 -04:00
Drew Bailey
1002b10794 changelog for license apply bug (#8482) 2020-07-21 11:32:19 -04:00
Mahmood Ali
9f014223d8 docs: enabled option for nvidia device plugin (#8480) 2020-07-21 10:14:32 -04:00
Mahmood Ali
60dd7aecc9 nvidia: support disabling the nvidia plugin (#8353) 2020-07-21 10:11:16 -04:00
Mahmood Ali
ae7626362d Changelog updates and tweaks (#8479) 2020-07-21 08:05:20 -04:00
Buck Doyle
56d96940c5 Update CHANGELOG with 8460 and 8463 (#8474) 2020-07-20 16:21:35 -05:00
Buck Doyle
39d3174207 Add specificity to exec allocation URL generation (#8463)
Thanks to @notnoop for this UX improvement suggestion.
The allocation’s task group is always known, so it
might as well be preselected in the sidebar when the
exec window opens. Also, if the task group only has
one task, might as well preselect it too.
2020-07-20 16:07:39 -05:00
Buck Doyle
a4a5343efa Fix typo in exec button URL-generation (#8460)
This closes #8422, another bug facilitated by the difficulty
of automated testing when opening another window. Thanks to
@notnoop for narrowing this down.
2020-07-20 16:06:55 -05:00
Tim Gross
e855fc07bc remove stalebot (#8466)
Bring Nomad in line with other HashiCorp projects and remove stalebot. We get
little value in cleaning up issues automatically this way, it adds extra work
for maintainers when we have issues waiting on the backlog that we intend to
do, and it presents an unkind experience to issue contributors who get their
issues closed by an impersonal bot.
2020-07-20 14:50:32 -04:00
Tim Gross
d5de6c919f changelog for host_network bug (#8469) 2020-07-20 13:33:49 -04:00
Mahmood Ali
e023f9c64c Merge pull request #8467 from hashicorp/c-golang-1.14.6
Use golang 1.14.6
2020-07-20 12:37:12 -04:00
Mahmood Ali
3969d17b05 update changelog 2020-07-20 12:14:25 -04:00
dependabot[bot]
6b3ff2ee19 Bump lodash from 4.17.14 to 4.17.19 in /ui (#8449)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)
2020-07-20 11:08:06 -05:00
Mahmood Ali
039cd28b92 Use golang 1.14.6
Pick up fixes [golang 1.14.6 bug fixes](https://github.com/golang/go/issues?q=milestone%3AGo1.14.6+label%3ACherryPickApproved), specially the one where reflect.DeepEqual returns true even if values don't match, affecting our tests integrity.
2020-07-20 12:04:38 -04:00
Tim Gross
c4eb7af5f8 changelog item for MRD canary bugfix (#8465) 2020-07-20 11:36:24 -04:00
Tim Gross
6ed0f4e564 scheduler: DesiredCanaries can be set on every pass safely
The reconcile loop sets `DeploymentState.DesiredCanaries` only on the first
pass through the loop and if the job is not paused/pending. In MRD,
deployments will make one pass though the loop while "pending", and were not
ever getting `DesiredCanaries` set. We can't set it in the initial
`DeploymentState` constructor because the first pass through setting up
canaries expects it's not there yet. However, this value is static for a given
version of a job because it's coming from the update stanza, so it's safe to
re-assign the value on subsequent passes.
2020-07-20 11:25:53 -04:00
Tim Gross
5cb11b78d1 refactor: make it clear where we're accessing dstate
The field name `Deployment.TaskGroups` contains a map of `DeploymentState`,
which makes it a little harder to follow state updates when combined with
inconsistent naming conventions, particularly when we also have the state
store or actual `TaskGroup`s in scope. This changeset changes all uses to
`dstate` so as not to be confused with actual TaskGroups.
2020-07-20 11:25:53 -04:00
Lang Martin
5f7d252361 structs: Job.Validate only allows stop_after_client_disconnected on batch and service jobs (#8444)
* nomad/structs/structs: add to Job.Validate

* Update nomad/structs/structs.go

Co-authored-by: Mahmood Ali <mahmood@hashicorp.com>

* nomad/structs/structs: match error strings to the config file

* nomad/structs/structs_test: clarify the test a bit

* nomad/structs/structs_test: typo in the test error comparison

Co-authored-by: Mahmood Ali <mahmood@hashicorp.com>
2020-07-20 10:27:25 -04:00
Mahmood Ali
485cdf2bd9 Merge pull request #8461 from hashicorp/backport-ent-changes-20200720
Back-port Some Enterprise changes
2020-07-20 10:25:34 -04:00