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/07/04 07:44:11 UTC

[GitHub] [camel-k] squakez opened a new issue, #3412: Failing integration does not report error condition

squakez opened a new issue, #3412:
URL: https://github.com/apache/camel-k/issues/3412

   Any failing integration, ie `kamel run -d mvn:com.example:nonexistent:1.0 Hello.java` will correctly set the error on IntegrationKit, but won't do on Integration, resulting the Integration in a `Building Kit` state even if it failed:
   
   ```
   squake:~ $ kamel get
   NAME	PHASE		KIT
   hello	Building Kit	default/kit-cb19gvc268e9p6peapt0
   
   squake:~ $ k get integrationkit
   NAME                       PHASE   TYPE       IMAGE
   kit-cb19gvc268e9p6peapt0   Error   platform 
   ```


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #3412: Failing integration does not report error condition

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #3412:
URL: https://github.com/apache/camel-k/issues/3412#issuecomment-1182921659

   > Is this somewhere like this that is relevant to the issue? https://github.com/apache/camel-k/blob/main/pkg/controller/integration/monitor.go#L218
   
   Thanks @tadayosi. I am not sure what is the expected behavior. I mean, I'm assuming that a failing IntegrationKit build will take care to turn the Integration which owns it as errored as well but I don't know where it used to happen. There were several refactoring in the past, so, likely we missed something. Also we need to introduce an E2E test to take care of this situation and avoid any future regression.


-- 
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 #3412: Failing integration does not report error condition

Posted by GitBox <gi...@apache.org>.
squakez closed issue #3412: Failing integration does not report error condition
URL: https://github.com/apache/camel-k/issues/3412


-- 
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] tadayosi commented on issue #3412: Failing integration does not report error condition

Posted by GitBox <gi...@apache.org>.
tadayosi commented on issue #3412:
URL: https://github.com/apache/camel-k/issues/3412#issuecomment-1182887406

   Is this something like this that is relevant to the issue?
   https://github.com/apache/camel-k/blob/main/pkg/controller/integration/monitor.go#L218


-- 
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] astefanutti commented on issue #3412: Failing integration does not report error condition

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #3412:
URL: https://github.com/apache/camel-k/issues/3412#issuecomment-1183187034

   @squakez as you pointed it out, the integration phase is set to error when the kit fails in: https://github.com/apache/camel-k/blob/37cba2f05ee3e59db3e2b8f18f88b887f15b9ac7/pkg/controller/integration/build_kit.go#L91
   
   I suspect this works, but the integration phase gets overwritten later with: https://github.com/apache/camel-k/blob/c3b9c9be36e219b593bb395795be817171a0b431/pkg/controller/integration/monitor.go#L230
   
   For some reasons, the phase is not set to error while introspecting the underlying deployment / pods. That being said, it may be more robust to force the phase to error in that case, which would likely provide a better error message. 


-- 
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 #3412: Failing integration does not report error condition

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #3412:
URL: https://github.com/apache/camel-k/issues/3412#issuecomment-1182849115

   Hey @astefanutti, I had a first look at this, but I am not able to figure it out where it is failing. Do you have some suggestion to places I should look for a fix? I had a look at the code and I think that error conditions should be captured by https://github.com/apache/camel-k/blob/37cba2f05ee3e59db3e2b8f18f88b887f15b9ac7/pkg/controller/integration/build_kit.go#L91, although it's not. Thanks in advance for the support.


-- 
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 #3412: Failing integration does not report error condition

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #3412:
URL: https://github.com/apache/camel-k/issues/3412#issuecomment-1195161490

   I've gone deep in this and found the responsible is this check here: https://github.com/apache/camel-k/blob/132dcebd1af7457f2952e14435e887061f45d720/pkg/controller/integration/kits.go#L117-L121 Basically we never found a match when the integrationkit has failed, resulting in the issue described. Unfortunately the method is used in other places, so I will need to find a way to solve it.


-- 
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