Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Camel-K operator using a local maven repository. #6030

Closed
mss55 opened this issue Jan 14, 2025 · 2 comments · Fixed by #6034
Closed

Can't install Camel-K operator using a local maven repository. #6030

mss55 opened this issue Jan 14, 2025 · 2 comments · Fixed by #6034
Labels
kind/bug Something isn't working
Milestone

Comments

@mss55
Copy link

mss55 commented Jan 14, 2025

What happened?

I am trying install Camel-K 2.5 in isolated environment with local maven repository, but the CamelCatalog gets stuck in the Creating state.

Custom maven settings.xml/caSecret is not passed to the maven command.

This seems to be into a TODO

Steps to reproduce

  1. Install Camel-k operator - helm install camel-k...
  2. Install IntegrationPlatform similar to this
metadata:
  annotations:
    camel.apache.org/operator.id: camel-k
  labels:
    app: camel-k
  name: camel-k
spec:
  build:
    maven:
      caSecrets:
      - key: cert.crt
        name: maven-ca-certs
      settings:
        configMapKeyRef:
          key: settings.xml
          name: maven-settings
    registry:
      address: artifactory.name
      organization: camel-docker
      secret: artifactory
...

settings.xml contains local maven-repository settings.
3. In operator log installation is freezing on:

Executed command: ./mvnw -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.8.0:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp/kamelets/

Relevant log output

{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"maxprocs: Updating GOMAXPROCS=[4]: determined from CPU quota"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Go Version: go1.22.5"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Camel K Operator Version: 2.5.0"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Camel K Default Runtime Version: 3.15.0"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Camel K Git Commit: 7494b004eb9f32889eaf512a1eec1343d7773e09"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Camel K Operator ID: camel-k"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Configuring manager"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Installing operator resources"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Synthetic Integration manager not configured, skipping"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"Starting the manager"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"controller-runtime.metrics","msg":"Starting metrics server"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"starting server","kind":"health probe","addr":"[::]:8081"}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"controller-runtime.metrics","msg":"Serving metrics server","bindAddress":":8080","secure":false}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"attempting to acquire leader lease camel-dev-25/camel-k-lock..."}
{"level":"info","ts":"2025-01-13T11:23:38Z","logger":"camel-k.cmd","msg":"successfully acquired lease camel-dev-25/camel-k-lock"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","source":"kind source: *v1.Build"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Integration"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Deployment"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.CronJob"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integrationplatform-controller","source":"kind source: *v1.IntegrationPlatform"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationKit"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"integrationplatform-controller"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationPlatform"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.IntegrationProfile"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.ConfigMap"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Secret"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","source":"kind source: *v1.Pod"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","source":"kind source: *v1.CamelCatalog"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationKit"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.Build"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integrationkit-controller","source":"kind source: *v1.IntegrationPlatform"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"integrationkit-controller"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1alpha1.KameletBinding"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"kamelet-binding-controller","source":"kind source: *v1.Integration"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"kamelet-binding-controller"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"integrationprofile-controller","source":"kind source: *v1.IntegrationProfile"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"integrationprofile-controller"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"pipe-controller","source":"kind source: *v1.Pipe"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting EventSource","controller":"pipe-controller","source":"kind source: *v1.Integration"}
{"level":"info","ts":"2025-01-13T11:23:38Z","msg":"Starting Controller","controller":"pipe-controller"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead"}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"build-controller","controllerGroup":"camel.apache.org","controllerKind":"Build","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"integrationplatform-controller","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"integrationkit-controller","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"pipe-controller","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"integrationprofile-controller","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"catalog-controller","controllerGroup":"camel.apache.org","controllerKind":"CamelCatalog","worker count":4}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"kamelet-binding-controller","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action initialize","request-namespace":"camel-dev-25","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel-dev-25","name":"camel-k"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.integrationplatform","msg":"Initializing IntegrationPlatform","request-namespace":"camel-dev-25","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel-dev-25","name":"camel-k"}
{"level":"info","ts":"2025-01-13T11:23:39Z","msg":"Starting workers","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","worker count":1}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k","msg":"RuntimeVersion set to 3.15.0"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k","msg":"BaseImage set to artifactory.name/temurin/temurin17-jdk:17.0.13_11-debian-upd1"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k","msg":"ImagePlatforms set to []"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k","msg":"LocalRepository set to /etc/maven/m2"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k","msg":"Timeout set to {5m0s}"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k","msg":"Maven Timeout set to 5m0s"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.integrationplatform","msg":"State transition","request-namespace":"camel-dev-25","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel-dev-25","name":"camel-k","phase-from":"","phase-to":"Creating"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.integrationplatform","msg":"Invoking action create","request-namespace":"camel-dev-25","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel-dev-25","name":"camel-k"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.integrationplatform","msg":"Installing bundled camel catalog: 3.15.0","request-namespace":"camel-dev-25","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel-dev-25","name":"camel-k"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.integrationplatform","msg":"IntegrationPlatform is about to install Apache Kamelet Catalog version 4.8.0","request-namespace":"camel-dev-25","request-name":"camel-k","api-version":"camel.apache.org/v1","kind":"IntegrationPlatform","ns":"camel-dev-25","name":"camel-k"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.maven.build","msg":"Executed command: /usr/bin/cp --recursive /usr/share/maven/mvnw/. ."}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.maven","msg":"executing: ./mvnw -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.8.0:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp/kamelets/","MAVEN_OPTS":""}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.maven.build","msg":"Executed command: ./mvnw -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.8.0:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp/kamelets/"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.catalog","msg":"Invoking action initialize","request-namespace":"camel-dev-25","request-name":"camel-catalog-3.15.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"camel-dev-25","name":"camel-catalog-3.15.0"}
{"level":"info","ts":"2025-01-13T11:23:39Z","logger":"camel-k.controller.catalog","msg":"Initializing CamelCatalog","request-namespace":"camel-dev-25","request-name":"camel-catalog-3.15.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"camel-dev-25","name":"camel-catalog-3.15.0"}
{"level":"info","ts":"2025-01-13T11:23:44Z","logger":"camel-k.controller.catalog","msg":"Invoking action initialize","request-namespace":"camel-dev-25","request-name":"camel-catalog-3.15.0","api-version":"camel.apache.org/v1","kind":"CamelCatalog","ns":"camel-dev-25","name":"camel-catalog-3.15.0"}

Camel K version

2.5.0

@mss55 mss55 added the kind/bug Something isn't working label Jan 14, 2025
@squakez
Copy link
Contributor

squakez commented Jan 14, 2025

Thanks for reporting. Please, let me know if this is something you may want to look into.

@squakez squakez added this to the 2.6.0 milestone Jan 14, 2025
squakez added a commit to squakez/camel-k that referenced this issue Jan 16, 2025
squakez added a commit to squakez/camel-k that referenced this issue Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants