@@ -214,16 +214,68 @@ log "✅ Mock servers deployed"
214214log " Deploying OKP Solr server..."
215215oc apply -n " $NAMESPACE " -f " $PIPELINE_DIR /manifests/lightspeed/okp-solr.yaml"
216216
217+ # Check if redhat-registry-pull-secret exists before waiting
218+ if oc get secret redhat-registry-pull-secret -n " $NAMESPACE " & > /dev/null; then
219+ log " ✅ redhat-registry-pull-secret exists"
220+ else
221+ echo " ❌ WARNING: redhat-registry-pull-secret NOT found - image pull will fail"
222+ echo " Available secrets in namespace $NAMESPACE :"
223+ oc get secrets -n " $NAMESPACE " | grep -E " NAME|pull-secret" || true
224+ fi
225+
217226# Wait for OKP Solr to be ready
218- log " Waiting for OKP Solr to be ready..."
219- oc wait pod/okp-solr-service \
220- -n " $NAMESPACE " --for=condition=Ready --timeout=180s || {
221- echo " ⚠️ OKP Solr not ready, checking status..."
222- oc get pods -n " $NAMESPACE " | grep okp-solr || true
223- oc describe pod okp-solr-service -n " $NAMESPACE " 2> /dev/null | tail -30 || true
224- echo " ❌ OKP Solr failed to become ready"
227+ log " Waiting for OKP Solr to be ready (180s timeout)..."
228+ log " Initial pod status:"
229+ oc get pod okp-solr-service -n " $NAMESPACE " || true
230+
231+ if ! oc wait pod/okp-solr-service \
232+ -n " $NAMESPACE " --for=condition=Ready --timeout=180s; then
233+
234+ echo " =========================================="
235+ echo " ⚠️ OKP Solr not ready - DETAILED DIAGNOSTICS"
236+ echo " =========================================="
237+
238+ echo " "
239+ echo " === Pod Status ==="
240+ oc get pod okp-solr-service -n " $NAMESPACE " -o wide || true
241+
242+ echo " "
243+ echo " === Container State ==="
244+ oc get pod okp-solr-service -n " $NAMESPACE " \
245+ -o jsonpath=' {.status.containerStatuses[*].state}' | jq ' .' || echo " No container status available"
246+
247+ echo " "
248+ echo " === Image Pull Status ==="
249+ oc get pod okp-solr-service -n " $NAMESPACE " \
250+ -o jsonpath=' {.status.containerStatuses[*].image}' && echo " " || true
251+ oc get pod okp-solr-service -n " $NAMESPACE " \
252+ -o jsonpath=' {.status.containerStatuses[*].imageID}' && echo " " || true
253+
254+ echo " "
255+ echo " === Pod Events (last 30) ==="
256+ oc get events -n " $NAMESPACE " --sort-by=' .lastTimestamp' \
257+ --field-selector involvedObject.name=okp-solr-service 2> /dev/null | tail -30 || \
258+ oc get events -n " $NAMESPACE " --sort-by=' .lastTimestamp' | grep okp-solr || true
259+
260+ echo " "
261+ echo " === Full Pod Description ==="
262+ oc describe pod okp-solr-service -n " $NAMESPACE " || true
263+
264+ echo " "
265+ echo " === Red Hat Registry Secret Status ==="
266+ if oc get secret redhat-registry-pull-secret -n " $NAMESPACE " & > /dev/null; then
267+ oc get secret redhat-registry-pull-secret -n " $NAMESPACE " -o yaml | grep -A 2 " type:"
268+ else
269+ echo " ❌ redhat-registry-pull-secret NOT FOUND"
270+ fi
271+
272+ echo " "
273+ echo " =========================================="
274+ echo " ❌ OKP Solr failed to become ready within 180s"
275+ echo " =========================================="
225276 exit 1
226- }
277+ fi
278+
227279log " ✅ OKP Solr deployed"
228280
229281# e2e-tunnel-proxy and e2e-interception-proxy are deployed from proxy.feature steps
0 commit comments