Package version (if known): 1.0.13
Describe the bug
Invenio-cli checks connection to opensearch via the following lines:
source code
return run_cmd(
["curl", "-f", "localhost:9200/_cluster/health?wait_for_status=yellow"]
)
If elasticsearch runs on different host or port, this check fails.
Steps to Reproduce
- Install RDM site
- Change port mapping in docker-services.yaml and set opensearch local port to a different value
- Run invenio-cli services status
- This will fail
Expected behavior
The host, port and authorization info should be read from the invenio.cfg.
I can make a pull request (using the requests module which is already in the dependencies) if it helps.
Package version (if known): 1.0.13
Describe the bug
Invenio-cli checks connection to opensearch via the following lines:
source code
If elasticsearch runs on different host or port, this check fails.
Steps to Reproduce
Expected behavior
The host, port and authorization info should be read from the invenio.cfg.
I can make a pull request (using the requests module which is already in the dependencies) if it helps.