Describe the bug
When upgrading our elastic stack version from v6.42.0 to 6.43.0, our agents started failing, with the following log lines in /buildkite/elastic-stack:
/usr/local/bin/bk-install-elastic-stack.sh: line 276: BUILDKITE_AGENT_SIGNING_FAILURE_BEHAVIOR: unbound variable
This appears to have come from this change, where BUILDKITE_AGENT_SIGNING_FAILURE_BEHAVIOR was renamed to BUILDKITE_AGENT_JOB_VERIFICATION_NO_SIGNATURE_BEHAVIOR
For context, we maintain our own Buildkite AMI and traditionally have updated this after an elastic stack update. We do this because from previous experience the elastic stack sometimes adds upstream environment variables that the AMI expects, which in the past has meant the AMI needs to be updated last to avoid unbound variable errors.
Is it possible for future bash environment variable renames to instead use a new variable, deprecate the old one, and remove the deprecated variable in a major release? This would make managing the elastic stack with a custom AMI much easier!
Expected behavior
Elastic stack update with a custom AMI should roll out smoothly, when the elastic stack is updated first following an AMI change
Actual behaviour
Updating this version of the elastic stack caused issues with our agents, as none of them were able to start properly and accept jobs. We needed to update both the elastic stack and AMI in lockstep which adds complexity.
Stack parameters (please complete the following information):
- AWS Region:
us-west-2
- Version
v6.42.0
Additional context
We suspect this is only an issue for folks using a custom Buildkite AMI
Describe the bug
When upgrading our elastic stack version from
v6.42.0to6.43.0, our agents started failing, with the following log lines in/buildkite/elastic-stack:This appears to have come from this change, where
BUILDKITE_AGENT_SIGNING_FAILURE_BEHAVIORwas renamed toBUILDKITE_AGENT_JOB_VERIFICATION_NO_SIGNATURE_BEHAVIORFor context, we maintain our own Buildkite AMI and traditionally have updated this after an elastic stack update. We do this because from previous experience the elastic stack sometimes adds upstream environment variables that the AMI expects, which in the past has meant the AMI needs to be updated last to avoid
unbound variableerrors.Is it possible for future bash environment variable renames to instead use a new variable, deprecate the old one, and remove the deprecated variable in a major release? This would make managing the elastic stack with a custom AMI much easier!
Expected behavior
Elastic stack update with a custom AMI should roll out smoothly, when the elastic stack is updated first following an AMI change
Actual behaviour
Updating this version of the elastic stack caused issues with our agents, as none of them were able to start properly and accept jobs. We needed to update both the elastic stack and AMI in lockstep which adds complexity.
Stack parameters (please complete the following information):
us-west-2v6.42.0Additional context
We suspect this is only an issue for folks using a custom Buildkite AMI