Skip to:
Steps to reproduce:
Install PSMDB operator 1.15
Create a PSMDB with say 25G (note: specify storage as G)
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.
resize volumes if needed: requested storage (25G) is less than actual storage (24Gi)
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
Gi
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
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