Skip to content
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

Templates break with dnf/rpm updates (on Centos 9) from 2.8 to 2.9 version. #8926

Open
lejeczek opened this issue Jul 27, 2023 · 7 comments
Open
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing

Comments

@lejeczek
Copy link

Describe the bug
A clear and concise description of what the bug is.

Please see here for the whole story - https://forum.opensearch.org/t/java-lang-illegalargumentexception-index-template-how-critical/15306/16

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@lejeczek lejeczek added bug Something isn't working untriaged labels Jul 27, 2023
@Xtansia Xtansia added the Indexing Indexing, Bulk Indexing and anything related to indexing label Aug 14, 2023
@draeath
Copy link

draeath commented Aug 14, 2023

I am affected by this as well. You seem to have worked around it on the forum post @lejeczek but can you detail what you did?

If so - if I use what view gets me, in JSON and then - deleting the temple in-between - then use that with

You've lost me, here. Which view? Which template did you remove?

@draeath
Copy link

draeath commented Aug 14, 2023

Oh, also please link back here in the forum post so others can more easily find it. That post is literally the only result for a google search of "ss4o_metrics_template"

@dblock dblock changed the title Templates brake with dnf/rpm updates (on Centos 9) from 2.8 to 2.9 version. Templates break with dnf/rpm updates (on Centos 9) from 2.8 to 2.9 version. Aug 14, 2023
@dblock
Copy link
Member

dblock commented Aug 14, 2023

@lejeczek can you please edit this issue with copy-pasting the relevant parts from the forum post so that we can understand what the issue is without having to go read something else? we can then triage/move this appropriately.

@AMoo-Miki
Copy link

AMoo-Miki commented Aug 23, 2023

From what i gather, there used to be a template named ss4o_metric_template which was renamed to ss4o_metrics_template in 2.9.0. However, the code that creates this template doesn't look for the older name to remove/update it and blindly creates a new template. This results in anyone upgrading to 2.9.0 to have two templates with the same pattern and same priority and that causes

[ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [3c9265bbfeec] uncaught exception in thread [main]
org.opensearch.bootstrap.StartupException: 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

PS, this is NOT specific to Centos; anyone upgrading to 2.9.0 suffers from it.

Probably the simplest solution is to remove the older template, ss4o_metric_template.

@anasalkouz
Copy link
Member

Might be related issue: opensearch-project/ml-commons#1201

@hashworks
Copy link

How would one remove the ss4o_metric_template if the 2.9.0 opensearch server is unable to start due to the bug?

@draeath
Copy link

draeath commented Sep 11, 2023

Are you sure that's the thing that's preventing you from starting?

I came looking because I noticed it in the logs, but it wasn't actually preventing open search from starting up and functioning normally (that I could tell)

I don't really use it directly. I have graylog sitting on top of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
None yet
Development

No branches or pull requests

7 participants