Comments (2)
Hi Rafael, sorry for the delay here. I was able to reproduce this bug --
Using the same code + setup you have, except for composer version you used is no longer available, so I'm on composer-1.17.7-airflow-2.0.2
.
Then when I edited my DAG to print out the attributes of a blank AutoprovisioningNodePoolDefaults
object, management
doesn't appear, along with others that should, given the documentation here. Here's what appears in Airflow logs when I run the dir()
command on one of these objects:
[2022-01-05 20:10:03,017] {gke.py:37} INFO - ['ByteSize', 'Clear', 'ClearExtension', 'ClearField', 'CopyFrom', 'DESCRIPTOR', 'DiscardUnknownFields', 'Extensions', 'FindInitializationErrors', 'FromString', 'HasExtension', 'HasField', 'IsInitialized', 'ListFields', 'MergeFrom', 'MergeFromString', 'ParseFromString', 'RegisterExtension', 'SerializePartialToString', 'SerializeToString', 'SetInParent', 'UnknownFields', 'WhichOneof', '_CheckCalledFromGeneratedFile', '_SetListener', '__class__', '__deepcopy__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__unicode__', '_extensions_by_name', '_extensions_by_number', 'oauth_scopes', 'service_account']
I'm going to reach out to the Cloud Composer team to determine exactly what version of the Python GKE client library is running under the hood, and will update this issue after. thanks!
from python-container.
Hello! Following up on this, the Apache Airflow team responded to that issue ^ that they are deliberately limiting google-cloud-container versions to < 2.0 due to some breaking changes that were introduced. (docs here)
Given this, and the hypothesis that this bug is caused by the out of date version of google-cloud-container missing certain object fields like management
closing this issue as infeasible - until at which date airflow (and in turn, Cloud Composer) upgrades to beyond 2.0.0.
from python-container.
Related Issues (20)
- Warning: a recent release failed
- GKE clusters not cleaning up after create cluster test HOT 1
- Warning: a recent release failed HOT 1
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_pager failed
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_pager failed HOT 2
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 2
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened_async failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened_async failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_pager failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_pager failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 2
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 1
- Unable to import module 'index': cannot import name 'cygrpc' from 'grpc._cython' HOT 3
- Warning: a recent release failed HOT 1
- `AttributeError` when trying to update the insecure kubelet port HOT 1
- Are there any real examples instead of just copy pasting the api docs as files? HOT 2
- Values for `name` field are supplied inconsistently across different types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-container.