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

New policy has an ISM template with index pattern matching existing policy templates #1206

Open
rishabhToshniwal opened this issue Jul 11, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@rishabhToshniwal
Copy link

rishabhToshniwal commented Jul 11, 2024

Describe the bug

I am trying to create an ISM policy for index pattern [*logs-bs.cbes-*] with priority 100 and failing with below error. However I didn't see any policy matching the index pattern already present. When I create the policy with the priority number not present in existing policies it works. I am not sure how these indexes are overlapping ?

{
"error" : {
"root_cause" : [
{
"type" : "index_management_exception",
"reason" : "New policy ism_policy_opensearch_prim630-uat_cbes has an ISM template with index pattern [*logs-bs.cbes-*] matching existing policy templates, please use a different priority than 100"
}
],
"type" : "index_management_exception",
"reason" : "New policy ism_policy_opensearch_prim630-uat_cbes has an ISM template with index pattern [*logs-bs.cbes-*] matching existing policy templates, please use a different priority than 100",
"caused_by" : {
"type" : "exception",
"reason" : "java.lang.IllegalArgumentException: New policy ism_policy_opensearch_prim630-uat_cbes has an ISM template with index pattern [*logs-bs.cbes-*] matching existing policy templates, please use a different priority than 100"
}
},
"status" : 400
}

The other policies have following index pattern and priority

"priority" : 100,
"index_patterns" : [
"*abc-es-logging-index-*",
"otel-v1-apm-span-*"
],

"index_patterns" : [
"*logs-bs.couchbase-*"
],
"priority" : 102,

"index_patterns" : [
"*logs-bs.elastic-*"
],
"priority" : 101,

Related component

Indexing

To Reproduce

  1. Create an ISM policy for the pattern "*logs-bs.couchbase-*" and priority 100
  2. Create another ISM policy for the pattern *logs-bs.cbes-* and priority 100

Expected behavior

It should create the ISM policy as the index patterns don't overlap

Additional Details

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.

@rishabhToshniwal rishabhToshniwal added bug Something isn't working untriaged labels Jul 11, 2024
@terryquigleysas
Copy link

@rishabhToshniwal Which version of OpenSearch are you seeing this on?

@rishabhToshniwal
Copy link
Author

@terryquigleysas its Opensearch 2.3

@dblock dblock transferred this issue from opensearch-project/OpenSearch Jul 11, 2024
@dblock dblock removed the untriaged label Jul 29, 2024
@dblock
Copy link
Member

dblock commented Jul 29, 2024

[Catch All Triage - 1, 2, 3, 4]

@dhwanilpatel
Copy link

@opensearch-project/admin Since it is ISM related, can we move it to https://github.com/opensearch-project/index-management ?

@BEL
Copy link

BEL commented Aug 21, 2024

Observing the same issue on 2.9

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

No branches or pull requests

5 participants