Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-3996

Operator exception when deploying windup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTR-1.2.0
    • None
    • MTR Operator
    • None
    • False
    • None
    • False
    • Hide
      * *Why we missed the bug?*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+


       * *What is required:*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+
      Show
      * *Why we missed the bug?*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+  * *What is required:*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+
    • ---
    • ---
    • AMM Sprint 240, AMM Sprint 241
    • No

      The windup-operator, when deploying windup, reports the exception:

      2023-08-03 13:38:26,001 ERROR [io.jav.ope.pro.eve.ReconciliationDispatcher] (ReconcilerExecutor-windup-84) Error during event processing ExecutionScope{ resource id: ResourceID{name='mtr', namespace='mtr'}, version: 29237} failed.: io.javaoperatorsdk.operator.OperatorException: AggregatedOperatorException{causes=[java.lang.IllegalStateException: More than 1 secondary resource related to primary]}
      at io.javaoperatorsdk.operator.monitoring.micrometer.MicrometerMetrics.lambda$timeControllerExecution$0(MicrometerMetrics.java:58)
      at io.micrometer.core.instrument.composite.CompositeTimer.record(CompositeTimer.java:65)
      at io.javaoperatorsdk.operator.monitoring.micrometer.MicrometerMetrics.timeControllerExecution(MicrometerMetrics.java:54)
      at io.javaoperatorsdk.operator.processing.Controller.reconcile(Controller.java:87)
      at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.reconcileExecution(ReconciliationDispatcher.java:137)
      at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.handleReconcile(ReconciliationDispatcher.java:117)
      at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.handleDispatch(ReconciliationDispatcher.java:88)
      at io.javaoperatorsdk.operator.processing.event.ReconciliationDispatcher.handleExecution(ReconciliationDispatcher.java:61)
      at io.javaoperatorsdk.operator.processing.event.EventProcessor$ReconcilerExecutor.run(EventProcessor.java:395)
      at java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base@17.0.6/java.lang.Thread.run(Thread.java:833)
      at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775)
      at org.graalvm.nativeimage.builder/com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:203)
      Caused by: AggregatedOperatorException{causes=[java.lang.IllegalStateException: More than 1 secondary resource related to primary]}
      at io.javaoperatorsdk.operator.processing.dependent.workflow.WorkflowReconcileResult.createFinalException(WorkflowReconcileResult.java:54)
      at io.javaoperatorsdk.operator.processing.dependent.workflow.WorkflowReconcileResult.throwAggregateExceptionIfErrorsPresent(WorkflowReconcileResult.java:48)
      at io.javaoperatorsdk.operator.processing.Controller$1.execute(Controller.java:128)
      at io.javaoperatorsdk.operator.processing.Controller$1.execute(Controller.java:88)
      at io.javaoperatorsdk.operator.monitoring.micrometer.MicrometerMetrics.lambda$timeControllerExecution$0(MicrometerMetrics.java:56)
      ... 13 more
      Caused by: java.lang.IllegalStateException: More than 1 secondary resource related to primary
      at io.javaoperatorsdk.operator.processing.event.source.ResourceEventSource.getSecondaryResource(ResourceEventSource.java:23)
      at io.javaoperatorsdk.operator.processing.dependent.kubernetes.KubernetesDependentResource.getSecondaryResource(KubernetesDependentResource.java:213)
      at io.javaoperatorsdk.operator.processing.dependent.AbstractDependentResource.reconcile(AbstractDependentResource.java:32)
      at org.jboss.windup.operator.cdrs.v2alpha1.WebIngress_ClientProxy.reconcile(Unknown Source)
      at io.javaoperatorsdk.operator.processing.dependent.workflow.WorkflowReconcileExecutor$NodeReconcileExecutor.run(WorkflowReconcileExecutor.java:167)
      at java.base@17.0.6/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      at java.base@17.0.6/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      ... 5 more
      

              cferiavi Carlos Esteban Feria Vila
              mrizzi@redhat.com Marco Rizzi
              Sachin Singla Sachin Singla
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: