These are chat archives for spring-cloud/spring-cloud

30th
Nov 2018
Florian Wiesner
@FWiesner
Nov 30 2018 10:21
Hi - just wanted to ask on the status of spring-cloud-kubernetes. I saw a few recent commits, but no release in http://spring-calendar.cfapps.io. Is the project really active? I’d love to use the configmap and secrets change detection
Spencer Gibb
@spencergibb
Nov 30 2018 16:57
It's part of the spring cloud release train. Which if you look on the calendar is set for Dec 20
@FWiesner :arrow_up:
pradeepkusingh
@pradeepkusingh
Nov 30 2018 17:04
@spencergibb I am trying to change the Ribbon Iping behavior and my apps are deployed on CF. whenRibbon is doing ping it is getting CF internal port instead of 80 or 443. am I missing something ?
[erListUpdater-0] o.a.h.i.c.BasicClientConnectionManager : Get connection for route {}->http://hsd-voice-service.xyz.net:57
but when I checked Eureka/apps it shows port 80 only for that route
Spencer Gibb
@spencergibb
Nov 30 2018 17:07
which IPing implementation are you using?
pradeepkusingh
@pradeepkusingh
Nov 30 2018 17:08

public class RibbonConfiguration {

@Autowired
PropertyUtils propertyUtils;

@Bean
public IPing ribbonPing(final IClientConfig config) {
    return new PingUrl(false,"/activation/health");

}

@Bean
public IRule ribbonRule(final IClientConfig config) {
    return new AvailabilityFilteringRule();
}

}

This is the code I am testing
and I can see it takes most of the time port 80 also
Spencer Gibb
@spencergibb
Nov 30 2018 17:09
what does it show in /eureka/apps?
pradeepkusingh
@pradeepkusingh
Nov 30 2018 17:09
2018-11-30 10:00:23.498 DEBUG 6380 --- [erListUpdater-0] o.a.h.i.c.BasicClientConnectionManager : Get connection for route {}->http://hsdvoice-service.xyz.net:80
2018-11-30 10:00:23.498 DEBUG 6380 --- [erListUpdater-0] .a.h.i.c.DefaultClientConnectionOperator : Connecting to hsdvoice-service.xyz.net:80
2018-11-30 10:00:23.537 DEBUG 6380 --- [erListUpdater-0] o.a.h.client.protocol.RequestAddCookies : CookieSpec selected: default
2018-11-30 10:00:23.537 DEBUG 6380 --- [erListUpdater-0] o.a.h.client.protocol.RequestAuthCache : Auth cache not set in the context
2018-11-30 10:00:23.537 DEBUG 6380 --- [erListUpdater-0] o.a.h.c.p.RequestTargetAuthentication : Target auth state: UNCHALLENGED
2018-11-30 10:00:23.537 DEBUG 6380 --- [erListUpdater-0] o.a.h.c.p.RequestProxyAuthentication : Proxy auth state: UNCHALLENGED
2018-11-30 10:00:23.537 DEBUG 6380 --- [erListUpdater-0] o.a.http.impl.client.DefaultHttpClient : Attempt 1 to execute request
2018-11-30 10:00:23.537 DEBUG 6380 --- [erListUpdater-0] o.a.h.impl.conn.DefaultClientConnection : Sending request: GET /activation/health HTTP/1.1
Spencer Gibb
@spencergibb
Nov 30 2018 17:10
most of the time it works?
pradeepkusingh
@pradeepkusingh
Nov 30 2018 17:10
I can see above stack in log and it shows it is picking port 80 also as per above log.
<application><name>HSD-VOICE-SERVICE</name><instance><instanceId>3f9a42b8-2719-4748-40ca-8690</instanceId><hostName>hsdvoice-service.xyz.net</hostName><app>HSD-VOICE-SERVICE</app><ipAddr>XYZ0</ipAddr><status>UP</status><overriddenstatus>UNKNOWN</overriddenstatus><port enabled="true">80</port><securePort enabled="false">443</securePort><countryId>1</countryId><dataCenterInfo class="com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo"><name>MyOwn</name>
Eureka/apps
Spencer Gibb
@spencergibb
Nov 30 2018 17:12
there's no port 57 (or non port 80) there. Not sure what to say.
pradeepkusingh
@pradeepkusingh
Nov 30 2018 17:12
At the same time I am seeing this in logs
2018-11-30 10:00:23.459 DEBUG 6380 --- [erListUpdater-0] o.a.h.i.c.BasicClientConnectionManager : Get connection for route {}->http://hsdvoice-service.g6.xyz.net:39
2018-11-30 10:00:23.459 DEBUG 6380 --- [erListUpdater-0] .a.h.i.c.DefaultClientConnectionOperator : Connecting to hsdvoice-service.xyz.net:39
2018-11-30 10:00:23.497 DEBUG 6380 --- [erListUpdater-0] o.a.h.impl.conn.DefaultClientConnection : Connection org.apache.http.impl.conn.DefaultClientConnection@1615e32f closed
2018-11-30 10:00:23.497 DEBUG 6380 --- [erListUpdater-0] o.a.h.impl.conn.DefaultClientConnection : Connection org.apache.http.impl.conn.DefaultClientConnection@1615e32f shut down
2018-11-30 10:00:23.497 DEBUG 6380 --- [erListUpdater-0] o.a.h.i.c.BasicClientConnectionManager : Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@7db5f581
java.net.ConnectException: Connection refused (Connection refused)
So confused whether thsi is false alarm
Spencer Gibb
@spencergibb
Nov 30 2018 17:13
I have no idea
pradeepkusingh
@pradeepkusingh
Nov 30 2018 17:13
ok. Thanks :)
Happy Friday
Florian Wiesner
@FWiesner
Nov 30 2018 19:13
@spencergibb thank you!