Commit Graph

26831 Commits

Author SHA1 Message Date
Juanadelacuesta
e0d3be81da fix: declare license inputs as sensitive variables 2025-03-19 19:53:32 +01:00
Michael Smithhisler
d95a3766ae client: fix client blocking during garbage collection (#25123)
This change removes any blocking calls to destroyAllocRunner, which
caused nomad clients to block when running allocations in certain
scenarios. In addition, this change consolidates client GC by removing
the MakeRoomFor method, which is redundant to keepUsageBelowThreshold.

---------

Co-authored-by: Tim Gross <tgross@hashicorp.com>
2025-03-19 14:32:46 -04:00
Michael Smithhisler
4eb294e1ef client: skip shutdown delay when tasks already deregistered (#25157)
---------

Co-authored-by: Tim Gross <tgross@hashicorp.com>
2025-03-19 14:15:35 -04:00
Aimee Ukasick
dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00
Piotr Kazmierczak
e249a6197f docker: TestDockerDriver_OOMKilled should now run on cgroups v2 (#25443)
Docker driver's TestDockerDriver_OOMKilled should run on cgroups v2 now, since
we're running docker v27 client library and our runners run docker v26 that
contain containerd fix containerd/containerd#6323.
2025-03-19 16:53:37 +01:00
Phil Renaud
ce83993667 [ci/cd] Moves our default github action flows to use Node v20 (#25425)
* Moves our default github action flows to use Node v20

* noop to trigger ui-build pipeline
2025-03-19 11:38:20 -04:00
Phil Renaud
3370d9cb96 [ui] Custom watchQuery equivalent on the storage index (#25374)
* Custom watchQuery equivalent on the storage index

* Tests for live updates to the storage page

* Deconditionalizing the pagination on storage, and fixing a bug where I was looking at filtered but not paginated DHV

* Test for pagination with live-updates
2025-03-19 11:38:01 -04:00
Tim Gross
13b95b7685 CSI: prevent extraneous GC attempts for plugins (#25432)
We can't delete a CSI plugin when it has volumes in use. When periodic GC runs,
we send the RPC unconditionally and then let the state store return an error. We
accidentally fixed the excess logging this causes (#17025) in #20555, but we can
also check if the plugin is empty first before sending the RPC to save a
request and subsequent Raft write.

Fixes: https://github.com/hashicorp/nomad/issues/17025
Ref: https://github.com/hashicorp/nomad/pull/20555
2025-03-19 09:14:42 -04:00
Shantanu Gadgil
b641d25730 website: fix URL for periodic jobs (#25436) 2025-03-19 07:32:51 +00:00
Tim Gross
bf67f53ba2 docs: add note about Consul Enterprise role bindings and namespaces (#25426)
When configuring Consul to use Nomad workload identities, you create the Consul
auth method in the default namespace. If you're using Consul Enterprise
namespaces, there are two available approaches: one is to create the tokens in
the default namespace and give them policies that define cross-namespace access,
and the other is to use binding rules that map the login to a particular
namespace. The latter is what we show in our docs, but this was missing a note
that any roles (and their associated policies) targetted by `-bind-type role`
need to exist in the Consul namespace we're logging into.

Also, in Nomad CE, the `consul.namespace` flag is always treated as having been set to
`"default"`. That is, we ignore it and don't return an error even though it's a
Nomad ENT-only feature. Clarify this in the documentation for the field the same
way we've done for the `cluster` field.

Co-authored-by: Aimee Ukasick <aimee.ukasick@hashicorp.com>
2025-03-18 15:35:00 -04:00
James Rasell
61b2b9d3d0 agent: Improve retry joiner code with small refactor. (#25422)
The agent retry joiner implementation had different parameters
to control its execution for agents running in server and client
mode. The agent would set up individual joiners depending on the
agent mode, making the object parameter overhead unrequired.

This change removes the excess configuration options for the
joiner, reducing code complexity slighly and hopefully making
future modifications in this area easier to make.
2025-03-18 15:55:52 +00:00
Piotr Kazmierczak
94fbe30b47 build: smoke test on RHEL8 instead of RHEL7 (#25421) 2025-03-18 15:41:23 +01:00
dependabot[bot]
459f95ce3f chore(deps): bump github.com/docker/docker from 27.4.1+incompatible to 28.0.1+incompatible (#25405)
Co-authored-by: James Rasell <jrasell@hashicorp.com>
2025-03-18 08:32:37 +00:00
Michael Smithhisler
c66269f8d0 e2e: fixes node write policy for consul agents (#25418) 2025-03-17 15:18:30 -04:00
Phil Renaud
cb7bd0f4d5 Upgrade the ember-auto-import pin to fix the postcss->nanoid chain (#25303) 2025-03-17 12:55:12 -04:00
Juana De La Cuesta
b34085a861 Merge pull request #25385 from hashicorp/NET-11546-enos-drain
func: add workload to test vault workload identity
2025-03-17 16:43:43 +01:00
Juanadelacuesta
cd1640e59a style: linter fix 2025-03-17 16:19:29 +01:00
Juana De La Cuesta
9b9d16421e Merge branch 'main' into NET-11546-enos-drain 2025-03-17 16:14:18 +01:00
Juana De La Cuesta
b5afc171f6 Merge pull request #25394 from hashicorp/NET-11546-enos-drain-2
Add a step to drain a node as part of the upgrade process
2025-03-17 16:13:43 +01:00
Juana De La Cuesta
9d5359886e Update drain.sh 2025-03-17 14:37:23 +01:00
Juana De La Cuesta
9574a0d319 Update enos/modules/drain_nodes/scripts/drain.sh
Co-authored-by: Tim Gross <tgross@hashicorp.com>
2025-03-17 14:36:57 +01:00
Piotr Kazmierczak
16bbdd9833 drivers: adapt shared executor code to use opencontainers/runc 1.2 (#25138)
Co-authored-by: Michael Smithhisler <michael.smithhisler@hashicorp.com>
2025-03-17 14:32:16 +01:00
Juanadelacuesta
134441b4a7 func: add .gitignore entry to avoid commiting the rendered vault job spec 2025-03-17 14:29:35 +01:00
Juanadelacuesta
0239e0e915 fix: add missing command to enable drain eligibility 2025-03-17 13:56:28 +01:00
James Rasell
4eeedcff29 deps: dependabot consolidation 20250317 (#25407)
* chore(deps): bump google.golang.org/grpc from 1.69.4 to 1.71.0
* chore(deps): bump github.com/hashicorp/go-memdb from 1.3.4 to 1.3.5
* chore(deps): bump github.com/prometheus/common from 0.62.0 to 0.63.0
* chore(deps): bump github.com/hashicorp/go-kms-wrapping/wrappers/gcpckms/v2
2025-03-17 08:52:07 +00:00
saiakhileshgade
c40f609757 website: Fix typo with scheduling.mdx (#25400) 2025-03-17 08:08:36 +00:00
Paweł Bęza
00b15e6807 Fix wording about delta priority needed to trigger preemption (#25395) 2025-03-14 12:31:30 -05:00
Phil Renaud
c9e4351ee5 [ui] Icon migration from {{x-icon}} to Helios (#25353)
* First batch of x-icon to hds::icons

* Bunch more icons and a note for jobrow

* Fixes for tests that depended on specific action names

* Icon-bumped-down specified to solo-icons in table cells

* Class-basing the icon bump and deferring icon svg load in env

* Exec window sidebar icons were looking a little off
2025-03-14 13:22:18 -04:00
Juanadelacuesta
cfd4ee1756 fix: add missing variables for drain module 2025-03-14 17:57:26 +01:00
Juanadelacuesta
fba2efa728 func: add a step to drain a node as part of the upgrade process 2025-03-14 17:43:36 +01:00
Phil Renaud
88ff5a7cae [ui] Scope selection for Sentinel Policies (#25390)
* An option to select, and column etc. to view, sentinel policy scope

* Flake potential: Seed(1) had a couple jobs with the same ModifyIndex

* More de-flaking
2025-03-14 12:37:39 -04:00
Juanadelacuesta
4b0903789e func: add check script for vault workload 2025-03-14 17:03:35 +01:00
Juana De La Cuesta
e3f21166af Merge pull request #25393 from hashicorp/NET-12228-consul
Set the default policy to deny for consul ACLs on e2e cluster
2025-03-14 16:55:34 +01:00
Juanadelacuesta
3af2da7362 fix: add default policy to consul acl configurations for the e2e cluster 2025-03-14 16:46:03 +01:00
James Rasell
3e1f56c1c0 cli: Add volume type to delete error messages when API call fails. (#25392) 2025-03-14 14:59:41 +00:00
Phil Renaud
239ac3e4bd [ui] Case-insensitive jobs list filtering (#25378) 2025-03-13 16:39:19 -04:00
Tim Gross
433f8c9a8b dynamic host volumes: don't wait for fingerprint to reserve node (#25386)
If multiple dynamic host volumes are created in quick succession, it's possible
for the server to attempt placement on a host where another volume has been
placed but not yet fingerprinted as ready. Once a `VolumeCreate` RPC returns a
response, we've already invoked the plugin successfully and written to state, so
we're just waiting on the fingerprint for scheduling purposes. Change the
placement selection so that we skip a node if it has a volume, regardless of
whether that volume is ready yet.
2025-03-13 15:27:01 -04:00
Juanadelacuesta
4c1ba45d48 func: add workload to test vault workload identity 2025-03-13 17:55:59 +01:00
Tim Gross
8cf34bde62 upgrade testing: allow configurable artifactory repo (#25350)
Prerelease builds are in a different Artifactory repository than release
builds. Make this a variable option so we can test prerelease builds in the
nightly/weekly runs.
2025-03-13 10:32:02 -04:00
Juana De La Cuesta
ad7dc7a4eb Merge pull request #25348 from hashicorp/NET-11546-enos-linux
Add instructions to add new workloads to the tests.
2025-03-13 10:38:47 +01:00
dependabot[bot]
dab7e49a3f chore(deps): bump golang.org/x/net from 0.34.0 to 0.36.0 (#25377)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.34.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 10:06:54 +01:00
Daniel Bennett
3322254e5b cli: acl auth-method info: add client assertion (#25370)
and pkce
2025-03-12 12:38:03 -05:00
Daniel Bennett
6a06653032 auth: decrease size of oidc request cache (#25371)
if the auth-url api is getting DOS'd,
then we do not expect it to still function;
we only protect the rest of the system.

users will need to use a break-glass ACL
token if they need Nomad UI/API access
during such a denial of service.
2025-03-12 12:37:47 -05:00
Piotr Kazmierczak
5c2ae00170 docs: increasing the non-interactive desktop heap size (#25357) 2025-03-12 17:19:49 +01:00
Juanadelacuesta
ebeb3047c8 docs: add note about workloads life expectancy 2025-03-12 16:51:03 +01:00
Juana De La Cuesta
667e02730e Merge pull request #25358 from hashicorp/release/1.10.0-beta.1
Release/1.10.0 beta.1
2025-03-12 16:30:41 +01:00
Tim Gross
92013e274c docs: update 1.10-beta changelog with major features (#25367) 2025-03-12 10:58:46 -04:00
Habibi Mustafa
0b1a660b81 docs: fix missing api version on path (#25355) 2025-03-12 09:35:52 -05:00
Habibi Mustafa
715186f7c3 docs: fix missing api version on acl path (#25356)
* docs: fix missing api version on acl auth method path

* docs: fix missing api version on acl binding rules path

* docs: fix missing api version on acl policies path

* docs: fix missing api version on acl roles path

* docs: fix missing api version on acl tokens path
2025-03-12 09:28:21 -05:00
hc-github-team-nomad-core
18a8190a1f Prepare for next release 2025-03-12 10:37:52 +00:00