Using the http gateway profile in OpenShift Origin v4

30 views
Skip to first unread message

Rob

unread,
Oct 20, 2014, 5:00:47 PM10/20/14
to fusef...@googlegroups.com
Has anyone been able to use the http gateway profile in OpenShift v4?

I am currently attempting to use the cartridge mapping rules to say /gw goes to port 9000.

The first time I tried, it appears to actually try and proxy the request, but I get a 404.

0 14:58:04,574 | DEBUG | entloop-thread-0 | HttpGatewayHandler               | handlers.http.HttpGatewayHandler   65 | 131 - io.fabric8.gateway-core - 1.0.0.redhat-401 | Proxying request: /cxf/dot/image/color/r
2014-10-20 14:58:04,575 | INFO  | entloop-thread-0 | HttpGatewayHandler               | handlers.http.HttpGatewayHandler  131 | 131 - io.fabric8.gateway-core - 1.0.0.redhat-401 | Proxying request /cxf/dot/image/color/r to service path: /cxf/dot/image/color/r on service: http://dots-demo1.tiger.gccsj:80/cxf/dot reverseServiceUrl: http://127.11.221.1:9000/cxf/dot
2014-10-20 14:58:04,575 | DEBUG | entloop-thread-0 | HttpGatewayHandler               | ndlers.http.HttpGatewayHandler$3  173 | 131 - io.fabric8.gateway-core - 1.0.0.redhat-401 | end of the request
2014-10-20 14:58:04,582 | DEBUG | 92-796 Selector0 | nio                              | io.nio.SelectorManager$SelectSet  842 | 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | created SCEP@7b9ab254{l(/127.11.221.1:33102)<->r(/127.11.221.1:8080),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0}-{AsyncHttpConnection@6931e831,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0}
2014-10-20 14:58:04,583 | DEBUG | tp1070809392-801 | HttpParser                       | rg.eclipse.jetty.http.HttpParser  281 | 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | filled 669/669
2014-10-20 14:58:04,584 | DEBUG | ot/image/color/r | Server                           | org.eclipse.jetty.server.Server   365 | 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | REQUEST /cxf/dot/image/color/r on AsyncHttpConnection@6931e831,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-5,l=1,c=0},r=1
2014-10-20 14:58:04,584 | DEBUG | ot/image/color/r | ServerModel                      | eb.service.spi.model.ServerModel  282 | 100 - org.ops4j.pax.web.pax-web-spi - 3.0.6 | Matching [/cxf/dot/image/color/r]...
2014-10-20 14:58:04,585 | DEBUG | ot/image/color/r | ServerModel                      | eb.service.spi.model.ServerModel  304 | 100 - org.ops4j.pax.web.pax-web-spi - 3.0.6 | Path [/cxf/dot/image/color/r] does not match any context
2014-10-20 14:58:04,586 | DEBUG | ot/image/color/r | Server                           | org.eclipse.jetty.server.Server   367 | 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | RESPONSE /cxf/dot/image/color/r  200 handled=false
2014-10-20 14:58:04,587 | DEBUG | tp1070809392-801 | AsyncHttpConnection              | jetty.server.AsyncHttpConnection  211 | 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | Enabled read interest SCEP@7b9ab254{l(/127.11.221.1:33102)<->r(/127.11.221.1:8080),s=1,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0r}-{AsyncHttpConnection@6931e831,g=HttpGenerator{s=4,h=0,b=0,c=-1},p=HttpParser{s=0,l=1,c=0},r=1}
2014-10-20 14:58:04,588 | DEBUG | entloop-thread-0 | HttpGatewayHandler               | ndlers.http.HttpGatewayHandler$1  135 | 131 - io.fabric8.gateway-core - 1.0.0.redhat-401 | Proxying response: 404
2014-10-20 14:58:04,588 | DEBUG | tp1070809392-801 | ChannelEndPoint                  | pse.jetty.io.nio.ChannelEndPoint  118 | 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | ishut SCEP@7b9ab254{l(/127.11.221.1:33102)<->r(/127.11.221.1:8080),s=1,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0r}-{AsyncHttpConnection@6931e831,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
2014-10-20 14:58:04,589 | DEBUG | entloop-thread-0 | HttpGatewayHandler               | lers.http.HttpGatewayHandler$1$1  143 | 131 - io.fabric8.gateway-core - 1.0.0.redhat-401 | Proxying response body:<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /cxf/dot/image/color/r. Reason:
<pre>    Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>



The second time i tried this (after removing all containers from openshift and starting over) I got a 302 redirect to /console ??

Any help is much appreciated.

Thanks.
Reply all
Reply to author
Forward
0 new messages