-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Summary
Enabling https://github.com/bird-house/birdhouse-deploy/tree/master/birdhouse/components/monitoring, and omitting an ALERTMANAGER_SMTP_SERVER variable emits a log error about the missing variable, but doesn't stop the execution as expected.
Details
The following is logged:
ERROR: Required variable $ALERTMANAGER_SMTP_SERVER is not set. Check env.local file.
But the return 1 from the following does not seem to be triggered (or handled by the calling script?):
birdhouse-deploy/birdhouse/read-configs.include.sh
Lines 337 to 347 in 293645a
| check_required_vars() { | |
| for i in ${VARS} | |
| do | |
| v="${i}" | |
| if [ -z "`eval "echo ${v}"`" ] | |
| then | |
| log ERROR "Required variable $v is not set. Check env.local file." | |
| return 1 | |
| fi | |
| done | |
| } |
Maybe this is related to some kind of subshell error catch/forwarding to the caller, similar to what was observed in #509 (comment)
To Reproduce
Steps to reproduce the behavior:
- Enable the monitoring component (or any other?)
- Purposely omit some required variable that does not fail the script due to some other cause such as parsing or unresolved reference.
- Observe that the
birdhouse-compose.sh up -druns until the end without abort.
Environment
any
Concerned Organizations
all
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working