Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

integration tests are failing with "Wildcard expressions or all indices are not allowed" from elasticsearch.clean() #1095

Closed
trentm opened this issue Apr 2, 2021 · 0 comments · Fixed by #1098
Assignees
Labels
automation bug Team:Automation Label for the Observability productivity team

Comments

@trentm
Copy link
Member

trentm commented Apr 2, 2021

https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests-selector-mbp/activity/ shows that integration tests started failing for everyone (at least for node, rum, and java that have had test runs of it so far) about 9 hours ago.
The failure is the same for all:

[2021-04-01T17:39:25.468Z] tests/utils.py:13: in check_agent_transaction
[2021-04-01T17:39:25.468Z]     elasticsearch.clean()
[2021-04-01T17:39:25.468Z] tests/fixtures/es.py:22: in clean
[2021-04-01T17:39:25.468Z]     self.es.indices.delete(self.index)
[2021-04-01T17:39:25.468Z] venv/lib/python3.7/site-packages/elasticsearch/client/utils.py:76: in _wrapped
[2021-04-01T17:39:25.468Z]     return func(*args, params=params, **kwargs)
[2021-04-01T17:39:25.468Z] venv/lib/python3.7/site-packages/elasticsearch/client/indices.py:185: in delete
[2021-04-01T17:39:25.468Z]     params=params)
[2021-04-01T17:39:25.468Z] venv/lib/python3.7/site-packages/elasticsearch/transport.py:318: in perform_request
[2021-04-01T17:39:25.468Z]     status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
[2021-04-01T17:39:25.468Z] venv/lib/python3.7/site-packages/elasticsearch/connection/http_requests.py:90: in perform_request
[2021-04-01T17:39:25.468Z]     self._raise_error(response.status_code, raw_data)
[2021-04-01T17:39:25.468Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[2021-04-01T17:39:25.468Z] 
[2021-04-01T17:39:25.468Z] self = <RequestsHttpConnection: http://elasticsearch:9200>, status_code = 400
[2021-04-01T17:39:25.468Z] raw_data = '{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Wildcard expressions or all indices are not al...d"}],"type":"illegal_argument_exception","reason":"Wildcard expressions or all indices are not allowed"},"status":400}'

These integration tests are running using whatever the latest "docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT" image is. The current one is this commit:

                "org.label-schema.vcs-ref": "014cc2b759f64113b66247606d05b34145168c43",
                "org.label-schema.vcs-url": "https://github.com/elastic/elasticsearch",
                "org.label-schema.vendor": "Elastic",
                "org.label-schema.version": "8.0.0-SNAPSHOT",

from about 17 hours ago.

About 30 hours ago there was this change to the elasticsearch file that contains that error message: elastic/elasticsearch#61074

$20 says that change means this code (

elasticsearch.clean()
) needs to change to specify index name(s), or we need to config our ES in integration testing to use action.destructive_requires_name = false.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automation bug Team:Automation Label for the Observability productivity team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants