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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to