essie-chiang / blog-incubator

0 stars 0 forks source link

喂喂喂,MCG,你到底是神马东东呀? #25

Open essie-chiang opened 1 year ago

essie-chiang commented 1 year ago

美好的一天结束开始于丞相看到文档中的“best practice”: If the backing store that was created during the Multicloud Object Gateway installation uses pv-pool, create a backing store on enterprise-grade S3 compatible storage or create a backing store for each service that you plan to install.

虽然我连 pv-poo 是神马都不清楚,但是可想而知,唯一能确定的就是我需要在还没有准备好的时候就要开始学习odf了。主打的就是一个措手不及,打毫无准备之战。

Ref: https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.10/html/managing_hybrid_and_multicloud_resources/adding-storage-resources-for-hybrid-or-multicloud_rhodf#creating-an-s3-compatible-Multicloud-Object-Gateway-backingstore_rhodf

https://www.ibm.com/docs/en/cloud-paks/cp-data/4.7.x?topic=cluster-installing-multicloud-object-gateway

essie-chiang commented 1 year ago

MCG:ODF 这样介绍 The Multicloud Object Gateway (MCG) is a lightweight object storage service for OpenShift, allowing users to start small and then scale as needed on-premise, in multiple clusters, and with cloud-native storage.

essie-chiang commented 1 year ago

RGW ceph 的这么用的

essie-chiang commented 1 year ago

PVPool is a Kubernetes controller that makes preconfigured persistent volumes available for immediate consumption https://github.com/puppetlabs/pvpool 这个项目2022 Mar 9 就archive了,目前是readonly,不活跃了吗,还是成为基础架构了呢?

essie-chiang commented 1 year ago

Fusion doc 有如何创建 OBC,提到了两种mode,但是又没有提区别是什么 https://www.ibm.com/docs/en/storage-fusion/2.6?topic=obc-creating-object-bucket-claim-using-openshift-web-console

IBM storage Ceph https://www.ibm.com/docs/en/storage-ceph/5?topic=gateway-ceph-object image

有图没有有真相哦

essie-chiang commented 1 year ago

自己弄了一个带odf 的环境试了试,默认的确是带有s3 compatible MCG backingstore,名字是 noobaa-default-backing-store,居然有endpoint和bucket,然而查了一下这个 nb. 开头的bucket 并不存在,这个莫非是个placeholder???

apiVersion: v1
items:
- apiVersion: noobaa.io/v1alpha1
  kind: BackingStore
  metadata:
    annotations:
      rgw: ""
    creationTimestamp: "2023-09-11T02:37:29Z"
    finalizers:
    - noobaa.io/finalizer
    labels:
      app: noobaa
    name: noobaa-default-backing-store
    namespace: openshift-storage
    ownerReferences:
    - apiVersion: noobaa.io/v1alpha1
      blockOwnerDeletion: true
      controller: true
      kind: NooBaa
      name: noobaa
  spec:
    s3Compatible:
      endpoint: https://rook-ceph-rgw-ocs-storagecluster-cephobjectstore.openshift-storage.svc:443
      secret:
        name: rook-ceph-object-user-ocs-storagecluster-cephobjectstore-noobaa-ceph-objectstore-user
        namespace: openshift-storage
      targetBucket: nb.1694399849244.apps.example.cloud.test.github.com
    type: s3-compatible
  status:
    conditions:
    - lastHeartbeatTime: "2023-09-11T02:37:30Z"
      lastTransitionTime: "2023-09-11T03:32:27Z"
      message: BackingStorePhaseReady
      reason: 'Backing store mode: OPTIMAL'
      status: "True"
      type: Available
    - lastHeartbeatTime: "2023-09-11T02:37:30Z"
      lastTransitionTime: "2023-09-11T03:32:27Z"
      message: BackingStorePhaseReady
      reason: 'Backing store mode: OPTIMAL'
      status: "False"
      type: Progressing
    - lastHeartbeatTime: "2023-09-11T02:37:30Z"
      lastTransitionTime: "2023-09-11T03:32:27Z"
      message: BackingStorePhaseReady
      reason: 'Backing store mode: OPTIMAL'
      status: "False"
      type: Degraded
    - lastHeartbeatTime: "2023-09-11T02:37:30Z"
      lastTransitionTime: "2023-09-11T03:32:27Z"
      message: BackingStorePhaseReady
      reason: 'Backing store mode: OPTIMAL'
      status: "True"
      type: Upgradeable
    mode:
      modeCode: OPTIMAL
      timeStamp: 2023-09-11 03:32:26.790631602 +0000 UTC m=+824.746061174
    phase: Ready
kind: List
metadata:
  resourceVersion: ""
# noobaa backingstore create pv-pool bksa --num-volumes=8  --pv-size-gb=16 --storage-class=ocs-storagecluster-ceph-rbd

Must run this command in openshift-storage namespace, or it will say no noobaa => 写到此处再次感受到ocp doc 太不友好,居然没有给提示要用哪个namespace

essie-chiang commented 1 year ago

魔幻的一天终于总结差不多了,但是。。。还是满头问号呢。。。 不管怎样,明天把问题上交给丞相,就可以躺平可能学到知识了呢。