You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by di...@apache.org on 2020/06/15 17:30:57 UTC

[airflow] branch v1-10-test updated: Get all pod logs on k8s launching failure (#9317)

This is an automated email from the ASF dual-hosted git repository.

dimberman pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-test by this push:
     new 929fa71  Get all pod logs on k8s launching failure (#9317)
929fa71 is described below

commit 929fa7119418cb8d7ae494f96fff04170158f023
Author: Daniel Imberman <da...@gmail.com>
AuthorDate: Mon Jun 15 10:29:28 2020 -0700

    Get all pod logs on k8s launching failure (#9317)
    
    Co-authored-by: Daniel Imberman <da...@astronomer.io>
    (cherry picked from commit 8b0073d8fba1fdfdec31b2df729c230ccafeef2a)
---
 scripts/ci/libraries/_kind.sh | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/scripts/ci/libraries/_kind.sh b/scripts/ci/libraries/_kind.sh
index 00c35a3..a3769a0 100644
--- a/scripts/ci/libraries/_kind.sh
+++ b/scripts/ci/libraries/_kind.sh
@@ -392,16 +392,8 @@ function dump_kubernetes_logs() {
         --cluster "${KUBECTL_CLUSTER_NAME}" | grep airflow | head -1)
     echo "------- pod description -------"
     kubectl describe pod "${POD}" --cluster "${KUBECTL_CLUSTER_NAME}"
-    echo "------- webserver init container logs - init -------"
-    kubectl logs "${POD}" -c init --cluster "${KUBECTL_CLUSTER_NAME}" || true
-    if [[ "${KUBERNETES_MODE}" == "git" ]]; then
-        echo "------- webserver init container logs - git-sync-clone -------"
-        kubectl logs "${POD}" -c git-sync-clone --cluster "${KUBECTL_CLUSTER_NAME}" || true
-    fi
-    echo "------- webserver logs -------"
-    kubectl logs "${POD}" -c webserver --cluster "${KUBECTL_CLUSTER_NAME}" || true
-    echo "------- scheduler logs -------"
-    kubectl logs "${POD}" -c scheduler --cluster "${KUBECTL_CLUSTER_NAME}" || true
+    echo "------- airflow pod logs -------"
+    kubectl logs "${POD}" --all-containers=true || true
     echo "--------------"
 }