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 2021/07/14 15:14:10 UTC

[GitHub] [airflow] flolas opened a new issue #16992: Pod fails to run when task name contains non ASCII characters

flolas opened a new issue #16992:
URL: https://github.com/apache/airflow/issues/16992


   
   **Apache Airflow version**: 2.0.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): 1.20.5
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: Azure AKS
   
   **What happened**:
   
   When task name is defined with a non ascii character, pod creations fails with a kubernetes.client.rest.ApiException: (422)
   (task maintains scheduled status)
   **What you expected to happen**:
   
   Create the pod and run the task
   
   **How to reproduce it**:
   Run a task with name "campaña" on K8s executor,
   
   Error log
   ```
   {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Pod \"campaña.0fb696e661e347968216df454b41b56f\" is invalid: metadata.name: Invalid value: \"campaña.0fb696e661e347968216df454b41b56f\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0
   -9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')","reason":"Invalid"
   ```
   
   
   


-- 
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 #16992: Pod fails to run when task or dag name contains non ASCII characters (k8s executor)

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


   cool!


-- 
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 closed issue #16992: Pod fails to run when task or dag name contains non ASCII characters (k8s executor)

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16992:
URL: https://github.com/apache/airflow/issues/16992


   


-- 
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 #16992: Pod fails to run when task or dag name contains non ASCII characters (k8s executor)

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


   @flolas  -> I think sanitization of the name and converting it to ASCII -only is a great idea. Would you maybe want to submit a PR for that ? That would be great contribution to the project :)


-- 
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] samgans commented on issue #16992: Pod fails to run when task or dag name contains non ASCII characters

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


   If this message is from Kubernetes API, I guess that this is not the Airflow 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.

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 closed issue #16992: Pod fails to run when task or dag name contains non ASCII characters (k8s executor)

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16992:
URL: https://github.com/apache/airflow/issues/16992


   


-- 
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 closed issue #16992: Pod fails to run when task or dag name contains non ASCII characters (k8s executor)

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16992:
URL: https://github.com/apache/airflow/issues/16992


   


-- 
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] flolas commented on issue #16992: Pod fails to run when task or dag name contains non ASCII characters

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


   @samgans i dont think so... the sanitization of the pod_id is implemented on the airflow side, look at https://github.com/apache/airflow/blob/177dfbd12a42a5c229640c6c830f43f280ea5caa/airflow/kubernetes/kubernetes_helper_functions.py#L28
   
   I think that we can make sure that non-ascii characters are translated there and the problem will be fixed....


-- 
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] flolas commented on issue #16992: Pod fails to run when task or dag name contains non ASCII characters (k8s executor)

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


   @potiuk yeah!  will do it on the weekend glad to help and contribute to Airflow :) ! 


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