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 Mon April 25, 2022 09:43 AM
    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 Fri May 06, 2022 02:25 AM
    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 Mon April 25, 2022 09:44 AM
    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 Wed April 27, 2022 09:04 AM
    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 Wed April 27, 2022 01:33 PM

    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 Wed April 27, 2022 01:35 PM

    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 Wed April 27, 2022 02:16 PM

    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 Wed April 27, 2022 02:24 PM

    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 Wed April 27, 2022 05:18 PM

    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 Thu April 28, 2022 02:56 PM
    Hallo Lisa,
    thanks for the info.
    the POD ibmsppc-operator-controller-manager   is not running in the namespace baas

    OK, so i will look once more to the detailed  prereqs  and steps as you suggest. This i will do beginning of next week.

    General question:   the  overview of the general overall steps /  activities  which I previously mentioned  - are they generally per se correct  or am i missing A STEP  in principle?       


    just for your info i've attached a view of all my PODs & NS  in my K8s cluster:

    Lisa, thanks again..
    +++  POD view +++


    Namespaces:


    +++++ end +++

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



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

    Posted Thu April 28, 2022 03:22 PM
    Hello!
    Yes, the steps look generally correct. I would install Velero though. It is rare for people to never want to back up resources. The installation *should* proceed without it.

    Usually this type of issue is the secrets not being in the correct place or not working correctly. I would go over that portion carefully and ensure they are all correct and in all the correct namespaces.
    https://www.ibm.com/docs/en/spp/10.1.10?topic=cluster-preparing-install-operator-kubernetes

    Lisa

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



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

    Posted Sat April 30, 2022 04:18 PM

    Hallo Lisa,

    I tested the whole setup from scratch again now – and unfortunately again with the same result as during the last times

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

     

    • The POD ibmsppc-operator-controller-manager-xyz… is still not installed
    • And as you indicated: besides the other installation- / definition-steps, I checked especially the secrets and just to be sure, I added the according values manually - but this did not help either..

    "......I nearly know "by heart"  now  the Chapter 6 from the 10.1.10 UG......"

    May be for the future, one of the UG authors can add also a working example  for an online environment installation.

     

    So finally……it's a pity, but unfortunately I don't have any more time to investigate & do further testing -  my other projects need my time now.


    So let me say thank you (also to Kevin) again for your quick reaction & tips in the meantime.

    "Hope is the last to die!"

    Rgds Michael



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