Commit Graph

8400 Commits

Author SHA1 Message Date
Alex Dadgar 2470faccb3 Merge pull request #2975 from nak3/fix-link-hdfs
docs: fix invalid links for hdfs examples
2017-08-07 11:14:29 -07:00
Chelsea Holland Komlo d4fc5160b1 code simplifications and logging 2017-08-07 17:28:46 +00:00
Alex Dadgar a5c5b54fed Update requirements.html.md
Fixes https://github.com/hashicorp/nomad/issues/2976
2017-08-07 09:58:02 -07:00
Chelsea Holland Komlo cd0698a87b max index for any resource, if context is unspecified 2017-08-07 15:07:18 +00:00
Chelsea Holland Komlo f110fa5c0d syntax fixups and logging 2017-08-07 14:26:53 +00:00
Kenjiro Nakayama 8634344d9e docs: fix invalid link for hdfs examples 2017-08-06 14:24:51 +09:00
Kenjiro Nakayama c48a08b7b9 docs: fix tiny errors in monitoring spark app 2017-08-06 14:22:56 +09:00
Alex Dadgar 84bebc1b62 changelog 2017-08-04 17:00:11 -07:00
Alex Dadgar fa73c2c361 Merge pull request #2972 from hashicorp/d-doc-fixes
Small improvements to docs
2017-08-04 16:59:47 -07:00
Alex Dadgar 4cb731f131 Merge pull request #2961 from hashicorp/b-deployment-ttl
Lost allocs replaced even if deployment failed
2017-08-04 16:58:18 -07:00
Alex Dadgar 9476d0b210 Small improvements to docs
This PR fixes an incorrect placement of the update stanza in the task
and also links from the env stanza into an example of using the template
block to generate dynamic environment variables.
2017-08-04 16:14:41 -07:00
Chelsea Holland Komlo 1b77f9a216 further refactoring 2017-08-04 22:50:41 +00:00
Michael Schurter ce8e7ec445 Merge pull request #2968 from hashicorp/d-task-ports
Document <task> network env vars
2017-08-04 13:42:29 -07:00
Chelsea Holland Komlo 424e475333 if no context is specified, set maximum index for available contexts 2017-08-04 20:16:49 +00:00
Michael Schurter cdbf729386 Document <task> network env vars
Looks like I accidently dropped them when combining env var listings in
PR #2709
2017-08-04 13:05:05 -07:00
Chelsea Holland Komlo 0b38704392 fix up tests to intantiate assertion test helper
add http tests for remaining contexts
2017-08-04 19:48:20 +00:00
Michael Schurter 7d70a78e78 Merge pull request #2966 from sprutner/patch-3
Update revert.html.md.erb
2017-08-04 11:15:50 -07:00
Seth Rutner efee7fb635 Update revert.html.md.erb
wrong command
2017-08-04 11:06:04 -07:00
Rob Genova 7f87b0ea20 bind Nomad to all interfaces; enable Consul UI 2017-08-04 18:00:05 +00:00
Michael Schurter 5794e5ece7 Use int32 for atomic ops to avoid alignment issues
From https://golang.org/pkg/sync/atomic/#pkg-note-BUG :

On both ARM and x86-32, it is the caller's responsibility to arrange for
64-bit alignment of 64-bit words accessed atomically. The first word in
a global variable or in an allocated struct or slice can be relied upon
to be 64-bit aligned.
2017-08-04 10:14:16 -07:00
Chelsea Holland Komlo 1eff731d8b further refactoring 2017-08-04 15:19:35 +00:00
Chelsea Holland Komlo 111019642b resources are expected by state store to be plural 2017-08-04 15:07:34 +00:00
Chelsea Holland Komlo 927b6667c7 set response index and meta information
add tests for edge cases
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo b2b4c5d7af add documentation
extract magic number into variable
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo b6f459a7a9 refactor rpc endpoint and tests
add test for when no prefixes are matched

add test for no context at HTTP api
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 7b7a80d6ce resources list endpoint accepts http POST and PUT
set the index for a resources response
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 312bb19e1c refactor and add error handling for invalid context type 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 98fe705dff adding allocations to resouces list endpoint
adding nodes to resources list endpoint
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 2759ffe2d2 refactor to remove duplication for types of resources 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo ef5a62aaa1 use upsert as a test helper 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 0026a308ec add truncation boolean to response 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 06f10d2e5f adds evaluations
makes context singular
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 92cc40f1de change resources endpoint from http get to post 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 64a83edd9f remove resourceliststub, no need for another layer of abstraction 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 5192dacf85 limit resources results to 20 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 197c411767 refactor test helper 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 377b059e5e remove unnecessary validations; these are tested elsewhere 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 36285a4b23 test resources endpoint will return matching prefixes 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo ecd0d85a4e adding test validation that received resources matches requested 2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo 4dd6b46198 Retrieve job information for resources endpoint
requires further refactoring and logic for more contexts
2017-08-04 14:34:25 +00:00
Kate Taggart 255aab7139 Merge pull request #2962 from jvoorhis/master
Spelling and grammar fixes for manual bootstrap guide.
2017-08-03 21:07:53 -07:00
Jeremy Voorhis 8e029eefde Spelling and grammar fixes for bootstrap guide. 2017-08-03 20:45:44 -07:00
Alex Dadgar 7b13c0d702 Lost allocs replaced even if deployment failed
This PR allows the scheduler to replace lost allocations even if the job
has a failed or paused deployment. The prior behavior was confusing to
users.

Fixes https://github.com/hashicorp/nomad/issues/2958
2017-08-03 17:42:14 -07:00
Michael Schurter 4d76061854 Merge pull request #2816 from capone212/fix-pending-state
#2563 fixed pending state for allocations with terminal status
2017-08-03 17:32:07 -07:00
Michael Schurter c76b3b54b9 Merge branch 'master' into fix-pending-state 2017-08-03 17:27:03 -07:00
Alex Dadgar 2284e59b57 Fix double close and cleanup code 2017-08-03 13:40:34 -07:00
Alex Dadgar 146f3f5cb2 Don't restore parameterized periodic jobs 2017-08-03 12:37:58 -07:00
Michael Schurter e42f71f787 Revert "Rename GNUMakefile to Makefile"
This reverts commit 9f2ea92877ed655063a5ecf6bb22b7703bc2cea2.
2017-08-03 09:23:53 -07:00
Alex Dadgar 21155d0a4e Rename 2017-08-02 13:33:46 -07:00
Alex Dadgar 8e9d39ee1f Persistent server config 2017-08-02 13:30:42 -07:00