-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PodRuntimeInfoEnv is not working in 1.10.11 #10456
Comments
@kaxil @dimberman -> I keep my 🤞 that it's already fixed in 1.10.12rc3 |
Yup this one is fixed or atleast I think we have |
@dimon222 - there was a major Kubernetes refactor in 1.10.11 that introduced some errors that 1.10.12 fixes. We are going to mark 1.10.11 as "yanked" so that it will be skipped by default. |
It doesn't seem to be fixed, because I still see the incorrect instantiation in both |
Will try it out in a bit. |
If it was a regression since 1.10.10 and there is a workaround available this will be fixed in 1.10.13 -- but if not we will create a new rc4 for it. |
OH NO!!!!!!! |
Just tested rc3 😢 |
closes apache#10456 (cherry picked from commit 47c6657)
closes apache/airflow#10456 (cherry picked from commit 47c6657ce012f6db147fdcce3ca5e77f46a9e491) GitOrigin-RevId: d2f55a440b5a8f9ce2867f8338830efe8cc04a54
closes apache/airflow#10456 (cherry picked from commit 47c6657ce012f6db147fdcce3ca5e77f46a9e491) GitOrigin-RevId: d2f55a440b5a8f9ce2867f8338830efe8cc04a54
closes apache/airflow#10456 (cherry picked from commit 47c6657ce012f6db147fdcce3ca5e77f46a9e491) GitOrigin-RevId: d2f55a440b5a8f9ce2867f8338830efe8cc04a54
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
closes apache/airflow#10456 GitOrigin-RevId: 47c6657ce012f6db147fdcce3ca5e77f46a9e491
Apache Airflow version: 1.10.11
Kubernetes version (if you are using kubernetes) (use
kubectl version
): 1.17.0What happened:
PodRuntimeInfoEnv object is not working in Airflow 1.10.11. It might be result of some recent (past 1 year?) refactoring of kubernetes code or so.
Exception thrown is this
What you expected to happen:
It's able to initialize and produce respective KubernestPodOperator with it.
How to reproduce it:
Create PodRuntimeInfoEnv object, try to plug it in KubernetesPodOperator. Kubernetes Pod Operator never gets submitted and stacktrace pops.
It happens 100% of times. I know for sure that it worked perfectly fine on Airflow 1.10.9. So might be in 1.10.10 or 1.10.11 there was introduced regression.
After some investigation it seem to bring me to this place -
airflow/airflow/kubernetes/pod_runtime_info_env.py
Lines 50 to 52 in 44d4ae8
As you might see, field_path is first argument. However, if I look at official kubernetes-python code, the first argument in
V1ObjectFieldSelector
constructor is api_version.https://github.com/kubernetes-client/python/blob/master/kubernetes/client/models/v1_object_field_selector.py#L45
Since its clearly not provided in here, we end up with exception related to field_path value:
https://github.com/kubernetes-client/python/blob/master/kubernetes/client/models/v1_object_field_selector.py#L103
Possible solutions could be:
For people who might already be noticing issue right now the simplest approach would be inheritance that would overwrite or monkeypatch the
PodRuntimeInfoEnv
class (specifically its methodto_k8s_client_obj
) and then use with it one of above mentioned solutions.The text was updated successfully, but these errors were encountered: