You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/03/02 11:06:40 UTC

[GitHub] [camel-k] nicolaferraro opened a new pull request #1315: Fix #1304: fix the saga example to use default ports

nicolaferraro opened a new pull request #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315
 
 
   <!-- Description -->
   Fix #1304
   
   I've changed the saga example to use default ports and unified kube and oc configuration. I've managed to run it with this config.
   
   cc: @sobkowiak
   
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   NONE
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1315: Fix #1304: fix the saga example to use default ports

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315#issuecomment-600086802
 
 
   Improved it to work on OpenShift, but definitely not able to run it on a Knative installation.
   
   The promise of Istio is to allow services to communicate transparently, but this does not seem to be the case.
   
   I'd merge it, but it requires changes to run on Knative.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] sobkowiak commented on issue #1315: Fix #1304: fix the saga example to use default ports

Posted by GitBox <gi...@apache.org>.
sobkowiak commented on issue #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315#issuecomment-600099243
 
 
   It seems to be a problem in Istio local gateway. I think I saw another post in camel-k gitter about problem with communicating knative service via the local gateway.  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro merged pull request #1315: Fix #1304: fix the saga example to use default ports

Posted by GitBox <gi...@apache.org>.
nicolaferraro merged pull request #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] sobkowiak commented on issue #1315: Fix #1304: fix the saga example to use default ports

Posted by GitBox <gi...@apache.org>.
sobkowiak commented on issue #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315#issuecomment-593388696
 
 
   @nicolaferraro great!!! I'll check it in the evening

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] sobkowiak edited a comment on issue #1315: Fix #1304: fix the saga example to use default ports

Posted by GitBox <gi...@apache.org>.
sobkowiak edited a comment on issue #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315#issuecomment-593660527
 
 
   I have following error in the saga integration
   
   ```
   [1] 2020-03-02 22:33:41.629 INFO  [default-workqueue-2] route1 - Executing saga #1                                                                                                                                                                                              
   [1] 2020-03-02 22:33:41.671 ERROR [XNIO-1 I/O-1] DefaultErrorHandler - Failed delivery for (MessageId: ID-saga-59465cb6c5-vc7tp-1583188421428-0-2 on ExchangeId: ID-saga-59465cb6c5-vc7tp-1583188421428-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.
   common.HttpOperationFailedException: HTTP operation failed invoking http://train/api/train/buy/seat with statusCode: 404                                                                                                                                                        
   [1]                                                                                                                                                                                                                                                                             
   [1] Message History                                                 
   [1] ---------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                     
   [1] RouteId              ProcessorId          Processor                                                                        Elapsed (ms)                                                                                                                                     
   [1] [route1            ] [route1            ] [from[timer://clock?period=5s]                                                 ] [       244]                                                                                                                                     
   [1] [route1            ] [output1           ] [saga                                                                          ] [         0]                                                                                                                                     
   [1] [route1            ] [setHeader1        ] [setHeader[id]                                                                 ] [         1]                                                                                                                                     
   [1] [route1            ] [setHeader2        ] [setHeader[CamelHttpMethod]                                                    ] [         0]                                                                                                                                     
   [1] [route1            ] [log1              ] [log                                                                           ] [         0]                                                                                                                                     
   [1] [route1            ] [to1               ] [undertow:http://train/api/train/buy/seat                                      ] [         0]                                                                                                                                     
   [1]                                                                 
   [1] Stacktrace                                                      
   [1] ---------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                     
   [1] org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://train/api/train/buy/seat with statusCode: 404                                                                                                                              
   [1]     at org.apache.camel.component.undertow.UndertowClientCallback.lambda$setupResponseListener$2(UndertowClientCallback.java:235) ~[org.apache.camel.camel-undertow-3.0.1.jar:3.0.1]
   [1]     at org.apache.camel.component.undertow.UndertowClientCallback$ErrorHandlingClientCallback.completed(UndertowClientCallback.java:85) [org.apache.camel.camel-undertow-3.0.1.jar:3.0.1]
   [1]     at io.undertow.client.http.HttpClientExchange.setResponse(HttpClientExchange.java:125) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at io.undertow.client.http.HttpClientConnection$ClientReadListener.handleEvent(HttpClientConnection.java:650) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at io.undertow.client.http.HttpClientConnection$ClientReadListener.handleEvent(HttpClientConnection.java:516) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [org.jboss.xnio.xnio-api-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                      
   [1]     at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [org.jboss.xnio.xnio-api-3.3.8.Final.jar:3.3.8.Final]
   [1]     at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [org.jboss.xnio.xnio-nio-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                            
   [1]     at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [org.jboss.xnio.xnio-nio-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                                           
   [1] 2020-03-02 22:33:41.718 WARN  [default-workqueue-3] TimerConsumer - Error processing exchange. Exchange[ID-saga-59465cb6c5-vc7tp-1583188421428-0-1]. Caused by: [org.apache.camel.http.common.HttpOperationFailedException - HTTP operation failed invoking http://train/api
   /train/buy/seat with statusCode: 404]
   ```
   
   I think something can be wrong with the Istio `cluster-local-gateway`. The `train` service is an external name of the local gateway service. Saga can connect the service but it can't find the rest service. Maybe the local gateway doesn't pass through the request to the train pod. Trying to call the train service with curl from the saga pod end with 404 too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] sobkowiak commented on issue #1315: Fix #1304: fix the saga example to use default ports

Posted by GitBox <gi...@apache.org>.
sobkowiak commented on issue #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315#issuecomment-593660527
 
 
   I have following error
   
   ```
   [1] 2020-03-02 22:33:41.629 INFO  [default-workqueue-2] route1 - Executing saga #1                                                                                                                                                                                              
   [1] 2020-03-02 22:33:41.671 ERROR [XNIO-1 I/O-1] DefaultErrorHandler - Failed delivery for (MessageId: ID-saga-59465cb6c5-vc7tp-1583188421428-0-2 on ExchangeId: ID-saga-59465cb6c5-vc7tp-1583188421428-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.
   common.HttpOperationFailedException: HTTP operation failed invoking http://train/api/train/buy/seat with statusCode: 404                                                                                                                                                        
   [1]                                                                                                                                                                                                                                                                             
   [1] Message History                                                 
   [1] ---------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                     
   [1] RouteId              ProcessorId          Processor                                                                        Elapsed (ms)                                                                                                                                     
   [1] [route1            ] [route1            ] [from[timer://clock?period=5s]                                                 ] [       244]                                                                                                                                     
   [1] [route1            ] [output1           ] [saga                                                                          ] [         0]                                                                                                                                     
   [1] [route1            ] [setHeader1        ] [setHeader[id]                                                                 ] [         1]                                                                                                                                     
   [1] [route1            ] [setHeader2        ] [setHeader[CamelHttpMethod]                                                    ] [         0]                                                                                                                                     
   [1] [route1            ] [log1              ] [log                                                                           ] [         0]                                                                                                                                     
   [1] [route1            ] [to1               ] [undertow:http://train/api/train/buy/seat                                      ] [         0]                                                                                                                                     
   [1]                                                                 
   [1] Stacktrace                                                      
   [1] ---------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                     
   [1] org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://train/api/train/buy/seat with statusCode: 404                                                                                                                              
   [1]     at org.apache.camel.component.undertow.UndertowClientCallback.lambda$setupResponseListener$2(UndertowClientCallback.java:235) ~[org.apache.camel.camel-undertow-3.0.1.jar:3.0.1]
   [1]     at org.apache.camel.component.undertow.UndertowClientCallback$ErrorHandlingClientCallback.completed(UndertowClientCallback.java:85) [org.apache.camel.camel-undertow-3.0.1.jar:3.0.1]
   [1]     at io.undertow.client.http.HttpClientExchange.setResponse(HttpClientExchange.java:125) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at io.undertow.client.http.HttpClientConnection$ClientReadListener.handleEvent(HttpClientConnection.java:650) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at io.undertow.client.http.HttpClientConnection$ClientReadListener.handleEvent(HttpClientConnection.java:516) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [org.jboss.xnio.xnio-api-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                      
   [1]     at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [org.jboss.xnio.xnio-api-3.3.8.Final.jar:3.3.8.Final]
   [1]     at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [org.jboss.xnio.xnio-nio-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                            
   [1]     at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [org.jboss.xnio.xnio-nio-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                                           
   [1] 2020-03-02 22:33:41.718 WARN  [default-workqueue-3] TimerConsumer - Error processing exchange. Exchange[ID-saga-59465cb6c5-vc7tp-1583188421428-0-1]. Caused by: [org.apache.camel.http.common.HttpOperationFailedException - HTTP operation failed invoking http://train/api
   /train/buy/seat with statusCode: 404]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services