Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-1639

Service Broker testing

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • testing
    • None

    Attachments

      Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          prateek.kumar Prateek Kumar (Inactive) added a comment - - edited

          Service Broker steps: 

          Get couchbase-service-broker-kubernetes package from: http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-service-broker/1.0.0/103

          Get latest image of service broker from: https://gitlab.com/cb-vanilla/service-broker/container_registry/1434716

          docker pull registry.gitlab.com/cb-vanilla/service-broker:latest 

          docker tag registry.gitlab.com/cb-vanilla/service-broker:latest couchbase/service-broker:1.0.0 __ 

          Get couchbase-autonomous-operator package from: http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-operator/2.1.0

          docker pull registry.gitlab.com/cb-vanilla/admission-controller:latest

          docker pull registry.gitlab.com/cb-vanilla/operator:latest

          docker tag registry.gitlab.com/cb-vanilla/admission-controller:latest couchbase/admission-controller:2.1.0

          docker tag registry.gitlab.com/cb-vanilla/admission-controller:latest couchbase/operator:2.1.0

          All steps are executed in default namespace.

          cd ~/couchbase-service-broker-kubernetes

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f crd.yaml

          customresourcedefinition.apiextensions.k8s.io/servicebrokerconfigs.servicebroker.couchbase.com created 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f servicebrokerconfig.yaml

          clusterrole.rbac.authorization.k8s.io/couchbase-service-broker created
          servicebrokerconfig.servicebroker.couchbase.com/couchbase-service-broker created

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com

          "svc-cat" has been added to your repositories 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ helm search repo service-catalog

          NAME                	CHART VERSION	APP VERSION	DESCRIPTION                                       
          svc-cat/catalog     	0.3.0        	           	service-catalog webhook server and controller-m...
          svc-cat/catalog-v0.2	0.2.3        	           	service-catalog API server and controller-manag... 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$  helm install catalog svc-cat/catalog

          NAME: catalog
          LAST DEPLOYED: Fri Nov 20 18:13:22 2020
          NAMESPACE: default
          STATUS: deployed
          REVISION: 1
          TEST SUITE: None 

          cd

          cd ~/couchbase-autonomous-operator-kubernetes_2.1.0-macos-x86_64

          Prateeks-MacBook-Pro:couchbase-autonomous-operator-kubernetes_2.1.0-macos-x86_64 prateekkumar$ kubectl create -f crd.yaml

          customresourcedefinition.apiextensions.k8s.io/couchbaseautoscalers.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasebackuprestores.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasebackups.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasebuckets.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaseclusters.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaseephemeralbuckets.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasegroups.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasememcachedbuckets.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasereplications.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaserolebindings.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaseusers.couchbase.com created  

          cd bin

          Prateeks-MacBook-Pro:bin prateekkumar$ ./cbopcfg generate admission | kubectl create -f -

          serviceaccount/couchbase-operator-admission created
          clusterrole.rbac.authorization.k8s.io/couchbase-operator-admission created
          clusterrolebinding.rbac.authorization.k8s.io/couchbase-operator-admission created
          secret/couchbase-operator-admission created
          deployment.apps/couchbase-operator-admission created
          service/couchbase-operator-admission created
          mutatingwebhookconfiguration.admissionregistration.k8s.io/couchbase-operator-admission created
          validatingwebhookconfiguration.admissionregistration.k8s.io/couchbase-operator-admission created 

          Prateeks-MacBook-Pro:bin prateekkumar$ ./cbopcfg generate operator | kubectl create -f - 

          serviceaccount/couchbase-operator created
          role.rbac.authorization.k8s.io/couchbase-operator created
          rolebinding.rbac.authorization.k8s.io/couchbase-operator created
          deployment.apps/couchbase-operator created
          service/couchbase-operator created 

          Prateeks-MacBook-Pro:bin prateekkumar$ kubectl get pods

          NAME                                                 READY   STATUS    RESTARTS   AGE
          catalog-catalog-controller-manager-cdf9c7d79-mvrmz   1/1     Running   0          4m29s
          catalog-catalog-webhook-7d8497cdf6-p2lxz             1/1     Running   0          4m29s
          couchbase-operator-68885987d8-r4dp6                  1/1     Running   0          12s
          couchbase-operator-admission-6755858b46-86r7c        1/1     Running   0          33s 

          cd ../..

          cd ~/couchbase-service-broker-kubernetes

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f broker.yaml

          serviceaccount/couchbase-service-broker created
          clusterrolebinding.rbac.authorization.k8s.io/couchbase-service-broker created
          secret/couchbase-service-broker created
          deployment.apps/couchbase-service-broker created
          service/couchbase-service-broker created 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get deployments

          NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE
          catalog-catalog-controller-manager   1/1     1            1           6m32s
          catalog-catalog-webhook              1/1     1            1           6m32s
          couchbase-operator                   1/1     1            1           2m15s
          couchbase-operator-admission         1/1     1            1           2m36s
          couchbase-service-broker             1/1     1            1           22s 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f clusterservicebroker.yaml

          clusterservicebroker.servicecatalog.k8s.io/couchbase-service-broker created 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get clusterservicebrokers

          NAME                       URL                                            STATUS   AGE
          couchbase-service-broker   https://couchbase-service-broker.default.svc   Ready    10s 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get pods

          NAME                                                 READY   STATUS    RESTARTS   AGE
          catalog-catalog-controller-manager-cdf9c7d79-mvrmz   1/1     Running   0          7m47s
          catalog-catalog-webhook-7d8497cdf6-p2lxz             1/1     Running   0          7m47s
          couchbase-operator-68885987d8-r4dp6                  1/1     Running   0          3m30s
          couchbase-operator-admission-6755858b46-86r7c        1/1     Running   0          3m51s
          couchbase-service-broker-54b4bcff84-bpbwn            1/1     Running   0          97s 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get --help

          List a resource, optionally filtered by name
           
           
          Usage:
            svcat get [command]
           
           
          Available Commands:
            bindings    List bindings, optionally filtered by name or namespace
            brokers     List brokers, optionally filtered by name, scope or namespace
            classes     List classes, optionally filtered by name, scope or namespace
            instances   List instances, optionally filtered by name
            plans       List plans, optionally filtered by name, class, scope or namespace
           
           
          Flags:
            -h, --help   help for get
           
           
          Global Flags:
                --context string      name of the kubeconfig context to use.
                --kubeconfig string   path to kubeconfig file. Overrides $KUBECONFIG
                --logtostderr         log to standard error instead of files (default true)
            -v, --v Level             number for the log level verbosity
           
           
          Use "svcat get [command] --help" for more information about a command. 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get classes

                     NAME             NAMESPACE            BROKER                     DESCRIPTION            
          +-------------------------+-----------+--------------------------+--------------------------------+
            couchbase-shared-bucket               couchbase-service-broker   Couchbase Server instance with 
                                                                             a single shared bucket         

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get brokers

                      NAME             NAMESPACE                       URL                        STATUS 
          +--------------------------+-----------+----------------------------------------------+--------+
            couchbase-service-broker               https://couchbase-service-broker.default.svc   Ready    

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get plans

                          NAME                  NAMESPACE            CLASS                     DESCRIPTION            
          +-----------------------------------+-----------+-------------------------+--------------------------------+
            couchbase-server-with-replication               couchbase-shared-bucket   Basic Couchbase Server          
                                                                                      cluster with uni-directional    
                                                                                      replication                     
            couchbase-server                                couchbase-shared-bucket   Basic Couchbase Server cluster  

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat provision administrator --class couchbase-shared-bucket --plan couchbase-server --param password=password --wait

          Waiting for the instance to be provisioned...
            Name:           administrator                                                                      
            Namespace:      default                                                                            
            Status:         Ready - The instance was provisioned successfully @ 2020-11-20 13:22:12 +0000 UTC 
            DashboardURL:   https://couchbase-instance-oi78spbs.default:18091                                  
            Class:          8522e991-07bc-4225-a859-1eec1e333153                                               
            Plan:           ec0f2c9b-0277-46d7-985f-ba1fbf3b068d                                               
           
           
          Parameters:
            password: password 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get instances

                NAME        NAMESPACE                  CLASS                                   PLAN                   STATUS 
          +---------------+-----------+--------------------------------------+--------------------------------------+--------+
            administrator   default     8522e991-07bc-4225-a859-1eec1e333153   ec0f2c9b-0277-46d7-985f-ba1fbf3b068d   Ready    

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get pods

          NAME                                                 READY   STATUS    RESTARTS   AGE
          catalog-catalog-controller-manager-cdf9c7d79-mvrmz   1/1     Running   0          56m
          catalog-catalog-webhook-7d8497cdf6-p2lxz             1/1     Running   0          56m
          couchbase-instance-oi78spbs-0000                     1/1     Running   0          19m
          couchbase-instance-oi78spbs-0001                     1/1     Running   0          19m
          couchbase-instance-oi78spbs-0002                     1/1     Running   0          18m
          couchbase-operator-68885987d8-r4dp6                  1/1     Running   0          52m
          couchbase-operator-admission-6755858b46-86r7c        1/1     Running   0          52m
          couchbase-service-broker-54b4bcff84-bpbwn            1/1     Running   0          50m 

          Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get couchbasebuckets

          NAME                          MEMORY QUOTA   REPLICAS   IO PRIORITY   EVICTION POLICY   CONFLICT RESOLUTION   AGE
          couchbase-instance-oi78spbs   100Mi          1          low           valueOnly         seqno                 20m 

          Prateeks-MacBook-Pro:Downloads prateekkumar$ svcat bind prateek

            Name:        prateek 
            Namespace:   default 
            Status:               
            Secret:      prateek 
            Instance:    prateek 
           
           
          Parameters:
            No parameters defined 

          The same process is repeated for other service-plan i.e. couchbase-server-with-replication (XDCR) :

          Waiting for the instance to be provisioned...
            Name:           admin                                                                              
            Namespace:      default                                                                            
            Status:         Ready - The instance was provisioned successfully @ 2020-11-23 19:45:04 +0000 UTC 
            DashboardURL:   https://couchbase-instance-oviox3ph.default:18091                                  
            Class:          8522e991-07bc-4225-a859-1eec1e333153                                               
            Plan:           27c943b3-6a11-404b-852c-5be4b0e2722d                                               
           
           
          Parameters:
            password: password
            remote-cluster-hostname: couchbase://test-couchbase-pr7zg.test-ss4jx
            remote-cluster-password: password
            remote-cluster-username: Administrator
            remote-cluster-uuid: 736c3d4d6d7143c54083bfa84a59a8ea 

          Remote Cluster: test-couchbase-pr7zg 

          Default cluster: couchbase-instance-oviox3ph

          Since it's a unidirectional replication, items loaded in bucket of couchbase-instance-oviox3ph are replicated to bucket of test-couchbase-pr7zg (Images Attached Before/After of couchbase-instance-oviox3ph)

          Prateeks-MacBook-Pro:couchbase-autonomous-operator-kubernetes_2.1.0-macos-x86_64 prateekkumar$ kubectl get pods
          NAME                                                 READY   STATUS      RESTARTS   AGE
          catalog-catalog-controller-manager-cdf9c7d79-pbbcc   1/1     Running     0          12m
          catalog-catalog-webhook-7d8497cdf6-fjnxd             1/1     Running     0          12m
          couchbase-instance-oviox3ph-0000                     1/1     Running     0          5m28s
          couchbase-instance-oviox3ph-0001                     1/1     Running     0          5m9s
          couchbase-instance-oviox3ph-0002                     1/1     Running     0          4m53s
          couchbase-operator-68885987d8-hrfj9                  1/1     Running     0          13m
          couchbase-operator-admission-6f6f698f87-r4xrl        1/1     Running     0          18m
          couchbase-service-broker-54b4bcff84-dtsx5            1/1     Running     0          10m
          pillowfight-f5gqb                                    0/1     Completed   0          18s 

          Prateeks-MacBook-Pro:Downloads prateekkumar$ svcat get instances
            NAME    NAMESPACE                  CLASS                                   PLAN                   STATUS 
          +-------+-----------+--------------------------------------+--------------------------------------+--------+
            admin   default     8522e991-07bc-4225-a859-1eec1e333153   27c943b3-6a11-404b-852c-5be4b0e2722d   Ready    

          Prateeks-MacBook-Pro:Downloads prateekkumar$ kubectl get couchbasebuckets
          NAME                          MEMORY QUOTA   REPLICAS   IO PRIORITY   EVICTION POLICY   CONFLICT RESOLUTION   AGE
          couchbase-instance-oviox3ph   100Mi          1          low           valueOnly         seqno                 13m 

          Prateeks-MacBook-Pro:Downloads prateekkumar$ svcat bind prateek
            Name:        prateek 
            Namespace:   default 
            Status:               
            Secret:      prateek 
            Instance:    prateek 
           
           
          Parameters:
            No parameters defined 

          prateek.kumar Prateek Kumar (Inactive) added a comment - - edited Service Broker steps:  Get couchbase-service-broker-kubernetes package from: http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-service-broker/1.0.0/103 Get latest image of service broker from: https://gitlab.com/cb-vanilla/service-broker/container_registry/1434716 docker pull  registry.gitlab.com/cb-vanilla/service-broker:latest   docker tag registry.gitlab.com/cb-vanilla/service-broker:latest couchbase/service-broker:1.0.0  __  Get couchbase-autonomous-operator package from: http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-operator/2.1.0 docker pull  registry.gitlab.com/cb-vanilla/admission-controller:latest docker pull   registry.gitlab.com/cb-vanilla/operator:latest docker tag   registry.gitlab.com/cb-vanilla/admission-controller:latest couchbase/admission-controller:2.1.0 docker tag   registry.gitlab.com/cb-vanilla/admission-controller:latest couchbase/operator:2.1.0 All steps are executed in default namespace. cd ~/couchbase-service-broker-kubernetes Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f crd.yaml customresourcedefinition.apiextensions.k8s.io/servicebrokerconfigs.servicebroker.couchbase.com created Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f servicebrokerconfig.yaml clusterrole.rbac.authorization.k8s.io/couchbase-service-broker created servicebrokerconfig.servicebroker.couchbase.com/couchbase-service-broker created Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com "svc-cat" has been added to your repositories Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ helm search repo service-catalog NAME                CHART VERSION APP VERSION DESCRIPTION                                        svc-cat/catalog     0.3 . 0                   service-catalog webhook server and controller-m... svc-cat/catalog-v0. 2 0.2 . 3                   service-catalog API server and controller-manag... Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$  helm install catalog svc-cat/catalog NAME: catalog LAST DEPLOYED: Fri Nov 20 18 : 13 : 22 2020 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None cd cd ~/couchbase-autonomous-operator-kubernetes_2.1.0-macos-x86_64 Prateeks-MacBook-Pro:couchbase-autonomous-operator-kubernetes_2.1.0-macos-x86_64 prateekkumar$ kubectl create -f crd.yaml customresourcedefinition.apiextensions.k8s.io/couchbaseautoscalers.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasebackuprestores.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasebackups.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasebuckets.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaseclusters.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaseephemeralbuckets.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasegroups.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasememcachedbuckets.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasereplications.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaserolebindings.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaseusers.couchbase.com created cd bin Prateeks-MacBook-Pro:bin prateekkumar$ ./cbopcfg generate admission | kubectl create -f - serviceaccount/couchbase-operator-admission created clusterrole.rbac.authorization.k8s.io/couchbase-operator-admission created clusterrolebinding.rbac.authorization.k8s.io/couchbase-operator-admission created secret/couchbase-operator-admission created deployment.apps/couchbase-operator-admission created service/couchbase-operator-admission created mutatingwebhookconfiguration.admissionregistration.k8s.io/couchbase-operator-admission created validatingwebhookconfiguration.admissionregistration.k8s.io/couchbase-operator-admission created Prateeks-MacBook-Pro:bin prateekkumar$ ./cbopcfg generate operator | kubectl create -f -  serviceaccount/couchbase-operator created role.rbac.authorization.k8s.io/couchbase-operator created rolebinding.rbac.authorization.k8s.io/couchbase-operator created deployment.apps/couchbase-operator created service/couchbase-operator created Prateeks-MacBook-Pro:bin prateekkumar$ kubectl get pods NAME                                                 READY   STATUS    RESTARTS   AGE catalog-catalog-controller-manager-cdf9c7d79-mvrmz   1 / 1     Running   0           4m29s catalog-catalog-webhook-7d8497cdf6-p2lxz             1 / 1     Running   0           4m29s couchbase-operator-68885987d8-r4dp6                  1 / 1     Running   0           12s couchbase-operator-admission-6755858b46-86r7c        1 / 1     Running   0           33s cd ../.. cd ~/couchbase-service-broker-kubernetes Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f broker.yaml serviceaccount/couchbase-service-broker created clusterrolebinding.rbac.authorization.k8s.io/couchbase-service-broker created secret/couchbase-service-broker created deployment.apps/couchbase-service-broker created service/couchbase-service-broker created Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get deployments NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE catalog-catalog-controller-manager   1 / 1     1             1           6m32s catalog-catalog-webhook              1 / 1     1             1           6m32s couchbase-operator                   1 / 1     1             1           2m15s couchbase-operator-admission         1 / 1     1             1           2m36s couchbase-service-broker             1 / 1     1             1           22s Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl create -f clusterservicebroker.yaml clusterservicebroker.servicecatalog.k8s.io/couchbase-service-broker created Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get clusterservicebrokers NAME                       URL                                            STATUS   AGE couchbase-service-broker   https: //couchbase-service-broker.default.svc   Ready    10s Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get pods NAME                                                 READY   STATUS    RESTARTS   AGE catalog-catalog-controller-manager-cdf9c7d79-mvrmz   1 / 1     Running   0           7m47s catalog-catalog-webhook-7d8497cdf6-p2lxz             1 / 1     Running   0           7m47s couchbase-operator-68885987d8-r4dp6                  1 / 1     Running   0           3m30s couchbase-operator-admission-6755858b46-86r7c        1 / 1     Running   0           3m51s couchbase-service-broker-54b4bcff84-bpbwn            1 / 1     Running   0           97s Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get --help List a resource, optionally filtered by name     Usage:   svcat get [command]     Available Commands:   bindings    List bindings, optionally filtered by name or namespace   brokers     List brokers, optionally filtered by name, scope or namespace   classes     List classes, optionally filtered by name, scope or namespace   instances   List instances, optionally filtered by name   plans       List plans, optionally filtered by name, class , scope or namespace     Flags:   -h, --help   help for get     Global Flags:       --context string      name of the kubeconfig context to use.       --kubeconfig string   path to kubeconfig file. Overrides $KUBECONFIG       --logtostderr         log to standard error instead of files ( default true )   -v, --v Level             number for the log level verbosity     Use "svcat get [command] --help" for more information about a command. Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get classes            NAME             NAMESPACE            BROKER                     DESCRIPTION             +-------------------------+-----------+--------------------------+--------------------------------+   couchbase-shared-bucket               couchbase-service-broker   Couchbase Server instance with                                                                     a single shared bucket         Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get brokers             NAME             NAMESPACE                       URL                        STATUS  +--------------------------+-----------+----------------------------------------------+--------+   couchbase-service-broker               https: //couchbase-service-broker.default.svc   Ready    Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get plans                 NAME                  NAMESPACE            CLASS                     DESCRIPTION             +-----------------------------------+-----------+-------------------------+--------------------------------+   couchbase-server-with-replication               couchbase-shared-bucket   Basic Couchbase Server                                                                                       cluster with uni-directional                                                                                 replication                        couchbase-server                                couchbase-shared-bucket   Basic Couchbase Server cluster  Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat provision administrator --class couchbase-shared-bucket --plan couchbase-server --param password=password --wait Waiting for the instance to be provisioned...   Name:           administrator                                                                         Namespace:      default                                                                               Status:         Ready - The instance was provisioned successfully @ 2020 - 11 - 20 13 : 22 : 12 + 0000 UTC    DashboardURL:   https: //couchbase-instance-oi78spbs.default:18091                                     Class:          8522e991-07bc- 4225 -a859-1eec1e333153                                                  Plan:           ec0f2c9b- 0277 -46d7-985f-ba1fbf3b068d                                                    Parameters:   password: password Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ svcat get instances       NAME        NAMESPACE                  CLASS                                   PLAN                   STATUS  +---------------+-----------+--------------------------------------+--------------------------------------+--------+   administrator   default     8522e991-07bc- 4225 -a859-1eec1e333153   ec0f2c9b- 0277 -46d7-985f-ba1fbf3b068d   Ready    Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get pods NAME                                                 READY   STATUS    RESTARTS   AGE catalog-catalog-controller-manager-cdf9c7d79-mvrmz   1 / 1     Running   0           56m catalog-catalog-webhook-7d8497cdf6-p2lxz             1 / 1     Running   0           56m couchbase-instance-oi78spbs- 0000                     1 / 1     Running   0           19m couchbase-instance-oi78spbs- 0001                     1 / 1     Running   0           19m couchbase-instance-oi78spbs- 0002                     1 / 1     Running   0           18m couchbase-operator-68885987d8-r4dp6                  1 / 1     Running   0           52m couchbase-operator-admission-6755858b46-86r7c        1 / 1     Running   0           52m couchbase-service-broker-54b4bcff84-bpbwn            1 / 1     Running   0           50m Prateeks-MacBook-Pro:couchbase-service-broker-kubernetes prateekkumar$ kubectl get couchbasebuckets NAME                          MEMORY QUOTA   REPLICAS   IO PRIORITY   EVICTION POLICY   CONFLICT RESOLUTION   AGE couchbase-instance-oi78spbs   100Mi          1           low           valueOnly         seqno                 20m Prateeks-MacBook-Pro:Downloads prateekkumar$ svcat bind prateek   Name:        prateek    Namespace:   default     Status:                  Secret:      prateek    Instance:    prateek      Parameters:   No parameters defined The same process is repeated for other service-plan i.e. couchbase-server-with-replication (XDCR) : Waiting for the instance to be provisioned...   Name:           admin                                                                                 Namespace:      default                                                                               Status:         Ready - The instance was provisioned successfully @ 2020 - 11 - 23 19 : 45 : 04 + 0000 UTC    DashboardURL:   https: //couchbase-instance-oviox3ph.default:18091                                     Class:          8522e991-07bc- 4225 -a859-1eec1e333153                                                  Plan:           27c943b3-6a11-404b-852c-5be4b0e2722d                                                    Parameters:   password: password   remote-cluster-hostname: couchbase: //test-couchbase-pr7zg.test-ss4jx   remote-cluster-password: password   remote-cluster-username: Administrator   remote-cluster-uuid: 736c3d4d6d7143c54083bfa84a59a8ea Remote Cluster:  test-couchbase-pr7zg   Default cluster: couchbase-instance-oviox3ph Since it's a unidirectional replication, items loaded in bucket of  couchbase-instance-oviox3ph are replicated to bucket of  test-couchbase-pr7zg (Images Attached Before/After of  couchbase-instance-oviox3ph) Prateeks-MacBook-Pro:couchbase-autonomous-operator-kubernetes_2. 1.0 -macos-x86_64 prateekkumar$ kubectl get pods NAME                                                 READY   STATUS      RESTARTS   AGE catalog-catalog-controller-manager-cdf9c7d79-pbbcc   1 / 1     Running     0           12m catalog-catalog-webhook-7d8497cdf6-fjnxd             1 / 1     Running     0           12m couchbase-instance-oviox3ph- 0000                     1 / 1     Running     0           5m28s couchbase-instance-oviox3ph- 0001                     1 / 1     Running     0           5m9s couchbase-instance-oviox3ph- 0002                     1 / 1     Running     0           4m53s couchbase-operator-68885987d8-hrfj9                  1 / 1     Running     0           13m couchbase-operator-admission-6f6f698f87-r4xrl        1 / 1     Running     0           18m couchbase-service-broker-54b4bcff84-dtsx5            1 / 1     Running     0           10m pillowfight-f5gqb                                    0 / 1     Completed   0           18s Prateeks-MacBook-Pro:Downloads prateekkumar$ svcat get instances   NAME    NAMESPACE                  CLASS                                   PLAN                   STATUS  +-------+-----------+--------------------------------------+--------------------------------------+--------+   admin   default     8522e991-07bc- 4225 -a859-1eec1e333153   27c943b3-6a11-404b-852c-5be4b0e2722d   Ready    Prateeks-MacBook-Pro:Downloads prateekkumar$ kubectl get couchbasebuckets NAME                          MEMORY QUOTA   REPLICAS   IO PRIORITY   EVICTION POLICY   CONFLICT RESOLUTION   AGE couchbase-instance-oviox3ph   100Mi          1           low           valueOnly         seqno                 13m Prateeks-MacBook-Pro:Downloads prateekkumar$ svcat bind prateek   Name:        prateek    Namespace:   default     Status:                  Secret:      prateek    Instance:    prateek      Parameters:   No parameters defined

          Service Broker tested in catalog namespace , steps mentioned in https://issues.couchbase.com/browse/SBEE-19

          prateek.kumar Prateek Kumar (Inactive) added a comment - Service Broker tested in catalog namespace , steps mentioned in https://issues.couchbase.com/browse/SBEE-19 . 

          QE only left with end-to-end testing with Service Broker committed for a later date. 

          prateek.kumar Prateek Kumar (Inactive) added a comment - QE only left with end-to-end testing with Service Broker committed for a later date. 

          Prateek Kumar tried SB on OC 4.4 - here are the notes from that discussion:

          Service Broker requires installation of service catalog on the cluster before we can create service-broker services on it.

          Service Catalog is deprecated on Openshift 4.x+ : https://docs.openshift.com/container-platform/4.3/applications/service_brokers/installing-service-catalog.html

          So i went ahead and tried to install service catalog through helm, however this methodology to install Service catalog applies for kubernetes and not Openshift.

          Hence it started giving off containercreatingerror , I checked it on both OC clusters.
          error:

          Normal   AddedInterface  3m18s                multus                                                 Add eth0 [10.129.2.104/23]
            Normal   Pulled          3m14s                kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 953.269721ms
            Warning  Failed          3m2s                 kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:25:11Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer"
            Normal   Pulled          3m1s                 kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 962.563084ms
            Warning  Failed          2m50s                kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:25:24Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer"
            Normal   Pulled          2m48s                kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 992.808747ms
            Warning  Failed          2m36s                kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:25:37Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: "
            Normal   Pulled          2m23s                kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 944.383004ms
            Warning  Failed          2m16s                kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:25:58Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer"
            Normal   Pulled          2m4s                 kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 930.513208ms
            Warning  Failed          118s                 kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:26:16Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer"
            Normal   Pulled          106s                 kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 1.018914521s
            Warning  Failed          100s                 kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:26:34Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer"
            Normal   Pulled          87s                  kubelet, ip-172-31-133-122.us-west-2.compute.internal  Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 991.52772ms
            Warning  Failed          80s                  kubelet, ip-172-31-133-122.us-west-2.compute.internal  Error: container create failed: time="2020-12-04T14:26:54Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer"
            Normal   Pulling         69s (x8 over 3m15s)  kubelet, ip-172-31-133-122.us-west-2.compute.internal  Pulling image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0"
          Prateeks-MacBook-Pro:couchbase-service-broker-openshift prateekkumar$ oc get pods
          NAME                                                  READY   STATUS                 RESTARTS   AGE
          catalog-catalog-controller-manager-7cc5877bf4-csgxg   0/1     CrashLoopBackOff       2          5m47s
          catalog-catalog-webhook-7dd588b999-vrqcp              0/1     CreateContainerError   0          5m47s
          couchbase-operator-admission-868ccdc9d7-f9sg7         1/1     Running                0          5h20m
          Prateeks-MacBook-Pro:couchbase-service-broker-openshift prateekkumar$ oc get pods
          NAME                                                  READY   STATUS                 RESTARTS   AGE
          catalog-catalog-controller-manager-7cc5877bf4-csgxg   0/1     CrashLoopBackOff       3          12m
          catalog-catalog-webhook-7dd588b999-vrqcp              0/1     CreateContainerError   0          12m
          couchbase-operator-admission-868ccdc9d7-f9sg7         1/1     Running                0          5h27m
          

          This could also be a permission error but it’s highly unlikely since i trying to run something which is kubernetes supported.

          I will open a bug for this as discussed

          arunkumar Arunkumar Senthilnathan (Inactive) added a comment - Prateek Kumar tried SB on OC 4.4 - here are the notes from that discussion: Service Broker requires installation of service catalog on the cluster before we can create service-broker services on it. Service Catalog is deprecated on Openshift 4.x+ : https://docs.openshift.com/container-platform/4.3/applications/service_brokers/installing-service-catalog.html So i went ahead and tried to install service catalog through helm, however this methodology to install Service catalog applies for kubernetes and not Openshift. Hence it started giving off containercreatingerror , I checked it on both OC clusters. error: Normal AddedInterface 3m18s multus Add eth0 [10.129.2.104/23] Normal Pulled 3m14s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 953.269721ms Warning Failed 3m2s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:25:11Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer" Normal Pulled 3m1s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 962.563084ms Warning Failed 2m50s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:25:24Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer" Normal Pulled 2m48s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 992.808747ms Warning Failed 2m36s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:25:37Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: " Normal Pulled 2m23s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 944.383004ms Warning Failed 2m16s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:25:58Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer" Normal Pulled 2m4s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 930.513208ms Warning Failed 118s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:26:16Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer" Normal Pulled 106s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 1.018914521s Warning Failed 100s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:26:34Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer" Normal Pulled 87s kubelet, ip-172-31-133-122.us-west-2.compute.internal Successfully pulled image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" in 991.52772ms Warning Failed 80s kubelet, ip-172-31-133-122.us-west-2.compute.internal Error: container create failed: time="2020-12-04T14:26:54Z" level=error msg="container_linux.go:366: starting container process caused: process_linux.go:472: container init caused: read init-p: connection reset by peer" Normal Pulling 69s (x8 over 3m15s) kubelet, ip-172-31-133-122.us-west-2.compute.internal Pulling image "quay.io/kubernetes-service-catalog/service-catalog:v0.3.0" Prateeks-MacBook-Pro:couchbase-service-broker-openshift prateekkumar$ oc get pods NAME READY STATUS RESTARTS AGE catalog-catalog-controller-manager-7cc5877bf4-csgxg 0/1 CrashLoopBackOff 2 5m47s catalog-catalog-webhook-7dd588b999-vrqcp 0/1 CreateContainerError 0 5m47s couchbase-operator-admission-868ccdc9d7-f9sg7 1/1 Running 0 5h20m Prateeks-MacBook-Pro:couchbase-service-broker-openshift prateekkumar$ oc get pods NAME READY STATUS RESTARTS AGE catalog-catalog-controller-manager-7cc5877bf4-csgxg 0/1 CrashLoopBackOff 3 12m catalog-catalog-webhook-7dd588b999-vrqcp 0/1 CreateContainerError 0 12m couchbase-operator-admission-868ccdc9d7-f9sg7 1/1 Running 0 5h27m This could also be a permission error but it’s highly unlikely since i trying to run something which is kubernetes supported. I will open a bug for this as discussed
          prateek.kumar Prateek Kumar (Inactive) added a comment - - edited

          Service Broker tested on AKS and EKS cluster. No issues found.

          Images Attached. 

          prateek.kumar Prateek Kumar (Inactive) added a comment - - edited Service Broker tested on AKS and EKS cluster. No issues found. Images Attached. 

          People

            prateek.kumar Prateek Kumar (Inactive)
            arunkumar Arunkumar Senthilnathan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty