GithubHelp home page GithubHelp logo

Comments (2)

askmeegs avatar askmeegs commented on June 15, 2024

Hi Rafael, sorry for the delay here. I was able to reproduce this bug --
reproduced-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.

composer-available-versions

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.

askmeegs avatar askmeegs commented on June 15, 2024

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)

apache/airflow#10317

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.