Michael Schurter
0eb711925e
test: skip chown test if nonroot ( #14738 )
...
CI always runs this as root, so it worked there and always scared me
when I ran it locally.
2022-09-28 14:45:38 -07:00
Derek Strickland
58e76c64d5
Merge pull request #14664 from hashicorp/docs-multiregion-dispatch
...
multiregion: Added a section for multiregion parameterized job dispatch
2022-09-28 15:40:11 -04:00
Derek Strickland
3c63967107
link from dispatch command
2022-09-28 08:30:22 -04:00
Derek Strickland
2c1df34fee
Apply suggestions from code review
2022-09-28 08:18:56 -04:00
Derek Strickland
998f662ecd
Update website/content/docs/job-specification/multiregion.mdx
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com >
2022-09-28 07:20:11 -04:00
Derek Strickland
6ac87c396f
Update website/content/docs/job-specification/multiregion.mdx
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com >
2022-09-28 07:19:54 -04:00
Derek Strickland
f9f2ab8032
Merge pull request #14730 from hashicorp/remove-testing-changelog-entry
...
Remove changelog entry for test update PR
2022-09-27 18:26:02 -04:00
Derek Strickland
2a27ef312e
Remove changelog entry for test update PR
2022-09-27 18:17:49 -04:00
Derek Strickland
a5d6c31186
Merge pull request #14729 from hashicorp/remove-bug-fix-changelog-files
...
Fix and remove changelog files
2022-09-27 18:11:52 -04:00
Derek Strickland
78054dca5c
Merge pull request #14728 from hashicorp/post-1.4.0-rc.1-release
...
Post 1.4.0 rc.1 release
2022-09-27 17:52:47 -04:00
Derek Strickland
d2124d3671
Add enterprise tag
2022-09-27 17:50:25 -04:00
Derek Strickland
0403584648
Add enterprise tag
2022-09-27 17:49:27 -04:00
Derek Strickland
370cf21faa
Delete 14665.txt
2022-09-27 17:47:35 -04:00
Derek Strickland
fee69bda8e
Remove bug fix changelog files
2022-09-27 17:46:32 -04:00
hc-github-team-nomad-core
3508b97a3b
Prepare for next release
2022-09-27 17:33:32 -04:00
hc-github-team-nomad-core
129c3a0241
Generate files for 1.4.0-rc.1 release
2022-09-27 17:33:32 -04:00
Derek Strickland
5165b748e4
Apply changes from code review
2022-09-27 17:33:32 -04:00
Derek Strickland
7f5753e45d
Prepare release 1.4.0-rc.1
2022-09-27 17:33:32 -04:00
Phil Renaud
c735d2d33a
Visual diff tests: error states ( #14707 )
...
* 3 error states captured
* Assertion expecters
* Attempt to stabilize datacenters
2022-09-27 15:46:33 -04:00
Derek Strickland
a16732fb50
Merge pull request #14727 from hashicorp/changelog-14651-breaking-change
...
Fix changelog entry type
2022-09-27 15:03:02 -04:00
Derek Strickland
1157f40772
Fix changelog entry type
2022-09-27 14:33:39 -04:00
Michael Schurter
3bab1cdde2
test: fix flaky test ( #14713 )
...
Need to wait for Stop evals to be processed before you can expect
subsequent RPCs to see the alloc's DesiredStatus=stop.
2022-09-27 10:36:16 -07:00
Jim Razmus II
cc8e6246ab
jobspec: allow artifact headers in HCLv1 ( #14637 )
...
* jobspec: allow artifact headers in HCLv1
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com >
2022-09-27 12:18:49 -04:00
Seth Hoenig
1e5f6188fb
core: numeric operands comparisons in constraints ( #14722 )
...
* cleanup: fixup linter warnings in schedular/feasible.go
* core: numeric operands comparisons in constraints
This PR changes constraint comparisons to be numeric rather than
lexical if both operands are integers or floats.
Inspiration #4856
Closes #4729
Closes #14719
* fix: always parse as int64
2022-09-27 11:07:07 -05:00
Phil Renaud
cdc3eb9657
task logs page snapshot ( #14709 )
2022-09-27 10:25:04 -04:00
Phil Renaud
eece5bd631
Empty and filled task exec screenshots for test ( #14702 )
...
* Empty and filled task exec screenshots for test
* Attempting to stabilize datacenter prop on servers
2022-09-27 10:24:53 -04:00
Tim Gross
b4cd9af369
CSI: ensure initial unpublish state is checkpointed ( #14675 )
...
A test flake revealed a bug in the CSI unpublish workflow, where an unpublish
that comes from a client that's successfully done the node-unpublish step will
not have the claim checkpointed if the controller-unpublish step fails. This
will result in a delay in releasing the volume claim until the next GC.
This changeset also ensures we're using a new snapshot after each write to raft,
and fixes two timing issues in test where either the volume watcher can
unpublish before the unpublish RPC is sent or we don't wait long enough in
resource-restricted environements like GHA.
2022-09-27 08:43:45 -04:00
Michael Schurter
a6dc5ea585
docs: write a lot of words about heartbeats ( #14679 )
...
* docs: write a lot of words about heartbeats
Alternative to #14670
* Apply suggestions from code review
Co-authored-by: Tim Gross <tgross@hashicorp.com >
* use descriptive title for link
* rework example of high failover ttl
Co-authored-by: Tim Gross <tgross@hashicorp.com >
2022-09-26 14:43:34 -07:00
Seth Hoenig
32be86831f
e2e: convert chroot env unit tests into e2e tests ( #14710 )
...
This PR translates two of our most flakey unit tests into
e2e tests where they are fit much more naturally.
2022-09-26 15:40:29 -05:00
Michael Schurter
2e059c624f
fingerprint: add node attr for reserverable cores ( #14694 )
...
* fingerprint: add node attr for reserverable cores
Add an attribute for the number of reservable CPU cores as they may
differ from the existing `cpu.numcores` due to client configuration or
OS support.
Hopefully clarifies some confusion in #14676
* add changelog
* num_reservable_cores -> reservablecores
2022-09-26 13:03:03 -07:00
Luiz Aoqui
1b831f3da4
client: recover from getter panics ( #14696 )
...
The artifact getter uses the go-getter library to fetch files from
different sources. Any bug in this library that results in a panic can
cause the entire Nomad client to crash due to a single file download
attempt.
This change aims to guard against this types of crashes by recovering
from panics when the getter attempts to download an artifact. The
resulting panic is converted to an error that is stored as a task event
for operator visibility and the panic stack trace is logged to the
client's log.
2022-09-26 15:16:26 -04:00
Michael Schurter
d677b48625
fingerprint: lengthen Vault check after seen ( #14693 )
...
Extension of #14673
Once Vault is initially fingerprinted, extend the period since changes
should be infrequent and the fingerprint is relatively expensive since
it is contacting a central Vault server.
Also move the period timer reset *after* the fingerprint. This is
similar to #9435 where the idea is to ensure the retry period starts
*after* the operation is attempted. 15s will be the *minimum* time
between fingerprints now instead of the *maximum* time between
fingerprints.
In the case of Vault fingerprinting, the original behavior might cause
the following:
1. Timer is reset to 15s
2. Fingerprint takes 16s
3. Timer has already elapsed so we immediately Fingerprint again
Even if fingerprinting Vault only takes a few seconds, that may very
well be due to excessive load and backing off our fingerprints is
desirable. The new bevahior ensures we always wait at least 15s between
fingerprint attempts and should allow some natural jittering based on
server load and network latency.
2022-09-26 12:14:19 -07:00
Tim Gross
54572392b6
cli: fix doc strings for var get command ( #14697 )
2022-09-26 15:05:22 -04:00
Luiz Aoqui
fd7337c141
cli: set content length on operator api requests ( #14634 )
...
http.NewRequestWithContext will only set the right value for
Content-Length if the input is *bytes.Buffer, *bytes.Reader, or
*strings.Reader [0].
Since os.Stdin is an os.File, POST requests made with the `nomad
operator api` command would always have Content-Length set to -1, which
is interpreted as an unknown length by web servers.
[0]: https://pkg.go.dev/net/http#NewRequestWithContext
2022-09-26 14:21:40 -04:00
Karan Sharma
34e89210a7
docs: add new tools ( #14596 )
2022-09-26 11:42:06 -04:00
Tim Gross
e7e9713d2e
variables: document restrictions on path and size ( #14687 )
2022-09-26 11:40:53 -04:00
dependabot[bot]
a95496e2b3
build(deps): bump github.com/hashicorp/go-uuid from 1.0.2 to 1.0.3 ( #14688 )
...
Bumps [github.com/hashicorp/go-uuid](https://github.com/hashicorp/go-uuid ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/hashicorp/go-uuid/releases )
- [Commits](https://github.com/hashicorp/go-uuid/compare/v1.0.2...v1.0.3 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:55:40 -05:00
dependabot[bot]
2d894228b0
build(deps): bump github.com/docker/cli ( #14539 )
...
Bumps [github.com/docker/cli](https://github.com/docker/cli ) from 20.10.3-0.20220113150236-6e2838e18645+incompatible to 20.10.18+incompatible.
- [Release notes](https://github.com/docker/cli/releases )
- [Commits](https://github.com/docker/cli/commits/v20.10.18 )
---
updated-dependencies:
- dependency-name: github.com/docker/cli
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:54:25 -05:00
dependabot[bot]
532a609165
build(deps): bump github.com/brianvoe/gofakeit/v6 from 6.16.0 to 6.19.0 ( #14686 )
...
Bumps [github.com/brianvoe/gofakeit/v6](https://github.com/brianvoe/gofakeit ) from 6.16.0 to 6.19.0.
- [Release notes](https://github.com/brianvoe/gofakeit/releases )
- [Commits](https://github.com/brianvoe/gofakeit/compare/v6.16.0...v6.19.0 )
---
updated-dependencies:
- dependency-name: github.com/brianvoe/gofakeit/v6
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:50:56 -05:00
dependabot[bot]
1c3b2470e4
build(deps): bump github.com/hashicorp/raft-boltdb/v2 ( #14685 )
...
Bumps [github.com/hashicorp/raft-boltdb/v2](https://github.com/hashicorp/raft-boltdb ) from 2.2.0 to 2.2.2.
- [Release notes](https://github.com/hashicorp/raft-boltdb/releases )
- [Commits](https://github.com/hashicorp/raft-boltdb/compare/v2.2...v2.2.2 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/raft-boltdb/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:49:46 -05:00
dependabot[bot]
97e0b6fccb
build(deps): bump github.com/shirou/gopsutil/v3 from 3.22.7 to 3.22.8 ( #14683 )
...
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil ) from 3.22.7 to 3.22.8.
- [Release notes](https://github.com/shirou/gopsutil/releases )
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.7...v3.22.8 )
---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:33:37 -05:00
dependabot[bot]
87ee2cbc2e
build(deps): bump github.com/containerd/go-cni from 1.1.6 to 1.1.7 ( #14684 )
...
Bumps [github.com/containerd/go-cni](https://github.com/containerd/go-cni ) from 1.1.6 to 1.1.7.
- [Release notes](https://github.com/containerd/go-cni/releases )
- [Commits](https://github.com/containerd/go-cni/compare/v1.1.6...v1.1.7 )
---
updated-dependencies:
- dependency-name: github.com/containerd/go-cni
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:32:31 -05:00
dependabot[bot]
4967abeb09
build(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 in /api ( #14430 )
...
* build(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 in /api
Bumps [github.com/docker/go-units](https://github.com/docker/go-units ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/docker/go-units/releases )
- [Commits](https://github.com/docker/go-units/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: github.com/docker/go-units
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* deps: also update go-units in nomad
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seth Hoenig <shoenig@duck.com >
2022-09-26 09:30:17 -05:00
dependabot[bot]
586d9d0c10
build(deps): bump github.com/hashicorp/serf from 0.9.7 to 0.10.0 ( #14365 )
...
Bumps [github.com/hashicorp/serf](https://github.com/hashicorp/serf ) from 0.9.7 to 0.10.0.
- [Release notes](https://github.com/hashicorp/serf/releases )
- [Changelog](https://github.com/hashicorp/serf/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/serf/compare/v0.9.7...v0.10.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/serf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:11:56 -05:00
dependabot[bot]
ce4a52567b
build(deps): bump github.com/zclconf/go-cty from 1.8.0 to 1.11.0 ( #14363 )
...
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty ) from 1.8.0 to 1.11.0.
- [Release notes](https://github.com/zclconf/go-cty/releases )
- [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md )
- [Commits](https://github.com/zclconf/go-cty/compare/v1.8.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/zclconf/go-cty
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:06:39 -05:00
dependabot[bot]
cea88c3afe
build(deps): bump github.com/hashicorp/go-getter from 1.6.1 to 1.6.2 ( #14459 )
...
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter ) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/hashicorp/go-getter/releases )
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml )
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.6.1...v1.6.2 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 08:54:36 -05:00
dependabot[bot]
d6c4984f2c
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.1 to 4.4.2 ( #14406 )
...
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt ) from 4.4.1 to 4.4.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.4.1...v4.4.2 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 08:52:16 -05:00
dependabot[bot]
da196a8ae1
build(deps): bump github.com/shoenig/test from 0.3.1 to 0.4.0 in /api ( #14681 )
...
Bumps [github.com/shoenig/test](https://github.com/shoenig/test ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/shoenig/test/releases )
- [Commits](https://github.com/shoenig/test/compare/v0.3.1...v0.4.0 )
---
updated-dependencies:
- dependency-name: github.com/shoenig/test
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 08:48:37 -05:00
Seth Hoenig
211ac8ec23
deps: update set and test ( #14680 )
...
This PR updates go-set and shoenig/test, which introduced some breaking
API changes.
2022-09-26 08:28:03 -05:00
Phil Renaud
a34c241f62
[ui] Warn users when they leave an edited but unsaved variable page ( #14665 )
...
* Warning on attempt to leave
* Lintfix
* Only router.off once
* Dont warn on transition when only updating queryparams
* Remove double-push and queryparam-only issues, thanks @lgfa29
* Acceptance tests
* Changelog
2022-09-23 16:53:40 -04:00