Troubleshooting
Start with the affected stack. Its status shows what the controller observed. The Workflow and its Pods show where the pipeline stopped. These commands use the quickstart namespaces. Substitute the values from your environment.
1. Check the resource and its events
STACK_NS=platform-system
STACK=hello-stack
WORKFLOW_NS=argo-workflows
kubectl config current-context
kubectl -n "$STACK_NS" get iacstack "$STACK" -o yaml
kubectl -n "$STACK_NS" describe iacstack "$STACK"
kubectl -n "$STACK_NS" get events \
--field-selector "involvedObject.kind=IaCStack,involvedObject.name=$STACK" \
--sort-by=.metadata.creationTimestamp
In spec, check the repository, path and version in sourceRef, the inputs, the alias in workflowRef.name, dependencies, and whether suspend is set. If the stack omits the alias, check the default in the controller configuration.
Compare status.observedGeneration with metadata.generation. If they differ, the status may describe a previous configuration. If they match, check the conditions and phase to determine readiness. Compare the requested spec.sourceRef.version with the revision resolved for the attempt when available.
| Field | How to read it |
|---|---|
status.conditions | Read type, status, reason, and message. The condition explains what the controller recorded for that generation. |
status.execution | Identifies the recorded attempt by alias, Workflow name, phase, and intentHash. Check scheduledAt and finishedAt when present. |
status.execution.resolvedSource | Shows the revision and target binding the executor reported for this attempt. |
status.lastCheckTime, lastSuccessTime, driftPending | Distinguish the most recent check, the most recent ready result, and outstanding drift. |
2. Follow the Workflow name to the affected step
WORKFLOW=$(kubectl -n "$STACK_NS" get iacstack "$STACK" \
-o jsonpath='{.status.execution.workflow}')
printf '%s\n' "$WORKFLOW"
If the name is empty, move on to the controller logs. If it is present, use the namespace of the selected integration. To find the namespace for a recorded attempt, check status.execution.integration.namespace or the alias configuration.
kubectl -n "$WORKFLOW_NS" get workflow "$WORKFLOW" -o yaml
kubectl -n "$WORKFLOW_NS" describe workflow "$WORKFLOW"
kubectl -n "$WORKFLOW_NS" get pods \
-l "workflows.argoproj.io/workflow=$WORKFLOW" -o wide
Find the first failing or waiting node in the Argo UI or in the Workflow’s status.nodes, when available. If the node has a Pod, set POD to its name and run the commands below. Check the init or wait container if present when an artifact download or upload fails. For a restarted container, add --previous to kubectl logs.
kubectl -n "$WORKFLOW_NS" describe pod "$POD"
kubectl -n "$WORKFLOW_NS" logs "$POD" -c main --timestamps
3. Correlate the controller logs
The IaCStack is a Kubernetes API resource. Look for reconciliation decisions in the controller Deployment’s logs and Terraform or OpenTofu execution in the pipeline Pods.
CONTROLLER_NS=platform-system
kubectl -n "$CONTROLLER_NS" logs -l app=iacstack-controller \
-c controller --prefix=true --since=30m
The selector queries the controller replicas. Filter the JSON logs by namespace, stack, workflow, or intentHash when present. If the stack was recreated with the same name, also compare the uid. In your log backend, use the time window from scheduling through completion when available.
4. Identify the next diagnostic step
| Symptom | What to check |
|---|---|
| No Workflow was created | Read the condition and events. UnknownWorkflow points to an alias registration problem. Check dependencies, suspension, the WorkflowTemplate in the expected namespace, and controller permissions. |
| Workflow exists without an active Pod | Inspect its nodes. A running Suspend node may be waiting for a decision. If the step should start a Pod, check Workflow events and the ServiceAccount permissions in Argo. |
Pod in Pending or ImagePullBackOff | Read the Pod events to distinguish scheduling, image references, and registry access. For release images, confirm the tag, registry access and node architecture (Linux/amd64 for the initial release). For local development images only, confirm the image was loaded into the correct Kind cluster. |
| Workflow finished, but the stack is blocked | Check the stack phase and reasons. For InvalidExecutionContract, check the global parameter names and outputs the executor reported. Read the OPA or approval decision in the Workflow. |
ExecutionMissing | Verify that Pods and executor processes stopped and check the state backend and lock before requesting a retry. |
| Outstanding drift | Open the Workflow that reported drift and check the plan and execution policy. After remediation, confirm convergence through the next ready result and status.driftPending. |
When reporting an issue, include the code revision, Kubernetes and Argo versions, and expected and observed outcomes. Remove credentials, private identifiers, and sensitive information from shared manifests, plans, and logs.