Commit Graph

10078 Commits

Author SHA1 Message Date
Alex Dadgar
f0929a8592 Merge pull request #3805 from kinvolk/indradhanush/remove-underscores-from-variable-names
rkt_test.go: Remove underscore from variable names
2018-01-29 09:46:12 -08:00
Indradhanush Gupta
686c5d48e6 rkt_test.go: Remove underscore from variable names 2018-01-29 11:39:50 +01:00
Preetha
71f89bb1bb Merge pull request #3795 from hashicorp/f-next-alloc
Track next allocation
2018-01-24 18:12:21 -06:00
Preetha Appan
94981243d8 Add test case to verify setting next alloc id correctly 2018-01-24 17:55:29 -06:00
Preetha Appan
64e9cf9733 Add a field to track the next allocation during a replacement 2018-01-24 17:55:05 -06:00
Alex Dadgar
76d78d768f Link sentinel docs 2018-01-24 14:17:57 -08:00
Kyle Havlovitz
bc5d5edc38 Merge pull request #3787 from hashicorp/server-health-loop
Move server health loop into autopilot leader actions
2018-01-23 15:22:25 -08:00
Alex Dadgar
c620f17d7d changelog 2018-01-23 14:39:19 -08:00
Alex Dadgar
84ea89e1b9 Merge pull request #3788 from hashicorp/f-entrypoint
Allow overriding an image's entrypoint in Docker
2018-01-23 14:38:19 -08:00
Alex Dadgar
0cf5c76326 Allow overriding an image's entrypoint in Docker
Fixes https://github.com/hashicorp/nomad/issues/2219
2018-01-23 14:05:00 -08:00
Kyle Havlovitz
10bc0d7f57 Move server health loop into autopilot leader actions 2018-01-23 12:57:02 -08:00
Alex Dadgar
acd70e5005 changelog 2018-01-23 12:04:53 -08:00
Alex Dadgar
ec764f7654 Merge pull request #3754 from filipochnik/docker-caps
Add an option to add and drop capabilities in the Docker driver
2018-01-23 12:02:50 -08:00
Chelsea Komlo
9d006ecd0d Merge pull request #3492 from hashicorp/f-client-tls-reload
Client/Server TLS dynamic reload
2018-01-23 05:51:32 -05:00
Filip Ochnik
35d9331b50 Document the ALL value for docker.caps.whitelist 2018-01-23 11:30:44 +01:00
Chelsea Holland Komlo
c6eee0128a add changelog 2018-01-23 05:00:26 -05:00
Michael Schurter
6e96c81028 Merge pull request #3682 from hashicorp/b-3681-always-set-driver-ip
Always advertise driver IP when in driver mode
2018-01-22 16:41:34 -08:00
Michael Schurter
f13fffb125 Merge pull request #3760 from angrycub/f-allow-dot-envvar
Allow `.` in Environment Variable Names
2018-01-22 14:53:05 -08:00
Michael Schurter
1cec5f1505 Update changelog for dot env vars 2018-01-22 14:06:40 -08:00
Michael Schurter
8c908a8bb1 Update go-envparse to allow dots in env vars
Includes hashicorp/go-envparse#2
2018-01-22 14:02:39 -08:00
Charlie Voiselle
aacefafe53 Allow . in Environment Variable Names
From [https://github.com/appc/spec/blob/master/spec/aci.md](https://github.com/appc/spec/blob/master/spec/aci.md):

>environment (list of objects, optional) represents the app's environment variables (ACE can append). The listed objects must have two key-value pairs: name and value. The name must consist solely of letters, digits, and underscores '_' as outlined in IEEE Std 1003.1-2008, 2016 Edition, with practical considerations dictating that the name may also include periods '.' and hyphens '-'. The value is an arbitrary string. These values are not evaluated in any way, and no substitutions are made.

Dotted environment variables are frequently used as a part of the Spring Boot pattern. (re: ZD-6116)

This PR specifically doesn't address the conversion of hyphens (`-`) due to an issue with rkt [[Nomad GH # 2358]](https://github.com/hashicorp/nomad/issues/2358).
2018-01-22 13:59:37 -08:00
Alex Dadgar
a2eecfddbb Merge pull request #3765 from kinvolk/indradhanush/developing-docs
Docs: Add command consul agent & fix nomad command
2018-01-22 10:41:56 -08:00
Chelsea Holland Komlo
cab0830eea specified version of raft should be master 2018-01-22 09:02:26 -05:00
Indradhanush Gupta
e18f03e401 Docs: Add command consul agent & fix nomad command
`sudo` is required to enable other drivers like rkt and java while the
`-dev` flag enables the agent to run in a standalone mode.
2018-01-22 13:23:42 +01:00
Filip Ochnik
0ec61a8004 Fix moby package location 2018-01-21 12:35:41 +01:00
Filip Ochnik
45d53cae90 Merge branch 'master' into docker-caps 2018-01-21 12:24:37 +01:00
Filip Ochnik
b509b0a680 Merge branch 'master' into docker-caps 2018-01-21 12:18:22 +01:00
Filip Ochnik
4080aac002 Finish implementation of the capabilities whitelist 2018-01-21 12:14:24 +01:00
Chelsea Holland Komlo
517030157e swap raft layer tls wrapper 2018-01-19 17:00:15 -05:00
Chelsea Holland Komlo
d443098f0c vendor raft to master branch 2018-01-19 17:00:15 -05:00
Kyle Havlovitz
f5d0b87098 Update CHANGELOG.md 2018-01-19 12:59:25 -08:00
Kyle Havlovitz
0dab89f9ac Merge pull request #3670 from hashicorp/autopilot
Add Autopilot feature from Consul
2018-01-19 12:52:56 -08:00
Michael Lange
31a02f780d Merge pull request #3769 from johncowen/f-componentize-placement-failures
Component-ize UI for placement failures
2018-01-19 12:40:29 -08:00
John Cowen
74b14d0856 Address PR feedback
1. Extra whitespace
2. Remove redundant code
3. Remove redundant markup from test
4. placement-failure should be used as an inline component
5. Prefer `assign` polyfill
6. Use new `@ember' org style imports
2018-01-19 13:59:19 +00:00
John Cowen
3ce79e9337 Add more assertions for basic message checking 2018-01-19 13:59:19 +00:00
John Cowen
0a9faaa805 Add in data-test attrs to hook into, decide on test case granularity 2018-01-19 13:59:19 +00:00
John Cowen
2d1fd1e02e Pluralize test name for consistency (for filtering), inc test 2018-01-19 13:59:19 +00:00
John Cowen
1307970412 Move cleanWhitespace to utils, readd data-test attribute for PF's
1. cleanWhitespace > /test/utils/clean-whitespace.js
2. Missd the data-test attribute for placement failures in previous
conflict
2018-01-19 13:59:19 +00:00
John Cowen
f0363675ef Move placement failures to a component, begin separate integration tests
1. Simple move of placement-failures template code to a component
2. Start adding integration tests - hit `inc` surprise
2018-01-19 13:59:19 +00:00
Michael Schurter
7fe2993421 Merge pull request #3766 from hashicorp/b-example-service-name
Make example service name make sense
2018-01-18 16:06:50 -08:00
Michael Schurter
c624e5b06b Add changelog entry for #3682 2018-01-18 15:35:24 -08:00
Michael Schurter
7dd5dbdd56 Drop log level to TRACE
For people not using driver networks these log lines would just be
confusing.
2018-01-18 15:35:24 -08:00
Michael Schurter
7ae2291572 Improve invalid port error message for services
Related to #3681

If a user specifies an invalid port *label* when using
address_mode=driver they'll get an error message about the label being
an invalid number which is very confusing.

I also added a bunch of testing around Service.AddressMode validation
since I was concerned by the linked issue that there were cases I was
missing. Unfortunately when address_mode=driver is used there's only so
much validation that can be done as structs/structs.go validation never
peeks into the driver config which would be needed to verify the port
labels/map.
2018-01-18 15:35:24 -08:00
Michael Schurter
6d77215f37 Improve driver network logging 2018-01-18 15:35:24 -08:00
Michael Schurter
e0a3687faa Fix test 2018-01-18 15:35:24 -08:00
Michael Schurter
cde796162c Always advertise driver IP when in driver mode
Fixes #3681

When in drive address mode Nomad should always advertise the driver's IP
in Consul even when no network exists. This matches the 0.6 behavior.

When in host address mode Nomad advertises the alloc's network's IP if
one exists. Otherwise it lets Consul determine the IP.

I also added some much needed logging around Docker's network discovery.
2018-01-18 15:35:24 -08:00
Kyle Havlovitz
4962c8bd26 Formatting/test adjustments 2018-01-18 15:03:35 -08:00
Kyle Havlovitz
4e9735d69f Merge branch 'master' into autopilot 2018-01-18 13:29:25 -08:00
Alex Dadgar
3b95662cf2 changelog 2018-01-18 13:09:41 -08:00
Alex Dadgar
335fb4ec58 Merge pull request #3687 from mikemccracken/add-lxc-bindmounts
Add volumes config to LXC driver
2018-01-18 13:07:09 -08:00