-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed as not planned
Labels
kind:bugThis is a clearly a bugThis is a clearly a bugpending-responseprovider:cncf-kubernetesKubernetes (k8s) provider related issuesKubernetes (k8s) provider related issuesstaleStale PRs per the .github/workflows/stale.yml policy fileStale PRs per the .github/workflows/stale.yml policy file
Description
Apache Airflow version
2.7.2
What happened
KubernetesPodOperator doubles some of the logs. Example output:
[2023-10-18, 13:23:50 UTC] {pod_manager.py:351} WARNING - Pod not yet started: some-pod-name-j26p33vl
[2023-10-18, 13:23:51 UTC] {before.py:40} INFO - Starting call to '***.providers.cncf.kubernetes.utils.pod_manager.PodManager.fetch_container_logs.<locals>.consume_logs', this is the 1st time calling it.
...
[2023-10-18, 13:24:17 UTC] {pod_manager.py:437} INFO - [base] �[1;37m[1697635432.6957748][some-pod-name-j26p33vl][app-name-production][app-name][INFO] Some app log[0m
[2023-10-18, 13:24:17 UTC] {pod_manager.py:437} INFO - [base] �[1;37m[1697635457.1289246][some-pod-name-j26p33vl][app-name-production][app-name][INFO] Some more app log[0m
...
[2023-10-18, 13:24:18 UTC] {pod_manager.py:483} WARNING - Pod some-pod-name-j26p33vl log read interrupted but container base still running
[2023-10-18, 13:24:19 UTC] {before.py:40} INFO - Starting call to '***.providers.cncf.kubernetes.utils.pod_manager.PodManager.fetch_container_logs.<locals>.consume_logs', this is the 1st time calling it.
[2023-10-18, 13:24:19 UTC] {pod_manager.py:437} INFO - [base] �[1;37m[1697635432.6957748][some-pod-name-j26p33vl][app-name-production][app-name][INFO] Some app log[0m
[2023-10-18, 13:24:19 UTC] {pod_manager.py:437} INFO - [base] �[1;37m[1697635457.1289246][some-pod-name-j26p33vl][app-name-production][app-name][INFO] Some more app log[0m
[2023-10-18, 13:24:19 UTC] {pod_manager.py:582} INFO - Pod some-pod-name-j26p33vl has phase Running
[2023-10-18, 13:24:21 UTC] {pod.py:824} INFO - Deleting pod: some-pod-name-j26p33vl
What you think should happen instead
No double logs
How to reproduce
Airflow 2.7.2, Kubernetes provider 7.7.0, KubernetesPodOperator
Operating System
Debian GNU/Linux 10 (buster)
Versions of Apache Airflow Providers
apache-airflow-providers-amazon==8.7.1
apache-airflow-providers-cncf-kubernetes==7.7.0
apache-airflow-providers-common-sql==1.7.2
apache-airflow-providers-ftp==3.5.2
apache-airflow-providers-http==4.5.2
apache-airflow-providers-imap==3.3.2
apache-airflow-providers-postgres==5.6.1
apache-airflow-providers-slack==8.1.0
apache-airflow-providers-sqlite==3.4.3
Deployment
Other Docker-based deployment
Deployment details
On-premise kubernetes cluster, LocalExecutor (3 replicas), 10 parallelism
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
yohanvalencia
Metadata
Metadata
Assignees
Labels
kind:bugThis is a clearly a bugThis is a clearly a bugpending-responseprovider:cncf-kubernetesKubernetes (k8s) provider related issuesKubernetes (k8s) provider related issuesstaleStale PRs per the .github/workflows/stale.yml policy fileStale PRs per the .github/workflows/stale.yml policy file