# OpenCost v1.121.5

2026-11-25 · [Original release notes](https://github.com/opencost/opencost/releases/tag/v1.121.5) · [Full summary](https://ratatosk.io/en/releases/opencost/v1.121.5)

Security 1 · Important fixes 19 · Dependency updates 1 · Other changes 6

## Security (1)

### Zero and negative `step` values rejected by allocation endpoints

- Affects: the `/allocation` and `/allocation/summary` APIs

A zero `step` did not advance the window loop, and a negative `step` moved it away from the window end, so either could keep the loop running indefinitely. Requests with either value now receive HTTP 400, even when `accumulate=hour|day|week|month|quarter` previously replaced the step; positive steps, omitted `step`, and the listed accumulate keywords behave as before.

> * fix(costmodel): reject a zero or negative step in the allocation API by @BahaaMattar in https://github.com/opencost/opencost/pull/4225

## Important fixes (19)

### OCI pricing fixed for `VM.Standard.E6.Flex` nodes

- Affects: OKE clusters with `VM.Standard.E6.Flex` nodes

Previously, these nodes used default `oracle.json` pricing, reporting CPU and RAM costs about half as high and two phantom GPUs per node. They now use OCI Price List API pricing; the described test reported `node_cpu_hourly_cost` of 0.015, `node_ram_hourly_cost` of 0.002, and `node_gpu_count` of 0.

> * Oracle: add VM.Standard.E6.Flex part numbers (fixes #4130) by @Rolaand in https://github.com/opencost/opencost/pull/4131

### MCP `get_efficiency` usage calculation corrected

- Affects: setups using the MCP `get_efficiency` capability for workload efficiency and recommendations (Inferred)

For over-provisioned workloads, it treated allocated CPU and RAM as usage, reporting about 100% efficiency and recommending `request x 1.2`. It now reports actual efficiency and can recommend downsizes without changing the API shape.

> * fix(mcp): use raw cAdvisor usage for efficiency, not max(usage, request) by @saiprasadpotdar in https://github.com/opencost/opencost/pull/4160

### Oracle OKE preemptible node prices halved

- Affects: Oracle OKE nodes labelled `oci.oraclecloud.com/oke-is-preemptible=true`

These nodes were detected as preemptible but were previously priced at on-demand rates.

> * fix(oracle): price preemptible nodes, AmpereOne OCPUs and block volume performance by @kustov-vitalik in https://github.com/opencost/opencost/pull/4117

### Oracle OKE A2/A4 pricing corrected

- Affects: Oracle OKE A2/A4 nodes, including `VM.Standard.A4.Flex`

A2/A4 vCPUs were priced at a whole OCPU, twice their rate, while `VM.Standard.A4.Flex` fell back to default pricing because it was missing from the shape table. After the fix, A2/A4 vCPU costs are halved and `VM.Standard.A4.Flex` is priced from its own parts.

> * fix(oracle): price preemptible nodes, AmpereOne OCPUs and block volume performance by @kustov-vitalik in https://github.com/opencost/opencost/pull/4117

### Oracle block volume PV pricing now includes performance units

- Affects: Oracle OKE block volume PVs with storage classes that set `vpusPerGB`

Previously, PV pricing counted only `Block Volume - Storage`, underpricing Balanced PVs by 40% and Higher Performance PVs by 57%. In the Balanced example, the price rises from 0.0255 to 0.0425 per GB-month.

> * fix(oracle): price preemptible nodes, AmpereOne OCPUs and block volume performance by @kustov-vitalik in https://github.com/opencost/opencost/pull/4117

### Oracle rate card refreshes every 24 hours

- Affects: Oracle provider setups with a pod using the Oracle rate card (Inferred)

When the Oracle price list changed while a pod was running, it kept using the startup rate card until restart. If a refresh fails, the current rate card is retained and pricing continues while the system retries an hour later.

> * fix(oracle): price preemptible nodes, AmpereOne OCPUs and block volume performance by @kustov-vitalik in https://github.com/opencost/opencost/pull/4117

### Oracle PV and preemptible price precision fixed

- Affects: Oracle setups reporting PV or preemptible prices

When small GB-hour prices were formatted with `%f` to six decimals, they could be rounded; a Lower Cost volume example was off by 0.8%. PV and preemptible prices now retain full precision.

> * fix(oracle): price preemptible nodes, AmpereOne OCPUs and block volume performance by @kustov-vitalik in https://github.com/opencost/opencost/pull/4117

### [Silent failure] Prometheus GPU allocations scaled to replica shares

- Affects: Prometheus data source setups using `container_gpu_allocation` on time-sliced/MPS or AWS vGPU nodes with GPU replicas

Previously, each pod requesting one of four GPU replicas could receive an allocation of 1, causing four pods to be charged for four times the node's GPU. Allocations and per-container GPU costs now reflect each request's share of the physical GPU, such as 0.25 for one of four replicas.

> * fix(metrics): scale container_gpu_allocation on time-sliced and vGPU nodes by @lbarrosby in https://github.com/opencost/opencost/pull/4173

### Metric label-value hash collisions fixed

- Affects: metric collection (Inferred)

Distinct label-value tuples such as `["ab", "c"]` and `["a","bc"]` previously hashed identically.

> * Optimize memory usage & allocation by pre-sizing buffers, re-using metadata, and reducing redundant allocations by @vibbix in https://github.com/opencost/opencost/pull/4081

### [Silent failure] Azure persistent-volume SKU detection fixed

- Affects: Azure persistent volumes using storage classes, including those with `disk.csi.azure.com` or `file.csi.azure.com` CSI drivers

When storage-class SKU keys used `skuName` or `skuname`, detection could fail and fall back to Azure Files mode, producing incorrect prices and `pv_hourly_cost` values. Detection now checks `skuName` then `skuname` for `file.csi.azure.com`, and `storageaccounttype`, then `skuname`, then `skuName` for `disk.csi.azure.com`; unknown or absent drivers retain legacy detection.

> * [azure] fix storageclass skuname detection by @mblaschke in https://github.com/opencost/opencost/pull/4210

### Collector StatefulSet match-labels query retains namespace and name

- Affects: Setups with the Collector data source enabled

When the StatefulSet match-labels collector returned only the UID, pod attribution to the StatefulSet was unavailable. After the fix, attribution works again, including for replayed Collector updates that already contain the namespace and name labels.

> * fix(collector): preserve StatefulSet identity in selector queries by @git-jxj in https://github.com/opencost/opencost/pull/4209

### Window `w` offsets now use one-week units

- Affects: Allocation or assets API requests with `w` window offsets

Previously, each `w` shifted results back 24 weeks, so `7d offset 1w` returned data from 24 weeks ago instead of one week ago. Such a request now returns the window from one week back; offsets using `m`, `h`, or `d`, and windows without offsets, are unchanged.

> * fix(window): use one week as the unit for "w" in a window offset by @BahaaMattar in https://github.com/opencost/opencost/pull/4219

### CSV pricing now averages class prices for missing nodes

- Affects: CSV pricing with `USE_CSV_PROVIDER`, multiple `node` rows for the same region and instance type, and class-based pricing for missing nodes

Previously, missing nodes were priced at the first listed node’s price, and the class count could become a meaningless fraction. The average applies to missing nodes in multi-row classes; CSV-listed nodes and single-row classes remain unchanged.

> * fix(csv): store the running average in the class price map by @BahaaMattar in https://github.com/opencost/opencost/pull/4217

### Legacy GCP config now honors partition-time exclusion

- Affects: legacy GCP configuration (`cloud-integration.json` with `gcp: [...]`) with `excludePartitionTime: true`

For BigQuery views, the setting was previously dropped, so cloud cost and CUD queries still included `_PARTITIONTIME` and failed with `Unrecognized name: _PARTITIONTIME`. Those queries now omit the `_PARTITIONTIME` predicate when the setting is true.

> * fix(gcp): keep excludePartitionTime from the legacy BigQuery config by @PhuocOng in https://github.com/opencost/opencost/pull/4190

### IPv6 direct kubelet URLs formatted correctly

- Affects: direct kubelet collection on IPv6 nodes (Inferred)

When direct stats collection used an IPv6 node’s `InternalIP`, the unbracketed URL could not be parsed, so collection failed; clusters without `nodes/proxy` collected no usage data. IPv6 direct collection now works and collects node and container usage, even without `nodes/proxy`.

> * fix(nodestats): bracket IPv6 node address in direct kubelet URL by @tritruong in https://github.com/opencost/opencost/pull/4187

### AWS pricing handles missing `OnDemand` terms without crashing

- Affects: AWS price-list products without an `OnDemand` term

Previously, a missing term—including when a price-list download was cut short—caused a nil-pointer panic and process restart. Now preemptible nodes use the existing Spot feed, Spot price history, then default Spot prices; on-demand nodes return the existing pricing error, while products with the term are priced as before.

> * fix(aws): handle price list products without an OnDemand term in createNode by @tritruong in https://github.com/opencost/opencost/pull/4189

### Custom-label asset keys preserved during accumulation

- Affects: asset sets or ranges aggregated with custom external label configurations

Previously, reinserting groups built with custom external labels recomputed their keys using default label names, so they could collapse to `__unallocated__` and become unfindable through lookups using the same configuration. Custom-label groups no longer collapse this way; behavior with the default label configuration is unchanged.

> * Keep asset keys when accumulating a range by @kevinguy-ibm in https://github.com/opencost/opencost/pull/4097

### Athena results-page errors no longer hang queries

- Affects: Athena queries in the CloudCost ingestor or AWS provider savings plan, RI, and column lookups

When an Athena `GetQueryResults` call failed and the SDK paginator did not advance, the loops kept requesting the same page and could hang indefinitely. They now return the error instead.

> * Return Athena results page errors instead of retrying forever by @vibbix in https://github.com/opencost/opencost/pull/4204

### Container metrics without node names no longer fail cost-data computation

- Affects: container metric processing in the cost model

When a container metric series had neither a `node` nor an `instance` label, `ComputeCostData` returned nothing and `/costDataModel` failed for the whole window. Such metrics are now retained when they have no node name, while malformed node names are still rejected.

> * fix(costmodel): keep a container metric whose node name is absent by @arpitjain099 in https://github.com/opencost/opencost/pull/4226

## Dependency updates (1)

### Indirect `github.com/golang-jwt/jwt/v4` dependency updated to v4.5.2

- [CVE-2025-30204](https://www.cve.org/CVERecord?id=CVE-2025-30204)

> * Bump golang-jwt/jwt/v4 to v4.5.2 for CVE-2025-30204 by @ahauserv in https://github.com/opencost/opencost/pull/4128

## Other changes (6)

- README setup instructions and Helm chart repository name corrected
- STACKIT PIM API URL updated
- Community meeting and Mimir query-frontend documentation links fixed
- Warning added for missing Oracle shapes
- GPU cost model and allocation tests added
- Reduced memory and allocations in file reading, aggregation, and metric collection

---

Summaries are produced by AI, so they can be wrong, and they are provided without warranty.
