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/08/08 00:53:33 UTC

[GitHub] [airflow] joshzana commented on issue #23727: Airflow 2.3 scheduler error: 'V1Container' object has no attribute '_startup_probe'

joshzana commented on issue #23727:
URL: https://github.com/apache/airflow/issues/23727#issuecomment-1207530417

   @dstandish I'm seeing this on Airflow 2.3.3 with a vanilla web server docker image, which should have #24478 in it.  We use the REST API for an integration with another system of ours, and when it calls the `get_task_instances_batch` API it's hitting a similar stack:
   
   ```
      File "/home/airflow/.local/lib/python3.9/site-packages/airflow/api_connexion/endpoints/task_instance_endpoint.py", line 412, in get_task_instances_batch
        return task_instance_collection_schema.dump(
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/schema.py", line 557, in dump
        result = self._serialize(processed_obj, many=many)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/schema.py", line 525, in _serialize
        value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/fields.py", line 342, in serialize
        return self._serialize(value, attr, obj, **kwargs)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/fields.py", line 774, in _serialize
        return [self.inner._serialize(each, attr, obj, **kwargs) for each in value]
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/fields.py", line 774, in <listcomp>
        return [self.inner._serialize(each, attr, obj, **kwargs) for each in value]
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/fields.py", line 643, in _serialize
        return schema.dump(nested_obj, many=many)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/schema.py", line 557, in dump
        result = self._serialize(processed_obj, many=many)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/schema.py", line 525, in _serialize
        value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/fields.py", line 342, in serialize
        return self._serialize(value, attr, obj, **kwargs)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/fields.py", line 893, in _serialize
        return utils.ensure_text_type(value)
      File "/home/airflow/.local/lib/python3.9/site-packages/marshmallow/utils.py", line 212, in ensure_text_type
        return str(val)
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_pod.py", line 214, in __repr__
        return self.to_str()
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_pod.py", line 210, in to_str
        return pprint.pformat(self.to_dict())
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_pod.py", line 196, in to_dict
        result[attr] = value.to_dict()
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_pod_spec.py", line 1058, in to_dict
        result[attr] = list(map(
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_pod_spec.py", line 1059, in <lambda>
        lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_container.py", line 660, in to_dict
        value = getattr(self, attr)
      File "/home/airflow/.local/lib/python3.9/site-packages/kubernetes/client/models/v1_container.py", line 458, in startup_probe
        return self._startup_probe
    AttributeError: 'V1Container' object has no attribute '_startup_probe'
   ```
   
   Is a separate fix needed for that?


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