Luiz Aoqui
8309505987
Merge branch 'release/1.6.2' into release/1.6.x
2023-09-13 15:46:10 -03:00
hc-github-team-nomad-core
42e005198b
Prepare for next release
2023-09-13 16:47:31 +00:00
hc-github-team-nomad-core
b97a8869c0
Generate files for 1.6.2 release
2023-09-13 16:47:25 +00:00
hc-github-team-nomad-core
2a60303952
backport of commit b9ec271463ab2104fadf7d6175fdded9475f3415 ( #18488 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-09-13 13:35:41 -03:00
hc-github-team-nomad-core
71b84cf1fb
backport of commit 391a6af97910c774ce1001f2cef4c83db2d0573a ( #18487 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-09-13 13:05:42 -03:00
Pavel Aminov
def93200b1
Adding node_pool to job key validation ( #18366 )
2023-09-13 12:04:47 -03:00
hc-github-team-nomad-core
9a188167cb
backport of commit 4b6cc14216adda35d38c8a2d7f050de9e05114e0 ( #18482 )
...
Co-authored-by: Joshua Timmons <joshua.timmons1@gmail.com>
2023-09-13 10:23:00 -04:00
hc-github-team-nomad-core
6ae643a3bf
backport of commit 12580c345a89312542c18878680dd581da3d44eb ( #18479 )
...
Co-authored-by: Shantanu Gadgil <shantanugadgil@users.noreply.github.com>
2023-09-13 10:16:07 -04:00
hc-github-team-nomad-core
171d14707b
backport of commit 46e72aa8d5fa11f3854724a5c1e8061d52b180de ( #18478 )
...
Co-authored-by: wrli20 <41421510+wrli20@users.noreply.github.com>
2023-09-13 14:02:00 +01:00
hc-github-team-nomad-core
ea59b59035
backport of commit 532911c3803b51ad093f682a5dc0ded13b636751 ( #18472 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-13 08:55:29 +01:00
hc-github-team-nomad-core
2ef7a280b0
backport of commit d923fc554d09ceb51b530467a354860b25114fd3 ( #18450 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-11 16:21:44 +01:00
hc-github-team-nomad-core
156db8d368
backport of commit 668dc5f7a767e85d62379e3e02405d2afa93f1db ( #18448 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-11 13:22:30 +01:00
hc-github-team-nomad-core
a7f85c804f
backport of commit 22cbb913db0fa1cbb4e24d197b067d64ea02739a ( #18437 )
...
Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
2023-09-08 17:10:25 -05:00
hc-github-team-nomad-core
552dad53f5
test: fix name of state service registration test file. ( #18406 ) ( #18422 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-07 11:00:13 +01:00
hc-github-team-nomad-core
460b2a3bae
backport of commit 4f3a2e1a7d7a88390dd53fcbf5d90646075853c5 ( #18418 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-07 09:43:09 +01:00
hc-github-team-nomad-core
286164288d
backport of commit b6f6541f5024fb847a230ecd612a15f4a4fc05a4 ( #18416 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-07 09:14:56 +01:00
hc-github-team-nomad-core
a9441eb589
backport of commit c28cd59655b88d64f841bed5da7996ae8d88772f ( #18411 )
...
Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
2023-09-06 11:32:42 -05:00
hc-github-team-nomad-core
71f8405b2d
backport of commit 30a9b6eda74e515135dbebb600b362da6d637cb1 ( #18256 )
...
Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>
2023-09-06 09:25:51 -04:00
hc-github-team-nomad-core
428711a903
backport of commit 82cbbacf69c05e465797a9ac99a46f1f76a28f66 ( #18403 )
...
Co-authored-by: Dao Thanh Tung <ttdao.2015@accountancy.smu.edu.sg>
2023-09-06 11:34:05 +01:00
hc-github-team-nomad-core
b67acf823b
backport of commit 652532b8caae1d7e1e63ceb0b8407b2b54cb4cff ( #18398 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-06 09:36:17 +01:00
hc-github-team-nomad-core
dec824e797
backport of commit a03aa0cebb9e2d74b91d94aebc903a9af946e8f7 ( #18391 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 13:54:31 +01:00
hc-github-team-nomad-core
502b8a5887
backport of commit 6ba600cbf1c8b7ad915c4c95995bda4b97b4d58b ( #18387 )
...
Co-authored-by: Dao Thanh Tung <ttdao.2015@accountancy.smu.edu.sg>
2023-09-05 10:37:47 +01:00
hc-github-team-nomad-core
1b2237d6a8
backport of commit 776a26bce7cf3a320fc7e7f4a6bf9da2b30f3da7 ( #18375 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-09-01 10:25:08 +01:00
hc-github-team-nomad-core
ef780825d4
backport of commit 05c332221471d39053eaecafe4832ddd6e1b3b89 ( #18365 )
...
Co-authored-by: Seth Hoenig <shoenig@duck.com>
2023-08-30 09:05:57 -05:00
hc-github-team-nomad-core
4b59840bb1
backport of commit d0a93f12d1ec1e2b276f9958898c9a6fe4f6b077 ( #18351 )
...
Co-authored-by: Matthew Salsamendi <matthewsalsamendi@gmail.com>
2023-08-28 19:44:39 -04:00
hc-github-team-nomad-core
b93dc92ec2
backport of commit f187afab9f06b7489f7103c3e3c8eed72f210621 ( #18350 )
...
Co-authored-by: Gerard Nguyen <nguyenvanthao1991@gmail.com>
2023-08-28 19:14:45 -04:00
hc-github-team-nomad-core
b0bece8a18
backport of commit da830b10463f1cc0a704ec4a4f66e35d4324d728 ( #18337 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-08-25 21:36:35 -04:00
hc-github-team-nomad-core
d8ff618c40
backport of commit f25480c9e929c27476c8930f05832e8b96167660 ( #18341 )
...
Co-authored-by: stswidwinski <stan.swidwinski@gmail.com>
2023-08-25 16:36:35 -07:00
James Rasell
3730b66d8c
test: use correct parallel test setup func ( #18326 ) ( #18330 )
2023-08-25 14:48:06 +01:00
hc-github-team-nomad-core
4ebd0d251f
backport of commit f7a336d2ba95a362504d6094e581b8aeedbd554e ( #18323 )
...
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2023-08-25 09:37:13 +01:00
hc-github-team-nomad-core
4e8088dfa8
backport of commit e69e3c66776519bc5f551e18ca41ec305dc9e704 ( #18310 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-08-23 16:01:29 -04:00
hc-github-team-nomad-core
e035c3d9c0
backport of commit 6c43080b55f5afa18d114a354c4aa808b010c161 ( #18304 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-08-23 11:50:29 -04:00
Iwan Aucamp
debb009cb8
docs: fix a sentence in vault-integration.mdx ( #18296 )
2023-08-23 11:44:15 +01:00
hc-github-team-nomad-core
e4c7388608
backport of commit 3e61b3a37df9ff0836b52ba5440106ad0f607dd7 ( #18294 )
...
Co-authored-by: Андрей Неустроев <99169437+aneustroev@users.noreply.github.com>
2023-08-22 16:01:24 -04:00
hc-github-team-nomad-core
3ec251d29c
backport of commit 7548eecbaae6824e1051cf511dd004f99a6a93c0 ( #18291 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-08-22 15:13:04 -04:00
hc-github-team-nomad-core
621bce1da2
backport of commit 14a38bee7bc4386e74157f6a99f3db7382d7e6a5 ( #18275 )
...
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2023-08-21 16:34:32 -04:00
hc-github-team-nomad-core
27a14e4da1
backport of commit 1e9ccc3ed89adcdfaf4282d432782c03e0e5c615 ( #18261 )
...
Co-authored-by: János Szathmáry <29057504+janory@users.noreply.github.com>
2023-08-18 17:44:54 -04:00
James Rasell
1397ec4ad6
nomad: remove custom max func and use Go 1.21.0 builtin ( #18237 ) ( #18251 )
2023-08-17 16:17:43 +01:00
Nando
66809615f4
volume-status : show namespace the volume belongs to ( #17911 )
...
* volume-status : show namespace the volume belongs to
Re-apply changes reverted by 950235df48869e0f3f1dc8950dc430394ababa85
2023-08-17 11:13:42 -04:00
hc-github-team-nomad-core
0fb0054e60
backport of commit 13b4d98bce058c59e054f5cce9ad4175bf3c5374 ( #18248 )
...
This pull request was automerged via backport-assistant
2023-08-17 09:47:02 -05:00
Luiz Aoqui
d910457159
csi: prevent panic on volume delete ( #18234 )
...
When a CSI volume is deleted while its plugin is not running, the
function `volAndPluginLookup` returns a `nil` plugin value resulting in a
panic in the request handler.
2023-08-17 10:09:45 -04:00
hc-github-team-nomad-core
3b6ff9b56d
backport of commit a8a1e5a1c5a098f0b27b121a237db261c4b2dc77 ( #18246 )
...
This pull request was automerged via backport-assistant
2023-08-17 09:04:46 -05:00
hc-github-team-nomad-core
5b4eea8b33
Backport of csi: prevent panic on volume delete into release/1.6.x ( #18243 )
...
This pull request was automerged via backport-assistant
2023-08-17 08:58:14 -05:00
hc-github-team-nomad-core
bd3f52d0e7
Backport of [ui] Preserve HCL2 on stop/start via the web UI into release/1.6.x ( #18241 )
...
This pull request was automerged via backport-assistant
2023-08-17 08:33:06 -05:00
hc-github-team-nomad-core
d5e3b7c262
backport of commit 6eec37f0717cf62b4fc36ec89e53a7f348f2bddc ( #18231 )
...
This pull request was automerged via backport-assistant
2023-08-16 17:13:01 -05:00
hc-github-team-nomad-core
50e0282aca
backport of commit 8a8c4cd45cb471e5a4ce1b301b55571a8594d994 ( #18227 )
...
This pull request was automerged via backport-assistant
2023-08-16 16:25:12 -05:00
hc-github-team-nomad-core
dafef5b777
Backport of docs: expand documentation on node pools into release/1.6.x ( #18222 )
...
This pull request was automerged via backport-assistant
2023-08-16 10:22:41 -05:00
Tim Gross
0a19fe3b60
fix multiple overflow errors in exponential backoff ( #18200 )
...
We use capped exponential backoff in several places in the code when handling
failures. The code we've copy-and-pasted all over has a check to see if the
backoff is greater than the limit, but this check happens after the bitshift and
we always increment the number of attempts. This causes an overflow with a
fairly small number of failures (ex. at one place I tested it occurs after only
24 iterations), resulting in a negative backoff which then never recovers. The
backoff becomes a tight loop consuming resources and/or DoS'ing a Nomad RPC
handler or an external API such as Vault. Note this doesn't occur in places
where we cap the number of iterations so the loop breaks (usually to return an
error), so long as the number of iterations is reasonable.
Introduce a helper with a check on the cap before the bitshift to avoid overflow in all
places this can occur.
Fixes : #18199
Co-authored-by: stswidwinski <stan.swidwinski@gmail.com>
2023-08-15 14:39:09 -04:00
Piotr Kazmierczak
04484a10a0
Merge pull request #18205 from hashicorp/manual-backport-of-d9341f066480cc924c8cf00f981e604e02c62140-to-1.6
...
admin: manual backport of #18184 to 1.6
2023-08-15 15:09:48 +02:00
Seth Hoenig
a45b689d8e
update go1.21 ( #18184 )
...
* build: update to go1.21
* go: eliminate helpers in favor of min/max
* build: run go mod tidy
* build: swap depguard for semgrep
* command: fixup broken tls error check on go1.21
2023-08-15 14:40:33 +02:00