volume resizer complains when storage size is requested as `G`

Description

Steps to reproduce:

  • Install PSMDB operator 1.15

  • Create a PSMDB with say 25G (note: specify storage as G)

  • Upgrade operator to 1.16

  • operator complains: resize volumes if needed: requested storage (25G) is less than actual storage (24Gi), even though nothing was changed.

The problem is that the storage provisioner reports back the size as Gi, and that triggers this condition: https://github.com/percona/percona-server-mongodb-operator/blob/v1.16.0/pkg/controller/perconaservermongodb/volumes.go#L157

Environment

None

Activity

Mayank Shah July 10, 2024 at 12:08 PM

PXC operator has some additional code that prevents this from happening: https://github.com/percona/percona-xtradb-cluster-operator/blob/main/pkg/controller/pxc/volumes.go#L124-L129

Done

Details

Assignee

Reporter

Needs QA

Yes

Fix versions

Affects versions

Priority

Smart Checklist

Created July 10, 2024 at 11:28 AM
Updated October 4, 2024 at 8:28 AM
Resolved July 19, 2024 at 11:46 AM

Flag notifications