operator icon indicating copy to clipboard operation
operator copied to clipboard

No buckets or users provisioned

Open laurivosandi opened this issue 4 years ago • 12 comments

Expected Behavior

Buckets and users are created as per Tenant CRD:

Current Behavior

No bucket is created, oddly enough in the logs it says

I0729 08:13:30.493752       1 helper.go:825] Successfully created bucket application

The Tenant CRD status ends up in the Initialized state and the state fields are set:

  provisionedBuckets: true
  provisionedUsers: true

However opening up the console does not show application bucket or the user minio-user-0.

Steps to Reproduce (for bugs)

Followed the Minio operator installation steps, everything else seems to work.

Context

I want to deploy my application without having to manually create the bucket.

Note that CRD could also allow specifying quota and TTL settings for the bucket

Your Environment

  • Version used (minio-operator): v4.4.27
  • Environment name and version (e.g. kubernetes v1.17.2): Vanilla kubeadm deployment, v1.23.5
  • Server type and version: Ubuntu 20.04
  • Operating System and version (uname -a): Linux storage3 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Link to your deployment file:
apiVersion: minio.min.io/v2
kind: Tenant
metadata:
  name: minio
spec:
  credsSecret:
    name: minio-secret
  buckets:
    - name: application
  requestAutoCert: false        
  users:
    - name: minio-user-0
  pools:
    - name: pool-0
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchExpressions:
                  - key: v1.min.io/tenant
                    operator: In
                    values:
                      - minio
                  - key: v1.min.io/pool
                    operator: In
                    values:
                      - pool-0
              topologyKey: kubernetes.io/hostname
      servers: 3
      volumesPerServer: 2

laurivosandi avatar Jul 29 '22 08:07 laurivosandi

Hi, I am having a similar issue. I am trying to create a bucket but it is not being created. Any updates on this?

faizanahmad055 avatar Aug 22 '22 21:08 faizanahmad055

Same for me... (setting up bucket in tenant CRD)

Minio operator logs say the bucket is created

1 helper.go:802] Successfully created bucket <name>

- but it doesn't exist.

Using minio client shows no buckets

# mc --insecure ls myminio | wc -l
0

Checking the fs shows no file representing the bucket

bash-4.4$ ls -lrta /export0/     
total 28
drwxrws--- 2 root 1000 16384 Sep 15 14:23 lost+found
drwxr-xr-x 1 root root  4096 Sep 15 14:23 ..
drwxr-sr-x 3 1000 1000  4096 Sep 15 14:23 data
drwxrwsr-x 4 root 1000  4096 Sep 15 14:23 .

bash-4.4$ ls -lrta /export0/data/
total 12
drwxrwsr-x 4 root 1000 4096 Sep 15 14:23 ..
drwxr-sr-x 3 1000 1000 4096 Sep 15 14:23 .
drwxr-sr-x 9 1000 1000 4096 Sep 15 14:23 .minio.sys

t80027t avatar Sep 15 '22 15:09 t80027t

I just upgraded the operator to 4.5.0 and it is working now

i can see the bucket on disk in the pool containers and via mc (minio client)

t80027t avatar Sep 15 '22 16:09 t80027t

Same for me... (setting up bucket in tenant CRD)

Minio operator logs say the bucket is created

1 helper.go:802] Successfully created bucket <name>
  • but it doesn't exist.

Using minio client shows no buckets

# mc --insecure ls myminio | wc -l
0

Checking the fs shows no file representing the bucket

bash-4.4$ ls -lrta /export0/     
total 28
drwxrws--- 2 root 1000 16384 Sep 15 14:23 lost+found
drwxr-xr-x 1 root root  4096 Sep 15 14:23 ..
drwxr-sr-x 3 1000 1000  4096 Sep 15 14:23 data
drwxrwsr-x 4 root 1000  4096 Sep 15 14:23 .

bash-4.4$ ls -lrta /export0/data/
total 12
drwxrwsr-x 4 root 1000 4096 Sep 15 14:23 ..
drwxr-sr-x 3 1000 1000 4096 Sep 15 14:23 .
drwxr-sr-x 9 1000 1000 4096 Sep 15 14:23 .minio.sys

We have the same issue. Using operator chart v4.5.2

Intellium avatar Oct 04 '22 09:10 Intellium

Im having the same issue also, after adding bucket and user to provision in Helm Chart. The expected bucket and user are not created when deployed.

Rezkmike avatar Oct 27 '22 01:10 Rezkmike

I really think this should evolve into separate component that purely deals with managing buckets and that one could also work with Minio that is deployed outside Kubernetes...

laurivosandi avatar Oct 27 '22 02:10 laurivosandi

The initial creation of buckets and users works for me, but users/buckets added later on are not created. Is this not meant to be supported or am I missing something?

john-funk avatar Nov 21 '22 14:11 john-funk

Any update on this? Anyone has found the solution or fixed this problem?

Rezkmike avatar Dec 14 '22 01:12 Rezkmike

I am removing now the whole operator from our OCP... and opt in to bitnami chart minio.. Thanks all! Operator is a cool thing.. but app lifecycle is more important.

abdennour avatar Dec 21 '22 21:12 abdennour

Issue is intermittent but remains in operator version 4.5.5 when provisioning initially.

rwatler avatar Jan 05 '23 06:01 rwatler

I was also having this issue for buckets specifically, and this was in my logs:

Defaulted container "minio" out of: minio, sidecar, validate-arguments (init)
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.573507931Z","message":"Formatting 1st pool, 1 set(s), 1 drives per set."}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.573602916Z","message":"WARNING: Host local has more than 0 drives of set. A host failure will result in data becoming unavailable."}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.587906375Z","message":"MinIO Object Storage Server"}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.58793487Z","message":"Copyright: 2015-2023 MinIO, Inc.\nLicense: GNU AGPLv3 \u003chttps://www.gnu.org/licenses/agpl-3.0.html\u003e\nVersion: RELEASE.2023-10-07T15-07-38Z (go1.21.1 linux/amd64)\n"}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.588000172Z","message":"Status:         1 Online, 0 Offline. "}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.588009671Z","message":"S3-API: https://nextcloud-minio.meep.online "}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.588326681Z","message":"Console: http://10.42.0.149:9090 http://127.0.0.1:9090   "}
{"level":"INFO","errKind":"","time":"2023-11-03T20:39:34.588338554Z","message":"\nDocumentation: https://min.io/docs/minio/linux/index.html"}
{"level":"ERROR","errKind":"","time":"2023-11-03T20:39:34.588346865Z","message":"Warning: The standard parity is set to 0. This can lead to data loss.","error":{"message":"Warning: The standard parity is set to 0. This can lead to data loss.","source":[""]}}
{"deploymentid":"125abcf9-c8b6-41d6-b790-1f0fa66b6062","level":"ERROR","errKind":"ALL","time":"2023-11-03T21:52:16.311140356Z","api":{"name":"SYSTEM","args":{"bucket":"5e76d207cf4ab20866fdc03c83e8a0f4e8f458e880777956ec0bae4e9f23f6c5","object":"5e76d207cf4ab20866fdc03c83e8a0f4e8f458e880777956ec0bae4e9f23f6c5"}},"remotehost":"5e76d207cf4ab20866fdc03c83e8a0f4e8f458e880777956ec0bae4e9f23f6c5","error":{"message":"*errors.errorString","source":["internal/logger/logger.go:258:logger.LogIf()","cmd/auth-handler.go:129:cmd.getRequestAuthType()","cmd/auth-handler.go:603:cmd.setAuthMiddleware.func1()","net/http/server.go:2136:http.HandlerFunc.ServeHTTP()"]}}
{"deploymentid":"125abcf9-c8b6-41d6-b790-1f0fa66b6062","level":"ERROR","errKind":"ALL","time":"2023-11-03T22:18:59.161402352Z","api":{"name":"SYSTEM","args":{"bucket":"5e76d207cf4ab20866fdc03c83e8a0f4e8f458e880777956ec0bae4e9f23f6c5","object":"5e76d207cf4ab20866fdc03c83e8a0f4e8f458e880777956ec0bae4e9f23f6c5"}},"remotehost":"5e76d207cf4ab20866fdc03c83e8a0f4e8f458e880777956ec0bae4e9f23f6c5","error":{"message":"*errors.errorString","source":["internal/logger/logger.go:258:logger.LogIf()","cmd/auth-handler.go:129:cmd.getRequestAuthType()","cmd/auth-handler.go:603:cmd.setAuthMiddleware.func1()","net/http/server.go:2136:http.HandlerFunc.ServeHTTP()"]}}

I truncated the rest because it's just that last error over and over again for like two days. When I looked in the admin console the tenant state showed as "provisioning buckets".

I don't really know if this is what fixed it, but for me, it went away when I updated the buckets object list to include objectLock: false.

buckets:
  - name: nextcloud
    objectLock: false

jessebot avatar Nov 06 '23 14:11 jessebot

Here we have optimised it and will keep repeating the attempt to create it. If you find this issue again on 5.0.10+, please open a new issue.

jiuker avatar Nov 14 '23 03:11 jiuker