Commit graph

16432 commits

Author SHA1 Message Date
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
Preetha Appan 3367da4d1f
Start of docs for group level service and network stanza. 2019-09-08 22:39:30 -05:00
Michael Schurter ab10ffef76 docs: mention task field for checks
Tweak wording in changelog to match other entries.
2019-09-06 14:13:05 -07:00
Michael Schurter 37a1b8ed2c
Merge pull request #6287 from hashicorp/docs-connect-updates
docs: add more detail to connect stanzas
2019-09-06 13:52:17 -07:00
Mahmood Ali 6920b4389e vagrant: install chrome in dev only 2019-09-06 16:11:16 -04:00
Michael Schurter 6930bb8c43 docs: add more detail to connect stanzas 2019-09-06 13:09:02 -07:00
Tim Gross 3469c50275
e2e: tag instances with origin (#6293)
When multiple developers are working on e2e testing, it helps to be
able to identify which infrastructure belongs to which Nomad SHA and
which developer. This adds tags to the EC2 instances.
2019-09-06 15:49:18 -04:00
Mahmood Ali 4b8280e51d remove generated code 2019-09-06 19:24:15 +00:00
Mahmood Ali d30233b359
Release v0.10.0-beta1 2019-09-06 19:19:21 +00:00
Mahmood Ali 0412de0947 vagrant: Install dev tools in dev script only 2019-09-06 14:55:16 -04:00
Nomad Release bot dc7d728a82 Generate files for 0.10.0-beta1 release 2019-09-06 18:47:09 +00:00
Mahmood Ali a39f87bba8 vagrant: Export services without port mapping
By having an ip address by default, developers can access any service on
the Vagrant linux box without needing to setup port maps.
2019-09-06 14:27:26 -04:00
Preetha 50639cbd06
Merge pull request #6252 from hashicorp/f-e2e-script-checks
e2e: script check testing
2019-09-06 10:35:43 -05:00
Tim Gross 3fa4bca4a0
script checks: Update needs to update Alloc as well (#6291) 2019-09-06 11:18:00 -04:00
Tim Gross ede48ae19c script checks: use cat instead of ls for exit code agreement 2019-09-06 11:17:00 -04:00
Tim Gross c9c612cc70 e2e: script check testing 2019-09-06 10:18:55 -04:00
Mahmood Ali 29c8fe1ba1
fix typo
Co-Authored-By: Danielle <dani@hashicorp.com>
2019-09-06 10:05:02 -04:00
Mahmood Ali 01f42053e4 dev: avoid codecgen code in downstream projects
This is an attempt to ease dependency management for external driver
plugins, by avoiding requiring them to compile ugorji/go generated
files.  Plugin developers reported some pain with the brittleness of
ugorji/go dependency in particular, specially when using go mod, the
default go mod manager in golang 1.13.

Context
--------

Nomad uses msgpack to persist and serialize internal structs, using
ugorji/go library.  As an optimization, we use ugorji/go code generation
to speedup process and aovid the relection-based slow path.

We commit these generated files in repository when we cut and tag the
release to ease reproducability and debugging old releases.  Thus,
downstream projects that depend on release tag, indirectly depends on
ugorji/go generated code.

Sadly, the generated code is brittle and specific to the version of
ugorji/go being used.  When go mod picks another version of ugorji/go
then nomad (go mod by default uses release according to semver),
downstream projects face compilation errors.

Interestingly, downstream projects don't commonly serialize nomad
internal structs.  Drivers and device plugins use grpc instead of
msgpack for the most part.  In the few cases where they use msgpag (e.g.
decoding task config), they do without codegen path as they run on
driver specific structs not the nomad internal structs.  Also, the
ugorji/go serialization through reflection is generally backward
compatible (mod some ugorji/go regression bugs that get introduced every
now and then :( ).

Proposal
---------

The proposal here is to keep committing ugorji/go codec generated files
for releases but to use a go tag for them.

All nomad development through the makefile, including releasing, CI and
dev flow, has the tag enabled.

Downstream plugin projects, by default, will skip these files and life
proceed as normal for them.

The downside is that nomad developers who use generated code but avoid
using make must start passing additional go tag argument.  Though this
is not a blessed configuration.
2019-09-06 09:22:00 -04:00
Danielle c2b64483ce
Merge pull request #6288 from hashicorp/volume-acl-docs
docs: Add host volume acl docs
2019-09-06 15:04:07 +02:00
Danielle 25b7d58b37
Apply suggestions from code review
acl_docs: Stylistic improvements

Co-Authored-By: Tim Gross <tim@0x74696d.com>
2019-09-06 15:03:38 +02:00
Luiz Aoqui b4d8312a8d
Merge pull request #6289 from hashicorp/docs-fix-host-volume-path
Fix host volume path
2019-09-06 09:02:38 -04:00
Luiz Aoqui 17ba1e9e20 fix host volume path 2019-09-06 08:44:57 -04:00
Danielle Lancashire 4b6e03b8e9
docs: Add host volume acl docs 2019-09-06 14:02:19 +02:00
Michael Schurter b460271de5
Merge pull request #6286 from hashicorp/b-inplaceupdate-bugfix
Fix inplace updates bug with group level networks
2019-09-05 17:01:30 -07:00
Preetha Appan 9accf60805
update comment 2019-09-05 18:43:30 -05:00
Preetha Appan d21c708c4a
Fix inplace updates bug with group level networks
During inplace updates, we should be using network information
from the previous allocation being updated.
2019-09-05 18:37:24 -05:00
Jasmine Dahilig 3d9d4d0522
upgrade guide for 0.10.0 (#6266) 2019-09-05 13:27:37 -07:00
Buck Doyle aa40833194
Fix documentation typo (#6285) 2019-09-05 15:04:52 -05:00
Buck Doyle 4ca5662895
UI: Remove Connect proxy tag tests again (#6284)
This semi-reverts #6275, as the tests are intermittently
failing in CI.
2019-09-05 14:34:47 -05:00
Michael Schurter 2ce1b28b33
Merge pull request #6279 from hashicorp/f-connect-docs
Initial placeholder connect docs
2019-09-05 12:29:44 -07:00
Michael Schurter 31eb8375e5
Merge pull request #6282 from hashicorp/f-connect-dev-path
connect: check if consul is on PATH
2019-09-05 12:25:23 -07:00
Tim Gross 7551baae30
add CNI plugins to Vagrant install (#6280) 2019-09-05 15:10:15 -04:00
Buck Doyle dc43dbdad2
UI: Restore Connect proxy tag tests (#6275)
These are the tests skipped in #6271.
2019-09-05 14:09:32 -05:00
Michael Schurter 457684e34e connect: check if consul is on PATH
Only in -dev-connect mode for now since its valid to install Consul
after Nomad has started in production.
2019-09-05 12:05:42 -07:00
Jasmine Dahilig f152738545
Update CHANGELOG.md 2019-09-05 11:56:12 -07:00
Jasmine Dahilig a5b0fd3f45
update namespace envvar entry in changelog 2019-09-05 11:54:42 -07:00
Jasmine Dahilig 97fd81ef68 fix changelog message 2019-09-05 11:42:07 -07:00
Preetha Appan 1cb045100d
Add docs for new kind field 2019-09-05 13:31:05 -05:00
Jasmine Dahilig e1c73cdab5
add validation for job_gc_interval (#6277) 2019-09-05 11:20:46 -07:00
Tim Gross 6e987f8455 add CNI plugins to Vagrant install 2019-09-05 14:20:17 -04:00
Buck Doyle ee0e74186f
UI: Move kind property to task (#6271)
I put this property in the wrong place. 

I’ve found how to fix the mock API in the tests but
they’re failing to pass with headless Chrome only,
so they’re skipped for now.
2019-09-05 13:14:54 -05:00
Preetha Appan 6ed9e07941
Initial placeholder connect docs 2019-09-05 13:08:31 -05:00
Michael Schurter 45a5e15cb5
Merge pull request #6278 from hashicorp/docs-changelog-label
changelog: command/run -> cli prefix
2019-09-05 11:07:11 -07:00
Michael Schurter 77b036b6f9 changelog: command/run -> cli prefix 2019-09-05 11:04:41 -07:00
Mahmood Ali 1bef8e1202
update changelog for 0.10 (#6270)
update changelog for 0.10
2019-09-05 13:59:05 -04:00
Charlie Voiselle 967c80005d docs: Add Persistent Workload using Host Volumes guide (#6263)
* Added Persistent Workload guide using Host Volumes

* Update website/source/guides/stateful-workloads/stateful-workloads.html.md

Co-Authored-By: Danielle <dani@hashicorp.com>

* fix client config and job spec formatting

* fix typo in description

* fix navigation for both stateful workloads guides

* show output from nomad node status to verify host volumes

* Add value prop info; info about HA

From feedback, added more information about the value proposition for
host volumes (h/t @rkettelerij), and corrected an orphaned bit from
the original guide this one was created from.
2019-09-05 12:33:10 -04:00
Omar Khawaja 43363f9337
Consul connect guide update (#6268)
* formatting paragraphs

* remove reference to consul 1.6-beta and update nomad agent command

* remove tech preview status and update limitations

* remove beta tag in navigation

* add screenshot of count dashboard

* update example summary and remove redis references

* capitalize Consul

* minor corrections

* hcl formatting
* demo is on localhost not host ip
* clarify consul on PATH

* mention variable interpolation limitation
2019-09-05 12:29:47 -04:00
Buck Doyle 24b0be1625 Restore local headless testing
I’ve been unable to use ember test without --server for a
while. This brings in the fix from ember-cli/ember-cli#8774
2019-09-05 11:24:05 -05:00