Skip to content

Commit 7477370

Browse files
test: Disable the disk allocation decider (#30)
* test: Disable the disk allocation decider * chore: Fix ARM build issue
1 parent a81351f commit 7477370

File tree

6 files changed

+24
-2
lines changed

6 files changed

+24
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ jobs:
383383
run: |
384384
# Installing helm and yq on ubicloud-standard-8-arm only
385385
if [ "$(arch)" = "aarch64" ]; then
386-
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
387-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
386+
curl -fsSL https://packages.buildkite.com/helm-linux/helm-debian/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
387+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://packages.buildkite.com/helm-linux/helm-debian/any/ any main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
388388
sudo apt-get -y update
389389
sudo apt-get -y install helm
390390
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64 -O /usr/bin/yq && sudo chmod +x /usr/bin/yq

tests/templates/kuttl/external-access/opensearch.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ spec:
7070
# Disable memory mapping in this test; If memory mapping were activated, the kernel setting
7171
# vm.max_map_count would have to be increased to 262144 on the node.
7272
node.store.allow_mmap: "false"
73+
# Disable the disk allocation decider in this test; Otherwise the test depends on the disk
74+
# usage of the node and if the relative watermark set in
75+
# `cluster.routing.allocation.disk.watermark.high` is reached then the security index could
76+
# not be created even if enough disk space would be available.
77+
cluster.routing.allocation.disk.threshold_enabled: "false"
7378
plugins.security.allow_default_init_securityindex: "true"
7479
plugins.security.ssl.transport.enabled: "true"
7580
plugins.security.ssl.transport.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt

tests/templates/kuttl/ldap/21-install-opensearch.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ spec:
2727
# Disable memory mapping in this test; If memory mapping were activated, the kernel setting
2828
# vm.max_map_count would have to be increased to 262144 on the node.
2929
node.store.allow_mmap: "false"
30+
# Disable the disk allocation decider in this test; Otherwise the test depends on the disk
31+
# usage of the node and if the relative watermark set in
32+
# `cluster.routing.allocation.disk.watermark.high` is reached then the security index could
33+
# not be created even if enough disk space would be available.
34+
cluster.routing.allocation.disk.threshold_enabled: "false"
3035
plugins.security.allow_default_init_securityindex: "true"
3136
plugins.security.ssl.transport.enabled: "true"
3237
plugins.security.ssl.transport.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt

tests/templates/kuttl/metrics/20-install-opensearch.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ spec:
2929
# Disable memory mapping in this test; If memory mapping were activated, the kernel setting
3030
# vm.max_map_count would have to be increased to 262144 on the node.
3131
node.store.allow_mmap: "false"
32+
# Disable the disk allocation decider in this test; Otherwise the test depends on the disk
33+
# usage of the node and if the relative watermark set in
34+
# `cluster.routing.allocation.disk.watermark.high` is reached then the security index could
35+
# not be created even if enough disk space would be available.
36+
cluster.routing.allocation.disk.threshold_enabled: "false"
3237
plugins.security.allow_default_init_securityindex: "true"
3338
plugins.security.ssl.transport.enabled: "true"
3439
plugins.security.ssl.transport.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt

tests/templates/kuttl/smoke/10-assert.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ metadata:
399399
data:
400400
opensearch.yml: |-
401401
cluster.name: "opensearch"
402+
cluster.routing.allocation.disk.threshold_enabled: "false"
402403
discovery.type: "zen"
403404
network.host: "0.0.0.0"
404405
node.store.allow_mmap: "false"
@@ -433,6 +434,7 @@ metadata:
433434
data:
434435
opensearch.yml: |-
435436
cluster.name: "opensearch"
437+
cluster.routing.allocation.disk.threshold_enabled: "false"
436438
discovery.type: "zen"
437439
network.host: "0.0.0.0"
438440
node.store.allow_mmap: "false"

tests/templates/kuttl/smoke/10-install-opensearch.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ spec:
6565
# Disable memory mapping in this test; If memory mapping were activated, the kernel setting
6666
# vm.max_map_count would have to be increased to 262144 on the node.
6767
node.store.allow_mmap: "false"
68+
# Disable the disk allocation decider in this test; Otherwise the test depends on the disk
69+
# usage of the node and if the relative watermark set in
70+
# `cluster.routing.allocation.disk.watermark.high` is reached then the security index could
71+
# not be created even if enough disk space would be available.
72+
cluster.routing.allocation.disk.threshold_enabled: "false"
6873
plugins.security.allow_default_init_securityindex: "true"
6974
plugins.security.ssl.transport.enabled: "true"
7075
plugins.security.ssl.transport.pemcert_filepath: {{ test_scenario['values']['opensearch_home'] }}/config/tls/tls.crt

0 commit comments

Comments
 (0)