Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bucketclass set in yaml file doesn't take effect while create obc using kubectl create #1500

Open
lzw06061139 opened this issue Jan 3, 2025 · 0 comments

Comments

@lzw06061139
Copy link

Environment info

  • NooBaa Operator Version: 5.17.1
  • Platform: minikube 1.34.0

Actual behavior

  1. create obc with yaml, bucketclass set in yaml file doesn't take effect. the result of "noobaa obc list" shows that the default bucket class "noobaa-default-bucket-class" is set.
    % sudo noobaa obc list
    NAMESPACE NAME BUCKET-NAME STORAGE-CLASS BUCKET-CLASS PHASE
    noobaa llm-multi-store-obc llm-multi-store noobaa.noobaa.io noobaa-default-bucket-class Bound

But, "kubectl describe -n noobaa objectbucketclaim llm-multi-store-obc" shows the bucketclass set success.
Name: llm-multi-store-obc
Namespace: noobaa
Labels: app=noobaa
bucket-provisioner=noobaa.noobaa.io-obc
noobaa-domain=noobaa.noobaa.io
Annotations:
API Version: objectbucket.io/v1alpha1
Kind: ObjectBucketClaim
Metadata:
Creation Timestamp: 2025-01-03T06:33:29Z
Finalizers:
objectbucket.io/finalizer
Generation: 2
Resource Version: 782679
UID: 4e512325-01be-4ca8-87e8-f1913a3c5757
Spec:
Additional Config:
Bucketclass: llm-multi-bucket-class
Bucket Name: llm-multi-store
Generate Bucket Name: llm-multi-store
Object Bucket Name: obc-noobaa-llm-multi-store-obc
Storage Class Name: noobaa.noobaa.io
Status:
Phase: Bound
Events:

Expected behavior

  1. the bucketclass set in yaml files takes effect

Steps to reproduce

  1. create two namespace stores
    % sudo noobaa namespacestore create s3-compatible llm-store2-ns --endpoint={endpoint} --target-bucket=llm-store2 --signature-version=v2
    % sudo noobaa namespacestore create s3-compatible llm-store-ns --endpoint={endpoint} --target-bucket=llm-store --signature-version=v2
  2. create a "multi" type bucket class
    % sudo noobaa bucketclass create namespace-bucketclass multi llm-multi-bucket-class --write-resource=llm-store2-ns --read-resources=llm-store-ns
  3. create obc with yaml
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
  name: llm-multi-store-obc
  namespace: noobaa
spec:
  additionalConfig:
    Bucketclass: llm-multi-bucket-class
  generateBucketName: llm-multi-store
  bucketName: llm-multi-store
  storageClassName: noobaa.noobaa.io

% sudo kubectl create -f obc.yaml

More information - Screenshots / Logs / Other output

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant