@@ -43,11 +43,21 @@ jobs:
4343          http.port : 9202 
4444          http.cors.enabled : true 
4545          plugins.security.disabled : true 
46-           plugins.security.ssl.http.enabled : true 
47-           OPENSEARCH_JAVA_OPTS : -Xms512m -Xmx512m 
46+           plugins.security.ssl.http.enabled : false 
47+           OPENSEARCH_JAVA_OPTS : -Xms512m -Xmx512m -Dopensearch.transport.cname_in_publish_address=true  
4848          action.destructive_requires_name : false 
49+           bootstrap.memory_lock : ' false' 
50+           DISABLE_SECURITY_PLUGIN : ' true' 
51+           DISABLE_INSTALL_DEMO_CONFIG : ' true' 
4952        ports :
5053          - 9202:9202 
54+         options : >- 
55+           --health-cmd="curl -f http://localhost:9202/_cluster/health || exit 1" 
56+           --health-interval=10s 
57+           --health-timeout=5s 
58+           --health-retries=10 
59+           --ulimit nofile=65536:65536 
60+           --ulimit memlock=-1:-1 
5161
5262strategy :
5363      matrix :
@@ -128,16 +138,52 @@ jobs:
128138          exit 1 
129139
130140name : Debug OpenSearch/Elasticsearch status 
141+         if : always() 
131142        run : | 
132-           echo "Root response:" 
133-           curl -sS -D - http://localhost:$ES_PORT/ || true  
134-           echo; echo "Cluster health:" 
135-           curl -sS http://localhost:$ES_PORT/_cluster/health || true  
136-           echo; echo "List opensearch/elasticsearch containers:" 
137-           docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Names}}" || true  
138-           echo; echo "Container logs (first match):" 
139-           cid=$(docker ps -q --filter "ancestor=opensearchproject/opensearch" | head -n1 || true) 
140-           if [ -n "$cid" ]; then docker logs --tail 200 $cid || true; else echo "no opensearch container found"; fi 
143+           echo "=== System Information ===" 
144+           echo "Hostname: $(hostname)" 
145+           echo "IP Addresses: $(hostname -I || true)" 
146+           echo "Docker version: $(docker --version || true)" 
147+           echo "Docker info:" 
148+           docker info || true  
149+            
150+           echo "\n=== Container Status ===" 
151+           docker ps -a || true  
152+            
153+           echo "\n=== Network Information ===" 
154+           docker network inspect bridge || true  
155+            
156+           echo "\n=== OpenSearch Container Logs ===" 
157+           OPENSEARCH_ID=$(docker ps -a --filter "ancestor=opensearchproject/opensearch:2.12.0" -q | head -1 || true) 
158+           if [ -n "$OPENSEARCH_ID" ]; then 
159+             echo "Container logs for $OPENSEARCH_ID:" 
160+             docker logs --tail 500 $OPENSEARCH_ID || true  
161+             echo "\nContainer inspect:" 
162+             docker inspect $OPENSEARCH_ID || true  
163+             echo "\nContainer environment:" 
164+             docker exec $OPENSEARCH_ID env || true  
165+           else 
166+             echo "No OpenSearch container found" 
167+           fi 
168+            
169+           echo "\n=== Elasticsearch Container Logs ===" 
170+           ES_ID=$(docker ps -a --filter "ancestor=docker.elastic.co/elasticsearch/elasticsearch:8.19.5" -q | head -1 || true) 
171+           if [ -n "$ES_ID" ]; then 
172+             echo "Container logs for $ES_ID:" 
173+             docker logs --tail 500 $ES_ID || true  
174+           else 
175+             echo "No Elasticsearch container found" 
176+           fi 
177+            
178+           echo "\n=== Port Check ===" 
179+           echo "Port 9200 (Elasticsearch): $(nc -zv localhost 9200 2>&1 || true)" 
180+           echo "Port 9202 (OpenSearch): $(nc -zv localhost 9202 2>&1 || true)" 
181+            
182+           echo "\n=== Disk Space ===" 
183+           df -h || true  
184+            
185+           echo "\n=== Memory Info ===" 
186+           free -h || true  
141187env :
142188          ES_PORT : ${{ matrix.backend == 'elasticsearch8' && '9200' || '9202' }} 
143189
0 commit comments