App Connect

 View Only
Expand all | Collapse all

App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

  • 1.  App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Tue April 27, 2021 12:05 PM

    Hi,

    I have hit a road block when tried to install the "App Connect Designer Authoring" in EKS version 1.19.

     

    I have successfully installed the cert-manager, OLM, App Connect Operator Catalog, App Connect Operator Subscription using the below link

    Installing IBM App Connect in a Kubernetes environment - IBM Documentation

     

    After successful installation of the above, I tried installation of the App Connect Designer Authoring using below link and received the error "error: unable to recognize "designer_cr.yaml": no matches for kind "DesignerAuthoring" in version "appconnect.ibm.com/v1beta1""

     

    App Connect Designer Authoring reference - IBM Documentation

     

    Request to help resolve this problem.

    Thanks,
    regards,
    Ramakrishna

    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------


  • 2.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Wed April 28, 2021 03:31 AM

    Hi,

    This looks like the operator has not been properly installed as the CRDs are missing.

    To work out what's not working its best to step through to make sure each of the steps have worked. 

    • Check that the CatalogSource is working by running kubectl get packagemanifest ibm-appconnect - This shows that the operator is available in the catalog
    • Check the subscription is OK by running kubectl get subscription -n <namespace> <subscriptionName> -o yaml  - Check for any warnings
    • Check the InstallPlan was OK run running kubectl get installPlan -n <namespace> ><installPlanName -o yaml - You can get the installPlan name from the output of the subscription. Check for any errors in there. 

    Hopefully one of these steps will help identify the issue



    ------------------------------
    Rob Convery
    ------------------------------



  • 3.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Wed April 28, 2021 09:42 AM
    Hi Rob,

    Thanks for the response.  Below are my responses

    • Check that the CatalogSource is working by running kubectl get packagemanifest ibm-appconnect - This shows that the operator is available in the catalog
      • Response: Yes I verified and attached the screen print "getmanifest.jpg"
    • Check the subscription is OK by running kubectl get subscription -n <namespace> <subscriptionName> -o yaml  - Check for any warnings
      • Response: Yes I verified and attached the screen print "getSubscription.jpg"
      • Response: Attached the YAML "subscription.yaml". The last status shows "state: UpgradePending". Did not see any errors.
    • Check the InstallPlan was OK run running kubectl get installPlan -n <namespace> ><installPlanName -o yaml - You can get the installPlan name from the output of the subscription. Check for any errors in there. 
      • Response: Yes I verified and attached the screen print "Install_plan.jpg"
      • Response: Attached the YAML "install_plan.yaml". The last status shows "status: Unknown" for "couchdb-operator.v1.4.2" and "status: Unknown" for "ibm-appconnect.v1.3.2"

    I have also attached below files for reference. Request to help solve the problem.
    getall-in-olm.jpg
    getcrd.jpg
    install_plan.yaml
    subscription.yaml
    get_manifest.yaml
    describe_manifest.json

    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------

    Attachment(s)

    yaml
    get_manifest.yaml   43 KB 1 version
    yaml
    install_plan.yaml   43 KB 1 version
    json
    describe_manifest.json   36 KB 1 version
    yaml
    subscription.yaml   3 KB 1 version


  • 4.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Wed April 28, 2021 12:46 PM
    I notice you have manual approval configured for subscription.  You may need to approve the installation to get it to install.  I suggest having a read of https://github.com/operator-framework/operator-lifecycle-manager/blob/master/doc/design/architecture.md#installplan-control-loop and making sure you have approved the installation. (For the first install it might be worth trying automatic approval to start with)

    ------------------------------
    Rob Convery
    ------------------------------



  • 5.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Wed April 28, 2021 11:04 PM

    Hi Rob,

    Thanks a lot for the response. I would like to point that in documentation to create App Connect Operator Catalog the docker image name is incorrect.
    Creating the IBM App Connect Operator catalog - IBM Documentation 

    From docker hub I found the correct name as "docker.io/ibmcom/appconnect-operator-catalog-k8s". Can you confirm if this is the correct image. Because as per document the image should be "docker.io/ibmcom/ibm-appconnect-operator-catalog-k8s" but the image is not found in dockerhub.

    I removed the "spec.installPlanApproval: Manual" from the subscription "appconn-sub.yaml" and created the subscription. I still see the couchdb errors in install plan. Attached the logs of operator, subscription and install plan. can you help resolve the problem.

    The logs from "catalog-operator-679dfd7596-fr7dp" are in file "catalog-operator-679dfd7596-fr7dp_logs.txt"
    The logs from "installplan" are in file "install-l9b6k_logs.txt"
    The logs from subscription are in file "ibm-appconnect_subscription_logs.txt"

    I still get the error "error: unable to recognize "designer_cr.yaml": no matches for kind "DesignerAuthoring" in version "appconnect.ibm.com/v1beta1"" when try to create the designer authority.

    Thanks.

    Ramakrishna



    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 6.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Thu April 29, 2021 09:13 AM

    Hello, 

    Are you able to confirm that you have created an OperatorGroup as documented in this step - https://www.ibm.com/docs/en/app-connect/11.0.0?topic=kubernetes-creating-operatorgroup-app-connect-operator

    Thanks, 



    ------------------------------
    Cameron Roberts
    ------------------------------



  • 7.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Thu April 29, 2021 09:26 AM
    Hi Rob,

    I skipped this step as it was mentioned that I can use the "operators" group created during the olm installation. So I installed subscription in "operators"

    • If you intend to install the Operator cluster wide, you do not need to create an OperatorGroup because the operators namespace (into which the Operator will be installed) already has an appropriate OperatorGroup in place. (This namespace was created as part of the OLM installation.) You can therefore skip this task.

    Do I need to create a separate operator group?

    Below are the contents of catalog source  to create IBM-AppConnect Catalog source

    apiVersion: operators.coreos.com/v1alpha1
    kind: CatalogSource
    metadata:
    name: ibm-appconnect-catalog
    namespace: olm
    spec:
    displayName: "IBM App Connect Operator Catalog k8S"
    publisher: IBM
    sourceType: grpc
    image: ibmcom/appconnect-operator-catalog-k8s
    updateStrategy:
    registryPoll:
    interval: 45m


    Below are the contents of subscription

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
    name: ibm-appconnect
    namespace: operators
    spec:
    channel: v1.3
    name: ibm-appconnect
    source: ibm-appconnect-catalog
    sourceNamespace: olm

    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 8.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Thu April 29, 2021 05:06 PM
    Hi Rob,

    I have successfully resolved all the issues related to appconnect operator.

    When I tried to create the subscription I got the error "Error: failed to start container "util": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/bin/cp\": stat /bin/cp: no such file or directory": unknown Back-off restarting failed container" after research i saw

    The issue was related to "initContainer with image: quay.io/operator-framework/olm@sha256:e9de77ac5c08643202ad42a0311d15c98ffbfd8a1dc2eab4e9f2dcaeed7110ac". The "/bin/cp is not available in the mentioned image"

    So, I have installed the version v0.17.0 of the operator sdk using command "operator-sdk olm install --version v0.17.0". After that I was able to create "appconn-catalog-source.yaml" and "appconn-sub.yaml".

    But I still have issue launching designer_cr using the below YAML

    apiVersion: appconnect.ibm.com/v1beta1
    kind: DesignerAuthoring
    metadata:
    name: des-mapast
    namespace: operators
    spec:
    couchdb:
    replicas: 1
    storage:
    class: aws-ebs
    size: 10Gi
    type: persistent-claim
    designerFlowsOperationMode: local
    designerMappingAssist:
    enabled: true
    license:
    accept: true
    license: L-APEH-BY5CY7
    use: CloudPakForIntegrationNonProduction
    useCommonServices: false
    version: 11.0.0.11-r2
    replicas: 1

    I get the error "Error from server: error when creating "designer_cr.yaml": admission webhook "validate.commonservices.appconnect.ibm.com" denied the request: If spec.license.use is set to a Cloud Pak for Integration value, ensure that spec.useCommonServices is set to true to enable Common Services. The benefits of Common Services can be found at http://ibm.biz/ibmcommonsrvdocs"

    can you help me what values should be set in the YAML for EKS?

    Thanks.


    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 9.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Fri April 30, 2021 03:47 AM

    Ah,

    So it looks like OLM have just 2 days ago released a new version 0.18.0 which does appear to have broken things a bit. Looks like its been raised as a bug against them here - https://github.com/operator-framework/operator-lifecycle-manager/issues/2129. 

    I'll make sure we update the documentation to say to use "operator-sdk olm install --version v0.17.0"



    ------------------------------
    Rob Convery
    ------------------------------



  • 10.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Thu May 06, 2021 12:19 PM
    Hi Rob,

    Sorry I was away for the last couple of days and could not respond.

    Thanks for all your assistance. I was able to install App Connect Designer and Integration server successfully.

    How ever, I am having issues installing App Connect Dashboard. Since the Dashboard require ReadWriteMany, I have successfully deployed EFS CSI driver and tested with testing pods and worked.

    How ever when I try to deploy the Dashboard I got the error from content-init-server "mkdir: cannot create directory '/mnt/data/content': Permission denied".

    I have even tried with Kubernets NFS provisioning instead of EFS and resulted in the same issue.

    It seems the init server is unable to create the subdirectory in /mnt/ directory.

    Can you help resolve the issue.

    Thanks.
    Regards,
    Ramakrishna.

    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 11.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Thu April 29, 2021 08:24 PM

    Hi Rob,

    Another update. I was able to execute the YAML  "designer_cr.yaml" by commenting " # useCommonServices: true" and executing "kubectl apply -f designer_cr.yaml --validate=false"

    I got the below error 

    Error "2021-04-30T00:19:22.017Z ERROR controller-runtime.controller Reconciler error {"controller": "designerauthoring", "request": "operators/des-mapast", "error": "no kind is registered for the type v1alpha1.OperandRequest in scheme \"pkg/runtime/scheme.go:101\""}

    github.com/go-logr/zapr.(*zapLogger).Error
    /home/jenkins/go/pkg/mod/github.com/go-logr/zapr@v0.3.0/zapr.go:132"

    Below is the YAML
    apiVersion: appconnect.ibm.com/v1beta1
    kind: DesignerAuthoring
    metadata:
    name: des-mapast
    namespace: operators
    spec:
    couchdb:
    replicas: 1
    storage:
    class: aws-ebs
    size: 10Gi
    type: persistent-claim
    designerFlowsOperationMode: local
    designerMappingAssist:
    enabled: true
    license:
    accept: true
    license: L-APEH-BY5CY7
    use: CloudPakForIntegrationNonProduction
    # useCommonServices: true
    version: 11.0.0
    replicas: 1

    Request to let me know if you have seen this error.

    Thanks.


    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 12.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Fri April 30, 2021 03:50 AM
    Hi

    When using the App Connect operator on K8S you can only use the "AppConnectEnterpriseNonProduction" or "AppConnectEnterpriseProduction" `license.use` values. We do not allow the CP4I license on K8S. When running on K8S you must also have `useCommonServices: false` set i.e. 

    apiVersion: appconnect.ibm.com/v1beta1
    kind: DesignerAuthoring
    metadata:
      name: des-mapast
      namespace: operators
    spec:
      couchdb:
        replicas: 1
        storage:
      class: aws-ebs
        size: 10Gi
        type: persistent-claim
      designerFlowsOperationMode: local
      designerMappingAssist:
        enabled: true
      license:
       accept: true
       license: L-APEH-BY5CY7
       use: AppConnectEnterpriseNonProduction
      useCommonServices: false
      version: 11.0.0.11-r2
      replicas: 1


    ------------------------------
    Rob Convery
    ------------------------------



  • 13.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Tue May 11, 2021 01:12 PM
    Hi Rob,

    Thank you all the help. As of now I have resolved all issues and successfully deployed Integration Server, Designer and Dashboard successfully in EKS.

    My next steps would be to enable the Ingress using the AWS NLB. Facing some issues with Nginx routing because of certs.

    Will resolve and update you. Once I have the complete details, I will post this in this topic which will be helpful for others and also you can update the documentation for deployment of IBM App Connect Operator in EKS.

    Thanks.


    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 14.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Thu May 20, 2021 03:02 PM
    Hi Rob,

    Need your help to resolve Nginx load balancer issues to access App Connect Designer UI. The POD "des-01-ui-78865b5677-jxk2k" has two containers "des-01-ui" and "des-01-proxy". I am able to access the App Connect Designer UI using the service IP directly "https://10.137.21.133:3001".

    But I get error "< HTTP/1.1 307 Temporary Redirect < Server: openresty/1.15.8.2" when try to access using the Nginx Ingress "https://appconnectdesigner.xxx.com/"

    below is the log from proxy container "des-01-proxy" 
    2021.05.20 16:10:56 LOG5[733]: Service [proxy] accepted connection from 10.137.21.113:47052
    2021.05.20 16:10:56 LOG5[733]: s_connect: connected 127.0.0.1:3000
    2021.05.20 16:10:56 LOG5[733]: Service [proxy] connected remote server from 127.0.0.1:51316
    2021.05.20 16:11:02 LOG3[733]: transfer: s_poll_wait: TIMEOUTclose exceeded: closing
    2021.05.20 16:11:02 LOG5[733]: Connection closed: 10227 byte(s) sent to TLS, 11928 byte(s) sent to socket

    Request to help.

    Thanks.


    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------



  • 15.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Tue January 10, 2023 09:15 AM
    Hello Ramakrishna,

    I see you managed to install Desginer in K8S quite a while ago, in the meantime several newer versions of operators are released. So, were you able to upgrade to the newer operator versions ? 

    In the latest versions, Apache Couch DB seems mandatory for designer dashboard. But, the App connect operator seems to be missing the custom resource for Couch DB. 

    Thanks.

    ------------------------------
    Sujeeth Pakala
    ------------------------------



  • 16.  RE: App Connect Designer Authoring reference - Installation issue in Kubernetes 1.19

    Posted Tue January 10, 2023 11:20 AM
    Hi Suresh,

    I did not upgrade to new operators. I have also deleted the existing setup.

    Thanks.

    ------------------------------
    VENKATA RAMAKRISHNA VIKASH VANAPALLI
    ------------------------------