Skip to content

Latest commit

 

History

History
955 lines (788 loc) · 102 KB

CHANGELOG.md

File metadata and controls

955 lines (788 loc) · 102 KB

1.5.12 (December 13, 2023)

BUG FIXES:

  • cli: Fix a bug in the var put command which prevented combining items as CLI arguments and other parameters as flags [GH-19423]
  • client: remove incomplete allocation entries from client state database during client restarts [GH-16638]
  • connect: Fixed a bug where deployments would not wait for Connect sidecar task health checks to pass [GH-19334]
  • consul: uses token namespace to fetch policies for verification [GH-18516]
  • csi: Added validation to csi_plugin blocks to prevent stage_publish_base_dir from being a subdirectory of mount_dir [GH-19441]
  • metrics: Revert upgrade of go-metrics to fix an issue where metrics from dependencies, such as raft, were no longer emitted [GH-19376]

1.5.11 (December 07, 2023)

BREAKING CHANGES:

  • core: Honor job's namespace when checking distinct_hosts feasibility [GH-19004]

SECURITY:

  • build: Update to go1.21.5 to resolve Windows path validation CVE in Go [GH-19320]

BUG FIXES:

  • agent: Correct websocket status code handling [GH-19172]
  • api: Fix panic in Allocation.Stub method when Job is unset [GH-19115]
  • cli: Fixed a panic when the nomad job restart command received an interrupt signal while waiting for an answer [GH-19154]
  • cli: Fixed the nomad job restart command to create replacements for batch and system jobs and to prevent sysbatch jobs from being rescheduled since they never create replacements [GH-19147]
  • client: Fixed a bug where client API calls would fail incorrectly with permission denied errors when using ACL tokens with dangling policies [GH-18972]
  • core: Fix incorrect submit time for stopped jobs [GH-18967]
  • ui: Fixed an issue where purging a job with a namespace did not process correctly [GH-19139]
  • variables: Fixed a bug where poststop tasks were not allowed access to Variables [GH-19270]
  • vault: Fixed a bug where poststop tasks would not get a Vault token [GH-19268]
  • vault: Fixed an issue that could cause Nomad to attempt to renew a Vault token that is already expired [GH-18985]

1.5.10 (October 30, 2023)

SECURITY:

BUG FIXES:

  • build: Add timetzdata Go build tag on Windows binaries to embed time zone data so periodic jobs are able to specify a time zone value on Windows environments [GH-18676]
  • cli: Fixed an unexpected behavior of the nomad acl token update command that could cause a management token to be downgraded to client on update [GH-18689]
  • client: ensure null dynamic node metadata values are removed from memory [GH-18664]
  • client: prevent tasks from starting without the prestart hooks running [GH-18662]
  • csi: check controller plugin health early during volume register/create [GH-18570]
  • metrics: Fixed a bug where CPU counters could report errors for negative values [GH-18835]
  • scaling: Unblock blocking queries to /v1/job/{job-id}/scale if the job goes away [GH-18637]
  • scheduler (Enterprise): auto-unblock evals with associated quotas when node resources are freed up [GH-18838]
  • scheduler: Ensure duplicate allocation IDs are tracked and fixed when performing job updates [GH-18873]
  • services: use interpolated address when performing nomad service health checks [GH-18584]

1.5.9 (September 13, 2023)

IMPROVEMENTS:

  • build: Update to Go 1.21.0 [GH-18184]
  • raft: remove use of deprecated Leader func [GH-18352]

BUG FIXES:

  • acl: Fixed a bug where ACL tokens linked to ACL roles containing duplicate policies would cause erronous permission denined responses [GH-18419]
  • cli: Add missing help message for the -consul-namespace flag in the nomad job run command [GH-18081]
  • cli: Fix panic in alloc logs command when receiving empty stdout or stderr log frames [GH-17815]
  • cli: Fixed a bug that prevented CSI volumes in namespaces other than default from being displayed in the nomad node status -verbose output [GH-17925]
  • cli: Snapshot name is required in volume snapshot create command [GH-17958]
  • client: Fixed a bug where the state of poststop tasks could be corrupted by client gc [GH-17971]
  • client: Ignore stale server updates to prevent GCing allocations that should be running [GH-18269]
  • client: return 404 instead of 500 when trying to access logs and files from allocations that have been garbage collected [GH-18232]
  • core: Fixed a bug where exponential backoff could result in excessive CPU usage [GH-18200]
  • csi: fixed a bug that could case a panic when deleting volumes [GH-18234]
  • fingerprint: fix 'default' alias not being added to interface specified by network_interface [GH-18096]
  • jobspec: Add diff for Task Group scaling block [GH-18332]
  • migration: Fixed a bug where previous alloc logs were destroyed when migrating ephemeral_disk on the same client [GH-18108]
  • scheduler: Fixed a bug where device IDs were not correctly filtered in constraints [GH-18141]
  • services: Add validation message when tls_skip_verify is set to true on a Nomad service [GH-18333]

1.5.8 (July 21, 2023)

IMPROVEMENTS:

  • cpustats: Use config "cpu_total_compute" (if set) for all CPU statistics [GH-17628]

BUG FIXES:

  • csi: Fixed a bug in sending concurrent requests to CSI controller plugins by serializing them per plugin [GH-17996]
  • csi: Fixed a bug where CSI controller requests could be sent to unhealthy plugins [GH-17996]
  • csi: Fixed a bug where CSI controller requests could not be sent to controllers on nodes ineligible for scheduling [GH-17996]
  • services: Fixed a bug that prevented passing query parameters in Nomad native service discovery HTTP health check paths [GH-17936]
  • ui: Fixed a bug that prevented nodes from being filtered by the "Ineligible" and "Draining" state filters [GH-17940]
  • ui: Fixed error handling for cross-region requests when the receiving region does not implement the endpoint being requested [GH-18020]

1.5.7 (July 18, 2023)

SECURITY:

  • acl: Fixed a bug where a namespace ACL policy without label was applied to an unexpected namespace. CVE-2023-3072 [GH-17908]
  • search: Fixed a bug where ACL did not filter plugin and variable names in search endpoint. CVE-2023-3300 [GH-17906]
  • sentinel (Enterprise): Fixed a bug where ACL tokens could be exfiltrated via Sentinel logs CVE-2023-3299 [GH-17907]

IMPROVEMENTS:

  • cli: Add -quiet flag to nomad var init command [GH-17526]
  • cli: Add check for missing host volume path in nomad config validate command [GH-17393]
  • client: check kernel module in /sys/module to help with WSL2 bridge networking [GH-17306]
  • cni: Ensure to setup CNI addresses in deterministic order [GH-17766]
  • deps: Updated Vault SDK to 0.9.0 [GH-17281]
  • deps: update docker to 23.0.3 [GH-16862]
  • docker: Add group_add configuration [GH-17313]
  • ui: adds keyboard nav for switching between regions by pressing "r 1", "r 2", etc. [GH-17169]

BUG FIXES:

  • api: Fixed a bug that caused a panic when calling the Jobs().Plan() function with a job missing an ID [GH-17689]
  • api: add missing constant for unknown allocation status [GH-17726]
  • api: add missing field NetworkStatus for Allocation [GH-17280]
  • cgroups: Fixed a bug removing all DevicesSets when alloc is created/removed [GH-17535]
  • cli: Fix a panic in the nomad job restart command when monitoring replacement allocations [GH-17346]
  • cli: Output error messages during deployment monitoring [GH-17348]
  • client: Fixed a bug where Nomad incorrectly wrote to memory swappiness cgroup on old kernels [GH-17625]
  • client: Fixed a bug where agent would panic during drain incurred by shutdown [GH-17450]
  • client: fixed a bug that prevented Nomad from fingerprinting Consul 1.13.8 correctly [GH-17349]
  • consul: Fixed a bug where Nomad would repeatedly try to revoke successfully revoked SI tokens [GH-17847]
  • core: Fix panic around client deregistration and pending heartbeats [GH-17316]
  • core: fixed a bug that caused job validation to fail when a task with kill_timeout was placed inside a group with update.progress_deadline set to 0 [GH-17342]
  • csi: Fixed a bug where CSI volumes would fail to restore during client restarts [GH-17840]
  • docker: Fixed a bug where network pause container would not be removed after node restart [GH-17455]
  • drivers/docker: Fixed a bug where long-running docker operations would incorrectly timeout [GH-17731]
  • identity: Fixed a bug where workload identities for periodic and dispatch jobs would not have access to their parent job's ACL policy [GH-17018]
  • replication: Fix a potential panic when a non-authoritative region is upgraded and a server with the new version becomes the leader. [GH-17476]
  • scheduler: Fixed a bug that could cause replacements for failed allocations to be placed in the wrong datacenter during a canary deployment [GH-17652]
  • scheduler: Fixed a panic when a node has only one configured dynamic port [GH-17619]
  • tls: Fixed a bug where the nomad tls cert command did not create certificates with the correct SANs for them to work with non default domain and region names. [GH-16959]
  • ui: dont show a service as healthy when its parent allocation stops running [GH-17465]
  • ui: fixed a handful of UX-related bugs during variable editing [GH-17319]

1.5.6 (May 19, 2023)

IMPROVEMENTS:

  • core: Prevent task.kill_timeout being greater than update.progress_deadline [GH-16761]

BUG FIXES:

  • bug: Corrected status description and modification time for canceled evaluations [GH-17071]
  • build: Linux packages now have vendor label and set the default label to HashiCorp. This fix is implemented for any future releases, but will not be updated for historical releases [GH-16071]
  • client: Fixed a bug where restarting a terminal allocation turns it into a zombie where allocation and task hooks will run unexpectedly [GH-17175]
  • client: clean up resources upon failure to restore task during client restart [GH-17104]
  • logs: Fixed a bug where disabling log collection would prevent Windows tasks from starting [GH-17199]
  • scale: Fixed a bug where evals could be created with the wrong type [GH-17092]
  • scheduler: Fixed a bug where implicit spread targets were treated as separate targets for scoring [GH-17195]
  • scheduler: Fixed a bug where scores for spread scheduling could be -Inf [GH-17198]
  • services: Fixed a bug preventing group service deregistrations after alloc restarts [GH-16905]

1.5.5 (May 05, 2023)

BUG FIXES:

  • logging: Fixed a bug where alloc logs would not be collected after an upgrade to 1.5.4 [GH-17087]

1.5.4 (May 02, 2023)

BREAKING CHANGES:

  • artifact: environment variables no longer inherited by default from Nomad client [GH-15514]

IMPROVEMENTS:

  • acl: New auth-method type: JWT [GH-15897]
  • build: Update from Go 1.20.3 to Go 1.20.4 [GH-17056]
  • cli: Added new nomad job restart command to restart all allocations for a job [GH-16278]
  • cli: stream both stdout and stderr logs by default when following an allocation [GH-16556]
  • client/fingerprint: detect fastest cpu core during cpu performance fallback [GH-16740]
  • client: Added drain_on_shutdown configuration [GH-16827]
  • connect: Added support for meta field on sidecar service block [GH-16705]
  • dependency: update runc to 1.1.5 [GH-16712]
  • driver/docker: Default devices.container_path to devices.host_path like Docker's CLI [GH-16811]
  • ephemeral disk: migrate=true now implies sticky=true [GH-16826]
  • fingerprint/cpu: correctly fingerprint P/E cores of Apple Silicon chips [GH-16672]
  • jobspec: Added option for disabling task log collection in the logs block [GH-16962]
  • license: show Terminated field in license get command [GH-16892]
  • ui: Added copy-to-clipboard buttons to server and client pages [GH-16548]
  • ui: added new keyboard commands for job start, stop, exec, and client metadata [GH-16378]

BUG FIXES:

  • api: Fixed filtering on maps with missing keys [GH-16991]
  • cli: Fix panic on job plan when -diff=false [GH-16944]
  • client: Fix CNI plugin version fingerprint when output includes protocol version [GH-16776]
  • client: Fix address for ports in IPv6 networks [GH-16723]
  • client: Fixed a bug where restarting proxy sidecar tasks failed [GH-16815]
  • client: Prevent a panic when an allocation has a legacy task-level bridge network and uses a driver that does not create a network namespace [GH-16921]
  • client: Remove setting attributes when spawning the getter child [GH-16791]
  • core: the deployment's list endpoint now supports look up by prefix using the wildcard for namespace [GH-16792]
  • csi: gracefully recover tasks that use csi node plugins [GH-16809]
  • docker: Fixed a bug where plugin config values were ignored [GH-16713]
  • drain: Fixed a bug where drains would complete based on the server status and not the client status of an allocation [GH-14348]
  • driver/exec: Fixed a bug where cap_drop and cap_add would not expand capabilities [GH-16643]
  • fix: Added "/usr/libexec" to the landlocked directories the getter has access to [GH-16900]
  • scale: Do not allow scale requests for jobs of type system [GH-16969]
  • scheduler: Fix reconciliation of reconnecting allocs when the replacement allocations are not running [GH-16609]
  • scheduler: honor false value for distinct_hosts constraint [GH-16907]
  • server: Added verification of cron jobs already running before forcing new evals right after leader change [GH-16583]
  • ui: Fix a visual bug where evaluation response wasn't scrollable in the Web UI. [GH-16960]

1.5.3 (April 04, 2023)

SECURITY:

  • acl: Fixed a bug where unauthenticated HTTP API requests through the client could bypass ACL policy checking CVE-2023-1782 [GH-16775] [GH-16775]
  • build: update to Go 1.20.3 to prevent denial of service attack via malicious HTTP headers CVE-2023-24534 [GH-16788]

1.5.2 (March 21, 2023)

BREAKING CHANGES:

  • cli: nomad login no longer requires -type flag, since auth method names are globally unique. [GH-16504]

IMPROVEMENTS:

  • agent: trim leading and trailing spaces when parsing X-Nomad-Token header [GH-16469]
  • build: Update to go1.20.2 [GH-16427]
  • cli: Added -json and -t flag to namespace status command [GH-16442]
  • cli: Added -json and -t flag to quota status command [GH-16485]
  • cli: Added -json and -t flag to server members command [GH-16444]
  • cli: Added -json flag to quota inspect command [GH-16478]
  • scheduler: remove most uses of reflection for task comparisons [GH-16421]

BUG FIXES:

  • artifact: Fixed a bug where artifact downloading failed when using git-ssh [GH-16495]
  • cli: nomad login no longer ignores default auth method if they are present. [GH-16504]
  • client: Fixed a bug where artifact downloading failed on hardened nodes [GH-16375]
  • client: Fixed a bug where clients using Consul discovery to join the cluster would get permission denied errors [GH-16490]
  • client: Fixed a bug where cpuset initialization fails after Client restart [GH-16467]
  • core: Fixed a bug where Dynamic Node Metadata requests could crash servers [GH-16549]
  • plugin: Add missing fields to TaskConfig so they can be accessed by external task drivers [GH-16434]
  • services: Fixed a bug where a service would be deregistered twice [GH-16289]

1.5.1 (March 10, 2023)

BREAKING CHANGES:

  • api: job register and register requests from API clients older than version 0.12.1 will not longer emit an evaluation [GH-16305]

SECURITY:

  • variables: Fixed a bug where a workload identity without any workload-associated policies was treated as a management token CVE-2023-1299 [GH-16419]
  • variables: Fixed a bug where a workload-associated policy with a deny capability was ignored for the workload's own variables CVE-2023-1296 [GH-16349]

IMPROVEMENTS:

  • cli: Add job prefix match to the nomad job dispatch, nomad job eval, nomad job scale, and nomad job scaling-events commands [GH-16306]
  • cli: Add support for the wildcard namespace * to the nomad job dispatch, nomad job eval, nomad job scale, and nomad job scaling-events commands [GH-16306]
  • cli: Added -json and -t flag to alloc checks command [GH-16405]
  • env/ec2: update cpu metadata [GH-16417]

DEPRECATIONS:

  • api: The Restart(), Stop(), and Signal() methods in the Allocations struct will have their signatures modified in Nomad 1.6.0 [GH-16319]
  • api: The RestartAllTasks() method in the Allocations struct will be removed in Nomad 1.6.0 [GH-16319]

BUG FIXES:

  • api: Fix Allocations().Stop() method to properly set the request LastIndex and RequestTime in the response [GH-16319]
  • cli: Fixed a bug where the -json and -t flags were not respected on the acl binding-rule info command [GH-16357]
  • client: Don't emit shutdown delay task event when the shutdown operation is configured to skip the delay [GH-16281]
  • client: Fixed a bug that prevented allocations with interpolated values in Consul services from being marked as healthy [GH-16402]
  • client: Fixed a bug where clients used the serf advertise address to connect to servers when using Consul auto-discovery [GH-16217]
  • docker: Fixed a bug where pause containers would be erroneously removed [GH-16352]
  • scheduler: Fixed a bug where allocs of system jobs with wildcard datacenters would be destructively updated [GH-16362]
  • scheduler: Fixed a bug where collisions in dynamic port offerings would result in spurious plan-for-node-rejected errors [GH-16401]
  • server: Fixed a bug where deregistering a job that was already garbage collected would create a new evaluation [GH-16287]
  • server: Fixed a bug where node updates that produced errors from service discovery or CSI plugin updates were not logged [GH-16287]
  • server: Fixed a bug where the system reconcile summaries command and API would not return any scheduler-related errors [GH-16287]
  • service: Fixed a bug where attaching a policy to a job would prevent workload identities for the job from reading the service registration API [GH-16316]
  • ui: fixed an issue where system/sysbatch jobs with wildcard datacenters (like ["dc*"]) were not showing client status charts [GH-16274]
  • ui: fixed outbound link to outage recovery on error page [GH-16365]

1.5.0 (March 01, 2023)

FEATURES:

  • Dynamic Node Metadata: Allow users and tasks to update Node metadata via an API [GH-15844]
  • SSO via OIDC: Allow users to authenticate with Nomad via OIDC providers [GH-15816]

BREAKING CHANGES:

  • cli: The deprecated gossip keyring commands nomad operator keyring, nomad keyring, nomad operator keygen, and nomad keygen have been removed. Use the nomad operator gossip keyring commands to manage the gossip keyring [GH-16068]
  • config: the datacenter field for agent configuration no longer accepts the * character as part of the datacenter name [GH-11170]
  • core: Ensure no leakage of evaluations for batch jobs. Prior to this change allocations and evaluations for batch jobs were never garbage collected until the batch job was explicitly stopped. The new batch_eval_gc_threshold server configuration controls how often they are collected. The default threshold is 24h. [GH-15097]
  • metrics: The metric nomad.nomad.broker.total_blocked has been renamed to nomad.nomad.broker.total_pending to reduce confusion with the nomad.blocked_eval.total_blocked metric. [GH-15835]
  • artifact: Environment variables are no longer inherited by default from the Nomad client [GH-15514]
  • artifact: File size and count limits are now applied by default to artifact downloads [GH-16151]

SECURITY:

IMPROVEMENTS:

  • acl: refactor ACL cache based on golang-lru/v2 [GH-16085]
  • agent: Allow configurable range of Job priorities [GH-16084]
  • api: improved error returned from AllocFS.Logs when response is not JSON [GH-15558]
  • artifact: Provide mitigations against unbounded artifact decompression [GH-16151]
  • build: Added hyper-v isolation mode for docker on Windows [GH-15819]
  • build: Update to go1.20 [GH-16029]
  • cli: Add -json and -t flag to nomad acl token create command [GH-16055]
  • cli: Added -wait flag to deployment status for use with -monitor mode [GH-15262]
  • cli: Added sprig function support for -t templates [GH-9053]
  • cli: Added tls command to enable creating Certificate Authority and Self signed TLS certificates. There are two sub commands tls ca and tls cert that are helpers when creating certificates. [GH-14296]
  • cli: Warn when variable key includes characters that require the use of the index function in templates [GH-15933]
  • cli: nomad job stop can be used to stop multiple jobs concurrently. [GH-12582]
  • cli: add a nomad operator client state command [GH-15469]
  • cli: multi-line nomad version output, add BuildDate [GH-16216]
  • cli: we now recommend .nomad.hcl extension for job files, so job init creates example.nomad.hcl [GH-15997]
  • client/fingerprint/storage: Added config options disk_total_mb and disk_free_mb to override detected disk space [GH-15852]
  • client: Add option to enable hairpinMode on Nomad bridge [GH-15961]
  • client: Added a TaskEvent when task shutdown is waiting on shutdown_delay [GH-14775]
  • client: Log task events at INFO log level [GH-15842]
  • client: added http api access for tasks via unix socket [GH-15864]
  • client: detect and cleanup leaked iptables rules [GH-15407]
  • client: execute artifact downloads in sandbox process [GH-15328]
  • consul/connect: Adds support for proxy upstream opaque config [GH-15761]
  • consul: add client configuration for grpc_ca_file [GH-15701]
  • core: Eliminate deprecated practice of seeding rand package [GH-16074]
  • core: Non-client nodes will now skip loading plugins [GH-16111]
  • csi: Added server configuration for csi_volume_claim_gc_interval [GH-16195]
  • deps: Update github.com/containerd/containerd from 1.6.6 to 1.6.12 [GH-15726]
  • deps: Update github.com/docker/docker from 20.10.21+incompatible to 20.10.23+incompatible [GH-15848]
  • deps: Update github.com/fsouza/go-dockerclient from 1.8.2 to 1.9.0 [GH-14898]
  • deps: Update google.golang.org/grpc from 1.48.0 to 1.50.1 [GH-14897]
  • deps: Update google.golang.org/grpc to v1.51.0 [GH-15402]
  • docs: link to an envoy troubleshooting doc when envoy bootstrap fails [GH-15908]
  • env/ec2: update cpu metadata [GH-15770]
  • fingerprint: Detect CNI plugins and set versions as node attributes [GH-15452]
  • identity: Add identity jobspec block for exposing workload identity to tasks [GH-15755]
  • identity: Allow workloads to use RPCs associated with HTTP API [GH-15870]
  • jobspec: the datacenters field now accepts wildcards [GH-11170]
  • metrics: Added metrics for rate of RPC requests [GH-15876]
  • scheduler: allow using device IDs in affinity and constraint [GH-15455]
  • server: Added raft snapshot arguments to server config [GH-15522]
  • server: Certain raft configuration elements can now be reloaded without restarting the server [GH-15522]
  • services: Set Nomad's User-Agent by default on HTTP checks in Nomad services [GH-16248]
  • ui, cli: Adds Job Templates to the "Run Job" Web UI and makes them accessible via new flags on nomad job init [GH-15746]
  • ui: Add a button for expanding the Task sidebar to full width [GH-15735]
  • ui: Added a Policy Editor interface for management tokens [GH-13976]
  • ui: Added a ui.label block to agent config, letting operators set a visual label and color for their Nomad instance [GH-16006]
  • ui: Made task rows in Allocation tables look more aligned with their parent [GH-15363]
  • ui: Show events alongside logs in the Task sidebar [GH-15733]
  • ui: The web UI now provides a Token Management interface for management users on policy pages [GH-15435]
  • ui: The web UI will now show canary_tags of services anyplace we would normally show tags. [GH-15458]
  • ui: Warn when variable key includes characters that require the use of the index function in templates [GH-15933]
  • ui: give users a notification if their token is going to expire within the next 10 minutes [GH-15091]
  • ui: redirect users to Sign In should their tokens ever come back expired or not-found [GH-15073]
  • users: Added a cache for OS user lookups [GH-16100]
  • variables: Increased maximum size to 64KiB [GH-15983]
  • vault: configure Nomad User-Agent on vault clients [GH-15745]
  • volumes: Allow per_alloc to be used with host_volumes [GH-15780]

DEPRECATIONS:

  • api: Deprecated ErrVariableNotFound in favor of ErrVariablePathNotFound to correctly represent an error type [GH-16237]
  • api: Deprecated Variables.GetItems in favor of Variables.GetVariableItems to avoid returning a pointer to a map [GH-16237]
  • api: The connect ConsulExposeConfig.Path field is deprecated in favor of ConsulExposeConfig.Paths [GH-15541]
  • api: The connect ConsulProxy.ExposeConfig field is deprecated in favor of ConsulProxy.Expose [GH-15541]

BUG FIXES:

  • acl: Fixed a bug in token creation which failed to parse expiration TTLs correctly [GH-15999]
  • acl: Fixed a bug where creating/updating a policy which was invalid would return a 404 status code, not a 400 [GH-16000]
  • agent: Make agent syslog log level follow log_level config [GH-15625]
  • api: Added missing node states to NodeStatus constants [GH-16166]
  • api: Fix stale querystring parameter value as boolean [GH-15605]
  • api: Fixed a bug where Variables.GetItems would panic if variable did not exist [GH-16237]
  • api: Fixed a bug where exposeConfig field was not provided correctly when getting the jobs via the API [GH-15541]
  • api: Fixed a nil pointer dereference when periodic jobs are missing their periodic spec [GH-13845]
  • cgutil: handle panic coming from runc helper method [GH-16180]
  • check: Add support for sending custom host header [GH-15337]
  • cli: Fix unbolded header Device Group Attributes [GH-16138]
  • cli: Fixed a bug where nomad fmt -check would overwrite the file being checked [GH-16174]
  • cli: Fixed a bug where plans for periodic jobs would return exit code 1 when the job was already register [GH-14492]
  • cli: Fixed a panic in deployment status when rollback deployments are slow to appear [GH-16011]
  • cli: var put: when second arg is an @-reference, check extension for format [GH-16181]
  • cli: corrected typos in ACL role create/delete CLI commands [GH-15382]
  • cli: fix nomad fmt -check flag not returning error code [GH-15797]
  • client: Fixed a bug where allocation cleanup hooks would not run [GH-15477]
  • connect: ingress http/2/grpc listeners may exclude hosts [GH-15749]
  • consul: Fixed a bug where acceptable service identity on Consul token was not accepted [GH-15928]
  • consul: Fixed a bug where consul token was not respected when reverting a job [GH-15996]
  • consul: Fixed a bug where services would continuously re-register when using ipv6 [GH-15411]
  • consul: correctly interpret missing consul checks as unhealthy [GH-15822]
  • core: enforce strict ordering that node status updates are recorded after allocation updates for reconnecting clients [GH-15808]
  • csi: Fixed a bug where a crashing plugin could panic the Nomad client [GH-15518]
  • csi: Fixed a bug where secrets that include '=' were incorrectly rejected [GH-15670]
  • csi: Fixed a bug where volumes in non-default namespaces could not be scheduled for system or sysbatch jobs [GH-15372]
  • csi: Fixed potential state store corruption when garbage collecting CSI volume claims or checking whether it's safe to force-deregister a volume [GH-16256]
  • docker: Fixed a bug where images referenced by multiple tags would not be GC'd [GH-15962]
  • docker: Fixed a bug where infra_image did not get alloc_id label [GH-15898]
  • docker: configure restart policy for bridge network pause container [GH-15732]
  • docker: disable driver when running as non-root on cgv2 hosts [GH-7794]
  • eval broker: Fixed a bug where the cancelable eval reaper used an incorrect lock when getting the set of cancelable evals from the broker [GH-16112]
  • event stream: Fixed a bug where undefined ACL policies on the request's ACL would result in incorrect authentication errors [GH-15495]
  • fix: Add the missing option propagation_mode for volume_mount [GH-15626]
  • parser: Fixed a panic in the job spec parser when a variable validation block was missing its condition [GH-16018]
  • scheduler (Enterprise): Fixed a bug that prevented new allocations from multiregion jobs to be placed in situations where other regions are not involved, such as node updates. [GH-15325]
  • server: Fixed a bug where rejoin_after_leave config was not being respected [GH-15552]
  • services: Fixed a bug where check_restart on nomad services on tasks failed with incorrect CheckIDs [GH-16240]
  • services: Fixed a bug where services would fail to register if task initially fails [GH-15862]
  • template: Fixed a bug that caused the chage script to fail to run [GH-15915]
  • template: Fixed a bug where the template runner's Nomad token would be erased by in-place updates to a task [GH-16266]
  • ui: Fix allocation memory chart to display the same value as the CLI [GH-15909]
  • ui: Fix navigation to pages for jobs that are not in the default namespace [GH-15906]
  • ui: Fixed a bug where the exec window would not maintain namespace upon refresh [GH-15454]
  • ui: Scale down logger height in the UI when the sidebar container also has task events [GH-15759]
  • volumes: Fixed a bug where per_alloc was allowed for volume blocks on system and sysbatch jobs, which do not have an allocation index [GH-16030]

1.4.4 (February 14, 2023)

SECURITY:

  • artifact: Provide mitigations against unbounded artifact decompression [GH-16126]
  • build: Update to go1.20.1 [GH-16182]

1.4.3 (November 21, 2022)

IMPROVEMENTS:

  • api: Added an API for counting evaluations that match a filter [GH-15147]
  • cli: Improved performance of eval delete with large filter sets [GH-15117]
  • consul: add trace logging around service registrations [GH-6115]
  • deps: Updated github.com/aws/aws-sdk-go from 1.44.84 to 1.44.126 [GH-15081]
  • deps: Updated github.com/docker/cli from 20.10.18+incompatible to 20.10.21+incompatible [GH-15078]
  • exec: Allow running commands from mounted host volumes [GH-14851]
  • scheduler: when multiple evaluations are pending for the same job, evaluate the latest and cancel the intermediaries on success [GH-14621]
  • server: Add a git revision tag to the serf tags gossiped between servers. [GH-9159]
  • template: Expose per-template configuration for error_on_missing_key. This allows jobspec authors to specify that a template should fail if it references a struct or map key that does not exist. The default value is false and should be fully backward compatible. [GH-14002]
  • ui: Adds a "Pack" tag and logo on the jobs list index when appropriate [GH-14833]
  • ui: add consul connect service upstream and on-update info to the service sidebar [GH-15324]
  • ui: allow users to upload files by click or drag in the web ui [GH-14747]

BUG FIXES:

  • api: Ensure all request body decode errors return a 400 status code [GH-15252]
  • autopilot: Fixed a bug where autopilot would try to fetch raft stats from other regions [GH-15290]
  • cleanup: fixed missing timer.Reset for plan queue stat emitter [GH-15134]
  • client: Fixed a bug where tasks would restart without waiting for interval [GH-15215]
  • client: fixed a bug where non-docker tasks with network isolation would leak network namespaces and iptables rules if the client was restarted while they were running [GH-15214]
  • client: prevent allocations from failing on client reconnect by retrying RPC requests when no servers are available yet [GH-15140]
  • csi: Fixed race condition that can cause a panic when volume is garbage collected [GH-15101]
  • device: Fixed a bug where device plugins would not fingerprint on startup [GH-15125]
  • drivers: Fixed a bug where one goroutine was leaked per task [GH-15180]
  • drivers: pass missing propagation_mode configuration for volume mounts to external plugins [GH-15096]
  • event_stream: fixed a bug where dynamic port values would fail to serialize in the event stream [GH-12916]
  • fingerprint: Ensure Nomad can correctly fingerprint Consul gRPC where the Consul agent is running v1.14.0 or greater [GH-15309]
  • keyring: Fixed a bug where a missing key would prevent any further replication. [GH-15092]
  • keyring: Fixed a bug where replication would stop after snapshot restores [GH-15227]
  • keyring: Re-enabled keyring garbage collection after fixing a bug where keys would be garbage collected even if they were used to sign a live allocation's workload identity. [GH-15092]
  • scheduler: Fixed a bug that prevented disconnected allocations to be updated after they reconnect. [GH-15068]
  • scheduler: Prevent unnecessary placements when disconnected allocations reconnect. [GH-15068]
  • template: Fixed a bug where template could cause agent panic on startup [GH-15192]
  • ui: Fixed a bug where the task log sidebar would close and re-open if the parent job state changed [GH-15146]
  • variables: Fixed a bug where a long-running rekey could hit the nack timeout [GH-15102]
  • wi: Fixed a bug where clients running pre-1.4.0 allocations would erase the token used to query service registrations after upgrade [GH-15121]

1.4.2 (October 26, 2022)

SECURITY:

  • event stream: Fixed a bug where ACL token expiration was not checked when emitting events [GH-15013]
  • variables: Fixed a bug where non-sensitive variable metadata (paths and raft indexes) was exposed via the template nomadVarList function to other jobs in the same namespace. [GH-15012]

IMPROVEMENTS:

  • cli: Added -id-prefix-template option to nomad job dispatch [GH-14631]
  • cli: add nomad fmt to the CLI [GH-14779]
  • deps: update go-memdb for goroutine leak fix [GH-14983]
  • docker: improve memory usage for docker_logger [GH-14875]
  • event stream: Added ACL role topic with create and delete types [GH-14923]
  • scheduler: Allow jobs not requiring network resources even when no network is fingerprinted [GH-14300]
  • ui: adds searching and filtering to the topology page [GH-14913]

BUG FIXES:

  • acl: Callers should be able to read policies linked via roles to the token used [GH-14982]
  • acl: Ensure all federated servers meet v.1.4.0 minimum before ACL roles can be written [GH-14908]
  • acl: Fixed a bug where Nomad version checking for one-time tokens was enforced across regions [GH-14912]
  • cli: prevent a panic when the Nomad API returns an error while collecting a debug bundle [GH-14992]
  • client: Check ACL token expiry when resolving token within ACL cache [GH-14922]
  • client: Fixed a bug where Nomad could not detect cores on recent RHEL systems [GH-15027]
  • client: Fixed a bug where network fingerprinters were not reloaded when the client configuration was reloaded with SIGHUP [GH-14615]
  • client: Resolve ACL roles within client ACL cache [GH-14922]
  • consul: Fixed a bug where services continuously re-registered [GH-14917]
  • consul: atomically register checks on initial service registration [GH-14944]
  • deps: Update hashicorp/consul-template to 90370e07bf621811826b803fb633dadbfb4cf287; fixes template rerendering issues when only user or group set [GH-15045]
  • deps: Update hashicorp/raft to v1.3.11; fixes unstable leadership on server removal [GH-15021]
  • event stream: Check ACL token expiry when resolving tokens [GH-14923]
  • event stream: Resolve ACL roles within ACL tokens [GH-14923]
  • keyring: Fixed a bug where nomad system gc forced a root keyring rotation. [GH-15009]
  • keyring: Fixed a bug where if a key is rotated immediately following a leader election, plans that are in-flight may get signed before the new leader has the key. Allow for a short timeout-and-retry to avoid rejecting plans. [GH-14987]
  • keyring: Fixed a bug where keyring initialization is blocked by un-upgraded federated regions [GH-14901]
  • keyring: Fixed a bug where root keyring garbage collection configuration values were not respected. [GH-15009]
  • keyring: Fixed a bug where root keyring initialization could occur before the raft FSM on the leader was verified to be up-to-date. [GH-14987]
  • keyring: Fixed a bug where root keyring replication could make incorrectly stale queries and exit early if those queries did not return the expected key. [GH-14987]
  • keyring: Fixed a bug where the root keyring replicator's rate limiting would be skipped if the keyring replication exceeded the burst rate. [GH-14987]
  • keyring: Removed root key garbage collection to avoid orphaned workload identities [GH-15034]
  • nomad native service discovery: Ensure all local servers meet v.1.3.0 minimum before service registrations can be written [GH-14924]
  • scheduler: Fixed a bug where version checking for disconnected clients handling was enforced across regions [GH-14912]
  • servicedisco: Fixed a bug where job using checks could land on incompatible client [GH-14868]
  • services: Fixed a regression where check task validation stopped allowing some configurations [GH-14864]
  • ui: Fixed line charts to update x-axis (time) where relevant [GH-14814]
  • ui: Fixes an issue where service tags would bleed past the edge of the screen [GH-14832]
  • variables: Fixed a bug where Nomad version checking was not enforced for writing to variables [GH-14912]
  • variables: Fixed a bug where getting empty results from listing variables resulted in a permission denied error. [GH-15012]

1.4.1 (October 06, 2022)

BUG FIXES:

  • keyring: Fixed a panic that can occur during upgrades to 1.4.0 when initializing the keyring [GH-14821]

1.4.0 (October 04, 2022)

FEATURES:

  • ACL Roles: Added support for ACL Roles. [GH-14320]
  • Nomad Native Service Discovery: Add built-in support for checks on Nomad services [GH-13715]
  • Variables: Added support for storing encrypted configuration values. [GH-13000]
  • UI Services table: Display task-level services in addition to group-level services. [GH-14199]

BREAKING CHANGES:

  • audit (Enterprise): fixed inconsistency in event filter logic [GH-14212]
  • cli: eval status -json no longer supports listing all evals in JSON. Use eval list -json. [GH-14651]
  • core: remove support for raft protocol version 2 [GH-13467]

SECURITY:

  • client: recover from panics caused by artifact download to prevent the Nomad client from crashing [GH-14696]

IMPROVEMENTS:

  • acl: ACL tokens can now be created with an expiration TTL. [GH-14320]
  • api: return a more descriptive error when /v1/acl/bootstrap fails to decode request body [GH-14629]
  • autopilot: upgrade to raft-autopilot library [GH-14441]
  • cli: Removed deprecated network quota fields from quota status output [GH-14468]
  • cli: acl policy info output format has changed to improve readability with large policy documents [GH-14140]
  • cli: operator debug now writes newline-delimited JSON files for large collections [GH-14610]
  • cli: ignore -hcl2-strict when -hcl1 is set. [GH-14426]
  • cli: warn destructive update only when count is greater than 1 [GH-13103]
  • client: Add built-in support for checks on nomad services [GH-13715]
  • client: re-enable nss-based user lookups [GH-14742]
  • connect: add namespace, job, and group to Envoy stats [GH-14311]
  • connect: add nomad environment variables to envoy bootstrap [GH-12959]
  • consul: Allow interpolation of task environment values into Consul Service Mesh configuration [GH-14445]
  • consul: Enable setting custom tagged_addresses field [GH-12951]
  • core: constraint operands are now compared numerically if operands are numbers [GH-14722]
  • deps: Update fsouza/go-dockerclient to v1.8.2 [GH-14112]
  • deps: Update go.etcd.io/bbolt to v1.3.6 [GH-14025]
  • deps: Update google.golang.org/grpc to v1.48.0 [GH-14103]
  • deps: Update gopsutil for improvements in fingerprinting on non-Linux platforms [GH-14209]
  • deps: Updated github.com/armon/go-metrics to v0.4.1 which includes a performance improvement for Prometheus sink [GH-14493]
  • deps: Updated github.com/hashicorp/go-version to v1.6.0 [GH-14364]
  • deps: remove unused darwin C library [GH-13894]
  • fingerprint: Add node attribute for number of reservable cores: cpu.num_reservable_cores [GH-14694]
  • fingerprint: Consul and Vault attributes are no longer cleared on fingerprinting failure [GH-14673]
  • jobspec: Added strlen HCL2 function to determine the length of a string [GH-14463]
  • server: Log when a node's eligibility changes [GH-14125]
  • ui: Display different message when trying to exec into a job with no task running. [GH-14071]
  • ui: add service discovery, along with health checks, to job and allocation routes [GH-14408]
  • ui: adds a sidebar to show in-page logs for a given task, accessible via job, client, or task group routes [GH-14612]
  • ui: allow deep-dive clicks to tasks from client, job, and task group routes. [GH-14592]
  • ui: attach timestamps and a visual indicator on failure to health checks in the Web UI [GH-14677]

BUG FIXES:

  • api: Fixed a bug where the List Volume API did not include the ControllerRequired and ResourceExhausted fields. [GH-14484]
  • cli: Ignore Vault token when generating job diff. [GH-14424]
  • cli: fixed a bug in the operator api command where the HTTPS scheme was not always correctly calculated [GH-14635]
  • cli: return exit code 255 when nomad job plan fails job validation. [GH-14426]
  • cli: set content length on POST requests when using the nomad operator api command [GH-14634]
  • client: Fixed bug where clients could attempt to connect to servers with invalid addresses retrieved from Consul. [GH-14431]
  • core: prevent new allocations from overlapping execution with stopping allocations [GH-10446]
  • csi: Fixed a bug where a volume that was successfully unmounted by the client but then failed controller unpublishing would not be marked free until garbage collection ran. [GH-14675]
  • csi: Fixed a bug where the server would not send controller unpublish for a failed allocation. [GH-14484]
  • csi: Fixed a data race in the volume unpublish endpoint that could result in claims being incorrectly marked as freed before being persisted to raft. [GH-14484]
  • helpers: Fixed a bug where random stagger func did not protect against negative inputs [GH-14497]
  • jobspec: Fixed a bug where an artifact with headers configuration would fail to parse when using HCLv1 [GH-14637]
  • metrics: Update client node_scheduling_eligibility value with server heartbeats. [GH-14483]
  • quotas (Enterprise): Fixed a server crashing panic when updating and checking a quota concurrently.
  • rpc (Enterprise): check for spec changes in all regions when registering multiregion jobs [GH-14519]
  • scheduler (Enterprise): Fixed bug where the scheduler would treat multiregion jobs as paused for job types that don't use deployments [GH-14659]
  • template: Fixed a bug where the splay timeout was not being applied when change_mode was set to script. [GH-14749]
  • ui: Remove extra space when displaying the version in the menu footer. [GH-14457]

1.3.9 (February 14, 2023)

SECURITY:

  • artifact: Provide mitigations against unbounded artifact decompression [GH-16126]
  • build: Update to go1.20.1 [GH-16182]

1.3.8 (November 21, 2022)

BUG FIXES:

  • api: Ensure all request body decode errors return a 400 status code [GH-15252]
  • cleanup: fixed missing timer.Reset for plan queue stat emitter [GH-15134]
  • client: Fixed a bug where tasks would restart without waiting for interval [GH-15215]
  • client: fixed a bug where non-docker tasks with network isolation would leak network namespaces and iptables rules if the client was restarted while they were running [GH-15214]
  • client: prevent allocations from failing on client reconnect by retrying RPC requests when no servers are available yet [GH-15140]
  • csi: Fixed race condition that can cause a panic when volume is garbage collected [GH-15101]
  • device: Fixed a bug where device plugins would not fingerprint on startup [GH-15125]
  • drivers: Fixed a bug where one goroutine was leaked per task [GH-15180]
  • drivers: pass missing propagation_mode configuration for volume mounts to external plugins [GH-15096]
  • event_stream: fixed a bug where dynamic port values would fail to serialize in the event stream [GH-12916]
  • fingerprint: Ensure Nomad can correctly fingerprint Consul gRPC where the Consul agent is running v1.14.0 or greater [GH-15309]
  • scheduler: Fixed a bug that prevented disconnected allocations to be updated after they reconnect. [GH-15068]
  • scheduler: Prevent unnecessary placements when disconnected allocations reconnect. [GH-15068]
  • template: Fixed a bug where template could cause agent panic on startup [GH-15192]

1.3.7 (October 26, 2022)

IMPROVEMENTS:

  • deps: update go-memdb for goroutine leak fix [GH-14983]
  • docker: improve memory usage for docker_logger [GH-14875]

BUG FIXES:

  • acl: Fixed a bug where Nomad version checking for one-time tokens was enforced across regions [GH-14911]
  • client: Fixed a bug where Nomad could not detect cores on recent RHEL systems [GH-15027]
  • consul: Fixed a bug where services continuously re-registered [GH-14917]
  • consul: atomically register checks on initial service registration [GH-14944]
  • deps: Update hashicorp/raft to v1.3.11; fixes unstable leadership on server removal [GH-15021]
  • nomad native service discovery: Ensure all local servers meet v.1.3.0 minimum before service registrations can be written [GH-14924]
  • scheduler: Fixed a bug where version checking for disconnected clients handling was enforced across regions [GH-14911]

1.3.6 (October 04, 2022)

SECURITY:

  • client: recover from panics caused by artifact download to prevent the Nomad client from crashing [GH-14696]

IMPROVEMENTS:

  • api: return a more descriptive error when /v1/acl/bootstrap fails to decode request body [GH-14629]
  • cli: ignore -hcl2-strict when -hcl1 is set. [GH-14426]
  • cli: warn destructive update only when count is greater than 1 [GH-13103]
  • consul: Allow interpolation of task environment values into Consul Service Mesh configuration [GH-14445]
  • ui: Display different message when trying to exec into a job with no task running. [GH-14071]

BUG FIXES:

  • api: Fixed a bug where the List Volume API did not include the ControllerRequired and ResourceExhausted fields. [GH-14484]
  • cli: Ignore Vault token when generating job diff. [GH-14424]
  • cli: fixed a bug in the operator api command where the HTTPS scheme was not always correctly calculated [GH-14635]
  • cli: return exit code 255 when nomad job plan fails job validation. [GH-14426]
  • cli: set content length on POST requests when using the nomad operator api command [GH-14634]
  • client: Fixed bug where clients could attempt to connect to servers with invalid addresses retrieved from Consul. [GH-14431]
  • csi: Fixed a bug where a volume that was successfully unmounted by the client but then failed controller unpublishing would not be marked free until garbage collection ran. [GH-14675]
  • csi: Fixed a bug where the server would not send controller unpublish for a failed allocation. [GH-14484]
  • csi: Fixed a data race in the volume unpublish endpoint that could result in claims being incorrectly marked as freed before being persisted to raft. [GH-14484]
  • helpers: Fixed a bug where random stagger func did not protect against negative inputs [GH-14497]
  • jobspec: Fixed a bug where an artifact with headers configuration would fail to parse when using HCLv1 [GH-14637]
  • metrics: Update client node_scheduling_eligibility value with server heartbeats. [GH-14483]
  • quotas (Enterprise): Fixed a server crashing panic when updating and checking a quota concurrently.
  • rpc: check for spec changes in all regions when registering multiregion jobs [GH-14519]
  • scheduler: Fixed bug where the scheduler would treat multiregion jobs as paused for job types that don't use deployments [GH-14659]
  • template: Fixed a bug where the splay timeout was not being applied when change_mode was set to script. [GH-14749]
  • ui: Remove extra space when displaying the version in the menu footer. [GH-14457]

1.3.5 (August 31, 2022)

IMPROVEMENTS:

  • cgroups: use cgroup.kill interface file when using cgroups v2 [GH-14371]
  • consul: Reduce load on Consul leader server by allowing stale results when listing namespaces. [GH-12953]

BUG FIXES:

  • cli: Fixed a bug where forcing a periodic job would fail if the job ID prefix-matched other periodic jobs [GH-14333]
  • template: Fixed a bug that could cause Nomad to panic when using change_mode = "script" [GH-14374]
  • ui: Revert a change that resulted in UI errors when ACLs were not used. [GH-14381]

1.3.4 (August 25, 2022)

IMPROVEMENTS:

  • api: HTTP server now returns a 429 error code when hitting the connection limit [GH-13621]
  • build: update to go1.19 [GH-14132]
  • cli: operator debug now outputs current leader to debug bundle [GH-13472]
  • cli: operator snapshot state supports -filter expressions and avoids writing large temporary files [GH-13658]
  • client: add option to restart all tasks of an allocation, regardless of lifecycle type or state. [GH-14127]
  • client: only start poststop tasks after poststart tasks are done. [GH-14127]
  • deps: Updated github.com/hashicorp/go-discover to latest to allow setting the AWS endpoint definition [GH-13491]
  • driver/docker: Added config option to disable container healthcheck [GH-14089]
  • qemu: Added option to configure drive_interface [GH-11864]
  • sentinel: add the ability to reference the namespace and Nomad acl token in policies [GH-14171]
  • template: add script change_mode that allows scripts to be executed on template change [GH-13972]
  • ui: Add button to restart all tasks in an allocation. [GH-14223]
  • ui: add general keyboard navigation to the Nomad UI [GH-14138]

BUG FIXES:

  • api: cleanup whitespace from failed api response body [GH-14145]
  • cli: Fixed a bug where job validation requeset was not sent to leader [GH-14065]
  • cli: Fixed a bug where the memory usage reported by Allocation Resource Utilization is zero on systems using cgroups v2 [GH-14069]
  • cli: Fixed a bug where vault token not respected in plan command [GH-14088]
  • client/logmon: fixed a bug where logmon cannot find nomad executable [GH-14297]
  • client: Fixed a bug where cpuset initialization would not work on first agent startup [GH-14230]
  • client: Fixed a bug where user lookups would hang or panic [GH-14248]
  • client: Fixed a problem calculating a services namespace [GH-13493]
  • csi: Fixed a bug where volume claims on lost or garbage collected nodes could not be freed [GH-13301]
  • template: Fixed a bug where job templates would use uid and gid 0 after upgrading to Nomad 1.3.3, causing tasks to fail with the error failed looking up user: managing file ownership is not supported on Windows. [GH-14203]
  • ui: Fixed a bug that caused the allocation details page to display the stats bar chart even if the task was pending. [GH-14224]
  • ui: Removes duplicate breadcrumb header when navigating from child job back to parent. [GH-14115]
  • vault: Fixed a bug where Vault clients were recreated when the server configuration was reloaded, even if there were no changes to the Vault configuration. [GH-14298]
  • vault: Fixed a bug where changing the Vault configuration namespace field was not detected as a change during server configuration reload. [GH-14298]

1.3.3 (August 05, 2022)

IMPROVEMENTS:

  • build: Update go toolchain to 1.18.5 [GH-13956]
  • csi: Add stage_publish_base_dir field to csi_plugin block to support plugins that require a specific staging/publishing directory for mounts [GH-13919]
  • qemu: use shorter socket file names to reduce the chance of hitting the max path length [GH-13971]
  • template: Expose consul-template configuration options at the client level for nomad_retry. [GH-13907]
  • template: Templates support new uid/gid parameter pair [GH-13755]
  • ui: Reorder and apply the same style to the Evaluations list page filters to match the Job list page. [GH-13866]

BUG FIXES:

  • acl: Fixed a bug where the timestamp for expiring one-time tokens was not deterministic between servers [GH-13737]
  • deployments: Fixed a bug that prevented auto-approval if canaries were marked as unhealthy during deployment [GH-14001]
  • metrics: Fixed a bug where blocked evals with no class produced no dc:class scope metrics [GH-13786]
  • namespaces: Fixed a bug that allowed deleting a namespace that contained a CSI volume [GH-13880]
  • qemu: restore the monitor socket path when restoring a QEMU task. [GH-14000]
  • servicedisco: Fixed a bug where non-unique services would escape job validation [GH-13869]
  • ui: Add missing breadcrumb in the Evaluations page. [GH-13865]
  • ui: Fixed a bug where task memory was reported as zero on systems using cgroups v2 [GH-13670]

1.3.2 (July 13, 2022)

IMPROVEMENTS:

  • agent: Added delete support to the eval HTTP API [GH-13492]
  • agent: emit a warning message if the agent starts with bootstrap_expect set to an even number. [GH-12961]
  • agent: logs are no longer buffered at startup when logging in JSON format [GH-13076]
  • api: enable setting ?choose parameter when querying services [GH-12862]
  • api: refactor ACL check when using the all namespaces wildcard in the job and alloc list endpoints [GH-13608]
  • api: support Authorization Bearer header in lieu of X-Nomad-Token header [GH-12534]
  • bootstrap: Added option to allow for an operator generated bootstrap token to be passed to the acl bootstrap command [GH-12520]
  • cli: Added delete command to the eval CLI [GH-13492]
  • cli: Added scheduler get-config and scheduler set-config commands to the operator CLI [GH-13045]
  • cli: always display job ID and namespace in the eval status command [GH-13581]
  • cli: display namespace and node ID in the eval list command and when eval status matches multiple evals [GH-13581]
  • cli: update default redis and use nomad service discovery [GH-13044]
  • client: added more fault tolerant defaults for template configuration [GH-13041]
  • core: Added the ability to pause and un-pause the eval broker and blocked eval broker [GH-13045]
  • core: On node updates skip creating evaluations for jobs not in the node's datacenter. [GH-12955]
  • core: automatically mark clients with recurring plan rejections as ineligible [GH-13421]
  • driver/docker: Eliminate excess Docker registry pulls for the infra_image when it already exists locally. [GH-13265]
  • fingerprint: add support for detecting kernel architecture of clients. (attribute: kernel.arch) [GH-13182]
  • hcl: added support for using the filebase64 function in jobspecs [GH-11791]
  • metrics: emit nomad.nomad.plan.rejection_tracker.node_score metric for the number of times a node had a plan rejection within the past time window [GH-13421]
  • qemu: add support for guest agent socket [GH-12800]
  • ui: Namespace filter query paramters are now isolated by route [GH-13679]

BUG FIXES:

  • api: Fix listing evaluations with the wildcard namespace and an ACL token [GH-13530]
  • api: Fixed a bug where Consul token was not respected for job revert API [GH-13065]
  • cli: Fixed a bug in the names of the node drain and node status sub-commands [GH-13656]
  • cli: Fixed a bug where job validate did not respect vault token or namespace [GH-13070]
  • client: Fixed a bug where max_kill_timeout client config was ignored [GH-13626]
  • client: Fixed a bug where network.dns block was not interpolated [GH-12817]
  • cni: Fixed a bug where loopback address was not set for all drivers [GH-13428]
  • connect: Added missing ability of setting Connect upstream destination namespace [GH-13125]
  • core: Fixed a bug where an evicted batch job would not be rescheduled [GH-13205]
  • core: Fixed a bug where blocked eval resources were incorrectly computed [GH-13104]
  • core: Fixed a bug where reserved ports on multiple node networks would be treated as a collision. client.reserved.reserved_ports is now merged into each host_network's reserved ports instead of being treated as a collision. [GH-13651]
  • core: Fixed a bug where the plan applier could deadlock if leader's state lagged behind plan's creation index for more than 5 seconds. [GH-13407]
  • csi: Fixed a regression where a timeout was introduced that prevented some plugins from running by marking them as unhealthy after 30s by introducing a configurable health_timeout field [GH-13340]
  • csi: Fixed a scheduler bug where failed feasibility checks would return early and prevent processing additional nodes [GH-13274]
  • docker: Fixed a bug where cgroups-v1 parent was being set [GH-13058]
  • lifecycle: fixed a bug where sidecar tasks were not being stopped last [GH-13055]
  • state: Fix listing evaluations from all namespaces [GH-13551]
  • ui: Allow running jobs from a namespace-limited token [GH-13659]
  • ui: Fix a bug that prevented viewing the details of an evaluation in a non-default namespace [GH-13530]
  • ui: Fixed a bug that prevented the UI task exec functionality to work from behind a reverse proxy. [GH-12925]
  • ui: Fixed an issue where editing or running a job with a namespace via the UI would throw a 404 on redirect. [GH-13588]
  • ui: fixed a bug where links to jobs with "@" in their name would mis-identify namespace and 404 [GH-13012]
  • volumes: Fixed a bug where additions, updates, or removals of host volumes or CSI volumes were not treated as destructive updates [GH-13008]

1.3.1 (May 19, 2022)

SECURITY:

  • A vulnerability was identified in the go-getter library that Nomad uses for its artifacts such that a specially crafted Nomad jobspec can be used for privilege escalation onto client agent hosts. CVE-2022-30324 [GH-13057]

BUG FIXES:

  • agent: fixed a panic on startup when the server.protocol_version config parameter was set [GH-12962]

1.3.0 (May 11, 2022)

FEATURES:

  • Edge compute improvements: Added support for reconnecting healthy allocations when disconnected clients reconnect. [GH-12476]
  • Native service discovery: Register and discover services using builtin simple service discovery. [GH-12368]

BREAKING CHANGES:

  • agent: The state database on both clients and servers will automatically migrate its underlying database on startup. Downgrading to a previous version of an agent after upgrading it to Nomad 1.3 is not supported. [GH-12107]
  • client: The client state store will be automatically migrated to a new schema version when upgrading a client. Downgrading to a previous version of the client after upgrading it to Nomad 1.3 is not supported. To downgrade safely, users should erase the Nomad client's data directory. [GH-12078]
  • connect: Consul Service Identity ACL tokens automatically generated for Connect services are now created as Local rather than Global tokens. Nomad clusters with Connect services making cross-Consul datacenter requests will need to ensure their Consul agents are configured with anonymous ACL tokens of sufficient node and service read permissions. [GH-8068]
  • connect: The minimum Consul version supported by Nomad's Connect integration is now Consul v1.8.0. [GH-8068]
  • csi: The client filesystem layout for CSI plugins has been updated to correctly handle the lifecycle of multiple allocations serving the same plugin. Running plugin tasks will not be updated after upgrading the client, but it is recommended to redeploy CSI plugin jobs after upgrading the cluster. [GH-12078]
  • raft: The default raft protocol version is now 3 so you must follow the Upgrading to Raft Protocol 3 guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported. [GH-11572]

SECURITY:

  • server: validate mTLS certificate names on agent to agent endpoints [GH-11956]

IMPROVEMENTS:

  • agent: Switch from boltdb/bolt to go.etcd.io/bbolt [GH-12107]
  • api: Add related query parameter to the Evaluation details endpoint [GH-12305]
  • api: Add support for filtering and pagination to the jobs and volumes list endpoint [GH-12186]
  • api: Add support for filtering and pagination to the node list endpoint [GH-12727]
  • api: Add support for filtering, sorting, and pagination to the ACL tokens and allocations list endpoint [GH-12186]
  • api: Added ParseHCLOpts helper func to ease parsing HCLv1 jobspecs [GH-12777]
  • api: CSI secrets for list and delete snapshots are now passed in HTTP headers [GH-12144]
  • api: AllocFS.Logs now explicitly closes frames channel after being canceled [GH-12248]
  • api: default to using DefaultPooledTransport client to support keep-alive by default [GH-12492]
  • api: filter values of evaluation and deployment list api endpoints [GH-12034]
  • api: sort return values of evaluation and deployment list api endpoints by creation index [GH-12054]
  • build: make targets now respect GOBIN variable [GH-12077]
  • build: upgrade and speedup circleci configuration [GH-11889]
  • cli: Added -json flag to nomad job {run,plan,validate} to support parsing JSON formatted jobs [GH-12591]
  • cli: Added -os flag to node status to display operating system name [GH-12388]
  • cli: Added nomad operator api command to ease querying Nomad's HTTP API. [GH-10808]
  • cli: CSI secrets argument for volume snapshot list has been made consistent with volume snapshot delete [GH-12144]
  • cli: Return a redacted value for mount flags in the volume status command, instead of <none> [GH-12150]
  • cli: operator debug command now skips generating pprofs to avoid a panic on Nomad 0.11.2. 0.11.1, and 0.11.0 [GH-12807]
  • cli: add nomad config validate command to check configuration files without an agent [GH-9198]
  • cli: added -pprof-interval to nomad operator debug command [GH-11938]
  • cli: display the Raft version instead of the Serf protocol in the nomad server members command [GH-12317]
  • cli: rename the nomad server members -detailed flag to -verbose so it matches other commands [GH-12317]
  • client: Added NOMAD_SHORT_ALLOC_ID allocation env var [GH-12603]
  • client: Allow interpolation of the network.dns block [GH-12021]
  • client: Download up to 3 artifacts concurrently [GH-11531]
  • client: Enable support for cgroups v2 [GH-12274]
  • client: fingerprint AWS instance life cycle option [GH-12371]
  • client: set NOMAD_CPU_CORES environment variable when reserving cpu cores [GH-12496]
  • connect: automatically set alloc_id in envoy_stats_tags configuration [GH-12543]
  • connect: bootstrap envoy sidecars using -proxy-for [GH-12011]
  • consul/connect: write Envoy bootstrapping information to disk for debugging [GH-11975]
  • consul: Added implicit Consul constraint for task groups utilising Consul service and check registrations [GH-12602]
  • consul: add go-sockaddr templating support to nomad consul address [GH-12084]
  • consul: improve service name validation message to include maximum length requirement [GH-12012]
  • core: Enable configuring raft boltdb freelist sync behavior [GH-12107]
  • core: The unused protocol_version agent configuration value has been removed. [GH-11600]
  • csi: Add pagination parameters to volume snapshot list command [GH-12193]
  • csi: Added -secret and -parameter flags to volume snapshot create command [GH-12360]
  • csi: Added support for storage topology [GH-12129]
  • csi: Allow for concurrent plugin allocations [GH-12078]
  • csi: Allow volumes to be re-registered to be updated while not in use [GH-12167]
  • csi: Display plugin capabilities in nomad plugin status -verbose output [GH-12116]
  • csi: Respect the verbose flag in the output of volume status [GH-12153]
  • csi: Sort allocations in plugin status output [GH-12154]
  • csi: add flag for providing secrets as a set of key/value pairs to delete a volume [GH-11245]
  • csi: allow namespace field to be passed in volume spec [GH-12400]
  • deps: Update hashicorp/raft-boltdb to v2.2.0 [GH-12107]
  • deps: Update serf library to v0.9.7 [GH-12130]
  • deps: Updated hashicorp/consul-template to v0.29.0 [GH-12747]
  • deps: Updated hashicorp/raft to v1.3.5 [GH-12079]
  • deps: Upgrade kr/pty to creack/pty v1.1.5 [GH-11855]
  • deps: use gorilla package for gzip http handler [GH-11843]
  • drainer: defer draining CSI plugin jobs until system jobs are drained [GH-12324]
  • drivers/raw_exec: Add support for cgroups v2 in raw_exec driver [GH-12419]
  • drivers: removed support for restoring tasks created before Nomad 0.9 [GH-12791]
  • fingerprint: add support for detecting DigitalOcean environment [GH-12015]
  • metrics: Emit metrics regarding raft boltdb operations [GH-12107]
  • metrics: emit nomad.vault.token_last_renewal and nomad.vault.token_next_renewal metrics for Vault token renewal information [GH-12435]
  • namespaces: Allow adding custom metadata to namespaces. [GH-12138]
  • namespaces: Allow enabling/disabling allowed drivers per namespace. [GH-11807]
  • raft: The default raft protocol version is now 3. [GH-11572]
  • scheduler: Seed node shuffling with the evaluation ID to make the order reproducible [GH-12008]
  • scheduler: recover scheduler goroutines on panic [GH-12009]
  • server: Transfer Raft leadership in case the Nomad server fails to establish leadership [GH-12293]
  • server: store and check previous Raft protocol version to prevent downgrades [GH-12362]
  • services: Enable setting arbitrary address on Nomad or Consul service registration [GH-12720]
  • template: Upgraded to from consul-template v0.25.2 to v0.28.0 which includes the sprig library of functions and more. [GH-12312]
  • ui: added visual indicators for disconnected allocations and client nodes [GH-12544]
  • ui: break long service tags into multiple lines [GH-11995]
  • ui: change sort-order of evaluations to be reverse-chronological [GH-12847]
  • ui: make buttons with confirmation more descriptive of their actions [GH-12252]

DEPRECATIONS:

  • Raft protocol version 2 is deprecated and will be removed in Nomad 1.4.0. [GH-11572]

BUG FIXES:

  • api: Apply prefix filter when querying CSI volumes in all namespaces [GH-12184]
  • cleanup: prevent leaks from time.After [GH-11983]
  • client: Fixed a bug that could prevent a preempting alloc from ever starting. [GH-12779]
  • client: Fixed a bug where clients that retry blocking queries would not reset the correct blocking duration [GH-12593]
  • config: Fixed a bug where the reservable_cores setting was not respected [GH-12044]
  • core: Fixed auto-promotion of canaries in jobs with at least one task group without canaries. [GH-11878]
  • core: prevent malformed plans from crashing leader [GH-11944]
  • csi: Fixed a bug where plugin status commands could choose the incorrect plugin if a plugin with a name that matched the same prefix existed. [GH-12194]
  • csi: Fixed a bug where volume snapshot list did not correctly filter by plugin IDs. The -plugin parameter is required. [GH-12197]
  • csi: Fixed a bug where allocations with volume claims would fail their first placement after a reschedule [GH-12113]
  • csi: Fixed a bug where allocations with volume claims would fail to restore after a client restart [GH-12113]
  • csi: Fixed a bug where creating snapshots required a plugin ID instead of falling back to the volume's plugin ID [GH-12195]
  • csi: Fixed a bug where fields were missing from the Read Volume API response [GH-12178]
  • csi: Fixed a bug where garbage collected nodes would block releasing a volume [GH-12350]
  • csi: Fixed a bug where per-alloc volumes used the incorrect ID when querying for alloc status -verbose [GH-12573]
  • csi: Fixed a bug where plugin configuration updates were not considered destructive [GH-12774]
  • csi: Fixed a bug where plugins would not restart if they failed any time after a client restart [GH-12752]
  • csi: Fixed a bug where plugins written in NodeJS could fail to fingerprint [GH-12359]
  • csi: Fixed a bug where purging a job with a missing plugin would fail [GH-12114]
  • csi: Fixed a bug where single-use access modes were not enforced during validation [GH-12337]
  • csi: Fixed a bug where the maximum number of volume claims was incorrectly enforced when an allocation claims a volume [GH-12112]
  • csi: Fixed a bug where the plugin instance manager would not retry the initial gRPC connection to plugins [GH-12057]
  • csi: Fixed a bug where the plugin supervisor would not restart the task if it failed to connect to the plugin [GH-12057]
  • csi: Fixed a bug where volume snapshot timestamps were always zero values [GH-12352]
  • csi: Fixed bug where accessing plugins was subject to a data race [GH-12553]
  • csi: fixed a bug where volume detach, volume deregister, and volume status commands did not accept an exact ID if multiple volumes matched the prefix [GH-12051]
  • csi: provide CSI_ENDPOINT environment variable to plugin tasks [GH-12050]
  • jobspec: Fixed a bug where connect sidecar resources were ignored when using HCL1 [GH-11927]
  • lifecycle: Fixed a bug where successful poststart tasks were marked as unhealthy [GH-11945]
  • recommendations (Enterprise): Fixed a bug where the recommendations list RPC incorrectly forwarded requests to the authoritative region [GH-12040]
  • scheduler: fixed a bug where in-place updates on ineligible nodes would be ignored [GH-12264]
  • server: Write peers.json file with correct permissions [GH-12369]
  • template: Fixed a bug preventing allowing all consul-template functions. [GH-12312]
  • template: Fixed a bug where the default function_denylist would be appended to a specified list [GH-12071]
  • ui: Fix the link target for CSI volumes on the task detail page [GH-11896]
  • ui: Fixed a bug where volumes were being incorrectly linked when per_alloc=true [GH-12713]
  • ui: fix broken link to task-groups in the Recent Allocations table in the Job Detail overview page. [GH-12765]
  • ui: fix the unit for the task row memory usage metric [GH-11980]

Unsupported Versions

Versions of Nomad before 1.3.0 are no longer supported. See CHANGELOG-unsupported.md for their changelogs.