You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/26 09:40:38 UTC

[GitHub] [airflow] sbahir opened a new issue #7883: KubernetesPodOperator had an event of type Pending

sbahir opened a new issue #7883: KubernetesPodOperator had an event of type Pending
URL: https://github.com/apache/airflow/issues/7883
 
 
   Hello,
   
   I am currently running this tests for Airflow on Kubernetes [blog test ](https://kubernetes.io/blog/2018/06/28/airflow-on-kubernetes-part-1-a-different-kind-of-operator/) 
   
   it's running well for dummyOperator : 
   `start = DummyOperator(task_id='run_this_first', dag=dag)`
   
   But the Pod doesn't start for 
   `passing = KubernetesPodOperator(namespace='default',
                             image="Python:3.6",
                             cmds=["Python","-c"],
                             arguments=["print('hello world')"],
                             labels={"foo": "bar"},
                             name="passing-test",
                             task_id="passing-task",
                             get_logs=True,
                             dag=dag
                             )`
   
   The pod is stuck in a pending state 
   `{"asctime": "2020-03-25 21:51:40,693", "filename": "logging_mixin.py", "lineno": 112, "levelname": "INFO", "message": "[2020-03-25 21:51:40,693] {{pod_launcher.py:142}} INFO - Event: passing-test-492349fd had an event of type Pending", "dag_id": "kubernetes_smoke_test", "task_id": "passing-task", "execution_date": "2020_03_25T21_13_15_733983", "try_number": "3"}
   {"asctime": "2020-03-25 21:51:41,747", "filename": "logging_mixin.py", "lineno": 112, "levelname": "INFO", "message": "[2020-03-25 21:51:41,746] {{pod_launcher.py:142}} INFO - Event: passing-test-492349fd had an event of type Pending", "dag_id": "kubernetes_smoke_test", "task_id": "passing-task", "execution_date": "2020_03_25T21_13_15_733983", "try_number": "3"}
   {"asctime": "2020-03-25 21:51:41,825", "filename": "taskinstance.py", "lineno": 1128, "levelname": "ERROR", "message": "Pod Launching failed: Pod took too long to start", "dag_id": "kubernetes_smoke_test", "task_id": "passing-task", "execution_date": "2020_03_25T21_13_15_733983", "try_number": "3"}
   {"asctime": "2020-03-25 21:51:41,830", "filename": "taskinstance.py", "lineno": 1185, "levelname": "INFO", "message": "Marking task as FAILED.dag_id=kubernetes_smoke_test, task_id=passing-task, execution_date=20200325T211315, start_date=20200325T214940, end_date=20200325T215141", "dag_id": "kubernetes_smoke_test", "task_id": "passing-task", "execution_date": "2020_03_25T21_13_15_733983", "try_number": "3"}
   {"asctime": "2020-03-25 21:51:43,450", "filename": "logging_mixin.py", "lineno": 112, "levelname": "INFO", "message": "[2020-03-25 21:51:43,449] {{local_task_job.py:103}} INFO - Task exited with return code 1", "dag_id": "kubernetes_smoke_test", "task_id": "passing-task", "execution_date": "2020_03_25T21_13_15_733983", "try_number": "3"}`
   
   The machine I am running it on have a proxy to the internet, so my guess is that it can't pull the image `python:3.6` maybe but the logs are not clear. 
   How can I debug more efficiently to understand what is the problem ?
   
   Thank you
   
   Saad

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow] boring-cyborg[bot] commented on issue #7883: KubernetesPodOperator had an event of type Pending

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #7883: KubernetesPodOperator had an event of type Pending
URL: https://github.com/apache/airflow/issues/7883#issuecomment-604327764
 
 
   Thanks for opening your first issue here! Be sure to follow the issue template!
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services