Data Protection Software

 View Only
Expand all | Collapse all

Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

  • 1.  Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted Wed March 16, 2022 02:47 PM
    Hi 
    I try to follow the guide for installing Container Backup Support
    But get an error when applying the kubectl apply -f ./baas-values-cr.yaml.
    error: unable to recognize "./baas-values-cr.yaml": no matches for kind "IBMSPPC" in version "sppc.ibm.com/v1"

    Have anyone got this working?

    Installing the Container Backup Support operator and instance at the Kubernetes command line
    Ibm remove preview
    Installing the Container Backup Support operator and instance at the Kubernetes command line
    You can use the command line in the Kubernetes environment to install the Container Backup Support operator and instance from the IBM Entitled Registry.
    View this on Ibm >



    ------------------------------
    Bjorn Wikzell
    ------------------------------


  • 2.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 30 days ago
    Hallo Björn,

    i have the same Problem as you have. 

    reading and checking the installation / customization several times did not help me.....  and the answer from IBM is also not very satisfactory.....

    Did you find the error?

    Thanks in advance  and rgds Michael Malitz from Vienna

    ------------------------------
    Michael Malitz
    Project Manager
    MM IT Consulting GmbH
    Krems
    +43(0)6641415275
    ------------------------------



  • 3.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 19 days ago
    Hi,

    I was following the thread to protect containers using IBM SPP.
    There are other ways to protect container data, that are also agentless, where one uses IBM SP instead of IBM SPP.
    Check out SPFS, where one can mount the IBM Spectrum Protect storage as a mountpoint / filesystem and use that to land the backups

    Within the container:
    # mount -t spfs /backup​
    All file system operations that goes via this mountpoint are translated directly to IBM Spectrum Protect Client API calls, to nothing is cached locally.

    And one can use normal docker commands to save the images etc if needed (externally)

    Just as a tip as an alternative.
    SPFS - a filesystem for Spectrum Protect
    Regards Tomas

    ------------------------------
    Tomas Dalebjörk
    ------------------------------



  • 4.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 30 days ago
    I'm not sure if my last post was saved..

    so:  i have the same error as you had. Did you find the error ?

    thanks in advance and rgds Michael Malitz from Vienna

    ------------------------------
    Michael Malitz
    Project Manager
    MM IT Consulting GmbH
    Krems
    +43(0)6641415275
    ------------------------------



  • 5.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 28 days ago
    Hi Michael,
    Let's take a quick look to see if we can make progress here.

    IBMSPPC is created by the operator.  Can you post the output from the commands in steps 1 & 2?


    ------------------------------
    Kevin Hoyt
    IBM
    San Jose CA
    ------------------------------



  • 6.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 28 days ago

    Hallo Kevin,

    thanks for your quick reaction.  I'm an instructor for TSM and SPP and would like to

    show the K8s provider to my students.

    My K8S installation is a small Test-Installation  (no minikube or so…) 

    Just for completeness I tell you the steps what I have done. I try to install "online"  and not air-gapped.

    My aim was just to install ONLY the absolute necessary components, so that I can register the provider in SPP and show  the install process and 
    "a PVC" .

    So e.g.  currently  no velero, no metrics server  and no  application to volume claim relationship.

    Install steps

    • Certificate manager  - installed successfully
    • Bass-options.sh created:

    export DOCKER_REGISTRY_ADDRESS='cp.icr.io/cp'

    export DOCKER_REGISTRY_USERNAME='cp'

    export DOCKER_REGISTRY_PASSWORD='  the key I copied '

    export DOCKER_REGISTRY_NAMESPACE='sppc'

    export SPP_ADMIN_USERNAME='mm_admin'

    export SPP_ADMIN_PASSWORD='xxxxxxx'

    export DATAMOVER_USERNAME='mm_admin'

    export DATAMOVER_PASSWORD='xxxxxxx'

    export MINIO_USERNAME='mm_admin'

    export MINIO_PASSWORD='xxxxxxx'

    export REDHAT_REGISTRY_ADDRESS='registry.redhat.io'

    export REDHAT_REGISTRY_USERNAME='my userid'

    export REDHAT_REGISTRY_PASSWORD='my_pw'

     

     

    • Access to redhat and ibm registries is OK  and I logged in successfully to both registries
    • Operator Life-cycle Manager  - installed successfully
    • Namespace baas ceated
    • Secrets as on page 140 UG -  created successfully
    • baas-k8s-catalogsource.yaml -  applied successfully
    • baas-k8s-operatorgroup.yaml and baas-k8s-subscription.yaml   - applied successfully

    outputs of  steps  1  and 2  mentioned on page 142  UG 10.1.10:

    kubectl apply -f baas-k8s-catalogsource.yaml

     

     kubectl get catalogsource –A

    kubectl describe catalogsource -n olm ibm-sppc-operator | grep Image


     

     

    • my baas-values-cr.yaml file: (indention in "real" file is correct)

     

    apiVersion: sppc.ibm.com/v1

    #apiVersion: IBMSPPC.V1.sppc.ibm.com

    kind: IBMSPPC

    metadata:

      namespace: baas

    # Malitz 04-2022

      name: ibmsppc-entitled-registry

    spec:

      state: present

      version: 10.1.10

      license:

        accept: true

      # use_nodeport: false

      product_loglevel: INFO

      cluster_name: MM_K8s_Cluster

      image_registry_namespace: sppc

      image_registry: 'cp.icr.io/cp'

      #

      image_registry_secret: baas-registry-secret

      spp_port: 443

      spp_ips: 192.168.1.50

      spp_fqdn: spp.enablement.lab

      networkPolicy:

        cluster_api_serverips:

          - 192.168.1.210

          #- kubernetes_host_ip2

          #- kubernetes_host_ip3

        cluster_api_serverport: 6443

        cluster_cidr: 10.244.0.0/16

        is_server_installed_on_another_cluster: false

        other_cluster_cidr_block: None

        #other_cluster_cidr_block: '24'

      minio_storage_class: None

      #minio_storage_class: name_of_storageclass_to_use_with_minio

      velero_namespace: None

      cluster_nodes_fqdn:

        - mm-k8s-master.enablement.lab

        - mm-k8s-worker-1.enablement.lab

     

    kubectl apply -f ./baas-values-cr.yaml

     

    Result:

     

    [root@mm-k8s-master mikels_yaml_files]# kubectl apply -f ./baas-values-cr.yaml

    error: unable to recognize "./baas-values-cr.yaml": no matches for kind "IBMSPPC" in version "sppc.ibm.com/v1"

     

    "./baas-values-cr.yaml": no matches for kind "IBMSPPC" in version "sppc.ibm.com/v1"

     

    +++++++++++++++  end of   infos ++++++++++++++++

    ------------------------------
    Michael Malitz
    Project Manager
    MM IT Consulting GmbH
    Krems
    +43(0)6641415275
    ------------------------------



  • 7.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 28 days ago

    and the missing output for

    kubectl get catalogsource –A

     


    +++ end +++

    ------------------------------
    Michael Malitz
    Project Manager
    MM IT Consulting GmbH
    Krems
    +43(0)6641415275
    ------------------------------



  • 8.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 28 days ago

    Could you also get the output from this command:

    kubectl get pods -n olm



    ------------------------------
    Kevin Hoyt
    IBM
    San Jose CA
    ------------------------------



  • 9.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 28 days ago

    Her it is..

    ------------------------------
    Michael Malitz
    Project Manager
    MM IT Consulting GmbH
    Krems
    +43(0)6641415275
    ------------------------------



  • 10.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 28 days ago

    The ibmsppc-operator-controller-manager pod is the one that would need to be running in order to recognize the IBMSPPC object. You can check that with 'kubectl get pods -n baas'. If that is running, you can try the logs for it.

    kubectl logs -f ibmsppc-operator-controller-manager-xyz -c manager -n baas

    If it is not running, then go through the prerequisite steps and see if something got missed.

    https://www.ibm.com/docs/en/spp/10.1.10?topic=cluster-preparing-install-operator-kubernetes



    ------------------------------
    Lisa Huston
    ------------------------------



  • 11.  RE: Cant install IBM Spectrum Protect Plus Container Backup Support 10.1.9 and 10.1.10 on K8s

    Posted 27 days ago