Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17835

Operator installed through OLM doesn't build integrations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • camel-k-1.6-GA
    • camel-k-1.6-GA
    • Camel-K
    • None

      Using CK6 operator integration-camel-k-rhel8-operator:1.6.0-13, it seems that when it is installed through operatorhub, the operator gets stuck somehow and doesn't start the maven build.

      the logs from operator end here:

      {"level":"info","ts":1637065605.7616484,"logger":"cmd","msg":"Go Version: go1.15.14"}
      {"level":"info","ts":1637065605.761723,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
      {"level":"info","ts":1637065605.761729,"logger":"cmd","msg":"Buildah Version: 1.14.0"}
      {"level":"info","ts":1637065605.7617326,"logger":"cmd","msg":"Kaniko Version: 0.17.1"}
      {"level":"info","ts":1637065605.7617364,"logger":"cmd","msg":"Camel K Operator Version: 1.6.0"}
      {"level":"info","ts":1637065605.7617404,"logger":"cmd","msg":"Camel K Default Runtime Version: 1.9.0.fuse-800023-redhat-00001"}
      {"level":"info","ts":1637065605.7617447,"logger":"cmd","msg":"Camel K Git Commit: "}
      {"level":"info","ts":1637065607.507421,"logger":"cmd","msg":"Throttling request took 1.048055304s, request: GET:https://172.30.0.1:443/apis/snapshot.storage.k8s.io/v1?timeout=32s\n"}
      {"level":"info","ts":1637065614.8271182,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
      {"level":"info","ts":1637065614.8281777,"logger":"cmd","msg":"Configuring manager"}
      {"level":"info","ts":1637065614.8573232,"logger":"camel-k","msg":"Service binding is disabled, install the Service Binding Operator if needed"}
      {"level":"info","ts":1637065614.8638146,"logger":"cmd","msg":"Installing operator resources"}
      {"level":"info","ts":1637065638.3012693,"logger":"cmd","msg":"Starting the manager"}
      {"level":"info","ts":1637065638.3119075,"logger":"cmd","msg":"attempting to acquire leader lease avano-olm/camel-k-lock...\n"}
      {"level":"info","ts":1637065638.3122654,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
      {"level":"info","ts":1637065638.6570623,"logger":"cmd","msg":"successfully acquired lease avano-olm/camel-k-lock\n"}
      {"level":"info","ts":1637065638.658697,"logger":"controller-runtime.manager.controller.build-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.6593053,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.6596918,"logger":"controller-runtime.manager.controller.integrationkit-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.6603367,"logger":"controller-runtime.manager.controller.integrationplatform-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.7593617,"logger":"controller-runtime.manager.controller.build-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.759901,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.7607963,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.76086,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.7610722,"logger":"controller-runtime.manager.controller.integrationkit-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.7611747,"logger":"controller-runtime.manager.controller.integrationplatform-controller","msg":"Starting Controller"}
      {"level":"info","ts":1637065638.7612326,"logger":"controller-runtime.manager.controller.integrationkit-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.7613094,"logger":"controller-runtime.manager.controller.integrationkit-controller","msg":"Starting Controller"}
      {"level":"info","ts":1637065638.8608727,"logger":"controller-runtime.manager.controller.build-controller","msg":"Starting Controller"}
      {"level":"info","ts":1637065638.8612163,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting EventSource","source":"kind source: /, Kind="}
      {"level":"info","ts":1637065638.9167123,"logger":"cmd","msg":"batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\n"}
      {"level":"info","ts":1637065638.9393365,"logger":"cmd","msg":"batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\n"}
      {"level":"info","ts":1637065638.9617364,"logger":"controller-runtime.manager.controller.build-controller","msg":"Starting workers","worker count":1}
      {"level":"info","ts":1637065638.9619133,"logger":"controller-runtime.manager.controller.integrationkit-controller","msg":"Starting workers","worker count":1}
      {"level":"info","ts":1637065638.9624996,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting Controller"}
      {"level":"info","ts":1637065638.9618034,"logger":"controller-runtime.manager.controller.integrationplatform-controller","msg":"Starting workers","worker count":1}
      ...
      reconciling kamelets...
      ...
      {"level":"info","ts":1637065638.9645662,"logger":"camel-k.controller.integrationplatform","msg":"Reconciling IntegrationPlatform","request-namespace":"avano-olm","request-name":"camel-k"}
      {"level":"info","ts":1637065638.9646623,"logger":"camel-k.controller.integrationplatform","msg":"Invoking action initialize","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k"}
      {"level":"info","ts":1637065638.9642415,"logger":"controller-runtime.manager.controller.integration-controller","msg":"Starting workers","worker count":1}
      {"level":"info","ts":1637065639.5842724,"logger":"camel-k","msg":"RuntimeVersion set to 1.9.0.fuse-800023-redhat-00001"}
      {"level":"info","ts":1637065639.5843008,"logger":"camel-k","msg":"BaseImage set to registry.access.redhat.com/ubi8/openjdk-11:1.10"}
      {"level":"info","ts":1637065639.584306,"logger":"camel-k","msg":"LocalRepository set to /tmp/artifacts/m2"}
      {"level":"info","ts":1637065639.5843902,"logger":"camel-k","msg":"Timeout set to {5m0s}"}
      {"level":"info","ts":1637065639.5843997,"logger":"camel-k","msg":"Maven Timeout set to 5m0s"}
      {"level":"info","ts":1637065639.876455,"logger":"camel-k.controller.integrationplatform","msg":"state transition","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k","phase-from":"","phase-to":"Creating"}
      {"level":"info","ts":1637065639.8772445,"logger":"camel-k.controller.integrationplatform","msg":"Reconciling IntegrationPlatform","request-namespace":"avano-olm","request-name":"camel-k"}
      {"level":"info","ts":1637065639.8773406,"logger":"camel-k.controller.integrationplatform","msg":"Invoking action create","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k"}
      {"level":"info","ts":1637065639.8773718,"logger":"camel-k.controller.integrationplatform","msg":"Installing camel catalog: /camel-catalog-1.9.0.fuse-800023-redhat-00001.yaml","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k"}
      {"level":"info","ts":1637065660.9212432,"logger":"camel-k.controller.integrationplatform","msg":"state transition","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k","phase-from":"Creating","phase-to":"Ready"}
      {"level":"info","ts":1637065660.921419,"logger":"camel-k.controller.integrationplatform","msg":"Reconciling IntegrationPlatform","request-namespace":"avano-olm","request-name":"camel-k"}
      {"level":"info","ts":1637065660.9214728,"logger":"camel-k.controller.integrationplatform","msg":"Invoking action create","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k"}
      {"level":"info","ts":1637065660.9214945,"logger":"camel-k.controller.integrationplatform","msg":"Installing camel catalog: /camel-catalog-1.9.0.fuse-800023-redhat-00001.yaml","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k"}
      {"level":"info","ts":1637065677.8226137,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"avano-olm","request-name":"hello"}
      {"level":"info","ts":1637065677.8228853,"logger":"camel-k.controller.integration","msg":"Invoking action platform-setup","request-namespace":"avano-olm","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"avano-olm","name":"hello"}
      {"level":"info","ts":1637065677.823616,"logger":"camel-k.trait","msg":"Apply trait: platform"}
      {"level":"info","ts":1637065677.8236887,"logger":"camel-k.trait","msg":"Apply trait: camel"}
      {"level":"info","ts":1637065677.8262181,"logger":"camel-k.trait","msg":"Apply trait: dependencies"}
      {"level":"info","ts":1637065677.8273928,"logger":"camel-k.trait","msg":"Apply trait: quarkus"}
      {"level":"info","ts":1637065677.8280487,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
      {"level":"info","ts":1637065677.831088,"logger":"camel-k.trait","msg":"Apply trait: gc"}
      {"level":"info","ts":1637065677.8311462,"logger":"camel-k.trait","msg":"Apply trait: container"}
      {"level":"info","ts":1637065677.831164,"logger":"camel-k.trait","msg":"Apply trait: owner"}
      {"level":"info","ts":1637065678.056971,"logger":"camel-k.controller.integration","msg":"state transition","request-namespace":"avano-olm","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"avano-olm","name":"hello","phase-from":"","phase-to":"Initialization"}
      {"level":"info","ts":1637065678.0572345,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"avano-olm","request-name":"hello"}
      {"level":"info","ts":1637065678.0573146,"logger":"camel-k.controller.integration","msg":"Invoking action initialize","request-namespace":"avano-olm","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"avano-olm","name":"hello"}
      {"level":"info","ts":1637065678.0576417,"logger":"camel-k.trait","msg":"Apply trait: init"}
      {"level":"info","ts":1637065678.0576653,"logger":"camel-k.trait","msg":"Apply trait: camel"}
      {"level":"info","ts":1637065678.062318,"logger":"camel-k.trait","msg":"Apply trait: knative"}
      {"level":"info","ts":1637065678.062773,"logger":"camel-k.trait","msg":"Apply trait: dependencies"}
      {"level":"info","ts":1637065678.0635362,"logger":"camel-k.trait","msg":"Apply trait: quarkus"}
      {"level":"info","ts":1637065678.064309,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
      {"level":"info","ts":1637065678.0678961,"logger":"camel-k.trait","msg":"Apply trait: gc"}
      {"level":"info","ts":1637065678.0679412,"logger":"camel-k.trait","msg":"Apply trait: container"}
      {"level":"info","ts":1637065678.0679502,"logger":"camel-k.trait","msg":"Apply trait: owner"}
      {"level":"info","ts":1637065678.1559024,"logger":"camel-k.controller.integration","msg":"state transition","request-namespace":"avano-olm","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"avano-olm","name":"hello","phase-from":"Initialization","phase-to":"Building Kit"}
      {"level":"info","ts":1637065678.1561189,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"avano-olm","request-name":"hello"}
      {"level":"info","ts":1637065678.1561894,"logger":"camel-k.controller.integration","msg":"Invoking action build-kit","request-namespace":"avano-olm","request-name":"hello","api-version":"camel.apache.org/v1","kind":"Integration","ns":"avano-olm","name":"hello"}
      {"level":"info","ts":1637065678.286643,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.4178338,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.4179156,"logger":"camel-k.controller.integrationkit","msg":"Invoking action initialize","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"avano-olm","name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.4182005,"logger":"camel-k.trait","msg":"Apply trait: camel"}
      {"level":"info","ts":1637065678.4193118,"logger":"camel-k.trait","msg":"Apply trait: quarkus"}
      {"level":"info","ts":1637065678.451698,"logger":"camel-k.controller.integrationkit","msg":"state transition","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"avano-olm","name":"kit-c69q7jhehl3ra8foc2f0","phase-from":"Initialization","phase-to":"Build Submitted"}
      {"level":"info","ts":1637065678.4637077,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.463831,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build-submitted","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"avano-olm","name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.464138,"logger":"camel-k.trait","msg":"Apply trait: camel"}
      {"level":"info","ts":1637065678.4652147,"logger":"camel-k.trait","msg":"Apply trait: builder"}
      {"level":"info","ts":1637065678.465261,"logger":"camel-k.trait","msg":"Apply trait: quarkus"}
      {"level":"info","ts":1637065678.6779575,"logger":"camel-k.controller.integrationplatform","msg":"state transition","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k","phase-from":"Creating","phase-to":"Ready"}
      {"level":"info","ts":1637065678.6782837,"logger":"camel-k.controller.integrationplatform","msg":"Reconciling IntegrationPlatform","request-namespace":"avano-olm","request-name":"camel-k"}
      {"level":"info","ts":1637065678.6783862,"logger":"camel-k.controller.integrationplatform","msg":"Invoking action monitor","request-namespace":"avano-olm","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"avano-olm","name":"camel-k"}
      {"level":"info","ts":1637065678.6826327,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.6828158,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build-submitted","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"avano-olm","name":"kit-c69q7jhehl3ra8foc2f0"}
      {"level":"info","ts":1637065678.6830556,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"avano-olm","request-name":"kit-c69q7jhehl3ra8foc2f0"}
      

      what I did is:

      1. get the CK6 binary
      2. deploy the catalogsource that points to the CK6 image
      3. kamel install --cluster-setup
      4. kamel install --maven-repository="http://nexus.test-infra.svc.cluster.local/repository/maven-proxy@mirrorOf=*" --force --olm-source camel-k-source-1-6
      5. kamel run Hello.java
      

      When I leave the OLM out and try to install without OLM:

      1. get the CK6 binary
      2. kamel install --cluster-setup
      3. kamel install --olm=false --maven-repository="http://nexus.test-infra.svc.cluster.local/repository/maven-proxy@mirrorOf=*" --force --operator-image=registry-proxy.engineering.redhat.com/rh-osbs/integration-camel-k-rhel8-operator:1.6.0-13
      4. kamel run Hello.java
      

      everything works as expected.

      See the comment for more info

              astefanu@redhat.com Antonin Stefanutti
              avano@redhat.com Andrej Vano
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: