Commit graph

16126 commits

Author SHA1 Message Date
Veraghin 169b170835
Update GNUmakefile
Cert auth generation echo fixed
2019-09-17 22:05:53 +01:00
Danielle Lancashire c50d7f2727
e2e: Add Host Volume Configuration 2019-09-17 20:06:50 +02:00
Danielle f8b64ee1ab
Merge pull request #6330 from hashicorp/f-host-vols-fail-startup
client: Fail startup if host volumes do not exist
2019-09-17 10:55:30 -07:00
Mahmood Ali 4b7dde5aff
Merge pull request #6338 from hashicorp/d-ui-readme-20190917
Tweaks for UI README
2019-09-17 12:28:25 -04:00
Mahmood Ali f82f45c026 add some ui development tips 2019-09-17 08:51:24 -04:00
Mahmood Ali e33437635d
Merge pull request #6327 from hashicorp/b-ui-alloc-no-services
ui: protect against no services
2019-09-17 06:33:52 -04:00
Michael Lange 96b91ff6ec
Merge pull request #6274 from hashicorp/f-ui/restore-headless-testing
UI: Restore local headless testing
2019-09-17 00:15:41 -07:00
Mahmood Ali 16f7a3f31b ui: protect against nil services
Protect against case where an alloc has no services and avoid
dereferencing null.

Here, we ensure that the model and test serializers mimic the API by
having nil TaskGroup.Services instead of an empty array.
2019-09-16 16:50:30 -04:00
Tim Gross e3e30c15a9
remove resolved TODO from UpdateTTL docstring (#6336) 2019-09-16 16:26:06 -04:00
Danielle ec3ecdecfc
Merge pull request #6321 from hashicorp/dani/remove-config
Hoist Volume.Config.Source into Volume.Source
2019-09-16 10:12:58 -07:00
Danielle acf6580bb4
docs: Mark volume source as required
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2019-09-16 10:05:50 -07:00
Charlie Voiselle 05f326cd57
Merge pull request #6234 from hashicorp/docs-template-split-cert-parts
Added vault PKI example with separate cert files
2019-09-16 10:19:19 -04:00
Mahmood Ali df8a168d06 cli: emit job version number proper
We must emit alloc job number rather than its the field address.
2019-09-13 19:04:32 -04:00
Danielle Lancashire e3796e9d60
client: Fail startup if host volumes do not exist
Some drivers will automatically create directories when trying to mount
a path into a container, but some will not.

To unify this behaviour, this commit requires that host volumes already exist,
and can be stat'd by the Nomad Agent during client startup.
2019-09-13 23:28:10 +02:00
Mahmood Ali ac329a5e07 retry transient docker errors within function 2019-09-13 15:25:31 -04:00
Mahmood Ali e8d73e3d72 docker: defensive against failed starts
This handles a bug where we may start a container successfully, yet we
fail due to retries and startContainer not being idempotent call.

Here, we ensure that when starting a container fails with 500 error,
the retry succeeds if container was started successfully.
2019-09-13 13:02:35 -04:00
Ruslan Usifov b3c72d1729 close file handle when FileRotator object will closed. Fixes https://github.com/hashicorp/nomad/issues/6309 (#6323) 2019-09-13 10:31:13 -04:00
Tim Gross a6ef8c5d42
client/networking: wrap error message from CNI plugin (#6316) 2019-09-13 08:20:05 -04:00
Danielle Lancashire e76e3ba3a0
docs: Remove config from volumes 2019-09-13 04:37:59 +02:00
Danielle Lancashire 78b61de45f
config: Hoist volume.config.source into volume
Currently, using a Volume in a job uses the following configuration:

```
volume "alias-name" {
  type = "volume-type"
  read_only = true

  config {
    source = "host_volume_name"
  }
}
```

This commit migrates to the following:

```
volume "alias-name" {
  type = "volume-type"
  source = "host_volume_name"
  read_only = true
}
```

The original design was based due to being uncertain about the future of storage
plugins, and to allow maxium flexibility.

However, this causes a few issues, namely:
- We frequently need to parse this configuration during submission,
scheduling, and mounting
- It complicates the configuration from and end users perspective
- It complicates the ability to do validation

As we understand the problem space of CSI a little more, it has become
clear that we won't need the `source` to be in config, as it will be
used in the majority of cases:

- Host Volumes: Always need a source
- Preallocated CSI Volumes: Always needs a source from a volume or claim name
- Dynamic Persistent CSI Volumes*: Always needs a source to attach the volumes
                                   to for managing upgrades and to avoid dangling.
- Dynamic Ephemeral CSI Volumes*: Less thought out, but `source` will probably point
                                  to the plugin name, and a `config` block will
                                  allow you to pass meta to the plugin. Or will
                                  point to a pre-configured ephemeral config.
*If implemented

The new design simplifies this by merging the source into the volume
stanza to solve the above issues with usability, performance, and error
handling.
2019-09-13 04:37:59 +02:00
Kris Hicks e4e50abb02
Merge pull request #6318 from hashicorp/hicks/fix-upstreams-link
Fix upstreams docs link
2019-09-12 15:36:52 -07:00
Kris Hicks a211da731d Fix upstreams docs link 2019-09-12 15:12:26 -07:00
Luiz Aoqui c1b04b91cb
Merge pull request #6317 from hashicorp/docs-fix-volume-docs
Fix `volume_mount` attribute in the docs and formatting
2019-09-12 16:53:30 -04:00
Luiz Aoqui 8dd39333c9 docs: fix formatting for volume and volume_mount doc pages 2019-09-12 16:13:04 -04:00
Luiz Aoqui 16d494344f docs: replace source with volume attribute in volume_mount docs 2019-09-12 16:08:18 -04:00
Tim Gross c6c294aa47
dev: expose Consul port 8500 in linux-ui Vagrantfile (#6292) 2019-09-11 14:53:30 -04:00
Tim Gross 971c287ed2
doc: ulimit recommendations for local development (#6311)
The default ulimit for open files on macOS is really small (256),
which leads to "too many open files" errors during plugin launches if
you're running unit tests in `drivers/docker`. Recommend setting
`ulimit -n 1024`.
2019-09-11 14:53:03 -04:00
Mahmood Ali 02445ad974
Merge pull request #6294 from hashicorp/c-vagrant-tweaks-20190906
manage dev deps in vagrant
2019-09-11 11:27:21 -07:00
Mahmood Ali 78f62d3670
Merge pull request #6080 from lchayoun/bug-6079
Allow dash in environment variable names
2019-09-11 11:17:24 -07:00
Mahmood Ali b6bf7f9a6c
Merge pull request #6260 from hashicorp/c-circleci-tweak-20190903
ci: ignore nested pkgs in GOTEST_PKGS_EXCLUDE
2019-09-11 11:17:10 -07:00
Charlie Voiselle 3e7df4c9f6
Typo fix 2019-09-11 09:13:28 -04:00
Tim Gross 55ee7a220b
e2e: fixes for race conditions in testing (#6300)
- In script checks, ensure we're running `Exec` against the new running
  allocation and not the earlier stopped one.
- In script checks, allow `Exec` calls to error due to lack of pty when
  we use the exec to kill the task.
- In `utils.go/RegisterAllocs`, force query for allocations to wait on
  wait index returned by registration call.
2019-09-10 13:45:16 -04:00
Tim Gross b05cd4c430
test: expand symlink for temp dir for macOS compatibility (#6303)
On macOS, `os.TempDir` returns a symlinked path under `/var` which is
outside of the directories shared into the VM used for Docker, and
that fails tests using Docker that need that mount. If we expand the
symlink to get the real path in `/private`, we're in the shared
folders and can safely mount them.
2019-09-10 12:20:09 -04:00
Preetha Appan 46ebe18824 Update version 2019-09-09 14:58:40 -07:00
Tim Gross 105c7cdee1 upgrade notes for 0.9.5 2019-09-09 14:58:25 -07:00
Mahmood Ali 2ca11b9121
Merge pull request #6304 from hashicorp/d-ns-quota-api
website: document Quota field in ns payloads
2019-09-09 16:54:04 -04:00
Mahmood Ali 934937f252 website: document Quota field in ns payloads 2019-09-09 13:48:58 -07:00
Mahmood Ali d3ffc1afa2 website: fix typo 2019-09-09 10:26:08 -07:00
Mahmood Ali 1ec78c6142
Merge pull request #6302 from hashicorp/b-fix-nomad-ns-help
fix 'nomad namespace apply' help message
2019-09-09 13:24:45 -04:00
Buck Doyle 29b5efd90c
Convert resources page to Markdown (#6301)
The auto-generation of TOC wasn’t working because the
“auto-linking header tags” described here doesn’t work
if the file isn’t Markdown:
https://github.com/hashicorp/middleman-hashicorp#auto-linking-header-tags
2019-09-09 12:05:16 -05:00
Mahmood Ali 877260afd8 fix 'nomad namespace apply' help
Named arguments need to preceed positional arguments.
2019-09-09 10:04:41 -07:00
Mahmood Ali 2905807b3a docs: mark consul connect integration as beta 2019-09-09 09:59:55 -07:00
Mahmood Ali 68941c5059
Merge pull request #6299 from hashicorp/d-0.10.0-beta1-link
website: Link to 0.10.0-beta1 release
2019-09-09 12:06:26 -04:00
Mahmood Ali 95ded0f5ae website: Link to 0.10.0-beta1 release 2019-09-09 09:05:06 -07:00
Mahmood Ali f94b35de8e
Merge pull request #6297 from hashicorp/f-group-services-docs
Start of docs for group level service and network stanza.
2019-09-09 12:03:16 -04:00
Mahmood Ali 09f0efca1e
Merge pull request #6295 from hashicorp/docs-service-tweaks
docs: mention task field for checks
2019-09-09 12:02:19 -04:00
Mahmood Ali 9e48d6e6c6
Merge pull request #6298 from hashicorp/docs-add-exec-caps
Docs: Added alloc_exec and alloc_node_exec capabilities
2019-09-09 12:01:37 -04:00
Buck Doyle e4e055b503
Remove website job for UI branches (#6273) 2019-09-09 10:57:07 -05:00
Charlie Voiselle 644f645721 Added alloc_exec and alloc_node_exec capabilities
These were added in 4f7bd68f5c
2019-09-09 11:11:56 -04:00
Preetha Appan cea4f9eb5a
Fix formatting 2019-09-08 22:57:55 -05:00