-
Notifications
You must be signed in to change notification settings - Fork 12
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
Test with "external" elasticsearch #441
Conversation
csibbitt
commented
Jul 10, 2023
- Strip all ES config except "enable" (for forwarding)
- Create ECK subscription no matter the observability_strategy
- Deploy ES from CI for events testing (Code copied/trimmed from STO)
- Default to use_redhat for CI
* Strip all ES config except "enable" (for forwarding) * Create ECK subscription no matter the observability_strategy * Deploy ES from CI for events testing (Code copied/trimmed from STO) * Default to use_redhat for CI
I haven't tested this. I was having trouble with the CatalogSources in my test cluster, so I'm sending it to the CI system instead. I don't really expect it to work yet, but maybe? |
test |
* ephemeral volume * wait for CRD to establish
test |
* Test events to external ES in any observability_strategy mode * We no longer need the smoketest to know the observability_strategy at all
test |
This looks like it's working. I checked the smoketest logs from the 4.12 CI run and saw this:
|
4.12 CI testing passed
That's a bit weird, n'est ce pas? Here it is working on my machine
Will recheck. |
4.10 built this time but ES is crashing on start with this error:
This is unexpected. I can see that value being set for minishift in an old test script [1] but I don't see anything in our main code that would have been setting this. We explicitly enable mmap in our config[2][3], but never set this limit. I'm tempted to force mmap off ( [1] https://github.com/infrawatch/service-telemetry-operator/blob/master/tests/infrared/13/baremetal-scripts/install-and-run-minishift.sh#L23 |
According to our docs[1], the label[2] included in our pod template is supposed to take care of this. I suspect disruption in the CI cluster may be preventing this from working, but not sure yet. [1] https://github.com/infrawatch/documentation/blob/master/doc-Service-Telemetry-Framework/modules/con_node-tuning-operator.adoc#L29 |
4.10 CI passed on retry with no changes. This should be ready to go now. |
@@ -34,15 +34,6 @@ | |||
events: | |||
elasticsearch: | |||
enabled: {{ __service_telemetry_events_enabled }} |
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.
In my last PR, Leif suggested I make the defaults match exactly what we currently deploy so that migrations will be easy. Since I just copied the template from the operator to the CI code, a side effect is that we don't need to set any values for testing purposes, just enable it and the forwarding is correctly configured.
@@ -119,3 +119,15 @@ | |||
kind: Project | |||
metadata: | |||
name: openshift-cert-manager-operator | |||
|
|||
- name: Remove elasticsearch | |||
ignore_errors: True |
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.
ignore_errors
is required because if there is no ECK installed the apiVersion will get rejected with an error.
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.
Not sure how fancy you want to get, but you could also add a when: query(...) | length != 0
to run this only when the API is available. This works too though :)
@@ -0,0 +1,52 @@ | |||
apiVersion: elasticsearch.k8s.elastic.co/v1 |
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.
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.
This will be good information for the KCS after forwarding becomes the supported interface
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.
Couple of nitpicky comments, but this all looks sane to me
@@ -119,3 +119,15 @@ | |||
kind: Project | |||
metadata: | |||
name: openshift-cert-manager-operator | |||
|
|||
- name: Remove elasticsearch | |||
ignore_errors: True |
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.
Not sure how fancy you want to get, but you could also add a when: query(...) | length != 0
to run this only when the API is available. This works too though :)
@@ -0,0 +1,52 @@ | |||
apiVersion: elasticsearch.k8s.elastic.co/v1 |
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.
This will be good information for the KCS after forwarding becomes the supported interface
@@ -66,7 +64,7 @@ oc create configmap stf-smoketest-ceilometer-entrypoint-script --from-file "${RE | |||
echo "*** [INFO] Creating smoketest jobs..." | |||
oc delete job -l app=stf-smoketest | |||
for NAME in "${CLOUDNAMES[@]}"; do | |||
oc create -f <(sed -e "s/<<CLOUDNAME>>/${NAME}/;s/<<ELASTICSEARCH_AUTH_PASS>>/${ELASTICSEARCH_AUTH_PASS}/;s/<<PROMETHEUS_AUTH_PASS>>/${PROMETHEUS_AUTH_PASS}/;s/<<OBSERVABILITY_STRATEGY>>/${OBSERVABILITY_STRATEGY}/" ${REL}/smoketest_job.yaml.template) |
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.
👍🏻
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 Chris, thanks
Co-authored-by: Leif Madsen <lmadsen@redhat.com>