You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/03 14:23:11 UTC
[GitHub] [camel-k] apupier opened a new issue #3077: [regression] Cannot provide 2 resources with 1.8.0 and 1.8.1
apupier opened a new issue #3077:
URL: https://github.com/apache/camel-k/issues/3077
regression https://github.com/apache/camel-k/issues/2943 was marked as fixed in 1.8.1 but seems it wasn't.
I tried with 1.8.1 but I still have the same errors
double-checked the kamel installation: `{"level":"info","ts":1646313742.1552255,"logger":"cmd","msg":"Camel K Operator Version: 1.8.1"}`
```
./kamel version
Camel K Client 1.8.1
```
example of error which seems really the same (even the line numbers which migth be strange):
```json
{
"level": "error",
"ts": 1646316143.3936555,
"logger": "controller.integration-controller",
"msg": "Reconciler error",
"reconciler group": "camel.apache.org",
"reconciler kind": "Integration",
"name": "test-multiple-resources",
"namespace": "default",
"error": "error executing post actions: error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
"errorVerbose": "error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/
controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
}
```
the difference that I spotted with 1.8.0 is that 2 configmap are created even if the two files have the same content
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] apupier commented on issue #3077: [regression] Cannot provide 2 resources with 1.8.0 and 1.8.1
Posted by GitBox <gi...@apache.org>.
apupier commented on issue #3077:
URL: https://github.com/apache/camel-k/issues/3077#issuecomment-1060706525
```
(base) [apupier@localhost ~]$ kubectl get Integration test-multiple-resources -o yaml
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
creationTimestamp: "2022-03-03T14:13:18Z"
generation: 1
managedFields:
- apiVersion: camel.apache.org/v1
fieldsType: FieldsV1
fieldsV1:
f:spec:
.: {}
f:sources: {}
f:traits:
.: {}
f:mount:
.: {}
f:configuration:
.: {}
f:resources: {}
manager: kamel
operation: Update
time: "2022-03-03T14:13:18Z"
- apiVersion: camel.apache.org/v1
fieldsType: FieldsV1
fieldsV1:
f:status:
.: {}
f:conditions: {}
f:dependencies: {}
f:digest: {}
f:image: {}
f:integrationKit:
.: {}
f:name: {}
f:namespace: {}
f:lastInitTimestamp: {}
f:phase: {}
f:platform: {}
f:profile: {}
f:runtimeProvider: {}
f:runtimeVersion: {}
f:version: {}
manager: kamel
operation: Update
subresource: status
time: "2022-03-03T14:13:18Z"
name: test-multiple-resources
namespace: default
resourceVersion: "5539"
uid: 47c28c96-0db4-4fc5-8672-737c13538c5c
spec:
sources:
- content: |
// camel-k: language=java
import org.apache.camel.builder.RouteBuilder;
public class TestMultipleResources extends RouteBuilder {
@Override
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period=1000")
.routeId("java")
.setBody()
.simple("Hello Camel K from ${routeId}")
.to("log:info");
}
}
name: TestMultipleResources.java
traits:
mount:
configuration:
resources:
- configmap:cm-ba4d8f5f7b532c56f7497230cb1de319778aed03/file1.txt@/etc/camel/resources/file1.txt
- configmap:cm-518cafc272343c84c417b68c843d4f823a5809a1/samecontentfile1.txt@/etc/camel/resources/samecontentfile1.txt
status:
conditions:
- firstTruthyTime: "2022-03-03T14:13:18Z"
lastTransitionTime: "2022-03-03T14:13:18Z"
lastUpdateTime: "2022-03-03T14:13:18Z"
message: default/camel-k
reason: IntegrationPlatformAvailable
status: "True"
type: IntegrationPlatformAvailable
- firstTruthyTime: "2022-03-03T14:13:18Z"
lastTransitionTime: "2022-03-03T14:13:18Z"
lastUpdateTime: "2022-03-03T14:13:18Z"
message: kit-c8gc2lv6s76de8cs34qg
reason: IntegrationKitAvailable
status: "True"
type: IntegrationKitAvailable
dependencies:
- camel:log
- camel:timer
- mvn:org.apache.camel.k:camel-k-runtime
- mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl
digest: vPRASD01TUb4aZfA2igrGdg-40MQIV-tO13oxD2dqv_o
image: 10.108.19.104/default/camel-k-kit-c8gc2lv6s76de8cs34qg@sha256:9af5aec6e1d2cff80b36b734660130c2954b92586a38c66c7dc5965775d92cef
integrationKit:
name: kit-c8gc2lv6s76de8cs34qg
namespace: default
lastInitTimestamp: "2022-03-03T14:13:18Z"
phase: Deploying
platform: camel-k
profile: Kubernetes
runtimeProvider: quarkus
runtimeVersion: 1.12.0
version: 1.8.1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] squakez closed issue #3077: [regression] Cannot provide 2 resources with 1.8.0 and 1.8.1
Posted by GitBox <gi...@apache.org>.
squakez closed issue #3077:
URL: https://github.com/apache/camel-k/issues/3077
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] squakez commented on issue #3077: [regression] Cannot provide 2 resources with 1.8.0 and 1.8.1
Posted by GitBox <gi...@apache.org>.
squakez commented on issue #3077:
URL: https://github.com/apache/camel-k/issues/3077#issuecomment-1060746162
Thanks @apupier. As far I can see the expected configuration is correct:
```
- configmap:cm-ba4d8f5f7b532c56f7497230cb1de319778aed03/file1.txt@/etc/camel/resources/file1.txt
- configmap:cm-518cafc272343c84c417b68c843d4f823a5809a1/samecontentfile1.txt@/etc/camel/resources/samecontentfile1.txt
```
I will need to reproduce the scenario to understand what's going on. Keep tuned.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org