Commit Graph

7748 Commits

Author SHA1 Message Date
Alex Dadgar abe8fbc8fe Merge pull request #2845 from hashicorp/f-version
Allow cli package to handle version.
2017-07-17 11:15:11 -07:00
Alex Dadgar df3d9229fe Allow cli package to handle version.
This PR removes our custom handling of the version flag and updates job
history to use a version flag instead of `-job-version`.
2017-07-17 11:04:07 -07:00
Michael Schurter 76e7424020 Merge pull request #2837 from hashicorp/b-2835-docker-panic
Fix nil panic in Docker error condition
2017-07-14 13:09:09 -07:00
Michael Schurter 0a6bf87365 Fix nil panic in Docker error condition
Fixes #2835

Yet another bug caused by overwriting container and then trying to
reference container.ID in the err handling block. Did a quick audit of
docker.go and it seems to be the last offender. See #2804 for previous
bug.
2017-07-14 10:48:19 -07:00
Alex Dadgar cae1457ef9 Merge pull request #2833 from hashicorp/f-log-rejection
Log reason a plan gets rejected per node.
2017-07-14 10:17:19 -07:00
Alex Dadgar f91312a49a Fix typo 2017-07-14 09:53:46 -07:00
Alex Dadgar 7a74080079 Log reason a plan gets rejected per node.
This PR adds a log explaining why a plan gets rejected. Should help
debugging.
2017-07-13 17:14:02 -07:00
Alex Dadgar e71e315950 Fix log line for gc'ing deployments 2017-07-13 15:07:25 -07:00
Rob Genova cbfaa47d34 Merge pull request #2831 from hashicorp/d-vault-integration-tokens
Update the `vault token-create` example on the Vault Integration page  to use `-orphan`
2017-07-13 13:16:49 -07:00
Alex Dadgar 2fff6d7b4a Merge pull request #2826 from abednarik/patch-1
Update README.md
2017-07-13 13:15:52 -07:00
Rob Genova df8549d40e Update the `vault token-create` example to use `-orphan` (to prevent revocation if the parent token expires); add note about Vault token hierarchies 2017-07-13 13:04:31 -07:00
Michael Schurter 0192fb7a4c Remove synced folder from demo vagrant
Demo vagrant isn't intended to be used from a cloned repo, so this was
syncing random host folders which is a bit sketchy.
2017-07-13 11:47:19 -07:00
Alejandro Bednarik ad68277223 Update README.md
Change Ubuntu version used in Vagrant for development purpose.
2017-07-12 15:09:54 -03:00
Michael Schurter 233142b291 Merge pull request #2822 from hashicorp/d-fix-demo-vagrant
Don't require cloned repo for demo vagrant
2017-07-11 13:19:40 -07:00
Michael Schurter caaf4adbf2 Don't require cloned repo for demo vagrant
Also update how Docker installed to match the latest upstream
instructions.
2017-07-11 08:00:46 -07:00
Rob Genova 02f3d363ee Merge pull request #2754 from hashicorp/d-spark-guide
Apache Spark Integration Guide
2017-07-10 22:11:06 -07:00
Rob Genova d307f592e3 Fix terraform links 2017-07-10 22:09:17 -07:00
Rob Genova 5968ec37ad Fix link to Terraform 2017-07-10 22:03:45 -07:00
Rob Genova 85afcc4354 Merge pull request #2815 from hashicorp/d-getting-started-terraform
Update Getting Started guide to reference example Terraform configuration
2017-07-10 15:59:07 -07:00
Rob Genova 5f55f5a5ab Merge pull request #2738 from hashicorp/f-terraform-config
Add Packer, Terraform configs to spin up an integrated Nomad, Consul, Vault cluster in AWS
2017-07-10 15:55:04 -07:00
Rob Genova 1fe574630d Move Terraform reference to Next Steps 2017-07-10 12:41:40 -07:00
Rob Genova 9b96a50497 update references to build tgz 2017-07-10 12:05:36 -07:00
Rob Genova a08778ab6e Add reference to example Terraform configuration; reframe getting started options as manual vs. automated 2017-07-08 10:16:13 -07:00
Rob Genova 28d9ea3e40 Fix formatting; remove reference to personal S3 bucket 2017-07-08 08:20:10 -07:00
Rob Genova 7bea8ab37f Remove references to personal S3 bucket 2017-07-08 08:09:10 -07:00
Rob Genova e92daeb943 update AMI 2017-07-07 22:31:22 -07:00
Rob Genova 9fd45265f2 Replace references to personal S3 bucket 2017-07-07 22:29:21 -07:00
Alex Dadgar f821802033
Release v0.6.0-rc1 2017-07-07 18:10:38 -07:00
Alex Dadgar 9e0f4459a6 bump version 2017-07-07 17:55:35 -07:00
Alex Dadgar 05894f4611 Small fixes 2017-07-07 17:34:50 -07:00
Alex Dadgar 79ce4bdfc6 Merge pull request #2807 from hashicorp/f-validate-ports
Prevent port conflicts
2017-07-07 16:59:18 -07:00
Alex Dadgar 3f1a0abe0f changelog 2017-07-07 16:59:07 -07:00
Alex Dadgar 6cde454509 Handle same task reserving ports twice 2017-07-07 16:58:20 -07:00
Alex Dadgar 16052866ae Merge pull request #2806 from hashicorp/d-update-stanza
Document new upgrade stanza
2017-07-07 16:52:50 -07:00
Alex Dadgar 4badcdd4ab changelog 2017-07-07 16:52:37 -07:00
Alex Dadgar 3ea8b02826 Merge pull request #2808 from hashicorp/b-restore-periodic
When restoring periodic jobs, take into consideration launch time zone
2017-07-07 16:51:23 -07:00
Alex Dadgar e9f5339f69 Merge pull request #2809 from hashicorp/f-scheduling-logs
Basic logs from reconciler
2017-07-07 16:49:58 -07:00
Alex Dadgar f86760db3c Basic logs 2017-07-07 16:49:08 -07:00
Michael Schurter fecb16cfb2 Merge pull request #2793 from hashicorp/b-2776-ct-vault-servername
Propagate vault.tls_server_name to consul-template
2017-07-07 16:44:19 -07:00
Michael Schurter e8a059345c Merge pull request #2794 from hashicorp/f-update-raft
Update raft to get hashicorp/raft#212 fix
2017-07-07 16:22:23 -07:00
Michael Schurter 95a9a5da71 Merge pull request #2787 from hashicorp/f-docker-test-mac
Test #2652 - Docker MAC Address option
2017-07-07 16:22:10 -07:00
Michael Schurter 4be4df21c9 Merge pull request #2797 from hashicorp/f-2785-docker-bridge-ip
Add driver.docker.bridge_ip node attribute
2017-07-07 16:20:20 -07:00
Michael Schurter 94389c3ecc Remove debug logging 2017-07-07 16:19:42 -07:00
Alex Dadgar d9b8fd126f When restoring periodic jobs, take into consideration launch time zone
Fixes https://github.com/hashicorp/nomad/issues/2721
2017-07-07 16:18:56 -07:00
Michael Schurter 773125e606 Merge pull request #2805 from hashicorp/b-2722-invalid-type
Validate job type
2017-07-07 16:18:37 -07:00
Michael Schurter e2a79d330c Prevent port conflicts
Validate that no two tasks in the same task group can reserve the same
static port.
2017-07-07 16:17:05 -07:00
Alex Dadgar 5086f1c868 Document new upgrade stanza
This PR adds documentation and examples for the new update stanza.
2017-07-07 16:04:35 -07:00
Michael Schurter 5e3e3818db Merge pull request #2804 from hashicorp/b-2802-docker-panic
Don't panic in container list/remove/inspect race
2017-07-07 15:35:51 -07:00
Michael Schurter 517c799439 Validate job type
Fixes #2722
2017-07-07 15:34:26 -07:00
Michael Schurter 67a7b0eac9 Don't panic in container list/remove/inspect race
Fixes #2802

While it's hard to reproduce the theoretical race is:

1. This goroutine calls ListContainers()
2. Another goroutine removes a container X
3. This goroutine attempts to InspectContainer(X)

However, this bug could be hit in the much simpler case of
InspectContainer() timing out.

In those cases an error is returned and the old code attempted to wrap
the error with the now-nil container.ID. Storing the container ID fixes
that panic.
2017-07-07 15:10:59 -07:00