-
Notifications
You must be signed in to change notification settings - Fork 64
upgrade to ContainerPilot 3.0.0-RC1 #83
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
Conversation
c476467 to
4a12566
Compare
|
I was having some trouble with the JSON5 parser in the test.py but it turns out it was a typo in the ContainerPilot config that CP handles fine but that pyjson5 barfs on with a really poor error message. I think the rest of the fixes are now just updating the manage.py application to use the new config syntax for jobs vs services, etc. |
|
Ok, after some fixes the tests are still failing but right now that looks to be for the same reason
Nope: |
|
Closing this PR till the bugs are fixed. |
1b24b76 to
9202b92
Compare
|
I've got the tests all running at this point except that they're running into the known problem that the blueprint randomly doesn't work, as described in #81. I'm going to rework the manage.py application to take advantage of the different way CPv3 handle concurrent applications, but I'll do that under a separate branch of work. This should be ready to merge. |
|
Passing build looks like this (ref https://product-ci.joyent.us/job/autopilotpattern-mysql-containerpilot-v3/18/console): |
jwreagor
left a comment
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.
LGTM, just had one question but not important.
| - 127.0.0.1 | ||
| labels: | ||
| - triton.cns.services=mysql-consul | ||
| - triton.cns.services=mc |
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.
Naming stood out here. mc better than mysql-consul?
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.
No, I agree it's a terrible name. 😀
But unfortunately the records that Triton CNS names create are "too long" despite being within spec and this causes the application to be unable to resolve the CNS name for Consul. (And despite having worked at one point in time.)
I've been unable to track down the problem but it's been kicked around between CNS, the Python client, and/or Google's DNS servers which are the search domain for Triton-deployed applications. I've been unable to figure it out but this hacks around that until such time as we can use the Triton search domain.
ref:
https://devhub.joyent.com/jira/browse/DOCKER-898
https://devhub.joyent.com/jira/browse/OPS-2555
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.
Ah good to know.
This PR updates ContainerPilot to the 3.0.0-RC1 release candidate. Our Jenkins job is running the tests again but I'm expecting I might have to do some tweaking to get them to pass so let's consider this WIP for now.