-
Notifications
You must be signed in to change notification settings - Fork 32
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
Opensearch failed when repo list contains two opensearch entries #322
Comments
Hi @marde16, adding the
By any chance there are more than 1 opensearch entries in your full helm_repo_version_list ? |
I checked my CR4 deployment:
So it returns the opensearch version stamp.
The
|
Agreed, we can change it to |
One more thing @sabrina-yee , the helm_repo_version_list has 3 charts with abbreviations of ... in the end
So Huddo/Kudos will not use it, when Quay.io is configured, but I think the connections-persistent-storage could fail. I'm wrong, it doesn't matter because the chart grep is for the shortened name: connections-automation/roles/hcl/component-pack-harbor/tasks/setup_connections_volumes.yml Line 2 in f23269a
|
:) yes, we've seen it before so shorten the name. Hopefully these issue will all go away once we switch to using OCI (soon). |
Hi @sabrina-yee , I further analyzed my issue. The Ansible playbooks are based on 8CR2 version. Therefore the shell script differs between 8CR2 and the current version to get the opensearch version. 8CR2 version
since version 8CR3 version July 2023 cnx8 CR3 release connections-automation/roles/hcl/component-pack-harbor/tasks/setup_opensearch.yml Lines 50 to 53 in f23269a
I have only two opensearch entries in my helm repo list:
So the grep parameters could be modified as @stoeps13 described. |
The playbook
setup-component-pack-complete-harbor.yml
failed during the opensearch deployment with the following output:In our Component pack deployment the heml_repo_version_list looks as follows:
The following shell script returns both values for opensearch and opensearchstack
"2.7.0-20230921-162215\n2.7.0-20231006-050009"
, why the playbook stops.connections-automation/roles/hcl/component-pack-harbor/tasks/setup_opensearch.yml
Lines 50 to 53 in f23269a
In my opinion the shell script should be modified as follows:
shell: "cat {{ __ansible_cache_charts }}/helm_repo_version_list | grep "opensearch:" | grep -vE \"opensearch-\" | grep -vE opensearchstack | cut -d ':' -f2"
The text was updated successfully, but these errors were encountered: