You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "orenl91 (via GitHub)" <gi...@apache.org> on 2023/08/08 05:25:47 UTC
[GitHub] [airflow] orenl91 opened a new issue, #33184: KubernetesPodOperator does not push XCOM
orenl91 opened a new issue, #33184:
URL: https://github.com/apache/airflow/issues/33184
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Apache Airflow version
2.5.3 (on Google Composer)
What happened
Kubernetes pod operator failed to push xcom value.
After upgrading airflow from 2.3.4 to 2.5.3 (and apache-airflow-providers-cncf-kubernetes from 5.2.0 to 7.2.0) pushing of xcom values from kubernetes pod operator stopped working.
attaching the log and xcom screen


### What you think should happen instead
A new XCOM value should appear in XCOM screen
### How to reproduce
Using Google Cloud Composer 2.3.5 with Airflow 2.5.3
### Operating System
Google Cloud Composer Managed Airflow
### Versions of Apache Airflow Providers
From Google Documentation : https://cloud.google.com/composer/docs/concepts/versioning/composer-versions
apache-airflow==2.5.3+composer
apache-airflow-providers-apache-beam==5.1.1
apache-airflow-providers-cncf-kubernetes==7.2.0
apache-airflow-providers-common-sql==1.6.0
apache-airflow-providers-dbt-cloud==3.2.2
apache-airflow-providers-ftp==3.4.2
apache-airflow-providers-google==10.3.0
apache-airflow-providers-hashicorp==3.4.2
apache-airflow-providers-http==4.4.2
apache-airflow-providers-imap==3.2.2
apache-airflow-providers-mysql==5.1.1
apache-airflow-providers-postgres==5.5.2
apache-airflow-providers-sendgrid==3.2.1
apache-airflow-providers-sqlite==3.4.2
apache-airflow-providers-ssh==3.7.1
### Deployment
Google Cloud Composer
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] chanjaljayaram commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "chanjaljayaram (via GitHub)" <gi...@apache.org>.
chanjaljayaram commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1689265253
Maybe an issue here => [self._exec_pod_command(resp, "kill -s **SIGINT** 1")](https://github.com/apache/airflow/blob/a54c2424df51bf1acec420f4792a237dabcfa12b/airflow/providers/cncf/kubernetes/utils/pod_manager.py#L702).
Got it working after I changed SIGINT in the kill command to INT.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1709282112
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1718468687
This issue has been closed because it has not received response from the issue author.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1690652107
Maybe you have some unsupported system you run Airflow on?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1668929986
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] raphaelauv commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "raphaelauv (via GitHub)" <gi...@apache.org>.
raphaelauv commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1670158363
```
KubernetesPodOperator(
namespace="default",
kubernetes_conn_id="kubernetes_default",
image="alpine:3.16.2",
cmds=["sh", "-c", "mkdir -p /airflow/xcom/;echo '[1,2,3,4]' > /airflow/xcom/return.json"],
name="write-xcom",
do_xcom_push=True,
on_finish_action="delete_pod",
task_id="write-xcom",
get_logs=True,
)
```
work with `apache-airflow-providers-cncf-kubernetes==7.4.1`
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] raphaelauv commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "raphaelauv (via GitHub)" <gi...@apache.org>.
raphaelauv commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1670244572
this is not a reproducible example with the latest provider version
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] orenl91 commented on issue #33184: KubernetesPodOperator does not push XCOM
Posted by "orenl91 (via GitHub)" <gi...@apache.org>.
orenl91 commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1670230629
Hi @raphaelauv thanks for replying.
my environment is using apache-airflow-providers-cncf-kubernetes==7.2.0
here is my code:
KubernetesPodOperator(
task_id=pod_id,
name=pod_id,
image_pull_policy='Always',
do_xcom_push=True,
namespace=namespace,
get_logs=True, # Capture logs from the pod
log_events_on_failure=True, # Capture and log events in case of pod failure
is_delete_operator_pod=True, # To clean up the pod after runs
# config_file parameter - can be skipped if connection contains this setting
config_file="/home/airflow/composer_kube_config",
# definition of connection to be used by the operator
kubernetes_conn_id='kubernetes_default',
image=IMAGE
)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] github-actions[bot] closed issue #33184: KubernetesPodOperator does not push XCOM
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #33184: KubernetesPodOperator does not push XCOM
URL: https://github.com/apache/airflow/issues/33184
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org