raman created AIRFLOW-3878: ------------------------------ Summary: K8 Pod creation error if dag_id exceeds 63 characters Key: AIRFLOW-3878 URL: https://issues.apache.org/jira/browse/AIRFLOW-3878 Project: Apache Airflow Issue Type: Bug Components: executor, kubernetes Affects Versions: 1.10.2 Reporter: raman
Getting following error while creating K8 worker Pod. Dag Id length is > 63 char and as per [https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/] lable value should be <=63 HTTP response body: \{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"unable to parse requirement: invalid label value: \"<Dag Id>\": must be no more than 63 characters","reason":"BadRequest","code":400} K8 Executor sets the dagId as the label value while creating k8pod. Avoid adding dag_id and task_id as pod labels if their size exceeds 63 char -- This message was sent by Atlassian JIRA (v7.6.3#76005)