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

Arquillian cube test doesn't work with 7.6 on OCP 4.4

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Blocker
    • Resolution: Done
    • fuse-7.6-GA
    • fuse-7.7-GA
    • Fuse on Openshift
    • None

    Description

      Quickstarts arquillian tests (across all fabric8 quickstarts) don't work:

      mvn -Dfabric8.imagePullPolicy=Always -Dnamespace.use.existing=llowinge-test -Dtest=KubernetesIntegrationKT -Dnamespace.cleanup.enabled=false -e --batch-mode test
      [INFO] Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------< com.redhat.xpaas.qe:spring-boot-camel-config >------------
      [INFO] Building Fabric8 :: Quickstarts :: Spring Boot :: Camel Config 1.0-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] Downloading from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/spring-cloud-kubernetes-core/0.1.6.fuse-760021-redhat-00001/spring-cloud-kubernetes-core-0.1.6.fuse-760021-redhat-00001.pom
      [INFO] Downloaded from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/spring-cloud-kubernetes-core/0.1.6.fuse-760021-redhat-00001/spring-cloud-kubernetes-core-0.1.6.fuse-760021-redhat-00001.pom (5.2 kB at 2.8 kB/s)
      [INFO] Downloading from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/spring-cloud-kubernetes-project/0.1.6.fuse-760021-redhat-00001/spring-cloud-kubernetes-project-0.1.6.fuse-760021-redhat-00001.pom
      [INFO] Downloaded from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/spring-cloud-kubernetes-project/0.1.6.fuse-760021-redhat-00001/spring-cloud-kubernetes-project-0.1.6.fuse-760021-redhat-00001.pom (22 kB at 16 kB/s)
      [INFO] Downloading from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/kubernetes-client-bom-with-deps/3.1.12.fuse-760025-redhat-00001/kubernetes-client-bom-with-deps-3.1.12.fuse-760025-redhat-00001.pom
      [INFO] Downloaded from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/kubernetes-client-bom-with-deps/3.1.12.fuse-760025-redhat-00001/kubernetes-client-bom-with-deps-3.1.12.fuse-760025-redhat-00001.pom (6.1 kB at 4.0 kB/s)
      [INFO] Downloading from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/spring-cloud-kubernetes-core/0.1.6.fuse-760021-redhat-00001/spring-cloud-kubernetes-core-0.1.6.fuse-760021-redhat-00001.jar
      [INFO] Downloaded from fuse-all: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/spring-cloud-kubernetes-core/0.1.6.fuse-760021-redhat-00001/spring-cloud-kubernetes-core-0.1.6.fuse-760021-redhat-00001.jar (48 kB at 32 kB/s)
      [INFO]
      [INFO] --- project-sources-maven-plugin:1.0:archive (project-sources-archive) @ spring-boot-camel-config ---
      [INFO] Building tar: /Users/llowinge/Redhat/xpaas/xpaas-qe/test-fuse/tmp/spring-boot-camel-config8004093779427456745/spring-boot-camel-config/target/spring-boot-camel-config-1.0-SNAPSHOT-project-sources.tar.gz
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot-camel-config ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 4 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ spring-boot-camel-config ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot-camel-config ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ spring-boot-camel-config ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ spring-boot-camel-config ---
      [INFO] Surefire report directory: /Users/llowinge/Redhat/xpaas/xpaas-qe/test-fuse/tmp/spring-boot-camel-config8004093779427456745/spring-boot-camel-config/target/surefire-reports
      
      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running com.redhat.xpaas.qe.KubernetesIntegrationKT
      Initializing Session:11f52a6d
      Using Kubernetes at: https://api.foo44ga.openshift-aws.rhocf-dev.com:6443/
      Applying additional kubernetes configuration from: file:/Users/llowinge/Redhat/xpaas/xpaas-qe/test-fuse/tmp/spring-boot-camel-config8004093779427456745/spring-boot-camel-config/target/spring-boot-camel-config-is.yml
      08:22:28.768 [main] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.5.Final-redhat-2
      Found dependency: file:src/test/resources/test-secret.json
      Applying kubernetes configuration from: file:/Users/llowinge/Redhat/xpaas/xpaas-qe/test-fuse/tmp/spring-boot-camel-config8004093779427456745/spring-boot-camel-config/target/classes/META-INF/fabric8//openshift.json
      08:22:34.814 [Executor for Watch 777690952] INFO  i.f.k.c.v.d.i.WatchHTTPManager - Current reconnect backoff is 1000 milliseconds (T0)
      08:22:35.966 [Executor for Watch 777690952] INFO  i.f.k.c.v.d.i.WatchHTTPManager - Current reconnect backoff is 2000 milliseconds (T1)
      08:22:38.119 [Executor for Watch 777690952] INFO  i.f.k.c.v.d.i.WatchHTTPManager - Current reconnect backoff is 4000 milliseconds (T2)
      08:22:42.287 [Executor for Watch 777690952] INFO  i.f.k.c.v.d.i.WatchHTTPManager - Current reconnect backoff is 8000 milliseconds (T3)
      08:22:50.436 [Executor for Watch 777690952] INFO  i.f.k.c.v.d.i.WatchHTTPManager - Current reconnect backoff is 16000 milliseconds (T4)
      08:23:05.818 [pool-1-thread-6] WARN  i.f.k.c.v.d.i.WatchHTTPManager - Executor didn't terminate in time after shutdown in close(), killing it in: io.fabric8.kubernetes.clnt.v2_6.dsl.internal.WatchHTTPManager@2e5a9f48
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 39.631 sec <<< FAILURE! - in com.redhat.xpaas.qe.KubernetesIntegrationKT
      com.redhat.xpaas.qe.KubernetesIntegrationKT  Time elapsed: 39.631 sec  <<< ERROR!
      java.lang.RuntimeException: io.fabric8.kubernetes.clnt.v2_6.KubernetesClientException: Failure executing: GET at: https://api.foo44ga.openshift-aws.rhocf-dev.com:6443/apis/extensions/v1beta1/namespaces/llowinge-test/replicasets. Message: the server could not find the requested resource. Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=the server could not find the requested resource, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, status=Failure, additionalProperties={}).
      Caused by: io.fabric8.kubernetes.clnt.v2_6.KubernetesClientException: Failure executing: GET at: https://api.foo44ga.openshift-aws.rhocf-dev.com:6443/apis/extensions/v1beta1/namespaces/llowinge-test/replicasets. Message: the server could not find the requested resource. Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=the server could not find the requested resource, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, status=Failure, additionalProperties={}).
      
      
      Results :
      
      Tests in error:
        KubernetesIntegrationKT.com.redhat.xpaas.qe.KubernetesIntegrationKT ยป Runtime ...
      
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  48.347 s
      [INFO] Finished at: 2020-05-29T08:23:06+02:00
      

      Another way how to reproduce is via attached app
      Running attached application (mvn clean install failsafe:integration-test) fails with error

      Caused by: io.fabric8.kubernetes.clnt.v2_6.KubernetesClientException: Failure executing: GET at: https://api.foo44ga.openshift-aws.rhocf-dev.com:6443/apis/extensions/v1beta1/namespaces/llowinge-test/replicasets. Message: the server could not find the requested resource. Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=the server could not find the requested resource, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, status=Failure, additionalProperties={}).
      

      I believe the problem is that the arquillian-cube-openshift version pulled from Fuse BOM is outdated for OCP 4.4.

      Attachments

        Activity

          People

            rhn-support-tasato Tadayoshi Sato
            llowinge@redhat.com Lukas Lowinger
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: