You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/09/27 19:37:10 UTC
[solr-operator] branch main updated: Fix test issues with DNS resolution
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 87fb5e4 Fix test issues with DNS resolution
87fb5e4 is described below
commit 87fb5e4481e13264b03899e7ad1a7c0027392f33
Author: Houston Putman <ho...@apache.org>
AuthorDate: Wed Sep 27 15:36:10 2023 -0400
Fix test issues with DNS resolution
Add docs to show users how to fix the same issue themselves
---
README.md | 1 +
docs/README.md | 1 +
docs/{README.md => known-issues.md} | 26 ++++++++++++++++----------
tests/scripts/manage_e2e_tests.sh | 5 +++++
4 files changed, 23 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index 0405511..94e3eb9 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,7 @@ Please visit the following pages for documentation on using and developing the S
- The released helm charts and their instructions should be used for all safe and stable deployments.
The charts found in `helm/` are not guaranteed to be compatible with the last stable release, and should only be used for development purposes.
- [Running the Solr Operator](https://apache.github.io/solr-operator/docs/running-the-operator)
+- [Known Issues](https://apache.github.io/solr-operator/docs/known-issues)
- Available Solr Resources
- [Solr Clouds](https://apache.github.io/solr-operator/docs/solr-cloud)
- [Solr Backups](https://apache.github.io/solr-operator/docs/solr-backup)
diff --git a/docs/README.md b/docs/README.md
index 04580d7..980fca1 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -21,6 +21,7 @@ Please visit the following pages for documentation on using and developing the S
- [Local Tutorial](local_tutorial.md)
- [Upgrade Notes](upgrade-notes.md)
+- [Known Issues](known-issues.md)
- [Running the Solr Operator](running-the-operator.md)
- Available Solr Resources
- [Solr Clouds](solr-cloud)
diff --git a/docs/README.md b/docs/known-issues.md
similarity index 54%
copy from docs/README.md
copy to docs/known-issues.md
index 04580d7..3fc527c 100644
--- a/docs/README.md
+++ b/docs/known-issues.md
@@ -15,15 +15,21 @@
limitations under the License.
-->
-# Documentation
+# Known Issues
-Please visit the following pages for documentation on using and developing the Solr Operator:
+## Solr Cloud
-- [Local Tutorial](local_tutorial.md)
-- [Upgrade Notes](upgrade-notes.md)
-- [Running the Solr Operator](running-the-operator.md)
-- Available Solr Resources
- - [Solr Clouds](solr-cloud)
- - [Solr Backups](solr-backup)
- - [Solr Metrics](solr-prometheus-exporter)
-- [Development](development.md)
\ No newline at end of file
+- You may be seeing timeouts in your Solr logs after a rolling update.
+ This can be caused by DNS caching in CoreDNS (the default DNS for Kubernetes).
+ This can be fixed by reducing the kubernetes cache TTL to 5-10 seconds.
+ Please refer to this ticket for more information: https://github.com/kubernetes/kubernetes/issues/92559
+ \
+ Fix: In the `kube-system` namespace, there will be a `ConfigMap` with name `coredns`. It will contain a section:
+ ```
+ kubernetes cluster.local in-addr.arpa ip6.arpa {
+ ...
+ ttl 30
+ ...
+ }
+ ```
+ Edit the `ttl` value to be `5`, CoreDNS will automatically see a change in the configMap and reload it.
\ No newline at end of file
diff --git a/tests/scripts/manage_e2e_tests.sh b/tests/scripts/manage_e2e_tests.sh
index 56257dc..cc00142 100755
--- a/tests/scripts/manage_e2e_tests.sh
+++ b/tests/scripts/manage_e2e_tests.sh
@@ -183,6 +183,11 @@ function setup_cluster() {
kubectl create -f "${REPO_DIR}/config/dependencies/" 2>/dev/null || kubectl replace -f "${REPO_DIR}/config/dependencies/"
echo ""
+
+ printf "Edit the TTL of CoreDNS kubernetes so that statefulSet endpoints are refreshed more often\n"
+ kubectl get configmap coredns -n kube-system -o yaml | sed 's/\(.*\)ttl 30\(.*\)/\1ttl 5\2/' | kubectl replace -n kube-system -f -
+ echo ""
+
printf "Installing Cert Manager\n"
helm repo add cert-manager https://charts.jetstack.io --force-update
helm upgrade -i -n cert-manager --create-namespace cert-manager cert-manager/cert-manager --version "${CERT_MANAGER_VERSION}" --set installCRDs=true