Closed dupuju closed 9 months ago
I just replicated this in my own environment.
Installed 4.7.2
on top of al2023
and then updated to 4.8.0
following the upgrade guide.
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: java.lang.IllegalArgumentException: index template [ss4o_metrics_template] has index patterns [ss4o_metrics-*-*] matching patterns from existing templates [ss4o_metric_template] with patterns (ss4o_metric_template => [ss4o_metrics-*-*]) that have the same priority [1], multiple index templates may not match during index creation, please use a different priority
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.metadata.MetadataIndexTemplateService.addIndexTemplateV2(MetadataIndexTemplateService.java:560)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.metadata.MetadataIndexTemplateService$4.execute(MetadataIndexTemplateService.java:493)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:65)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.service.MasterService.executeTasks(MasterService.java:874)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:424)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.service.MasterService.runTasks(MasterService.java:295)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.service.MasterService$Batcher.run(MasterService.java:206)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:204)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:242)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:849)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedOpenSearchThreadPoolExecutor.java:282)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedOpenSearchThreadPoolExecutor.java:245)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: at java.base/java.lang.Thread.run(Thread.java:833)
Feb 29 18:59:36 localhost systemd-entrypoint[6134]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
We were able to replicate this by installing opensearch 2.8, and then upgrading to 2.10.
This non-fatal error is a known opensearch issue, so we are moving it to blocked.
We'll add a note to the upgrade guide to manually remove the old templates before the upgrade.
curl -XDELETE "https://opensearch-node1:9200/_index_template/ss4o_*_template"
More info: https://github.com/opensearch-project/observability/issues/1771
Deployment requirements
Description
upgrading Wazuh indexer to 4.8 🔴
Encountered an issue, when upgrading wazuh-indexer for release test Release 4.8.0 - Beta 2 - E2E UX tests - Central components upgrade #22110 https://github.com/wazuh/wazuh/issues/22110
Further logs on this error: