未验证 提交 d061a15a 编写于 作者: Z zhuwenxing 提交者: GitHub

[skip e2e]Fix install and test script for chaos (#15984)

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 3522a365
......@@ -9,8 +9,8 @@ bash uninstall_milvus.sh ${release} ${ns}|| true
declare -A pod_map=(["querynode"]="queryNode" ["indexnode"]="indexNode" ["datanode"]="dataNode" ["proxy"]="proxy")
echo "insatll cluster"
helm install --wait --timeout 360s ${RELEASE_NAME:-$release} milvus/milvus \
--set image.all.repository=${REPOSITORY:-"milvusdb/milvus-dev"} \
--set image.all.tag=${IMAGE_TAG:-"master-latest"} \
--set ${pod_map[${pod}]}.replicas=$node_num \
-f ../cluster-values.yaml -n=${ns}
\ No newline at end of file
helm install --wait --debug --timeout 360s ${RELEASE_NAME:-$release} milvus/milvus \
--set image.all.repository=${REPOSITORY:-"milvusdb/milvus-dev"} \
--set image.all.tag=${IMAGE_TAG:-"master-latest"} \
--set ${pod_map[${pod}]}.replicas=$node_num \
-f ../cluster-values.yaml -n=${ns}
\ No newline at end of file
......@@ -5,7 +5,7 @@ release=${1:-"milvs-chaos"}
ns=${2:-"chaos-testing"}
bash uninstall_milvus.sh ${release} ${ns}|| true
echo "insatll standalone"
helm install --wait --timeout 360s ${RELEASE_NAME:-$release} milvus/milvus \
--set image.all.repository=${REPOSITORY:-"milvusdb/milvus-dev"} \
--set image.all.tag=${IMAGE_TAG:-"master-latest"} \
-f ../standalone-values.yaml -n=${ns}
\ No newline at end of file
helm install --wait --debug --timeout 360s ${RELEASE_NAME:-$release} milvus/milvus \
--set image.all.repository=${REPOSITORY:-"milvusdb/milvus-dev"} \
--set image.all.tag=${IMAGE_TAG:-"master-latest"} \
-f ../standalone-values.yaml -n=${ns}
\ No newline at end of file
......@@ -190,14 +190,14 @@ class TestChaos(TestChaosBase):
chaos_res.create(chaos_config)
log.info("chaos injected")
# verify the chaos is injected
log.info(os.system(f"kubectl get {kind} {meta_name} -n {constants.CHAOS_NAMESPACE}"))
log.info(f"kubectl get {kind} {meta_name} -n {constants.CHAOS_NAMESPACE}")
os.system(f"kubectl get {kind} {meta_name} -n {constants.CHAOS_NAMESPACE}")
sleep(constants.WAIT_PER_OP * 2)
# reset counting
cc.reset_counting(self.health_checkers)
# wait 120s
sleep(constants.CHAOS_DURATION)
log.info(f'Alive threads: {threading.enumerate()}')
# assert statistic
......@@ -220,7 +220,8 @@ class TestChaos(TestChaosBase):
chaos_res.delete(meta_name)
log.info("chaos deleted")
# verify the chaos is deleted
log.info(os.system(f"kubectl get {kind} {meta_name} -n {constants.CHAOS_NAMESPACE}"))
log.info(f"kubectl get {kind} {meta_name} -n {constants.CHAOS_NAMESPACE}")
os.system(f"kubectl get {kind} {meta_name} -n {constants.CHAOS_NAMESPACE}")
log.info(f'Alive threads: {threading.enumerate()}')
sleep(2)
# wait all pods ready
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册