Skip to content

Commit 73d5167

Browse files
authored
[Tests][BWC][CI] update performance analzyer location (opensearch-project#1474)
Performance analyzer was moved. It was causing a silent failure which prevented the disable security plugin from being set. Thus BWC tests were timing out with security disabled. So I also moved to the security plugin config setup to the top of the function to ensure this gets executed. Source: opensearch-project/performance-analyzer@81d019a opensearch-project/opensearch-build@6183df2 Issue: n/a Signed-off-by: Kawika Avilla <[email protected]>
1 parent 68a4d9d commit 73d5167

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/bwc/opensearch_service.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ set -e
77

88
function setup_opensearch() {
99
cd "$OPENSEARCH_DIR"
10+
echo "network.host: 0.0.0.0" >> config/opensearch.yml
11+
echo "discovery.type: single-node" >> config/opensearch.yml
12+
[ $SECURITY_ENABLED == "false" ] && [ -d "plugins/opensearch-security" ] && echo "plugins.security.disabled: true" >> config/opensearch.yml
1013
# Required for IM
1114
[ -d "plugins/opensearch-index-management" ] && echo "path.repo: [/tmp]" >> config/opensearch.yml
1215
# Required for Alerting
1316
[ -d "plugins/opensearch-alerting" ] && echo "plugins.destination.host.deny_list: [\"10.0.0.0/8\", \"127.0.0.1\"]" >> config/opensearch.yml
1417
# Required for SQL
1518
[ -d "plugins/opensearch-sql" ] && echo "script.context.field.max_compilations_rate: 1000/1m" >> config/opensearch.yml
1619
# Required for PA
17-
[ -d "plugins/opensearch-performance-analyzer" ] && echo "webservice-bind-host = 0.0.0.0" >> plugins/opensearch-performance-analyzer/pa_config/performance-analyzer.properties
18-
echo "network.host: 0.0.0.0" >> config/opensearch.yml
19-
echo "discovery.type: single-node" >> config/opensearch.yml
20-
[ $SECURITY_ENABLED == "false" ] && [ -d "plugins/opensearch-security" ] && echo "plugins.security.disabled: true" >> config/opensearch.yml
20+
[ -d "plugins/opensearch-performance-analyzer" ] && echo "webservice-bind-host = 0.0.0.0" >> config/opensearch-performance-analyzer/performance-analyzer.properties
2121
}
2222

2323
# Starts OpenSearch, if verifying a distribution it will install the certs then start.

0 commit comments

Comments
 (0)