Commit graph

621 commits

Author SHA1 Message Date
Alex Dadgar 021114f6ef changelog 2018-01-10 11:48:11 -08:00
Michael Schurter 9f179e9fab Fix HTTP code for permission denied errors
Fixes #3697

The existing code and test case only covered the leader behavior. When
querying against non-leaders the error has an "rpc error: " prefix.

To provide consistency in HTTP error response I also strip the "rpc
error: " prefix for 403 responses as they offer no beneficial additional
information (and in theory disclose a tiny bit of data to unauthorized
users, but it would be a pretty weird bit of data to use in a malicious
way).
2018-01-09 15:25:53 -08:00
Michael Schurter d316ac70af
Merge pull request #3715 from hashicorp/docs-3685-changelog
Add #3685 to changelog
2018-01-09 14:02:37 -08:00
Michael Schurter 189ce7f991
Merge pull request #3723 from hashicorp/b-3702-chown-dirs
chown dirs when migrating ephemeral_disk data
2018-01-09 09:27:26 -08:00
Michael Schurter ab56b07101
Merge pull request #3730 from hashicorp/cv-typo-privilege
Fix typo
2018-01-08 17:32:02 -08:00
Michael Schurter 2c79ffb213 chown dirs when migrating ephemeral_disk data
Fixes #3702

Added missing chown call and made it conditional on running as root and
not on Windows as we do with files.
2018-01-08 15:31:12 -08:00
Charlie Voiselle 1bb1ab5069 fix typo
Priviledge -> privilege
2018-01-08 15:56:07 -05:00
Michael Schurter 7a77fc69ce Include credentials in fetch requests
Fixes #3701

Relevant spec section:
https://fetch.spec.whatwg.org/#concept-request-credentials-mode
2018-01-08 12:18:03 -08:00
Alex Dadgar 6dda0ebaed gofmt 2018-01-04 14:45:15 -08:00
Alex Dadgar 58d1c52684 changelog 2018-01-04 14:27:19 -08:00
Michael Schurter 4055fdfdf9 Add #3685 to changelog 2018-01-04 11:02:03 -08:00
Preetha Appan 4101ab86e0
Linkify CHANGELOG in one missing place. 2018-01-03 16:39:12 -06:00
Preetha 1712b03705
Merge branch 'master' into 0.8 2018-01-03 16:06:38 -06:00
Preetha 727fcc6212
Update CHANGELOG.md 2018-01-03 11:53:21 -06:00
Preetha 6070da7c22
Update CHANGELOG.md
Mentions min CPU limit change in backward incompatibilities section.
2018-01-03 11:52:21 -06:00
Chelsea Holland Komlo a105bb52e3 update changelog 2017-12-20 19:04:07 -05:00
Chelsea Holland Komlo 940bc59790 Fixes #3679
code review fixups; add changelog
2017-12-20 17:58:07 -05:00
Alex Dadgar 1bd34d0df8 Release v0.7.1 2017-12-19 17:09:11 -08:00
Alex Dadgar dd680f61f7 changelog 2017-12-18 16:14:34 -08:00
Preetha Appan c815471e84
Initial run of make changelogfmt that linkifies all issues in CHANGELOG 2017-12-12 15:54:16 -06:00
Michael Schurter 2a3de8f889 Add #3551 to 0.7.1 changelog 2017-12-12 13:15:53 -08:00
Alex Dadgar e19d633f4d changelog 2017-12-11 14:00:20 -08:00
Michael Schurter b71edf846f Hash fields used in task service IDs
Fixes #3620

Previously we concatenated tags into task service IDs. This could break
deregistration of tag names that contained double //s like some Fabio
tags.

This change breaks service ID backward compatibility so on upgrade all
users services and checks will be removed and re-added with new IDs.

This change has the side effect of including all service fields in the
ID's hash, so we no longer have to track PortLabel and AddressMode
changes independently.
2017-12-08 12:03:43 -08:00
Michael Schurter e930057e4a Document service/check address_mode/port changes 2017-12-08 12:03:43 -08:00
Michael Schurter 1dd5b3822c
Merge pull request #3608 from hashicorp/b-3342-windows-log-leak
Fix bug in log framer only affecting Windows
2017-12-08 10:59:26 -08:00
Michael Lange b7048179dd Adds UI changes to the changelog 2017-12-07 15:44:12 -08:00
Chelsea Holland Komlo 61fa8ad4ba code review fixes 2017-12-07 13:46:25 -05:00
Chelsea Holland Komlo 3f231a0856 add test for kill signal in required signals
update changelog
2017-12-07 11:40:15 -05:00
Chelsea Holland Komlo 80de7d5ebd allow controlling the stop signal in exec/raw_exec 2017-12-06 11:28:45 -05:00
Chelsea Komlo 9ae849e09c
Merge pull request #3612 from hashicorp/docker-rkt-user
Set user for rkt tasks
2017-12-05 17:45:08 -05:00
Michael Schurter b66aa5b7f6
Merge pull request #3563 from hashicorp/b-snapshot-atomic
Atomic Snapshotting / Sticky Volume Migration
2017-12-05 09:16:33 -08:00
Michael Schurter 6ccc4219d3
Merge pull request #3615 from hashicorp/b-rkt-host-ports
rkt: Don't require port_map with host networking
2017-12-04 14:49:42 -08:00
Chelsea Holland Komlo 7c74968452 add ability to specify user for rkt 2017-12-04 14:21:48 -05:00
Alex Dadgar cff9fe2938 changelog 2017-12-04 10:43:27 -08:00
Alex Dadgar ab67a98c13 Emit hostname as a label 2017-12-04 10:42:31 -08:00
Michael Schurter 2bf1d6d85e rkt: Don't require port_map with host networking
Also don't try to return a DriverNetwork with host networking. None will
ever exist as that's the point of host networking: rkt won't create a
network namespace.
2017-12-01 17:23:25 -08:00
Michael Schurter 288e94302e Add changelog entry for #3608 2017-12-01 15:59:42 -08:00
Michael Schurter 0b12984552 Add atomic migrations to changelog and docs 2017-11-29 17:27:13 -08:00
Chelsea Holland Komlo 2e159fe01e add changelog 2017-11-29 15:27:50 -05:00
Preetha 0c1449a305
Update CHANGELOG.md 2017-11-20 14:08:40 -06:00
Preetha c02b740182
Update CHANGELOG.md 2017-11-17 15:31:25 -06:00
Preetha 55483bb546
Update CHANGELOG.md 2017-11-17 15:10:01 -06:00
Preetha 1d321f3556
Update CHANGELOG.md 2017-11-17 14:35:54 -06:00
Alex Dadgar 32140001e3 changelog 2017-11-17 12:10:15 -08:00
Alex Dadgar 205d42dc9a changelog 2017-11-17 10:35:12 -08:00
Michael Schurter 3ceec0caab Remove rkt pods when exiting
Fixes #3561
2017-11-16 14:33:44 -08:00
Alex Dadgar 07963f0b6d
Merge pull request #3546 from hashicorp/f-heuristic
Better interface selection heuristic
2017-11-15 12:51:21 -08:00
Alex Dadgar a479ee6f0c changelog 2017-11-15 12:50:49 -08:00
Michael Schurter f86f0bd9ea Handle leader task being dead in RestoreState
Fixes the panic mentioned in
https://github.com/hashicorp/nomad/issues/3420#issuecomment-341666932

While a leader task dying serially stops all follower tasks, the
synchronizing of state is asynchrnous. Nomad can shutdown before all
follower tasks have updated their state to dead thus saving the state
necessary to hit this panic: *have a non-terminal alloc with a dead
leader.*

The actual fix is a simple nil check to not assume non-terminal allocs
leader's have a TaskRunner.
2017-11-15 10:36:13 -08:00
Preetha Appan 2cee27ea31 Update Changelog 2017-11-15 08:28:27 -06:00