openshift-evangelists / openshift-workshops

[DEPRECATED] Use workshopper https://github.com/openshift-evangelists/workshopper
17 stars 37 forks source link

Doing the pipeline lab if you change the backend name is not reflected in the UI #69

Open jorgemoralespou opened 7 years ago

jorgemoralespou commented 7 years ago

@thoraxe has been exercising the labs and doing the pipeline lab (as of today) he's seen that the backend when re-deployed is not unregistered and registered back again.

Here are his traces:

2016-12-21 16:46:55.679  INFO 1 --- [MessageBroker-1] o.s.w.s.c.WebSocketMessageBrokerStats    : WebSocketSession[1 current WS(1)-HttpStream(0)-HttpPoll(0), 2 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(2)-CONNECTED(2)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 21], outboundChannelpool size = 0, active threads = 0, queued tasks = 0, completed tasks = 5], sockJsScheduler[pool size = 4, active threads = 1, queued tasks = 2, completed tasks = 275]
2016-12-21 16:49:50.732  INFO 1 --- [nio-8080-exec-3] c.o.e.roadshow.rest.BackendsController   : Backends: getAll
2016-12-21 16:49:52.548  INFO 1 --- [default.svc/...] c.o.e.r.rest.AbstractResourceWatcher     : Action: ADDED, Resource: Route(apiVersion=v1, kind=Route, metadata=ObjectMeta(annotations={openshift.io/host.generated=true}, creationTimestamp=2016-12-21T16:48:10Z, deletionGracePeriodSeconds=null, deletionTimestamp=null, generateName=null, generation=null, labels={app=nationalparks-live, type=parksmap-backend}, name=nationalparks-live, namespace=explore-00, resourceVersion=32231, selfLink=/oapi/v1/namespaces/explore-00/routes/nationalparks-live, uid=4166bfb5-c79d-11e6-a66a-12b3d8a0bc7a, additionalProperties={}), spec=RouteSpec(host=nationalparks-live-explore-00.cloudapps.erik.openshift3roadshow.com, path=null, port=RoutePort(targetPort=IntOrString(IntVal=null, Kind=null, StrVal=8080-tcp, additionalProperties={}), additionalProperties={}), tls=null, to=ObjectReference(apiVersion=null, fieldPath=null, kind=Service, name=nationalparks-live, namespace=null, resourceVersion=null, uid=null, additionalProperties={weight=100}), additionalProperties={}), status=RouteStatus(ingress=[RouteIngress(conditions=[RouteIngressCondition(lastTransitionTime=2016-12-21T16:48:10Z, message=null, reason=null, status=True, type=Admitted, additionalProperties={})], host=nationalparks-live-explore-00.cloudapps.erik.openshift3roadshow.com, routerName=router, additionalProperties={})], additionalProperties={}), additionalProperties={})
2016-12-21 16:49:52.548  INFO 1 --- [default.svc/...] c.o.e.r.rest.AbstractResourceWatcher     : Resource nationalparks-live added
2016-12-21 16:49:52.548  INFO 1 --- [default.svc/...] c.o.e.r.r.g.helpers.EndpointWatcher      : EndpointWatcher created for: enpoints/nationalparks-live -n explore-00
2016-12-21 16:49:52.599  INFO 1 --- [default.svc/...] c.o.e.roadshow.rest.BackendsController   : Backends.register endpoint at (nationalparks-live)
2016-12-21 16:49:52.602  INFO 1 --- [default.svc/...] c.o.evg.roadshow.rest.ServiceWatcher     : [INFO] Computed route URL: http://nationalparks-live-explore-00.cloudapps.erik.openshift3roadshow.com
2016-12-21 16:49:52.602  INFO 1 --- [default.svc/...] c.o.e.r.r.gateway.ApiGatewayController   : Calling remote service at http://nationalparks-live-explore-00.cloudapps.erik.openshift3roadshow.com
2016-12-21 16:49:53.240  INFO 1 --- [default.svc/...] c.o.e.r.r.gateway.ApiGatewayController   : Backend (nationalparks-live) added to the API Gateway
2016-12-21 16:49:53.242  INFO 1 --- [default.svc/...] c.o.e.r.r.gateway.DataGatewayController  : Backend (nationalparks-live) added to the Data Gateway
2016-12-21 16:49:53.242  INFO 1 --- [default.svc/...] c.o.e.roadshow.rest.BackendsController   : Backend from server: (Backend{id='nationalparks-live', displayName='National Parks', center='Coordinates{lat='47.039304', lng='14.505178'}', zoom='4', type='cluster', scope='all', visible='true', maxZoom='1'}) 
2016-12-21 16:49:53.304  INFO 1 --- [nio-8080-exec-8] c.o.e.r.r.gateway.DataGatewayController  : [WEB-CALL] Calling remote service for nationalparks-live
2016-12-21 16:50:26.921  INFO 1 --- [nio-8080-exec-3] c.o.e.roadshow.rest.BackendsController   : Backends: getAll
2016-12-21 16:50:27.143  INFO 1 --- [nio-8080-exec-4] c.o.e.r.r.gateway.DataGatewayController  : [WEB-CALL] Calling remote service for nationalparks-live
2016-12-21 16:54:06.940  INFO 1 --- [default.svc/...] c.o.e.r.r.g.helpers.EndpointWatcher      : Endpoints changed, from 1 to 2
2016-12-21 16:54:08.960  INFO 1 --- [default.svc/...] c.o.e.r.r.g.helpers.EndpointWatcher      : Endpoints changed, from 2 to 1
2016-12-21 17:04:30.763  INFO 1 --- [nio-8080-exec-5] c.o.e.roadshow.rest.BackendsController   : Backends: getAll
2016-12-21 17:04:31.325  INFO 1 --- [nio-8080-exec-2] c.o.e.r.r.gateway.DataGatewayController  : [WEB-CALL] Calling remote service for nationalparks-live
2016-12-21 17:04:44.902  INFO 1 --- [default.svc/...] c.o.e.r.r.g.helpers.EndpointWatcher      : Endpoints changed, from 1 to 2
2016-12-21 17:04:46.799  INFO 1 --- [default.svc/...] c.o.e.r.r.g.helpers.EndpointWatcher      : Endpoints changed, from 2 to 1
2016-12-21 17:05:05.461  INFO 1 --- [nio-8080-exec-4] c.o.e.roadshow.rest.BackendsController   : Backends: getAll
2016-12-21 17:05:05.913  INFO 1 --- [nio-8080-exec-6] c.o.e.r.r.gateway.DataGatewayController  : [WEB-CALL] Calling remote service for nationalparks-live
2016-12-21 17:05:23.766  INFO 1 --- [nio-8080-exec-7] c.o.e.roadshow.rest.BackendsController   : Backends: getAll
2016-12-21 17:05:24.252  INFO 1 --- [nio-8080-exec-8] c.o.e.r.r.gateway.DataGatewayController  : [WEB-CALL] Calling remote service for nationalparks-live
2016-12-21 17:09:53.948  INFO 1 --- [nio-8080-exec-5] c.o.e.roadshow.rest.BackendsController   : Backends: getAll
2016-12-21 17:09:54.231  INFO 1 --- [nio-8080-exec-4] c.o.e.r.r.gateway.DataGatewayController  : [WEB-CALL] Calling remote service for nationalparks-live

He has set the label only on the route.