What is the bug?
With OpenSearch 3.1 and opensearch-py 3.0.0 and curator-opensearch 0.0.13 when trying to perform a 'shrink' operation the following error is returned:
curator.exceptions.FailedExecution: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: IndicesClient.exists() takes 1 positional argument but 2 positional arguments (and 2 keyword-only arguments) were given
NOTE: It should be noted that this worked as expected with opensearch-py 2.8.0
How can one reproduce the bug?
Call the curator shrink function with the following parameters:
shrink_node - DETERMINISTIC
node_filters - {'permit_masters': True, 'exclude_nodes': ['not_this_node']}
number_of_shards - 1
number_of_replicas - 1
shrink_prefix -
shrink_suffix - -archived
copy_aliases - False
delete_after - True
post_allocation - None
wait_for_active_shards - 1
wait_for_rebalance - True
extra_settings - None
wait_for_completion - True
wait_interval - 9
max_wait - -1
What is the expected behavior?
The 'shrink' function to return correctly and create the new indices with '-archived'.
What is your host/environment?
Operating system, version.
Alpine, 3.22
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.