charts icon indicating copy to clipboard operation
charts copied to clipboard

Minio incorrect totalDrives validator

Open R-omk opened this issue 2 years ago • 2 comments

Name and Version

bitnami/minio 11.7.10

What steps will reproduce the bug?

Specify the number of replicas not a multiple of 4 and greater than 4 when installing in distributed mode.

Are you using any custom parameters or values?

mode: distributed
statefulset:
  replicaCount: 6
  zones: 1
  drivesPerNode: 1

What is the expected behavior?

The minio cluster will start without problems with size of erasure set is 3. (See how it is calculated from the links in the additional information sections.)

Or the size of erasure set could be 2 if I specify it explicitly

  extraEnvVars:
    - name: MINIO_STORAGE_CLASS_STANDARD
      value: 'EC:2'

What do you see instead?

Validation error which contains text accessible by link: https://github.com/bitnami/charts/blame/fc8ecc/bitnami/minio/templates/_helpers.tpl#L211

Additional information

https://docs.min.io/minio/baremetal/concepts/erasure-coding.html https://min.io/product/erasure-code-calculator?ref=docs

R-omk avatar Jul 15 '22 13:07 R-omk

Hi @R-omk

Thanks for reporting it.

Would you like to contribute by sending a PR to properly handle it?

Regards

dgomezleon avatar Jul 18 '22 13:07 dgomezleon

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Aug 03 '22 01:08 github-actions[bot]

We inform you that the validation of the value of totalDrives has been modified correctly for MinIO and now we check if the value is greater than four but may not be a multiple of four.

Thank you very much for the contribution!

corico44 avatar Aug 17 '22 16:08 corico44