apache / camel-k

Apache Camel K is a lightweight integration platform, born on Kubernetes, with serverless superpowers
https://camel.apache.org/camel-k
Apache License 2.0
868 stars 349 forks source link

Creating camel-k with helm cannot publish integrations #5888

Closed longhai-he closed 2 weeks ago

longhai-he commented 1 month ago

What happened?

 Message:               integration kit default/kit-cs4buhs8rlr14be14ob0 is in state "Error". Failure: failure while building project: : signal: killed
    Reason:                IntegrationKitAvailable
    Status:                False
    Type:                  IntegrationKitAvailable
    Last Transition Time:  2024-10-11T06:31:48Z
    Last Update Time:      2024-10-11T06:31:48Z
    Message:               error during trait customization: security-context trait execution failed: could not find any integration deployment for my-it

Steps to reproduce

1.$ helm repo add camel-k https://apache.github.io/camel-k/charts/
2.$ helm install camel-k [--set platform.build.registry.address=<my-registry>] camel-k/camel-k --force
3.create my-integration.yaml 
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  name: my-it
spec:
  flows:
  - from:
      parameters:
        period: "1000"
      steps:
      - setBody:
          simple: Hello Camel from ${routeId}
      - log: ${body}
      uri: timer:yaml
4.$ kubectl  apply -f my-integration.yaml 

Relevant log output

Events:
  Type    Reason                       Age    From                                Message
  ----    ------                       ----   ----                                -------
  Normal  IntegrationConditionChanged  7m46s  camel-k-integration-controller      Condition "IntegrationPlatformAvailable" is "True
" for Integration my-it: default/camel-k
  Normal  IntegrationConditionChanged  7m46s  camel-k-integration-controller      Condition "TraitInfo" is "True" for Integration m
y-it: Applied traits: platform,camel,deployer
  Normal  IntegrationPhaseUpdated      7m46s  camel-k-integration-controller      Integration "my-it" in phase "Initialization"
  Normal  IntegrationConditionChanged  7m46s  camel-k-integration-controller      Condition "TraitInfo" is "True" for Integration m
y-it: Applied traits: init,camel,dependencies,deployer,gc,container,owner
  Normal  IntegrationPhaseUpdated      7m46s  camel-k-integration-controller      Integration "my-it" in phase "Building Kit"
  Normal  IntegrationConditionChanged  7m46s  camel-k-integration-controller      Condition "TraitInfo" is "True" for Integration m
y-it: Applied traits: camel,deployer,quarkus
  Normal  IntegrationConditionChanged  7m46s  camel-k-integration-controller      Condition "IntegrationKitAvailable" is "False" fo
r Integration my-it: creating a new integration kit
  Normal  ReasonRelatedObjectChanged   7m46s  camel-k-integration-kit-controller  Integration Kit "kit-cs4k78nj43qa5i1jti1g", creat
ed by Integration "my-it", changed phase to "Build Submitted"
  Normal  ReasonRelatedObjectChanged   7m46s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Scheduling"
  Normal  ReasonRelatedObjectChanged   7m46s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Pending"
  Normal  ReasonRelatedObjectChanged   7m46s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Running"
  Normal  ReasonRelatedObjectChanged   7m46s  camel-k-integration-kit-controller  Integration Kit "kit-cs4k78nj43qa5i1jti1g", creat
ed by Integration "my-it", changed phase to "Build Running"
  Normal  ReasonRelatedObjectChanged   2m46s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Failed"
  Normal  ReasonRelatedObjectChanged   2m41s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Initialization" (recovery 1 of 5)
  Normal  ReasonRelatedObjectChanged   2m41s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Scheduling" (recovery 1 of 5)
  Normal  ReasonRelatedObjectChanged   2m41s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Pending" (recovery 1 of 5)
  Normal  ReasonRelatedObjectChanged   2m41s  camel-k-build-controller            Build "kit-cs4k78nj43qa5i1jti1g", created by Inte
gration "my-it", changed phase to "Running" (recovery 1 of 5)

#############camel-k operator logs ########

{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.controller.build","msg":"State transition","request-namespace":"defau
lt","request-name":"kit-cs4k78nj43qa5i1jti1g","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cs4k78n
j43qa5i1jti1g","phase-from":"Pending","phase-to":"Running"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.builder","msg":"running builder task builder in context directory: /t
mp/kit-cs4k78nj43qa5i1jti1g-602271261"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"Executed command: /usr/bin/cp --recursive /usr/sh
are/maven/mvnw/. ."}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.controller.integrationkit","msg":"Invoking action build","request-nam
espace":"default","request-name":"kit-cs4k78nj43qa5i1jti1g","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"defau
lt","name":"kit-cs4k78nj43qa5i1jti1g"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.controller.integrationkit","msg":"Build running","request-namespace":
"default","request-name":"kit-cs4k78nj43qa5i1jti1g","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","nam
e":"kit-cs4k78nj43qa5i1jti1g"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven","msg":"executing: ./mvnw -V --no-transfer-progress -Dstyle.col
or=never package -Dmaven.test.skip=true -Dmaven.repo.local=/etc/maven/m2 --global-settings /tmp/kit-cs4k78nj43qa5i1jti1g-602271261/
maven/settings.xml","MAVEN_OPTS":""}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"Executed command: ./mvnw -V --no-transfer-progres
s -Dstyle.color=never package -Dmaven.test.skip=true -Dmaven.repo.local=/etc/maven/m2 --global-settings /tmp/kit-cs4k78nj43qa5i1jti
1g-602271261/maven/settings.xml"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"Apache Maven 3.8.6 (84538c9988a25aec085021c365c56
0670ad80f63)"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"Maven home: /usr/share/maven/wrapper/dists/apache
-maven-3.8.6-bin/5f1464e3/apache-maven-3.8.6"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"Java version: 17.0.12, vendor: Eclipse Adoptium, 
runtime: /opt/java/openjdk"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"Default locale: en_US, platform encoding: UTF-8"}
{"level":"info","ts":"2024-10-11T15:36:31Z","logger":"camel-k.maven.build","msg":"OS name: \"linux\", version: \"3.10.0-1160.92.1.e
l7.x86_64\", arch: \"amd64\", family: \"unix\""}
{"level":"info","ts":"2024-10-11T15:36:32Z","logger":"camel-k.maven.build","msg":"Scanning for projects..."}
{"level":"info","ts":"2024-10-11T15:36:32Z","logger":"camel-k.maven.build","msg":""}
{"level":"info","ts":"2024-10-11T15:36:32Z","logger":"camel-k.maven.build","msg":"---------< org.apache.camel.k.integration:camel-k
-integration >---------"}
{"level":"info","ts":"2024-10-11T15:36:32Z","logger":"camel-k.maven.build","msg":"Building camel-k-integration 2.4.0"}
{"level":"info","ts":"2024-10-11T15:36:32Z","logger":"camel-k.maven.build","msg":"--------------------------------[ jar ]----------
-----------------------"}

################camel-k it##################

[root@gykg-gksk-sz01p-ecs-uat-jkpt-ccenode-0930030 camel-k]# kubectl get it
NAME    PHASE          READY   RUNTIME PROVIDER   RUNTIME VERSION   KIT                        REPLICAS
my-it   Building Kit           quarkus            3.8.1             kit-cs4k78nj43qa5i1jti1g

Camel K version

v.2.4.0

squakez commented 1 month ago

Hello, thanks for reporting. It seems there is some problem when trying to build the maven project. According to the log provided, the build starts successfully, so, it's the publishing part to the registry that may be failing. You can have a look at the Camel K troubleshooting guide to find more useful information. In order to help, it would be nice to get the entire output log of the operator and additionally the output of the Build custom resource (ie, kubectl get build xyz -o yaml). If there is some problem to the registry (like it typically happens), you can also check the IntegrationPlatform status (ie, kubectl get itp -o yaml).

longhai-he commented 1 month ago

Thank you for your reply.


###############build   logs  ##########
Name:         kit-cs6enq6sr5bcvf96qk90
Namespace:    default
Labels:       camel.apache.org/created.by.kind=Integration
              camel.apache.org/created.by.name=my-integration
              camel.apache.org/created.by.namespace=default
              camel.apache.org/created.by.version=6224
              camel.apache.org/kit.layout=fast-jar
Annotations:  camel.apache.org/operator.id: camel-k
API Version:  camel.apache.org/v1
Kind:         Build
Metadata:
  Creation Timestamp:  2024-10-14T10:01:12Z
  Generation:          1
  Owner References:
    API Version:           camel.apache.org/v1
    Block Owner Deletion:  true
    Controller:            true
    Kind:                  IntegrationKit
    Name:                  kit-cs6enq6sr5bcvf96qk90
    UID:                   f8bcf3cf-051e-4917-b648-8c0bbc2e7bd3
  Resource Version:        6243
  UID:                     c20eab7c-7970-42e4-bf3a-5e6de49527d1
Spec:
  Configuration:
  Tasks:
    Builder:
      Base Image:  eclipse-temurin:17
      Configuration:
        Operator Namespace:  default
        Order Strategy:      sequential
        Strategy:            routine
        Tool Image:          registry.cn-hangzhou.aliyuncs.com/hlh-k8s/camel-k:2.3.1-amd64
      Dependencies:
        camel:timer
        mvn:org.apache.camel.k:camel-k-runtime
        mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl
      Maven:
        Cli Options:
          -V
          --no-transfer-progress
          -Dstyle.color=never
        Local Repository:  /etc/maven/m2
        Profiles:
          Config Map Key Ref:
            Key:   profile.xml
            Name:  kit-cs6enq6sr5bcvf96qk90-publish-jib-profile
        Properties:
          quarkus.package.type:  fast-jar
        Settings:
        Settings Security:
      Name:  builder
      Runtime:
        Application Class:  io.quarkus.bootstrap.runner.QuarkusEntryPoint
        Capabilities:
          Aws - Secrets - Manager:
            Dependencies:
              Artifact Id:  camel-quarkus-aws-secrets-manager
              Group Id:     org.apache.camel.quarkus
          Azure - Key - Vault:
            Dependencies:
              Artifact Id:  camel-quarkus-azure-key-vault
              Group Id:     org.apache.camel.quarkus
          Circuit - Breaker:
            Dependencies:
              Artifact Id:  camel-quarkus-microprofile-fault-tolerance
              Group Id:     org.apache.camel.quarkus
          Cron:
            Dependencies:
              Artifact Id:  camel-k-cron
              Group Id:     org.apache.camel.k
          Gcp - Secret - Manager:
            Dependencies:
              Artifact Id:  camel-quarkus-google-secret-manager
              Group Id:     org.apache.camel.quarkus
          Hashicorp - Vault:
            Dependencies:
              Artifact Id:  camel-quarkus-hashicorp-vault
              Group Id:     org.apache.camel.quarkus
          Health:
            Dependencies:
              Artifact Id:  camel-quarkus-microprofile-health
              Group Id:     org.apache.camel.quarkus
            Metadata:
              Default Liveness Probe Path:   /q/health/live
              Default Readiness Probe Path:  /q/health/ready
              Default Startup Probe Path:    /q/health/started
          Jolokia:
            Dependencies:
              Artifact Id:  camel-quarkus-jaxb
              Group Id:     org.apache.camel.quarkus
              Artifact Id:  camel-quarkus-management
              Group Id:     org.apache.camel.quarkus
              Artifact Id:  jolokia-agent-jvm
              Classifier:   javaagent
              Group Id:     org.jolokia
          Knative:
            Dependencies:
              Artifact Id:  camel-k-knative-impl
              Group Id:     org.apache.camel.k
              Artifact Id:  camel-quarkus-knative
              Group Id:     org.apache.camel.quarkus
          Logging:
            Runtime Properties:
              Key:    quarkus.console.color
              Value:  ${camel.k.logging.color}
              Key:    quarkus.log.console.format
              Value:  ${camel.k.logging.format}
              Key:    quarkus.log.console.json
              Value:  ${camel.k.logging.json}
              Key:    quarkus.log.console.json.pretty-print
              Value:  ${camel.k.logging.jsonPrettyPrint}
              Key:    quarkus.log.level
              Value:  ${camel.k.logging.level}
          Master:
            Build Time Properties:
              Key:    quarkus.camel.cluster.kubernetes.enabled
              Value:  ${camel.k.master.enabled}
            Dependencies:
              Artifact Id:  camel-k-master
              Group Id:     org.apache.camel.k
            Runtime Properties:
              Key:    quarkus.camel.cluster.kubernetes.labels."${camel.k.master.labelKey}"
              Value:  ${camel.k.master.labelValue}
              Key:    quarkus.camel.cluster.kubernetes.resource-name
              Value:  ${camel.k.master.resourceName}
              Key:    quarkus.camel.cluster.kubernetes.resource-type
              Value:  ${camel.k.master.resourceType}
          Platform - Http:
            Dependencies:
              Artifact Id:  camel-quarkus-platform-http
              Group Id:     org.apache.camel.quarkus
          Prometheus:
            Dependencies:
              Artifact Id:  micrometer-registry-prometheus
              Group Id:     io.micrometer
              Artifact Id:  camel-quarkus-micrometer
              Group Id:     org.apache.camel.quarkus
          Rest:
            Dependencies:
              Artifact Id:  camel-quarkus-platform-http
              Group Id:     org.apache.camel.quarkus
              Artifact Id:  camel-quarkus-rest
              Group Id:     org.apache.camel.quarkus
          Resume - Kafka:
            Dependencies:
              Artifact Id:  camel-k-resume-kafka
              Group Id:     org.apache.camel.k
          Service - Binding:
            Runtime Properties:
              Key:    quarkus.kubernetes-service-binding.enabled
              Value:  ${camel.k.serviceBinding.enabled}
          Telemetry:
            Dependencies:
              Artifact Id:  camel-quarkus-opentelemetry
              Group Id:     org.apache.camel.quarkus
            Runtime Properties:
              Key:    quarkus.opentelemetry.tracer.exporter.otlp.endpoint
              Value:  ${camel.k.telemetry.endpoint}
              Key:    quarkus.opentelemetry.tracer.resource-attributes
              Value:  ${camel.k.telemetry.serviceName}
              Key:    quarkus.opentelemetry.tracer.sampler
              Value:  ${camel.k.telemetry.sampler}
              Key:    quarkus.opentelemetry.tracer.sampler.parent-based
              Value:  ${camel.k.telemetry.samplerParentBased}
              Key:    quarkus.opentelemetry.tracer.sampler.ratio
              Value:  ${camel.k.telemetry.samplerRatio}
          Tracing:
            Dependencies:
              Artifact Id:  camel-quarkus-opentracing
              Group Id:     org.apache.camel.quarkus
        Dependencies:
          Artifact Id:  camel-k-runtime
          Group Id:     org.apache.camel.k
        Metadata:
          camel-quarkus.version:                     3.8.1
          camel.version:                             4.4.1
          jib.layer-filter-extension-maven.version:  0.3.0
          jib.maven-plugin.version:                  3.4.1
          quarkus.native-builder-image:              quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21
          quarkus.version:                           3.8.3
        Provider:                                    quarkus
        Version:                                     3.8.1
      Steps:
        github.com/apache/camel-k/v2/pkg/builder/LoadCamelQuarkusCatalog
        github.com/apache/camel-k/v2/pkg/builder/CleanUpBuildDir
        github.com/apache/camel-k/v2/pkg/builder/GenerateJavaKeystore
        github.com/apache/camel-k/v2/pkg/builder/GenerateQuarkusProject
        github.com/apache/camel-k/v2/pkg/builder/GenerateProjectSettings
        github.com/apache/camel-k/v2/pkg/builder/InjectDependencies
        github.com/apache/camel-k/v2/pkg/builder/SanitizeDependencies
        github.com/apache/camel-k/v2/pkg/builder/InjectProfiles
        github.com/apache/camel-k/v2/pkg/builder/BuildQuarkusRunner
    Package:
      Base Image:  eclipse-temurin:17
      Configuration:
      Dependencies:
        camel:timer
        mvn:org.apache.camel.k:camel-k-runtime
        mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl
      Maven:
        Cli Options:
          -V
          --no-transfer-progress
          -Dstyle.color=never
        Local Repository:  /etc/maven/m2
        Profiles:
          Config Map Key Ref:
            Key:   profile.xml
            Name:  kit-cs6enq6sr5bcvf96qk90-publish-jib-profile
        Settings:
        Settings Security:
      Name:  package
      Runtime:
        Application Class:  io.quarkus.bootstrap.runner.QuarkusEntryPoint
        Capabilities:
          Aws - Secrets - Manager:
            Dependencies:
              Artifact Id:  camel-quarkus-aws-secrets-manager
              Group Id:     org.apache.camel.quarkus
          Azure - Key - Vault:
            Dependencies:
              Artifact Id:  camel-quarkus-azure-key-vault
              Group Id:     org.apache.camel.quarkus
          Circuit - Breaker:
            Dependencies:
              Artifact Id:  camel-quarkus-microprofile-fault-tolerance
              Group Id:     org.apache.camel.quarkus
          Cron:
            Dependencies:
              Artifact Id:  camel-k-cron
              Group Id:     org.apache.camel.k
          Gcp - Secret - Manager:
            Dependencies:
              Artifact Id:  camel-quarkus-google-secret-manager
              Group Id:     org.apache.camel.quarkus
          Hashicorp - Vault:
            Dependencies:
              Artifact Id:  camel-quarkus-hashicorp-vault
              Group Id:     org.apache.camel.quarkus
          Health:
            Dependencies:
              Artifact Id:  camel-quarkus-microprofile-health
              Group Id:     org.apache.camel.quarkus
            Metadata:
              Default Liveness Probe Path:   /q/health/live
              Default Readiness Probe Path:  /q/health/ready
              Default Startup Probe Path:    /q/health/started
          Jolokia:
            Dependencies:
              Artifact Id:  camel-quarkus-jaxb
              Group Id:     org.apache.camel.quarkus
              Artifact Id:  camel-quarkus-management
              Group Id:     org.apache.camel.quarkus
              Artifact Id:  jolokia-agent-jvm
              Classifier:   javaagent
              Group Id:     org.jolokia
          Knative:
            Dependencies:
              Artifact Id:  camel-k-knative-impl
              Group Id:     org.apache.camel.k
              Artifact Id:  camel-quarkus-knative
              Group Id:     org.apache.camel.quarkus
          Logging:
            Runtime Properties:
              Key:    quarkus.console.color
              Value:  ${camel.k.logging.color}
              Key:    quarkus.log.console.format
              Value:  ${camel.k.logging.format}
              Key:    quarkus.log.console.json
              Value:  ${camel.k.logging.json}
              Key:    quarkus.log.console.json.pretty-print
              Value:  ${camel.k.logging.jsonPrettyPrint}
              Key:    quarkus.log.level
              Value:  ${camel.k.logging.level}
          Master:
            Build Time Properties:
              Key:    quarkus.camel.cluster.kubernetes.enabled
              Value:  ${camel.k.master.enabled}
            Dependencies:
              Artifact Id:  camel-k-master
              Group Id:     org.apache.camel.k
            Runtime Properties:
              Key:    quarkus.camel.cluster.kubernetes.labels."${camel.k.master.labelKey}"
              Value:  ${camel.k.master.labelValue}
              Key:    quarkus.camel.cluster.kubernetes.resource-name
              Value:  ${camel.k.master.resourceName}
              Key:    quarkus.camel.cluster.kubernetes.resource-type
              Value:  ${camel.k.master.resourceType}
          Platform - Http:
            Dependencies:
              Artifact Id:  camel-quarkus-platform-http
              Group Id:     org.apache.camel.quarkus
          Prometheus:
            Dependencies:
              Artifact Id:  micrometer-registry-prometheus
              Group Id:     io.micrometer
              Artifact Id:  camel-quarkus-micrometer
              Group Id:     org.apache.camel.quarkus
          Rest:
            Dependencies:
              Artifact Id:  camel-quarkus-platform-http
              Group Id:     org.apache.camel.quarkus
              Artifact Id:  camel-quarkus-rest
              Group Id:     org.apache.camel.quarkus
          Resume - Kafka:
            Dependencies:
              Artifact Id:  camel-k-resume-kafka
              Group Id:     org.apache.camel.k
          Service - Binding:
            Runtime Properties:
              Key:    quarkus.kubernetes-service-binding.enabled
              Value:  ${camel.k.serviceBinding.enabled}
          Telemetry:
            Dependencies:
              Artifact Id:  camel-quarkus-opentelemetry
              Group Id:     org.apache.camel.quarkus
            Runtime Properties:
              Key:    quarkus.opentelemetry.tracer.exporter.otlp.endpoint
              Value:  ${camel.k.telemetry.endpoint}
              Key:    quarkus.opentelemetry.tracer.resource-attributes
              Value:  ${camel.k.telemetry.serviceName}
              Key:    quarkus.opentelemetry.tracer.sampler
              Value:  ${camel.k.telemetry.sampler}
              Key:    quarkus.opentelemetry.tracer.sampler.parent-based
              Value:  ${camel.k.telemetry.samplerParentBased}
              Key:    quarkus.opentelemetry.tracer.sampler.ratio
              Value:  ${camel.k.telemetry.samplerRatio}
          Tracing:
            Dependencies:
              Artifact Id:  camel-quarkus-opentracing
              Group Id:     org.apache.camel.quarkus
        Dependencies:
          Artifact Id:  camel-k-runtime
          Group Id:     org.apache.camel.k
        Metadata:
          camel-quarkus.version:                     3.8.1
          camel.version:                             4.4.1
          jib.layer-filter-extension-maven.version:  0.3.0
          jib.maven-plugin.version:                  3.4.1
          quarkus.native-builder-image:              quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21
          quarkus.version:                           3.8.3
        Provider:                                    quarkus
        Version:                                     3.8.1
      Steps:
        github.com/apache/camel-k/v2/pkg/builder/LoadCamelQuarkusCatalog
        github.com/apache/camel-k/v2/pkg/builder/ComputeQuarkusDependencies
        github.com/apache/camel-k/v2/pkg/builder/IncrementalImageContext
        github.com/apache/camel-k/v2/pkg/builder/JvmDockerfile
    Jib:
      Base Image:  eclipse-temurin:17
      Configuration:
      Image:  registry.cn-hangzhou.aliyuncs.com/hlh-k8s/camel-k/camel-k-kit-cs6enq6sr5bcvf96qk90:6232
      Name:   jib
      Registry:
        Address:       registry.cn-hangzhou.aliyuncs.com
        Organization:  hlh-k8s/camel-k
        Secret:        camel-k-secret
  Timeout:             5m0s
Status:
  Conditions:
    Last Transition Time:  2024-10-14T10:01:12Z
    Last Update Time:      2024-10-14T10:01:12Z
    Message:               Found a running build in this namespace - the build (kit-cs6enq6sr5bcvf96qk90) gets enqueued
    Reason:                Waiting
    Status:                False
    Type:                  Scheduled
  Phase:                   Scheduling
Events:
  Type    Reason                 Age    From                      Message
  ----    ------                 ----   ----                      -------
  Normal  BuildPhaseUpdated      5m30s  camel-k-build-controller  Build "kit-cs6enq6sr5bcvf96qk90" in phase "Scheduling"
  Normal  BuildConditionChanged  5m30s  camel-k-build-controller  Condition "Scheduled" is "False" for Build kit-cs6enq6sr5bcvf96qk90: Found a running build in this namespace - the build (kit-cs6enq6sr5bcvf96qk90) gets enqueued
``
squakez commented 1 month ago

The problem seems to be some build stuck which is locking any other build to start (see Found a running build in this namespace - the build (kit-cs6enq6sr5bcvf96qk90) gets enqueued). You need to forcefully delete the build pending or alternatively kamel reset in order to clean all builds and kits in the given namespace (only if that is a development environment in order to avoid cleaning production resources).

squakez commented 4 weeks ago

Hello. Is the problem fixed now? should we close this issue?

longhai-he commented 3 weeks ago

I am very sorry, there is no error at present, because I did not see the specific error problem. I guess it was the private domain network problem that caused the failure of pulling jar packages when camel-k operator s used maven to build, but I have not found the specific reason