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 2022/04/01 17:08:02 UTC

[GitHub] [airflow] karunpoudel opened a new issue #22693: KubernetesPodOperator failure email alert with actual error log from command executed

karunpoudel opened a new issue #22693:
URL: https://github.com/apache/airflow/issues/22693


   ### Description
   
   When a command executed using KubernetesPodOperator fails, the alert email only says:
   `Exception: Pod Launching failed: Pod pod_name_xyz returned a failure`
   along with other parameters supplied to the operator but doesn't contain actual error message thrown by the command.
   
   I am thinking similar to how xcom works with KubernetesPodOperator, if the command could write the error log in sidecar container in /airflow/log/error.log and airflow picks that up, then it could be included in the alert email (probably at the top). It can use same sidecar as for xcom (it that is easier to maintain) but write in different folder.
   
   
   
   ### Use case/motivation
   
   Similar to how email alert for most other operator includes key error message right there without having to login to airflow to see the logs, i am expecting similar functionality from KubernetesPodOperator too.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on issue #22693: KubernetesPodOperator failure email alert with actual error log from command executed

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #22693:
URL: https://github.com/apache/airflow/issues/22693#issuecomment-1086311359


   Sure. It's not very comples :). Happy to help .


-- 
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] karunpoudel commented on issue #22693: KubernetesPodOperator failure email alert with actual error log from command executed

Posted by GitBox <gi...@apache.org>.
karunpoudel commented on issue #22693:
URL: https://github.com/apache/airflow/issues/22693#issuecomment-1086167840


   i haven't looked into code base so not sure about the complexity. i saw the tag "good first issue". might be able to contribute with some guidance


-- 
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 #22693: KubernetesPodOperator failure email alert with actual error log from command executed

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #22693:
URL: https://github.com/apache/airflow/issues/22693#issuecomment-1086148475


   Maybe you would like to contribute that feature ? 


-- 
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 #22693: KubernetesPodOperator failure email alert with actual error log from command executed

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #22693:
URL: https://github.com/apache/airflow/issues/22693#issuecomment-1086146842


   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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org