Skip to content

Commit 74cf7b2

Browse files
tosin2013claude
andcommitted
fix(dag): Add cmd_timeout to prepare_ansible task to prevent SSH timeout
The prepare_ansible task in freeipa_deployment DAG was failing with "SSH command timed out" because it lacked a cmd_timeout parameter. The task runs ansible-galaxy to install FreeIPA collections which can take several minutes. Without an explicit timeout, it was using the SSH default (~10 seconds). Added cmd_timeout=600 (10 minutes) to match other long-running tasks like create_freeipa_vm and wait_for_vm. Root cause analysis from E2E run #20752912398: - Task 'prepare_ansible' failed with AirflowException: SSH command timed out - This caused 'install_freeipa' and 'validate_freeipa' to be skipped - FreeIPA VM was created but never configured 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 4ff4167 commit 74cf7b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

airflow/dags/freeipa_deployment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def decide_action(**context):
327327
echo ""
328328
echo "[OK] Ansible preparation complete"
329329
""",
330+
cmd_timeout=600, # 10 minutes for ansible-galaxy collection install
330331
dag=dag,
331332
)
332333

0 commit comments

Comments
 (0)