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

18th
Dec 2015
hacbq
@hacbq
Dec 18 2015 07:16
I'm still watiting for Spring Cloud NetFlix 1.1 release :smile:
Dave Syer
@dsyer
Dec 18 2015 07:17
It's coming. Would another milestone help?
hacbq
@hacbq
Dec 18 2015 07:18
still using 1.0.3 for my production :+1:
Matt Benson
@mbenson
Dec 18 2015 15:03
with spring-boot having been released last night, should(n't) spring-cloud-build be set to that release until/unless it becomes evident that spring-boot 1.3.1 doesn't provide need X?
last night, today... whatever, the perspective of time zones ;)
Dave Syer
@dsyer
Dec 18 2015 15:20
I'm confused
But if you just want spring-cloud snapshots to build on Boot 1.3.1.RELEASE they should be as of about 10 minutes ago.
Spring Boot was only just released.
Matt Benson
@mbenson
Dec 18 2015 16:21
that is all I was suggesting, yes. :)
checketts
@checketts
Dec 18 2015 18:28
@dsyer While my team's app is using the Spring Cloud Brixton milestones, we are holding off on recommending everyone else in my org upgrade their Spring Boot until after the Spring Cloud that is 1.3 compatible is released. So I'm eager to see an official release soon.
Spencer Gibb
@spencergibb
Dec 18 2015 18:32
@checketts that’s probably a wise thing to do. The best answer I can give is Q1 2016. Hopefully we can tighten that up after the holidays.
Matt Benson
@mbenson
Dec 18 2015 18:59
I'm trying to get some unit tests propped up against spring-cloud-netflix with Eureka. I've gotten a ways in but am running up against the absence of the org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration$EurekaHealthIndicatorConfiguration factory bean. Any ideas?
Matt Benson
@mbenson
Dec 18 2015 19:35
that was my fault... I had a BeanPostProcessor returning null from #postProcessBeforeInitialization() :P
Spencer Gibb
@spencergibb
Dec 18 2015 19:35
@mbenson glad you figured it out.
Matt Benson
@mbenson
Dec 18 2015 20:14
next question: when I was working with consul, I was able, in my unit tests, to inject the ConsulClient and in a @Before method I could register service ids using #agentServiceRegister so that I could test my customized DiscoveryClient behavior. I'm not readily seeing how I can do the same with Eureka. Can I?
Spencer Gibb
@spencergibb
Dec 18 2015 20:15
Not yet. Eureka is an evolving beast to be sure.
At least not with the eureka client. You could go directly against the eureka http api.
Matt Benson
@mbenson
Dec 18 2015 20:28
That's what I was wondering... are there any shortcuts I should know about wrt running an actual Eureka instance locally? Would the spring-cloud-netflix-eureka-server module help?
in RUNNING.txt I see the line:
```spring-boot-eureka$ mvn spring-boot:run
but not sure how/where to apply that, or if it's even still valid
I tried it in spring-cloud-netflix-eureka-server but there didn't seem to be an appropriate main-class
Spencer Gibb
@spencergibb
Dec 18 2015 20:45
the Running file is way old and out of date
that blog is good use http://start.spring.io to setup a eureka server
Matt Benson
@mbenson
Dec 18 2015 20:48
thanks @spencergibb
David Welch
@dwelch2344
Dec 18 2015 21:09
@spencergibb sorry for my constant twitter spam. I never even thought to check for a gitter setup ;)
Spencer Gibb
@spencergibb
Dec 18 2015 21:09
NP :-)
David Welch
@dwelch2344
Dec 18 2015 21:10
So question for you: I'm trying to add the config cloud client to an existing (and terrible horrible monolithic) app, but it doesn't seem to be contacting my config server
I don't see anything in the docs about needing a @Enable... annotation, and I have autoconfiguration enabled
Spencer Gibb
@spencergibb
Dec 18 2015 21:12
does /autoconfig or /env tell you anything interesting?
David Welch
@dwelch2344
Dec 18 2015 21:13
I've confirmed that our bootstrap.yml file is being loaded and populated, but I never see a request go to our config server and we automatically end up trying to load our @Configuration files that require the properties
Spencer Gibb
@spencergibb
Dec 18 2015 21:13
right starter?
David Welch
@dwelch2344
Dec 18 2015 21:13
Hmm haven't tried firing it up with loading locally
<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-config</artifactId>
        </dependency>
?
Spencer Gibb
@spencergibb
Dec 18 2015 21:16
yup
David Welch
@dwelch2344
Dec 18 2015 21:23
No dice. Firing it up with a local config and checking those endpoints
David Welch
@dwelch2344
Dec 18 2015 22:07
Ack, ended up with a few dependency collisions. Ended up upgrading to spring boot 1.3.1 whilst I'm at it :D
Okay, so I've got it up, checking /autoconfig
what should I be looking for? The only thing related to configclient I see in autoconfig is ConfigClientAutoConfiguration.ConfigServerHealthIndicatorConfiguration
Spencer Gibb
@spencergibb
Dec 18 2015 22:09
anything in /env for the remote repo?
in /autoconfig ConfigServiceBootstrapConfiguration#configServicePropertySource i
David Welch
@dwelch2344
Dec 18 2015 22:15
positiveMatches: {
ConfigServiceBootstrapConfiguration#configServicePropertySource: [
{
condition: "OnPropertyCondition",
message: "matched"
}
],
PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer: [
{
condition: "OnBeanCondition",
message: "@ConditionalOnMissingBean (types: org.springframework.context.support.PropertySourcesPlaceholderConfigurer; SearchStrategy: current) found no beans"
}
]
}
Wait, wait!
Spencer Gibb
@spencergibb
Dec 18 2015 22:16
looks right
David Welch
@dwelch2344
Dec 18 2015 22:17
Yeah, looks like it's attempting to reach it now. It's failing for authentication (easily fixed)
I've specified fail fast, but it seems to carry on without it
Spencer Gibb
@spencergibb
Dec 18 2015 22:18
with spring.cloud.config.failFast=true?
David Welch
@dwelch2344
Dec 18 2015 22:20
Ah, had failFast on spring.cloud.config.client :(
does it matter if it's failFast or fail-fast? I've never been sure
Spencer Gibb
@spencergibb
Dec 18 2015 22:25
@dwelch2344 either should work actually
David Welch
@dwelch2344
Dec 18 2015 22:34
yeah, looks that way. Sweet!
Spencer Gibb
@spencergibb
Dec 18 2015 22:34
nice
David Welch
@dwelch2344
Dec 18 2015 22:34
okay, last question: looks like it's working now, but it's hitting one of my config files before the config server
so I'm missing a property and blowing up
oh crap. nvm. I'm just being dumb
Spencer Gibb
@spencergibb
Dec 18 2015 22:37
:stuck_out_tongue_winking_eye:
David Welch
@dwelch2344
Dec 18 2015 22:38
helps when your config files match your profiles correctly :P
you're the best. thanks for putting up with my ramblings
Spencer Gibb
@spencergibb
Dec 18 2015 22:47
hehe
np
Matt Benson
@mbenson
Dec 18 2015 23:28
@spencergibb is the consul-bus defunct? ISTR something
Matt Benson
@mbenson
Dec 18 2015 23:45
nm, I see it's commented out