-
Bug
-
Resolution: Done
-
Blocker
-
fuse-7.3
-
None
I think there is wrong Base Image specified in PROD build of camel-k.
I can see fabric8/s2i-java:3.0-java8 in community version.
There is fuse7/fuse-java-openshift:1.3 in PROD. I am not sure what fuse7/fuse-java-openshift:1.3 actually does but it seems that it can't be used for S2I.
Camel-K with default Base Image
:"camel-k.controller.integrationcontext","msg":"IntegrationContext state transition","request-namespace":"myproject","request-name":"jvm","api-version":"camel.apache.org/v1alpha1","kind":"IntegrationContext","ns":"myproject","name":"jvm","phase":"Build Failure Recovery","error":"error while evaluating condition: build failed","errorVerbose":"build failed\ngithub.com/apache/camel-k/pkg/builder/s2i.Publisher.func1\n\t/go/src/github.com/apache/camel-k/pkg/builder/s2i/publisher.go:149\ngithub.com/apache/camel-k/pkg/util/kubernetes.WaitCondition\n\t/go/src/github.com/apache/camel-k/pkg/util/kubernetes/wait.go:60\ngithub.com/apache/camel-k/pkg/builder/s2i.Publisher\n\t/go/src/github.com/apache/camel-k/pkg/builder/s2i/publisher.go:142\ngithub.com/apache/camel-k/pkg/builder.(*stepWrapper).Execute\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder_types.go:82\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).process\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder.go:242\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).loop\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder.go:130\nruntime.goexit\n\t/opt/rh/go-toolset-7/root/usr/lib/go-toolset-7-golang/src/runtime/asm_amd64.s:2361\nerror while evaluating condition\ngithub.com/apache/camel-k/pkg/util/kubernetes.WaitCondition\n\t/go/src/github.com/apache/camel-k/pkg/util/kubernetes/wait.go:62\ngithub.com/apache/camel-k/pkg/builder/s2i.Publisher\n\t/go/src/github.com/apache/camel-k/pkg/builder/s2i/publisher.go:142\ngithub.com/apache/camel-k/pkg/builder.(*stepWrapper).Execute\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder_types.go:82\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).process\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder.go:242\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).loop\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder.go:130\nruntime.goexit\n\t/opt/rh/go-toolset-7/root/usr/lib/go-toolset-7-golang/src/runtime/asm_amd64.s:2361","stacktrace":"github.com/apache/camel-k/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/apache/camel-k/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/apache/camel-k/pkg/util/log.Logger.Error\n\t/go/src/github.com/apache/camel-k/pkg/util/log/log.go:70\ngithub.com/apache/camel-k/pkg/controller/integrationcontext.(*buildAction).handleBuildStateChange\n\t/go/src/github.com/apache/camel-k/pkg/controller/integrationcontext/build.go:187\ngithub.com/apache/camel-k/pkg/controller/integrationcontext.(*buildAction).handleBuildSubmitted.func1\n\t/go/src/github.com/apache/camel-k/pkg/controller/integrationcontext/build.go:131\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).process\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder.go:284\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).loop\n\t/go/src/github.com/apache/camel-k/pkg/builder/builder.go:130"}
oc describe IntegrationPlatform camel-k
Name: camel-k
Namespace: myproject
Labels: app=camel-k
Annotations: <none>
API Version: camel.apache.org/v1alpha1
Kind: IntegrationPlatform
Metadata:
Creation Timestamp: 2019-04-16T06:34:42Z
Generation: 2
Resource Version: 110199
Self Link: /apis/camel.apache.org/v1alpha1/namespaces/myproject/integrationplatforms/camel-k
UID: b7bbe04a-6011-11e9-b715-5254008f2999
Spec:
Build:
Base Image: fuse7/fuse-java-openshift:1.3
Camel Version: 2.23.1
Local Repository: /tmp/artifacts/m2
Publish Strategy: S2I
Registry:
Repositories:
http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse7-all/
Runtime Version: 0.3.2.fuse-730015-redhat-00002
Timeout: 5m0s
Cluster: OpenShift
Profile: OpenShift
Resources:
Status:
Phase: Starting
Events: <none>
oc describe IntegrationContexts jvm
Name: jvm
Namespace: myproject
Labels: app=camel-k
camel.apache.org/context.created.by.kind=Operator
camel.apache.org/context.created.by.name=camel-k-operator
camel.apache.org/context.type=platform
Annotations: <none>
API Version: camel.apache.org/v1alpha1
Kind: IntegrationContext
Metadata:
Creation Timestamp: 2019-04-16T06:36:09Z
Generation: 1
Resource Version: 110494
Self Link: /apis/camel.apache.org/v1alpha1/namespaces/myproject/integrationcontexts/jvm
UID: eb675747-6011-11e9-b715-5254008f2999
Spec:
Dependencies:
runtime:jvm
camel:core
Status:
Camel Version: 2.23.1
Digest: vmlMa-VvLXI-OgbUDfFmEF7cxrED3OmtH-XkqMSKNamU
Failure:
Reason: error while evaluating condition: build failed
Recovery:
Attempt: 0
Attempt Max: 5
Attempt Time: <nil>
Time: 2019-04-16T06:37:11Z
Phase: Build Failure Recovery
Runtime Version: 0.3.2.fuse-730015-redhat-00002
Camel-K deployed with --base-image fabric8/s2i-java:3.0-java8 option
oc describe IntegrationPlatform camel-k
Name: camel-k
Namespace: myproject
Labels: app=camel-k
Annotations: <none>
API Version: camel.apache.org/v1alpha1
Kind: IntegrationPlatform
Metadata:
Creation Timestamp: 2019-04-16T06:44:45Z
Generation: 2
Resource Version: 113624
Self Link: /apis/camel.apache.org/v1alpha1/namespaces/myproject/integrationplatforms/camel-k
UID: 1f03c94e-6013-11e9-b715-5254008f2999
Spec:
Build:
Base Image: fabric8/s2i-java:3.0-java8
Camel Version: 2.23.1
Local Repository: /tmp/artifacts/m2
Publish Strategy: S2I
Registry:
Repositories:
http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse7-all/
Runtime Version: 0.3.2.fuse-730015-redhat-00002
Timeout: 5m0s
Cluster: OpenShift
Profile: OpenShift
Resources:
Status:
Phase: Starting
Events: <none>
oc describe IntegrationContexts jvm
Name: jvm
Namespace: myproject
Labels: app=camel-k
camel.apache.org/context.created.by.kind=Operator
camel.apache.org/context.created.by.name=camel-k-operator
camel.apache.org/context.type=platform
Annotations: <none>
API Version: camel.apache.org/v1alpha1
Kind: IntegrationContext
Metadata:
Creation Timestamp: 2019-04-16T06:45:12Z
Generation: 1
Resource Version: 113912
Self Link: /apis/camel.apache.org/v1alpha1/namespaces/myproject/integrationcontexts/jvm
UID: 2f771f61-6013-11e9-b715-5254008f2999
Spec:
Dependencies:
runtime:jvm
camel:core
Status:
Artifacts:
Id: org.apache.camel.k:camel-k-runtime-jvm:jar:0.3.2.fuse-730015-redhat-00002
Target: dependencies/org.apache.camel.k.camel-k-runtime-jvm-0.3.2.fuse-730015-redhat-00002.jar
Id: org.apache.camel.k:camel-k-runtime-core:jar:0.3.2.fuse-730015-redhat-00002
Target: dependencies/org.apache.camel.k.camel-k-runtime-core-0.3.2.fuse-730015-redhat-00002.jar
Id: org.apache.logging.log4j:log4j-core:jar:2.11.2
Target: dependencies/org.apache.logging.log4j.log4j-core-2.11.2.jar
Id: org.apache.logging.log4j:log4j-api:jar:2.11.2
Target: dependencies/org.apache.logging.log4j.log4j-api-2.11.2.jar
Id: org.apache.logging.log4j:log4j-slf4j-impl:jar:2.11.2
Target: dependencies/org.apache.logging.log4j.log4j-slf4j-impl-2.11.2.jar
Id: org.jooq:joor-java-8:jar:0.9.10
Target: dependencies/org.jooq.joor-java-8-0.9.10.jar
Id: commons-io:commons-io:jar:2.6
Target: dependencies/commons-io.commons-io-2.6.jar
Id: org.apache.commons:commons-lang3:jar:3.8.1
Target: dependencies/org.apache.commons.commons-lang3-3.8.1.jar
Id: org.apache.camel:camel-core:jar:2.23.1
Target: dependencies/org.apache.camel.camel-core-2.23.1.jar
Id: org.slf4j:slf4j-api:jar:1.7.25
Target: dependencies/org.slf4j.slf4j-api-1.7.25.jar
Id: com.sun.xml.bind:jaxb-core:jar:2.3.0
Target: dependencies/com.sun.xml.bind.jaxb-core-2.3.0.jar
Id: com.sun.xml.bind:jaxb-impl:jar:2.3.0
Target: dependencies/com.sun.xml.bind.jaxb-impl-2.3.0.jar
Id: org.apache.camel.k:camel-k-adapter-camel-2:jar:0.3.2.fuse-730015-redhat-00002
Target: dependencies/org.apache.camel.k.camel-k-adapter-camel-2-0.3.2.fuse-730015-redhat-00002.jar
Base Image: fabric8/s2i-java:3.0-java8
Camel Version: 2.23.1
Digest: vmlMa-VvLXI-OgbUDfFmEF7cxrED3OmtH-XkqMSKNamU
Image: 172.30.1.1:5000/myproject/camel-k-jvm:113626
Phase: Ready
Runtime Version: 0.3.2.fuse-730015-redhat-00002
Events: <none>