-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/consul service reg fails tls #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also update Consul Go API in vendor dir by running
govendor fetch github.com/hashicorp/consul/...@v1.2.3
Codecov Report
@@ Coverage Diff @@
## develop #166 +/- ##
==========================================
+ Coverage 42.42% 43.1% +0.68%
==========================================
Files 134 135 +1
Lines 12685 12857 +172
==========================================
+ Hits 5381 5542 +161
- Misses 6476 6485 +9
- Partials 828 830 +2
Continue to review full report at Codecov.
|
What's your feeling about using a specific constant of PubMaxRoutines only for tests: https://github.com/ystia/yorc/blob/bugfix/consul_service_reg_fails_tls/testutil/helper.go#L29 With 200 the tests are passing. I didn't test with a bigger value yet... |
I feel not confortable by doing this as if it could fail in tests then it will eventually fail one day in production. so we ever have to reduce the default value even for the main program or investigate why we have such issues. That makes me think that the issue may come from the way we get the client in tests we do not tweak its configuration as we do in the main prog. I have to check this. |
Use the same method than in a normal server by tweaking Consul http client configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good but still have some interrogation on documentation
That will become errors in a future Docker releases
Consul Health checks work well in secured mode. I agree with Loic, we need our tests to stay closer to real-life. |
Pull Request description
Fix Issue #153
Description of the change
Update Consul to last available version (1.2.3) to take advantage of this Consul bug fix.
Replace TCP checks by HTTP checks for Yorc service
What I did
How to verify it
Description for the changelog
Applicable Issues
Fixes #153