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

Gateway-Http sometimes does not keep Hawtio url in registry thus not able to redirect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • jboss-fuse-6.2.1
    • Fabric8 v1, Gateway
    • None
    • % %
    • Hide
      • Create a fresh fabric environment and assign gateway-http profile following way.
        fabric:create --wait-for-provisioning
        fabric:profile-edit --feature fabric-zookeeper-commands default
        fabric:profile-edit --pid io.fabric8.gateway.http/port=9181 gateway-http
        zk:set /fabric/registry/ports/containers/${karaf.name}/org.ops4j.pax.web/org.osgi.service.http.port 8182
        
      • Browse gateway with url http://localhost:9181/hawtio/. This should redirect to hawtio logging page at hawtio-port configured above(8182).
      • Restart Fuse.
      • Browse gateway with url http://localhost:9181/hawtio/. It fails with INFO message:
        2016-08-15 12:11:47,882 | INFO  | entloop-thread-0 | HttpGatewayHandler               | 282 - io.fabric8.gateway-core - 1.2.0.redhat-621084 | Could not find matching proxy path for /hawtio from paths: [/servlets/io.fabric8.fabric-git-server/git/, /servlets/io.fabric8.fabric-jolokia/jolokia/, /git/fabric/, /hawtio-swagger/, /servlets/io.fabric8.mq.mq-http-discovery/mq-discovery/, /servlets/org.apache.cxf.cxf-rt-transports-http/cxf/, /servlets/io.fabric8.fabric-maven-proxy/maven/download/, /servlets/io.fabric8.fabric-maven-proxy/maven/upload/, /servlets/io.fabric8.fabric-redirect/*/]
        
      • If it still show login page than try to restart Fuse couple of times more to reproduce error.- If it still show login page than try to restart Fuse couple of times more to reproduce error.
      • Once we observe this issue, following command re-register the hawtio url to jolokia entries.
        JBossFuse:karaf@root> la -l|grep hawtio
        [ 251] [Active     ] [Created     ] [       ] [   80] mvn:io.hawt/hawtio-json-schema-mbean/1.4.redhat-621084
        [ 252] [Active     ] [            ] [       ] [   80] mvn:io.hawt/hawtio-osgi-jmx/1.4.redhat-621084
        [ 253] [Active     ] [            ] [       ] [   80] mvn:io.hawt/hawtio-web/1.4.redhat-621084/war
        [ 255] [Active     ] [Created     ] [       ] [   80] mvn:io.hawt/hawtio-karaf-terminal/1.4.redhat-621084/war
        [ 262] [Active     ] [            ] [       ] [   80] mvn:io.hawt/hawtio-redhat-fuse-branding/1.4.redhat-621084/war
        [ 271] [Active     ] [            ] [       ] [   80] mvn:io.fabric8/fabric-git-hawtio/1.2.0.redhat-621084
        [ 276] [Active     ] [            ] [       ] [   80] mvn:io.hawt/hawtio-redhat-amq-branding/1.4.redhat-621084/war
        [ 277] [Active     ] [            ] [       ] [   80] mvn:io.hawt.swagger/hawtio-swagger-ui/1.4.redhat-621084/war
        JBossFuse:karaf@root> refresh 253
        JBossFuse:karaf@root> 
        
      Show
      Create a fresh fabric environment and assign gateway-http profile following way. fabric:create --wait- for -provisioning fabric:profile-edit --feature fabric-zookeeper-commands default fabric:profile-edit --pid io.fabric8.gateway.http/port=9181 gateway-http zk:set /fabric/registry/ports/containers/${karaf.name}/org.ops4j.pax.web/org.osgi.service.http.port 8182 Browse gateway with url http://localhost:9181/hawtio/ . This should redirect to hawtio logging page at hawtio-port configured above(8182). Restart Fuse. Browse gateway with url http://localhost:9181/hawtio/ . It fails with INFO message: 2016-08-15 12:11:47,882 | INFO | entloop-thread-0 | HttpGatewayHandler | 282 - io.fabric8.gateway-core - 1.2.0.redhat-621084 | Could not find matching proxy path for /hawtio from paths: [/servlets/io.fabric8.fabric-git-server/git/, /servlets/io.fabric8.fabric-jolokia/jolokia/, /git/fabric/, /hawtio-swagger/, /servlets/io.fabric8.mq.mq-http-discovery/mq-discovery/, /servlets/org.apache.cxf.cxf-rt-transports-http/cxf/, /servlets/io.fabric8.fabric-maven-proxy/maven/download/, /servlets/io.fabric8.fabric-maven-proxy/maven/upload/, /servlets/io.fabric8.fabric-redirect/*/] If it still show login page than try to restart Fuse couple of times more to reproduce error.- If it still show login page than try to restart Fuse couple of times more to reproduce error. Once we observe this issue, following command re-register the hawtio url to jolokia entries. JBossFuse:karaf@root> la -l|grep hawtio [ 251] [Active ] [Created ] [ ] [ 80] mvn:io.hawt/hawtio-json-schema-mbean/1.4.redhat-621084 [ 252] [Active ] [ ] [ ] [ 80] mvn:io.hawt/hawtio-osgi-jmx/1.4.redhat-621084 [ 253] [Active ] [ ] [ ] [ 80] mvn:io.hawt/hawtio-web/1.4.redhat-621084/war [ 255] [Active ] [Created ] [ ] [ 80] mvn:io.hawt/hawtio-karaf-terminal/1.4.redhat-621084/war [ 262] [Active ] [ ] [ ] [ 80] mvn:io.hawt/hawtio-redhat-fuse-branding/1.4.redhat-621084/war [ 271] [Active ] [ ] [ ] [ 80] mvn:io.fabric8/fabric-git-hawtio/1.2.0.redhat-621084 [ 276] [Active ] [ ] [ ] [ 80] mvn:io.hawt/hawtio-redhat-amq-branding/1.4.redhat-621084/war [ 277] [Active ] [ ] [ ] [ 80] mvn:io.hawt.swagger/hawtio-swagger-ui/1.4.redhat-621084/war JBossFuse:karaf@root> refresh 253 JBossFuse:karaf@root>

    Description

      • It seems very similar to https://issues.jboss.org/browse/ENTESB-5820, difference is ENTESB-5820 is for cxf endpoints while this JIRA is for acessing Hawtio GUI itself.
      • When hawtio is accessible that time jolokia url at http://localhost:9181/ show
        {"/servlets/io.fabric8.fabric-git-server/git/":["http://dhcp193-4.pnq.redhat.com:8182/git"],"/git/fabric/":["http://dhcp193-4.pnq.redhat.com:8182/git/fabric/"],"/servlets/io.fabric8.fabric-jolokia/jolokia/":["http://dhcp193-4.pnq.redhat.com:8182/jolokia"],"/hawtio-swagger/":["http://dhcp193-4.pnq.redhat.com:8182/hawtio-swagger"],"/servlets/io.fabric8.mq.mq-http-discovery/mq-discovery/":["http://dhcp193-4.pnq.redhat.com:8182/mq-discovery"],"/hawtio/":["http://dhcp193-4.pnq.redhat.com:8182/hawtio"],"/servlets/io.fabric8.fabric-maven-proxy/maven/download/":["http://dhcp193-4.pnq.redhat.com:8182/maven/download"],"/servlets/org.apache.cxf.cxf-rt-transports-http/cxf/":["http://dhcp193-4.pnq.redhat.com:8182/cxf"],"/servlets/io.fabric8.fabric-maven-proxy/maven/upload/":["http://dhcp193-4.pnq.redhat.com:8182/maven/upload"],"/servlets/io.fabric8.fabric-redirect/*/":["http://dhcp193-4.pnq.redhat.com:8182/*
        
      • When hawtio is not accessible, that time
        {"/servlets/io.fabric8.fabric-git-server/git/":["http://dhcp193-4.pnq.redhat.com:8182/git"],"/git/fabric/":["http://dhcp193-4.pnq.redhat.com:8182/git/fabric/"],"/servlets/io.fabric8.fabric-jolokia/jolokia/":["http://dhcp193-4.pnq.redhat.com:8182/jolokia"],"/hawtio-swagger/":["http://dhcp193-4.pnq.redhat.com:8182/hawtio-swagger"],"/servlets/io.fabric8.mq.mq-http-discovery/mq-discovery/":["http://dhcp193-4.pnq.redhat.com:8182/mq-discovery"],"/servlets/io.fabric8.fabric-maven-proxy/maven/download/":["http://dhcp193-4.pnq.redhat.com:8182/maven/download"],"/servlets/org.apache.cxf.cxf-rt-transports-http/cxf/":["http://dhcp193-4.pnq.redhat.com:8182/cxf"],"/servlets/io.fabric8.fabric-maven-proxy/maven/upload/":["http://dhcp193-4.pnq.redhat.com:8182/maven/upload"],"/servlets/io.fabric8.fabric-redirect/*/":["http://dhcp193-4.pnq.redhat.com:8182/*"]}
        
      • If we compare both above, we find that when hawtio is not accessible that time "/hawtio/":["http://dhcp193-4.pnq.redhat.com:8182/hawtio"] is not registered.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tasato Tadayoshi Sato
              rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: