Skip to content

storageusagedisablethreshold flag reported incorrectly by listStoragePoolsMetrics command #11364

@eduardovra

Description

@eduardovra

problem

This makes the storage pool reach the disable threshold before the notification threshold.

In the sources:

metricsResponse.setStorageAllocatedDisableThreshold(poolResponse.getDiskSizeTotal(), poolResponse.getDiskSizeUsed(), poolResponse.getOverProvisionFactor(), storageDisableThreshold);

Should be:

metricsResponse.setStorageAllocatedDisableThreshold(poolResponse.getDiskSizeTotal(), poolResponse.getDiskSizeAllocated(), poolResponse.getOverProvisionFactor(), storageDisableThreshold);

Reference:

https://github.com/apache/cloudstack/blob/main/plugins/metrics/src/main/java/org/apache/cloudstack/metrics/MetricsServiceImpl.java#L647

versions

CloudStack 4.20.1.0

The steps to reproduce the bug

  1. Open the UI
  2. Go to the primary storage section

What to do about it?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions