-
Notifications
You must be signed in to change notification settings - Fork 552
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 KafkaCliTools.produce in cloud tests #17896
Fix KafkaCliTools.produce in cloud tests #17896
Conversation
KafkaCliTools.produce didn't work if SASL or TLS was enabled because it failed to pass along the relevant configuration. This command does not accept a config file via --command-config like many other cli tools (this is how we pass this information to those tools), but it does accept a --producer.config argument which serves the same purpose. Set if additional security config needs to be passed in this way, which fixes this test in the cloud. Fixes redpanda-data/core-internal#1256
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
new failures in https://buildkite.com/redpanda/redpanda/builds/47887#018ee88b-fc85-4f6c-a679-d0350e7d1f82:
new failures in https://buildkite.com/redpanda/redpanda/builds/47887#018ee88b-fc88-4136-a9e7-1b1980981fa0:
new failures in https://buildkite.com/redpanda/redpanda/builds/47887#018ee88b-fc83-4af5-b9f4-b069860b48a0:
new failures in https://buildkite.com/redpanda/redpanda/builds/47887#018ee8ab-7a88-4fd8-a7fd-6b12a957d67e:
new failures in https://buildkite.com/redpanda/redpanda/builds/47887#018ee8ab-7a8b-4719-b5f2-903704370958:
new failures in https://buildkite.com/redpanda/redpanda/builds/47887#018ee8ab-7a8d-424b-af54-a92d5dee71bd:
new failures in https://buildkite.com/redpanda/redpanda/builds/47948#018eed05-c579-4339-9305-030ef7bd69e4:
|
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47887#018ee88b-fc88-4136-a9e7-1b1980981fa0 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47887#018ee8ab-7a8b-4719-b5f2-903704370958 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47948#018eecfd-f67c-4502-a921-617226847e9d ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47948#018eed05-c579-4339-9305-030ef7bd69e4 |
_run is a less-raw version of _execute which adds the --bootstrap-broker argument, and importantly also the --command-config argument which allows SASL/TLS to work. This change converts callers of _excecute into callers of _run instead if they were compatible with that (some aren't, e.g., because the underlying script doesn't support --command config). This allows the tests to work with SASL and TLS, particularly in public cloud runs which always have both enabled.
0e7ea9f
to
885250e
Compare
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
KafkaCliTools.produce didn't work if SASL or TLS was enabled because
it failed to pass along the relevant configuration. This command does
not accept a config file via --command-config like many other cli tools
(this is how we pass this information to those tools), but it does
accept a --producer.config argument which serves the same purpose.
Set if additional security config needs to be passed in this way,
which fixes this test in the cloud.
Fixes https://github.com/redpanda-data/core-internal/issues/1256
Backports Required
Release Notes