Red Hat Cost Management metering operator is failing with the error "Forbidden: field can not be less than previous value"
Issue
- Red Hat Cost Management is not showing cluster information.
- Cost management metering operator
meteringconfigis failing with the below error:
# oc -n openshift-metering get meteringconfig operator-metering -o json | jq '.status'
{
"conditions": [
{
"lastTransitionTime": "2021-01-12T20:02:21.391064Z",
"message": "Reconciling Hive resources",
"status": "True",
"type": "Running"
},
{
"lastTransitionTime": "2021-01-12T20:02:37.918807Z",
"message": "\"Failed to patch object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"PersistentVolumeClaim \\\"PVC-name\\\" is invalid: spec.resources.requests.storage: Forbidden: field can not be less than previous value\",\"reason\":\"Invalid\",\"details\":{\"name\":\"PVC-name\",\"kind\":\"PersistentVolumeClaim\",\"causes\":[{\"reason\":\"FieldValueForbidden\",\"message\":\"Forbidden: field can not be less than previous value\",\"field\":\"spec.resources.requests.storage\"}]},\"code\":422}\n\"\n",
"status": "True",
"type": "Invalid"
}
]
}
Environment
- Red Hat Cost Management
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.