Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11929

[ER1][OCP4][SB1] Watching configmap throws exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • fuse-7.5-CR1
    • fuse-7.5-ER1
    • Fuse on Openshift
    • None
    • % %
    • Hide
      1. oc new-project reload-property1
      2. oc create configmap reload-property --from-literal=bean.core=1 --from-literal=bean.max=16
      3. oc adm policy add-role-to-user view -z default -n reload-property1
      4. Unzip zip
      5. mvn clean install && mvn fabric8:deploy -Popenshift
      Show
      oc new-project reload-property1 oc create configmap reload-property --from-literal=bean.core=1 --from-literal=bean.max=16 oc adm policy add-role-to-user view -z default -n reload-property1 Unzip zip mvn clean install && mvn fabric8:deploy -Popenshift
    • Fuse 7.5 Sprint 53 - Blockers

    Description

      I can see error like

      11:45:56.750 [OkHttp https://kubernetes.default.svc/...] WARN  i.f.k.c.d.i.WatchConnectionManager - Exec Failure: HTTP 403, Status: 403 -
      java.net.ProtocolException: Expected HTTP 101 response but was '403 Forbidden'
      	at okhttp3.internal.ws.RealWebSocket.checkResponse(RealWebSocket.java:219)
      	at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:186)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      11:45:56.752 [main] ERROR i.f.s.c.k.r.EventBasedConfigurationChangeDetector - Error while establishing a connection to watch config maps: configuration may remain stale
      io.fabric8.kubernetes.client.KubernetesClientException:
      	at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$2.onFailure(WatchConnectionManager.java:197)
      	at okhttp3.internal.ws.RealWebSocket.failWebSocket(RealWebSocket.java:546)
      	at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:188)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Exception in thread "OkHttp Dispatcher" java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@7bbe3a5f rejected from java.util.concurrent.ScheduledThreadPoolExecutor@177dd6e8[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
      	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
      	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)
      	at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)
      	at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
      	at java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:632)
      	at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:678)
      	at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.scheduleReconnect(WatchConnectionManager.java:307)
      	at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.access$800(WatchConnectionManager.java:47)
      	at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$2.onFailure(WatchConnectionManager.java:212)
      	at okhttp3.internal.ws.RealWebSocket.failWebSocket(RealWebSocket.java:546)
      	at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:188)
      	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
      	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      It seems to be related to https://github.com/fabric8io/kubernetes-client/issues/1667, https://github.com/fabric8io/kubernetes-client/pull/1669 as stated in comment

      Attachments

        Activity

          People

            atarocch@redhat.com Andrea Tarocchi (Inactive)
            llowinge@redhat.com Lukas Lowinger
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: