camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Kamel cli fails with wait flag when updating existing Failed integration

Open astelmashenko opened this issue 2 years ago • 1 comments

Steps to reproduce:

  1. Create integration with error, e.g.
- route:
    from:
      uri: timer://tick
      steps:
        - to:
            uri: log:info
      parameters:
        period: 3000
        repeatCount: {{param.count}}
  1. Run it kamel --name test-api-int run integraion.yaml --config file:/my.properties --wait
  2. Observe it failed to deploy
  3. Fix integration
- route:
    from:
      uri: timer://tick
      steps:
        - to:
            uri: log:info
      parameters:
        period: 3000
        repeatCount: "{{param.count}}"
  1. Run it with wait flag kamel --name test-api-int run integraion.yaml --config file:/my.properties --wait

Actual behavior: Observe it failed again

Integration "test-api-int" updated
Progress: integration "test-api-int" in phase Error
Error: integration "test-api-int" deployment failed

while it is actually running in k8s in Running phase

Expected behavior: kamel run with --wait updates integration and completes with no errors

astelmashenko avatar Mar 30 '23 13:03 astelmashenko

Thanks for reporting. Yes, it seems to be a cosmetic bug caused by a race condition. Basically what it happens is that as soon as the Integration is updated, still the status phase is in Error as it had not yet the time to reconcile. The wait flag immediately checks the Integration status and report it, although it's not the one that will eventually be after the next reconciliation cycle.

squakez avatar Mar 31 '23 12:03 squakez

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Sep 17 '25 00:09 github-actions[bot]