Commit graph

9666 commits

Author SHA1 Message Date
Charlie Voiselle 26acd7f025 Fixed test and moved constants into standalone func
In #3520, work was done to true up the defaults for Nomad resource
stanzas with the documentation.  This fixes the tests that I
accidentally broke in the process.  Some questions were raised about
using dynamic elements as part of expects, which is why I opted to
copy the MinResources pattern.   During this refactor I also noticed
that structs.go had a similar issue and an inconsistent minium for CPU.
2017-11-13 12:05:30 -05:00
Preetha Appan 926c9ed997 Make device mounting unit test verify configuration via docker inspect 2017-11-13 09:56:54 -06:00
Preetha Appan dc2d5fb5a4 Unit test (linux only) that tests mounting a device in the docker driver 2017-11-13 09:56:54 -06:00
Preetha Appan 4834710e45 Add default value for cgroup permissions for device if not set 2017-11-13 09:56:54 -06:00
Preetha Appan 9cdee6991c Remove unnecessary check since validate method already checks this 2017-11-13 09:56:54 -06:00
Preetha Appan 110c1fd4f0 Add support for passing device into docker driver 2017-11-13 09:56:54 -06:00
Alex Dadgar 82a891c0e6
Merge pull request #3531 from hashicorp/vault-nomad-docs-update
Updated Troubleshooting section of Vault Integration docs
2017-11-11 14:23:21 -08:00
Laura Uva bf23e75ca1 Updated Troubleshooting section of Vault Integration docs to mention the policy requirements for certain version combinations of Vault and Nomad, due to changes in Vault default policy and Nomad's vendored Vault lease renewal API. 2017-11-10 16:36:43 -08:00
Michael Lange 41b9aae4b7
Merge pull request #3530 from hashicorp/b-allow-cross-origin-connections-in-ui
Allow cross origin connections in ui
2017-11-10 14:33:16 -08:00
Michael Lange eb42e6d219 generated UI routes 2017-11-10 13:29:17 -08:00
Michael Lange 157abf2c76 Remove the connect-src self restriction for the UI 2017-11-10 13:28:11 -08:00
Michael Lange 1845fa4711 Make make dev-ui work as expected 2017-11-10 13:27:48 -08:00
Alex Dadgar 8f6f9e9e49 Clean vendored packages
This PR removes unused packages from the vendor folder.
2017-11-10 13:00:32 -08:00
Alex Dadgar c44f94fbd0
Merge pull request #3529 from hashicorp/b-env-ct
Handle multiple environment templates
2017-11-10 12:56:02 -08:00
Alex Dadgar 8324ef3bc4 format 2017-11-10 12:47:59 -08:00
Alex Dadgar ea57850b6d changelog 2017-11-10 12:44:36 -08:00
Alex Dadgar b68f18bcc5
Merge pull request #3520 from hashicorp/b-memory-default-incorrect
`memory` default is 10, not 300
2017-11-10 12:43:37 -08:00
Alex Dadgar d1358ec1b6 alway load all templates 2017-11-10 12:35:51 -08:00
Alex Dadgar 491fce5dcb changelog 2017-11-10 11:10:34 -08:00
Alex Dadgar a3ea0c17a0 Handle multiple environment templates
Fixes https://github.com/hashicorp/nomad/issues/3498
2017-11-10 11:08:19 -08:00
Charlie Voiselle 18750980ff Simplified based on review comments 2017-11-09 20:09:37 -05:00
Michael Lange 6c8d6b84f4
Merge pull request #3466 from hashicorp/f-ui-change-nodes-to-clients
Change nodes to clients in the ui
2017-11-09 10:12:38 -08:00
Charlie Voiselle c15e91951b Adopted pattern from LogConfig to handle panic when no resource stanza at all
In testing realized that Resources night not be present at all.  Testing this case caused panic. Added in a means to collect clean defaults in that case.
2017-11-09 10:57:57 -05:00
Charlie Voiselle eda45a0cee Canonicalize task and remove merge with MinResources
The current code would merge the job with the output of MinResources causing the nil to be replaced with MemoryMB=helper.IntToPtr(10).  When later `Canonicalize`d, the 10 would cause the default of 300 not to be applied. Running `Canonicalize` on the task itself guarantees that CPU, MemoryMB, and IOPS is set, so we can remove the Merge withMinResources.
2017-11-09 10:10:11 -05:00
Chelsea Komlo bb96d79cae
Merge pull request #3480 from loomnetwork/fix-jobs-tests
jobs tests were sending invalid jobs
2017-11-08 11:49:19 -05:00
Charlie Voiselle ff5d1a90a4 Rolled back documentation change in favor of correcting the default 2017-11-07 17:17:49 -05:00
Charlie Voiselle 2ac3ecc8d1
memory default is 10, not 300
Verified by creating sample job and removing memory from resources

```
Task "redis" is "running"
Task Resources
CPU        Memory          Disk     IOPS  Addresses
3/100 MHz  976 KiB/10 MiB  300 MiB  0     db: **.**.**.**:20824
```
2017-11-07 15:33:32 -05:00
Michael Schurter 8b260c44d7
Merge pull request #3515 from jrasell/patch-1
Update securing-nomad.html.md address flag example
2017-11-07 11:03:40 -08:00
James Rasell a678b8d7c4
Update securing-nomad.html.md address flag example
The `nomad node-status` command incorrectly used the `-addr` flag; whereas the correct flag key is `-address`.
2017-11-07 09:05:06 +00:00
Alex Dadgar aa8ff34914
Merge pull request #3505 from multani/fix-typos-guides
doc: fix some typos in the "Guides" documentation
2017-11-06 15:58:40 -08:00
Alex Dadgar 68985aaa7d changelog 2017-11-06 15:48:05 -08:00
Alex Dadgar 4284f4a6a8
Merge pull request #3504 from james-powis/fix_consul_address
[3503] adding consul-address flag to command.go
2017-11-06 15:46:01 -08:00
Michael Schurter 2ef8b15680 Add #3509 to changelog 2017-11-06 11:26:04 -08:00
Michael Schurter 6b44f40c92
Merge pull request #3509 from jrasell/gh_3508
Fix panic on every run of the keyring command.
2017-11-06 09:39:11 -08:00
James Rasell ac0912c25d
Fix panic on every run of the keyring command.
This change removes the flag token declaration within keyring.go
which caused a flag redefined panic on every command run as the
token flag is specified in the command meta.
2017-11-06 10:15:42 +00:00
Jonathan Ballet afe804a230 doc: fix some typos in the "Guides" documentation 2017-11-05 09:39:42 +01:00
James Powis 4bf9e6a3ab [3503] adding consul-address flag to command.go 2017-11-04 18:05:20 -06:00
Preetha Appan 1378ebee01 Update deployments API documentation to add clarifying sentence about rollbacks triggering only when job spec is different. 2017-11-04 09:28:27 -05:00
Alex Dadgar f6dd1d1fa9 changelog and website 2017-11-03 16:43:16 -07:00
Alex Dadgar b3edc12dd9
Merge pull request #3411 from cheeseprocedure/f-qemu-graceful-shutdown
Qemu driver: graceful shutdown feature
2017-11-03 16:41:34 -07:00
Alex Dadgar 5505922cf5 changelog 2017-11-03 16:33:23 -07:00
Michael Schurter 9ba92fd5d9
Merge pull request #3501 from hashicorp/b-build-log-fixes
Fix git commit build flag and remove unneeded log line
2017-11-03 16:11:26 -07:00
Michael Schurter 0cf93cbc14 Fix git commit build flag 2017-11-03 16:01:01 -07:00
Michael Schurter 690b8f4cfb Remove noisy log line
Didn't mean to commit this
2017-11-03 16:00:30 -07:00
Matt Mercer 11e2870875 Qemu driver: clean up logging; fail unsupported features on Windows 2017-11-03 15:40:20 -07:00
Preetha effe2a93ea
Update CHANGELOG.md 2017-11-03 17:34:09 -05:00
Preetha 0d0804d6ff
Merge pull request #3496 from hashicorp/b-auto-revert-stable
Makes auto reverts robust against infinite revert cycles
2017-11-03 17:28:28 -05:00
Preetha Appan 6468883cd1 Adds comment to handleRollbackValidity method and other small test readability fixes. 2017-11-03 17:05:15 -05:00
Alex Dadgar 6034916ad1 fix spelling mistake 2017-11-03 15:04:59 -07:00
Preetha Appan 7526853b4b Added more unit tests for testing rollback when job has identical spec to AllocHealth and DeploymentStatus endpoints. 2017-11-03 16:07:06 -05:00