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 2019/09/10 06:35:40 UTC

[GitHub] [airflow] mik-laj commented on issue #6067: [AIRFLOW-5448] Handle istio-proxy for Kubernetes Executor

mik-laj commented on issue #6067: [AIRFLOW-5448] Handle istio-proxy for Kubernetes Executor
URL: https://github.com/apache/airflow/pull/6067#issuecomment-529792928
 
 
   Hello,
   
   I created a GKE instance with Istio using following command:
   ```bash
   gcloud beta container \
   --project "polidea-airflow" clusters create "test-kamil-istio" \
   --zone "us-central1-a" \
   --no-enable-basic-auth \
   --machine-type "g1-small" \
   --num-nodes "1" \
   --addons HorizontalPodAutoscaling,HttpLoadBalancing,Istio \
   --istio-config auth=MTLS_PERMISSIVE
   ```
   In next step, I created a DAG with following task:
   ```python
       pod_task = GKEPodOperator(
           task_id="pod_task",
           project_id=GCP_PROJECT_ID,
           location=GCP_LOCATION,
           cluster_name=CLUSTER_NAME,
           namespace="default",
           image="perl",
           name="test-pod",
       )
   
       pod_task_xcom = GKEPodOperator(
           task_id="pod_task_xcom",
           project_id=GCP_PROJECT_ID,
           location=GCP_LOCATION,
           cluster_name=CLUSTER_NAME,
           do_xcom_push=True,
           namespace="default",
           image="alpine",
           cmds=["sh", "-c", 'mkdir -p /airflow/xcom/;echo \'[1,2,3,4]\' > /airflow/xcom/return.json'],
           name="test-pod-xcom",
       )
   ```
   ```log
   [2019-09-10 06:32:54,415] {pod_launcher.py:125} INFO - Event: test-pod-f2017f38 had an event of type Pending
   [2019-09-10 06:32:55,688] {pod_launcher.py:125} INFO - Event: test-pod-f2017f38 had an event of type Pending
   [2019-09-10 06:32:56,839] {pod_launcher.py:125} INFO - Event: test-pod-f2017f38 had an event of type Running
   [2019-09-10 06:32:57,069] {pod_launcher.py:108} INFO - b'\n'
   [2019-09-10 06:32:57,071] {pod_launcher.py:108} INFO - b'Loading DB routines from perl5db.pl version 1.55\n'
   [2019-09-10 06:32:57,072] {pod_launcher.py:108} INFO - b'Editor support available.\n'
   [2019-09-10 06:32:57,073] {pod_launcher.py:108} INFO - b'\n'
   [2019-09-10 06:32:57,074] {pod_launcher.py:108} INFO - b"Enter h or 'h h' for help, or 'man perldebug' for more help.\n"
   [2019-09-10 06:32:57,074] {pod_launcher.py:108} INFO - b'\n'
   [2019-09-10 06:32:57,075] {pod_launcher.py:108} INFO - b'main::(-e:1):\t0\n'
   [2019-09-10 06:32:57,078] {pod_launcher.py:108} INFO - b'  DB<1> '
   [2019-09-10 06:32:57,245] {pod_launcher.py:125} INFO - Event: test-pod-f2017f38 had an event of type Succeeded
   [2019-09-10 06:32:57,245] {pod_launcher.py:215} INFO - Event with job id test-pod-f2017f38 Succeeded
   [2019-09-10 06:32:57,387] {pod_launcher.py:125} INFO - Event: test-pod-f2017f38 had an event of type Succeeded
   [2019-09-10 06:32:57,387] {pod_launcher.py:215} INFO - Event with job id test-pod-f2017f38 Succeeded
   ```
   ```log
   [2019-09-10 06:33:19,577] {pod_launcher.py:125} INFO - Event: test-pod-xcom-b0184129 had an event of type Pending
   [2019-09-10 06:33:20,724] {pod_launcher.py:125} INFO - Event: test-pod-xcom-b0184129 had an event of type Pending
   [2019-09-10 06:33:21,870] {pod_launcher.py:125} INFO - Event: test-pod-xcom-b0184129 had an event of type Running
   [2019-09-10 06:33:22,049] {pod_launcher.py:108} INFO - b''
   [2019-09-10 06:33:22,841] {pod_launcher.py:197} INFO - Running command... cat /airflow/xcom/return.json
   
   [2019-09-10 06:33:22,973] {pod_launcher.py:197} INFO - Running command... kill -s SIGINT 1
   
   [2019-09-10 06:33:23,165] {pod_launcher.py:115} INFO - [1,2,3,4]
   
   [2019-09-10 06:33:23,281] {pod_launcher.py:125} INFO - Event: test-pod-xcom-b0184129 had an event of type Running
   [2019-09-10 06:33:23,281] {pod_launcher.py:118} INFO - Pod test-pod-xcom-b0184129 has state running
   [2019-09-10 06:33:25,441] {pod_launcher.py:125} INFO - Event: test-pod-xcom-b0184129 had an event of type Succeeded
   [2019-09-10 06:33:25,442] {pod_launcher.py:215} INFO - Event with job id test-pod-xcom-b0184129 Succeeded
   [2019-09-10 06:33:25,580] {pod_launcher.py:125} INFO - Event: test-pod-xcom-b0184129 had an event of type Succeeded
   [2019-09-10 06:33:25,580] {pod_launcher.py:215} INFO - Event with job id test-pod-xcom-b0184129 Succeeded
   ```
   My tasks are done correctly. Could you provide more information that will allow me to repeat this problem? I would like to prepare system tests to prevent regression of this problem.

----------------------------------------------------------------
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