-
Notifications
You must be signed in to change notification settings - Fork 344
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
added cassandra credentials support to schema creator #590
Conversation
Signed-off-by: Jackson Coakley <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #590 +/- ##
==========================================
+ Coverage 91.24% 91.26% +0.01%
==========================================
Files 73 73
Lines 3666 3674 +8
==========================================
+ Hits 3345 3353 +8
Misses 228 228
Partials 93 93
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #590 +/- ##
==========================================
+ Coverage 91.24% 91.26% +0.01%
==========================================
Files 73 73
Lines 3666 3674 +8
==========================================
+ Hits 3345 3353 +8
Misses 228 228
Partials 93 93
Continue to review full report at Codecov.
|
Thanks for your contribution, @hacktastic. This PR LGTM, but it would be nice to get a positive confirmation from @mfrembs before merging. @mfrembs: I published an image with this fix: jpkroehling/jaeger-operator:590-Schema-Creator-Cassandra-Credentials . Would you be able to give it a try? To test it, just install the operator as usual, but replace the |
@hacktastic while we wait for @mfrembs, would you be able to get a couple of extra tests for this change? Like:
|
Sure thing - let me draw something up |
@hacktastic ping, we are waiting for the tests :) |
Sorry, but while I was at vacation a collegue of mine switched back to elasticsearch. So I won't be able to test it :-( Thanks for applying the feature. I really appreciate it. |
I used the image jpkroehling/jaeger-operator:590-Schema-Creator-Cassandra-Credentials in my jaeger-operator configuration and was able to see the Cassandra username and password in the environment variables
But this didn't solve the problem. I am still getting the same error which @mfrembs was getting earlier
I am able to connect with the same credentials to my Cassandra server normally. Is there a way by which I can validate if my credentials are passed correctly? |
@shubhanshus are you able to enter the container (
|
@jpkrohling thanks for the inputs. After logging into the container I found we have the old version of Once I updated the Also, noticed currently we are not passing I can pick this up if @hacktastic is unable to work on this. |
True, looks like |
Okay, but there is no option to specify that in the jaeger operator. I mean I can run the jaeger-cassandra-schema job separately for using the |
There is! You have two options: 1. change the setting that is applied to all instances managed by the operator, or 2. override on a per-instance basis. In time: you should probably consider upgrade your Jaeger Operator to 1.14, as it's better than overriding the individual images. Once you upgrade it, the instances managed by this operator should automatically be updated to Jaeger 1.14. Option 1:You can just add a new arg to this line: jaeger-operator/deploy/operator.yaml Line 23 in 5bc4d73
Like: args: ["start", "--jaeger-cassandra-schema-image", "jaegertracing/jaeger-cassandra-schema:1.14"] You can check all the operator flags by running: $ docker run jaegertracing/jaeger-operator:1.14.0 start --help
Starts a new Jaeger Operator
Usage:
jaeger-operator start [flags]
Flags:
--es-provision string Whether to auto-provision an Elasticsearch cluster for suitable Jaeger instances. Possible values: 'yes', 'no', 'auto'. When set to 'auto' and the API name 'logging.openshift.io' is available, auto-provisioning is enabled. (default "auto")
-h, --help help for start
--jaeger-agent-image string The Docker image for the Jaeger Agent (default "jaegertracing/jaeger-agent")
--jaeger-all-in-one-image string The Docker image for the Jaeger all-in-one (default "jaegertracing/all-in-one")
--jaeger-cassandra-schema-image string The Docker image for the Jaeger Cassandra Schema (default "jaegertracing/jaeger-cassandra-schema")
--jaeger-collector-image string The Docker image for the Jaeger Collector (default "jaegertracing/jaeger-collector")
--jaeger-es-index-cleaner-image string The Docker image for the Jaeger Elasticsearch Index Cleaner (default "jaegertracing/jaeger-es-index-cleaner")
--jaeger-es-rollover-image string The Docker image for the Jaeger Elasticsearch Rollover (default "jaegertracing/jaeger-es-rollover")
--jaeger-ingester-image string The Docker image for the Jaeger Ingester (default "jaegertracing/jaeger-ingester")
--jaeger-query-image string The Docker image for the Jaeger Query (default "jaegertracing/jaeger-query")
--jaeger-spark-dependencies-image string The Docker image for the Spark Dependencies Job (default "jaegertracing/spark-dependencies")
--jaeger-version string Deprecated: the Jaeger version is now managed entirely by the operator. This option is currently no-op. (default "1.14.0")
--log-level string The log-level for the operator. Possible values: trace, debug, info, warning, error, fatal, panic (default "info")
--metrics-host string The host to bind the metrics port (default "0.0.0.0")
--metrics-port int32 The metrics port (default 8383)
--openshift-oauth-proxy-image string The Docker image location definition for the OpenShift OAuth Proxy (default "openshift/oauth-proxy:latest")
--platform string The target platform the operator will run. Possible values: 'kubernetes', 'openshift', 'auto-detect' (default "auto-detect")
Global Flags:
--config string config file (default is $HOME/.jaeger-operator.yaml) Option 2
In the Jaeger CR, set the property apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: with-cassandra
spec:
storage:
type: cassandra
cassandraCreateSchema:
image: "jaegertracing/jaeger-cassandra-schema:1.14" |
Thanks for such detailed steps. I never knew we can do that. Now, the schema creation is working fine and I can use my credentials to login into Cassandra and create schema there. Though the only thing which I see missing is the possibility of changing |
@shubhanshus just to confirm: you are saying that, when using the Operator image that I used for this PR, you are able to successfully get the create-schema running against a Cassandra with auth enabled? If so, I think we are ready to merge this one. |
@jpkrohling yes, that is correct. Using |
Thanks @shubhanshus for your confirmation, and a big thank you to @hacktastic for the PR (and patience). |
No description provided.