OpenSearch Version 2.3.0 Gives Compatibility Error
Summary
One of our customers reported that attempting to enable OpenSearch 2.3.0 with GitLab results in this error:
Elasticsearch version not compatible
They attempted the solution in our documents to unpause indexing but in this instance the pause box was never checked so there was no way to clear it.
Our documentation says that we support "OpenSearch 1.x or later" but it looks like we've only tested up to version 2.0 as seen in this comment. Versions up to 2.3.0 are currently available for users running their own cluster.
Steps to reproduce
- Install GitLab 15.4.3.
- Setup an OpenSearch cluster on 2.3.0 via the instructions on OpenSearch's site.
- Configure GitLab's Advanced Search to use the OpenSearch 2.3.0 cluster and attempt to index.
What is the current bug behavior?
UI gives an Elasticsearch version not compatible
warning.
What is the expected correct behavior?
OpenSearch should work with version 2.3.0 if it's compatible with 1.x or later.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
- Test OpenSearch 2.1 and up and add them to the tested and supported version/distributions of Elasticsearch/Opensearch
- Add clarification in the documentation that we only support versions up to 2.0.