Skip to content

Commit a3b8be5

Browse files
author
Sofiya Nuryyeva
committed
adding OKP deploy logs
1 parent 14fc382 commit a3b8be5

3 files changed

Lines changed: 130 additions & 16 deletions

File tree

.tekton/integration-tests/pipeline/lightspeed-stack-integration-test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ spec:
212212
- name: quay-aipcc-password
213213
secret:
214214
secretName: quay-aipcc-password
215+
- name: redhat-registry-username
216+
secret:
217+
secretName: redhat-registry-username
218+
- name: redhat-registry-password
219+
secret:
220+
secretName: redhat-registry-password
215221
- name: credentials
216222
emptyDir: {}
217223
steps:
@@ -251,6 +257,10 @@ spec:
251257
mountPath: /var/run/quay-aipcc-name
252258
- name: quay-aipcc-password
253259
mountPath: /var/run/quay-aipcc-password
260+
- name: redhat-registry-username
261+
mountPath: /var/run/redhat-registry-username
262+
- name: redhat-registry-password
263+
mountPath: /var/run/redhat-registry-password
254264
- name: credentials
255265
mountPath: /credentials
256266
env:

tests/e2e-prow/rhoai/pipeline-konflux.sh

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,68 @@ log "✅ Mock servers deployed"
214214
log "Deploying OKP Solr server..."
215215
oc 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+
227279
log "✅ OKP Solr deployed"
228280

229281
# e2e-tunnel-proxy and e2e-interception-proxy are deployed from proxy.feature steps

tests/e2e-prow/rhoai/pipeline.sh

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,16 +265,68 @@ echo "✅ Mock servers deployed"
265265
echo "Deploying OKP Solr server..."
266266
oc apply -n "$NAMESPACE" -f "$PIPELINE_DIR/manifests/lightspeed/okp-solr.yaml"
267267

268+
# Check if redhat-registry-pull-secret exists before waiting
269+
if oc get secret redhat-registry-pull-secret -n "$NAMESPACE" &>/dev/null; then
270+
echo "✅ redhat-registry-pull-secret exists"
271+
else
272+
echo "❌ WARNING: redhat-registry-pull-secret NOT found - image pull will fail"
273+
echo "Available secrets in namespace $NAMESPACE:"
274+
oc get secrets -n "$NAMESPACE" | grep -E "NAME|pull-secret" || true
275+
fi
276+
268277
# Wait for OKP Solr to be ready
269-
echo "Waiting for OKP Solr to be ready..."
270-
oc wait pod/okp-solr-service \
271-
-n "$NAMESPACE" --for=condition=Ready --timeout=180s || {
272-
echo "⚠️ OKP Solr not ready, checking status..."
273-
oc get pods -n "$NAMESPACE" | grep okp-solr || true
274-
oc describe pod okp-solr-service -n "$NAMESPACE" 2>/dev/null | tail -30 || true
275-
echo "❌ OKP Solr failed to become ready"
278+
echo "Waiting for OKP Solr to be ready (180s timeout)..."
279+
echo "Initial pod status:"
280+
oc get pod okp-solr-service -n "$NAMESPACE" || true
281+
282+
if ! oc wait pod/okp-solr-service \
283+
-n "$NAMESPACE" --for=condition=Ready --timeout=180s; then
284+
285+
echo "=========================================="
286+
echo "⚠️ OKP Solr not ready - DETAILED DIAGNOSTICS"
287+
echo "=========================================="
288+
289+
echo ""
290+
echo "=== Pod Status ==="
291+
oc get pod okp-solr-service -n "$NAMESPACE" -o wide || true
292+
293+
echo ""
294+
echo "=== Container State ==="
295+
oc get pod okp-solr-service -n "$NAMESPACE" \
296+
-o jsonpath='{.status.containerStatuses[*].state}' | jq '.' || echo "No container status available"
297+
298+
echo ""
299+
echo "=== Image Pull Status ==="
300+
oc get pod okp-solr-service -n "$NAMESPACE" \
301+
-o jsonpath='{.status.containerStatuses[*].image}' && echo "" || true
302+
oc get pod okp-solr-service -n "$NAMESPACE" \
303+
-o jsonpath='{.status.containerStatuses[*].imageID}' && echo "" || true
304+
305+
echo ""
306+
echo "=== Pod Events (last 30) ==="
307+
oc get events -n "$NAMESPACE" --sort-by='.lastTimestamp' \
308+
--field-selector involvedObject.name=okp-solr-service 2>/dev/null | tail -30 || \
309+
oc get events -n "$NAMESPACE" --sort-by='.lastTimestamp' | grep okp-solr || true
310+
311+
echo ""
312+
echo "=== Full Pod Description ==="
313+
oc describe pod okp-solr-service -n "$NAMESPACE" || true
314+
315+
echo ""
316+
echo "=== Red Hat Registry Secret Status ==="
317+
if oc get secret redhat-registry-pull-secret -n "$NAMESPACE" &>/dev/null; then
318+
oc get secret redhat-registry-pull-secret -n "$NAMESPACE" -o yaml | grep -A 2 "type:"
319+
else
320+
echo "❌ redhat-registry-pull-secret NOT FOUND"
321+
fi
322+
323+
echo ""
324+
echo "=========================================="
325+
echo "❌ OKP Solr failed to become ready within 180s"
326+
echo "=========================================="
276327
exit 1
277-
}
328+
fi
329+
278330
echo "✅ OKP Solr deployed"
279331

280332
#========================================

0 commit comments

Comments
 (0)