-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix invalid weaver healthchecks #494
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.
Just to double check... did the previous healthcheck pass when it shouldn't have? Because it doesn't seem to fail.
Both Weaver Docker and the Canarie API report 500 on my end. On I'm also investigating because we are working on the new DACCS-jenkins instance to bring back the CI with latest Jupyter kernel, but the initial check of the server's status on CanarieAPI's endpoint fails since around the time #492 was merged. |
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.
Same as Misha, I find it weird that the old monitoring url without the weaver context root also worked !
But if you think this update is better, I have no objections.
@@ -26,7 +26,7 @@ SERVICES['Weaver'] = { | |||
"monitoring": { | |||
"Weaver": { | |||
'request': { | |||
'url': 'http://weaver:4001/' | |||
'url': 'http://weaver:4001/${WEAVER_MANAGER_NAME}/' |
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.
Pour votre info, Ouranos production https://pavics.ouranos.ca/canarie/node/service/stats have the old 'url': 'http://weaver:4001/
and it reports success.
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.
Ouranos server is on 1.42.2, so it doesn't include the changes from https://github.com/bird-house/birdhouse-deploy/releases/tag/2.8.0 and https://github.com/bird-house/birdhouse-deploy/releases/tag/2.7.3 that, when combined cause the problem, but not detected when tested separately on their own.
birdhouse-deploy/birdhouse/components/weaver/docker-compose-extra.yml
Lines 21 to 25 in 1892911
HOSTNAME: ${BIRDHOUSE_FQDN} | |
# 'HTTP_HOST' and 'SCRIPT_NAME' are used to guide pyramid in the resolution of resources, such as | |
# when invoking the 'static_url' endpoint, so it can be made aware of reverse-proxy context | |
HTTP_HOST: ${BIRDHOUSE_FQDN} | |
SCRIPT_NAME: /${WEAVER_MANAGER_NAME} |
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.
This is why you didn't notice it as wrong.
The healthcheck was created before that change (so it worked), while I was testing Weaver before it was integrated, so never saw the error.
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 right! That makes sense
Overview
Fix Weaver healthchecks.
Changes
Non-breaking changes
Weaver: adjust missing
WEAVER_MANAGER_NAME
in healthchecks expecting matchingSCRIPT_NAME
configurationhealthcheck
definition did not resolve to the expected endpoint.monitoring
endpoint for Weaver did not resolve to the expected endpoint.Breaking changes
Related Issue / Discussion
CI Operations
birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false