-
Notifications
You must be signed in to change notification settings - Fork 350
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
1st Integration after Camel K runtime version update failing #4776
Comments
Thanks for reporting. Yes, this may be caused by the fact that when the IntegrationPlatform is reconciled it does not create the CamelCatalog straight away. We need to make this happen on IP reconciliation instead of waiting the first Integration run as you are notifying. |
Closed by #4764 |
I just experienced the same behavior with Camel K 2.2 and runtimeVersion 3.6.0. After setting the runtime version in the IntegrationPlatform settings the first run integration goes into error state (does not recover from that state) because the camel catalog for 3.6.0 is not available. The 2nd run of the same integration is successful because in the meantime the catalog has been built and added as a custom resource. |
fyi @squakez |
- When new runtime version is used on integration the camel trait creates the catalog if it does not exist already - Use proper catalog namespace to verify that the catalog resource has been created during the camel trait execution
- When new runtime version is used on integration the camel trait creates the catalog if it does not exist already - Use proper catalog namespace to verify that the catalog resource has been created during the camel trait execution
- When new runtime version is used on integration the camel trait creates the catalog if it does not exist already - Use proper catalog namespace to verify that the catalog resource has been created during the camel trait execution
- When new runtime version is used on integration the camel trait creates the catalog if it does not exist already - Use proper catalog namespace to verify that the catalog resource has been created during the camel trait execution (cherry picked from commit 2916247)
- When new runtime version is used on integration the camel trait creates the catalog if it does not exist already - Use proper catalog namespace to verify that the catalog resource has been created during the camel trait execution (cherry picked from commit 2916247)
- When new runtime version is used on integration the camel trait creates the catalog if it does not exist already - Use proper catalog namespace to verify that the catalog resource has been created during the camel trait execution (cherry picked from commit 2916247) (cherry picked from commit apache/camel-k@1dee04715)
What happened?
In case users update the Camel K runtime version in the IntegrationPlatform (e.g. from 2.x to 3.2.0 in order to update to Camel v4) the 1st Integration that is run after the version change is failing. The error reported is CamelCatalog not found.
It seems that the new CamelCatalog is built when the 1st Integration is run. The racing condition between building the catalog and Integration building the kit is causing the error. As far as I could see the error state did not recover and I had to restart the Integration once again. After restart everything has worked as expected and the new catalog with new runtime version has been used.
Steps to reproduce
Relevant log output
No response
Camel K version
2.0.1
The text was updated successfully, but these errors were encountered: