RATATOSK
← All releases

OpenCostv1.121.5

Security 1Important fixes 19Dependency updates 1Other changes 6

Get OpenCost alerts

Email is sent weekly only when there are changes to check; critical security advisories are sent immediately.

Security1

Zero and negative step values rejected by allocation endpoints

Affectsthe /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.

Show release-note lines
* fix(costmodel): reject a zero or negative step in the allocation API by @BahaaMattar in https://github.com/opencost/opencost/pull/4225
github.com/opencost/opencost/releases/tag/v1.121.5

Important fixes19Silent failure2

  • OCI pricing fixed for VM.Standard.E6.Flex nodes
    AffectsOKE 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • MCP get_efficiency usage calculation corrected
    Affectssetups 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Oracle OKE preemptible node prices halved
    AffectsOracle 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Oracle OKE A2/A4 pricing corrected
    AffectsOracle 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Oracle block volume PV pricing now includes performance units
    AffectsOracle 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Oracle rate card refreshes every 24 hours
    AffectsOracle 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Oracle PV and preemptible price precision fixed
    AffectsOracle 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Prometheus GPU allocations scaled to replica sharesSilent failure
    AffectsPrometheus 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Metric label-value hash collisions fixed
    Affectsmetric 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Azure persistent-volume SKU detection fixedSilent failure
    AffectsAzure 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Collector StatefulSet match-labels query retains namespace and name
    AffectsSetups 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Window w offsets now use one-week units
    AffectsAllocation 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • CSV pricing now averages class prices for missing nodes
    AffectsCSV 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Legacy GCP config now honors partition-time exclusion
    Affectslegacy 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • IPv6 direct kubelet URLs formatted correctly
    Affectsdirect 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • AWS pricing handles missing OnDemand terms without crashing
    AffectsAWS 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Custom-label asset keys preserved during accumulation
    Affectsasset 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Athena results-page errors no longer hang queries
    AffectsAthena 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
    github.com/opencost/opencost/releases/tag/v1.121.5
  • Container metrics without node names no longer fail cost-data computation
    Affectscontainer 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
    github.com/opencost/opencost/releases/tag/v1.121.5

Dependency updates1

Other changes6

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