Skip to content

Commit

Permalink
fix: e2e failed
Browse files Browse the repository at this point in the history
  • Loading branch information
daviderli614 committed Dec 24, 2024
1 parent d5f9390 commit 949783a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions tests/e2e/setup/create-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,37 +263,21 @@ function wait_for() {
function wait_all_service_ready() {
echo -e "${GREEN}=> Wait for all services to be ready...${RESET}"

echo -e "${GREEN}<= Wait for etcd services to be ready.${RESET}"
# Wait for etcd to be ready.
kubectl wait \
--for=condition=Ready \
pod -l app.kubernetes.io/instance=etcd \
-n "$ETCD_NAMESPACE" \
--timeout="$DEFAULT_TIMEOUT"
echo -e "${GREEN}<= The etcd services is ready.${RESET}"

echo -e "${GREEN}<= Wait for kafka services to be ready.${RESET}"
# Wait for kafka to be ready.
check_kafka_cluster_status
echo -e "${GREEN}<= The kafka services is ready.${RESET}"

kubectl get pods -A | grep -E 'e2e|greptimedb-operator' | awk '{print $2 " " $1}' | while read -r line; do
namespace=$(echo "$line" | awk '{print $2}')
pod=$(echo "$line" | awk '{print $1}')
echo "===> Describing pod $pod in namespace $namespace"
kubectl describe pod "$pod" -n "$namespace"
echo "===> Start dumping logs for pod $pod in namespace $namespace"
kubectl logs "$pod" -n "$namespace"
echo "<=== Finish dumping logs for pod $pod in namespace $namespace"
done

echo -e "${GREEN}<= Wait for greptimedb-operator services to be ready.${RESET}"
# Wait for greptimedb-operator to be ready.
kubectl rollout \
status deployment/greptimedb-operator \
-n greptimedb-admin \
--timeout="$DEFAULT_TIMEOUT"
echo -e "${GREEN}<= The greptimedb-operator services is ready.${RESET}"

echo -e "${GREEN}<= All services are ready.${RESET}"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/setup/kafka-wal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ metadata:
strimzi.io/kraft: enabled
spec:
kafka:
version: 3.7.0
version: 3.9.0
metadataVersion: 3.7-IV4
listeners:
- name: plain
Expand Down

0 comments on commit 949783a

Please sign in to comment.