Conversation
|
💚 Build Succeeded
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Backport PR #16456 to 8.15 branch, original message:
Release notes
CONFIG_STRING. The issue happens when running Logstash on docker withCONFIG_STRINGand theCONFIG_STRINGcontains quotes (for examplehosts=>"my.es.host")What does this PR do?
Fixes the issue where LS wipes out all quotes from docker env variables. This is an issue when running LS on docker with
CONFIG_STRING, needs to keep quotes with env variable.Why is it important/What is the impact to the user?
Unblocks the user who faced upgrade issue from 8.15.0 or 8.15.1
Checklist
I have made corresponding changes to the documentationAuthor's Checklist
How to test this PR locally
run
./gradlew clean bootstrap assemble installDefaultGems && rake artifact:dockercommand to build the artifact on your local. The artifact will be9.0.0-SNAPSHOTmake sure docker engine is running
create
docker-compose.ymlfile in your testing path and fill it with following config:run
docker compose upto check if Logstash spins up without issueNote that, you can replace
CONFIG_STRING=''single quote with double or remove it. You can also place ${VAR} in theCONFIG_STRING(example${USER}will result in setting user). This PR makes the same user experience with 8.13.0 where we started addingenv2yaml/substitution ${VAR}changes.Without this change, we get following error:
You can validate this issue by changing defined
docker-compose.ymlimage toimage: docker.elastic.co/logstash/logstash:8.15.1How to run docker acceptance tests?
./gradlew clean bootstrap assemble installDefaultGems && rake artifact:dockercommand to build the artifact on your local. The artifact will be9.0.0-SNAPSHOTbundle install && bundle exec rspec docker/spec/full/container_spec.rbRelated issues
:and/not allowed in pipeline configuration throughCONFIG_STRINGenvironment variable in 8.15.1 #16433Use cases
docker-compose.ymlScreenshots
Logs