@@ -91,59 +91,59 @@ jobs:
91
91
92
92
exit $?
93
93
94
- - name : debug pgstac-eoapiuser-permissions-upgrade job failure
94
+ - name : debug pgstac-eoapi-superuser-init-db job failure
95
95
if : steps.helm-render-install-eoapi-templates.outcome == 'failure'
96
96
continue-on-error : true
97
97
run : |
98
- echo "Extracting pgstac-eoapiuser-permissions-upgrade job info and logs for debugging..."
99
-
98
+ echo "Extracting pgstac-eoapi-superuser-init-db job info and logs for debugging..."
99
+
100
100
# Get job details
101
- echo "===== pgstac-eoapiuser-permissions-upgrade Job Details ====="
102
- kubectl get job pgstac-eoapiuser-permissions-upgrade -o yaml || echo "Could not get job details"
103
-
101
+ echo "===== pgstac-eoapi-superuser-init-db Job Details ====="
102
+ kubectl get job pgstac-eoapi-superuser-init-db -o yaml || echo "Could not get job details"
103
+
104
104
# Get pod details
105
105
echo "===== Pod Details ====="
106
- kubectl get pods --selector=app=pgstac-eoapiuser-permissions-upgrade -o wide || echo "Could not find pods"
107
-
106
+ kubectl get pods --selector=app=pgstac-eoapi-superuser-init-db -o wide || echo "Could not find pods"
107
+
108
108
# Extract logs from pods
109
109
echo "===== Pod Logs ====="
110
- PODS=$(kubectl get pods --selector=app=pgstac-eoapiuser-permissions-upgrade -o jsonpath='{.items[*].metadata.name}' 2>/dev/null)
110
+ PODS=$(kubectl get pods --selector=app=pgstac-eoapi-superuser-init-db -o jsonpath='{.items[*].metadata.name}' 2>/dev/null)
111
111
if [ -n "$PODS" ]; then
112
112
for POD in $PODS; do
113
113
echo "--- Logs from pod $POD ---"
114
114
kubectl logs $POD --previous || true # Get logs from previous container if it exists
115
115
kubectl logs $POD || echo "Could not get logs from pod $POD"
116
116
done
117
117
else
118
- echo "No pods found for pgstac-eoapiuser-permissions-upgrade job"
118
+ echo "No pods found for pgstac-eoapi-superuser-init-db job"
119
119
fi
120
-
120
+
121
121
# Get pod descriptions for more details
122
122
echo "===== Pod Descriptions ====="
123
- kubectl describe pods --selector=app=pgstac-eoapiuser-permissions-upgrade || echo "Could not describe pods"
124
-
123
+ kubectl describe pods --selector=app=pgstac-eoapi-superuser-init-db || echo "Could not describe pods"
124
+
125
125
# Check the configmap contents
126
126
echo "===== initdb ConfigMap Contents ====="
127
127
kubectl get configmap initdb -o yaml || echo "Could not get initdb configmap"
128
-
128
+
129
129
# Check for any related events
130
130
echo "===== Related Kubernetes Events ====="
131
- kubectl get events | grep -E "pgstac-eoapiuser-permissions-upgrade |initdb" || echo "No relevant events found"
131
+ kubectl get events | grep -E "pgstac-eoapi-superuser-init-db |initdb" || echo "No relevant events found"
132
132
133
133
- name : debug pgstac-migrate job failure
134
134
if : steps.helm-render-install-eoapi-templates.outcome == 'failure'
135
135
continue-on-error : true
136
136
run : |
137
137
echo "Extracting pgstac-migrate job info and logs for debugging..."
138
-
138
+
139
139
# Get job details
140
140
echo "===== pgstac-migrate Job Details ====="
141
141
kubectl get job pgstac-migrate -o yaml || echo "Could not get pgstac-migrate job details"
142
-
142
+
143
143
# Get pod details
144
144
echo "===== pgstac-migrate Pod Details ====="
145
145
kubectl get pods -l app=pgstac-migrate --all-namespaces || echo "Could not find pgstac-migrate pods"
146
-
146
+
147
147
# Extract logs from pgstac-migrate pod(s)
148
148
echo "===== pgstac-migrate Pod Logs ====="
149
149
echo "Looking for completed pods from pgstac-migrate job..."
@@ -157,14 +157,14 @@ jobs:
157
157
else
158
158
echo "No completed pods found for pgstac-migrate job"
159
159
fi
160
-
160
+
161
161
# Get details about the database pods/services
162
162
echo "===== Database Pod/Service Details ====="
163
163
# Find database service
164
164
kubectl get svc | grep "db" || echo "Could not find database services"
165
165
# Find database pods
166
166
kubectl get pods | grep "db-" || echo "Could not find database pods"
167
-
167
+
168
168
# Check for any events related to the job or pods
169
169
echo "===== Related Kubernetes Events ====="
170
170
kubectl get events | grep -E "pgstac|db" || echo "No relevant events found"
@@ -195,31 +195,31 @@ jobs:
195
195
if : steps.watchservices.outcome == 'failure'
196
196
run : |
197
197
echo "The watchservices step failed or timed out. Extracting pod logs for debugging..."
198
-
198
+
199
199
# Get and display all pods status
200
200
echo "===== Pod Status ====="
201
201
kubectl get pods
202
-
202
+
203
203
# Extract logs from raster pod init container (wait-for-pgstacbootstrap)
204
204
echo "===== Raster Pod Init Container Logs (wait-for-pgstacbootstrap) ====="
205
205
kubectl get pod | grep "^raster-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} -c wait-for-pgstacbootstrap --tail=100 || echo "Could not get raster init container logs"
206
-
206
+
207
207
# Extract logs from raster pod main container
208
208
echo "===== Raster Pod Main Container Logs ====="
209
209
kubectl get pod | grep "^raster-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} --tail=100 || echo "Could not get raster main container logs"
210
-
210
+
211
211
# Extract logs from vector pod
212
212
echo "===== Vector Pod Logs ====="
213
213
kubectl get pod | grep "^vector-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} --tail=100 || echo "Could not get vector logs"
214
-
214
+
215
215
# Extract logs from stac pod
216
216
echo "===== STAC Pod Logs ====="
217
217
kubectl get pod | grep "^stac-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} --tail=100 || echo "Could not get STAC logs"
218
-
218
+
219
219
# Check if pods are in pending state or have issues
220
220
echo "===== Pod Descriptions for Troubleshooting ====="
221
221
kubectl get pod | grep "$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl describe pod/{} || echo "Could not describe pods"
222
-
222
+
223
223
# force GH action to show failed result
224
224
exit 128
225
225
@@ -263,31 +263,31 @@ jobs:
263
263
if : steps.testrunner.outcome == 'failure'
264
264
run : |
265
265
echo "The tests failed. Extracting pod logs for debugging..."
266
-
266
+
267
267
# Get and display all pods status
268
268
echo "===== Pod Status ====="
269
269
kubectl get pods
270
-
270
+
271
271
# Extract logs from raster pod init container (wait-for-pgstacbootstrap)
272
272
echo "===== Raster Pod Init Container Logs (wait-for-pgstacbootstrap) ====="
273
273
kubectl get pod | grep "^raster-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} -c wait-for-pgstacbootstrap --tail=100 || echo "Could not get raster init container logs"
274
-
274
+
275
275
# Extract logs from raster pod main container
276
276
echo "===== Raster Pod Main Container Logs ====="
277
277
kubectl get pod | grep "^raster-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} --tail=100 || echo "Could not get raster main container logs"
278
-
278
+
279
279
# Extract logs from vector pod
280
280
echo "===== Vector Pod Logs ====="
281
281
kubectl get pod | grep "^vector-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} --tail=100 || echo "Could not get vector logs"
282
-
282
+
283
283
# Extract logs from stac pod
284
284
echo "===== STAC Pod Logs ====="
285
285
kubectl get pod | grep "^stac-$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} --tail=100 || echo "Could not get STAC logs"
286
-
286
+
287
287
# Check if pods are in pending state or have issues
288
288
echo "===== Pod Descriptions for Troubleshooting ====="
289
289
kubectl get pod | grep "$RELEASE_NAME" | cut -d' ' -f1 | xargs -I{} kubectl describe pod/{} || echo "Could not describe pods"
290
-
290
+
291
291
# force GH action to show failed result
292
292
exit 128
293
293
0 commit comments