You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After deploying a new tenant (named test in this case) using MinIO Operator (Web Console).
MinIO Operator created a test-log (StatefulSet) object that instruct the cluster to create a PostgreSQL test-log-0 (Pod) with test-log-test-log-0 (PersistentVolumeClaim).
Current Behavior
The problem is in the statefulset.apps/test-log StatefulSet, the value of spec.volumeClaimTemplates.spec.resources.requests.storage is 5 instead of 5Gi so the cluster allocated a very small 1 Mi volume instead of expected 5 Gi volume.
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS
pvc-09f245b1-fcc3-44ef-8c46-e9f802fd90b6 1Mi RWO Delete Bound
Logs from test-log-0 Pod
...
selecting default time zone ... Etc/UTC
creating configuration files ... ok
2021-08-12 21:45:25.601 UTC [38] FATAL: could not write to file "pg_wal/xlogtemp.38": No space left on device
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/postgresql/data"
...
Check for <TENANT-NAME>-log StatefulSet for spec.volumeClaimTemplates.spec.resources.requests.storage
Context
Regression
No
Your Environment
Version used (minio-operator): v4.1.3
Environment name and version (e.g. kubernetes v1.17.2): kubernetes v1.21.3
Server type and version:
Operating System and version (uname -a): Debian 10 buster | 4.19.0-17-amd64 Add Minio operator #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 GNU/Linux
Link to your deployment file:
The text was updated successfully, but these errors were encountered:
rtsp
changed the title
Incorrect PersistentVolumeClaim resources.requests.storage unit in MinIO Log (Postgres) StatefulSets
Incorrect PersistentVolumeClaim resources.requests.storage unit in MinIO Log (Postgres) StatefulSet
Aug 12, 2021
Expected Behavior
After deploying a new tenant (named
test
in this case) using MinIO Operator (Web Console).MinIO Operator created a
test-log
(StatefulSet) object that instruct the cluster to create a PostgreSQLtest-log-0
(Pod) withtest-log-test-log-0
(PersistentVolumeClaim).Current Behavior
The problem is in the
statefulset.apps/test-log
StatefulSet, the value ofspec.volumeClaimTemplates.spec.resources.requests.storage
is5
instead of5Gi
so the cluster allocated a very small 1 Mi volume instead of expected 5 Gi volume.Bound PV
Logs from
test-log-0
PodPossible Solution
I'm not sure but the source of this problem may be around this line https://github.com/minio/operator/blob/master/pkg/resources/statefulsets/log.go#L150
Steps to Reproduce (for bugs)
<TENANT-NAME>-log
StatefulSet forspec.volumeClaimTemplates.spec.resources.requests.storage
Context
Regression
No
Your Environment
minio-operator
): v4.1.3uname -a
): Debian 10 buster | 4.19.0-17-amd64 Add Minio operator #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: