GithubHelp home page GithubHelp logo

cloudera-labs / cdpy Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 21.0 142 KB

A Simple Pythonic Client wrapper for Cloudera CDP CLI, designed for use with the Ansible framework

License: Apache License 2.0

Python 100.00%

cdpy's People

Contributors

abhradeepkundu avatar asdaraujo avatar chaffelson avatar chusopr avatar cmperro avatar curtishoward avatar jimright avatar raddish18 avatar raju-saravanan avatar schonz avatar wmudge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdpy's Issues

restart-dbc missing

@wmudge : Restart CDW dbc is missing. Will do a PR. Will add as well the correspondent Ansible module code in the Ansible cloudera.cloud repo.

Depend on cdpcli rather than cdpcli-beta

Hi,

We are trying to make use of cdpy in some of our automation (indeed also ansible modules) and would ask whether:

  • cdpy could be changed to depend on cdpcli rather than cdpcli-beta: installing cdpy in an environment where cdpcli is already present (at least with cdpcli==0.9.117 and cdpy==v1.3.0) causes conflicts in cdpcli/data (aliases.yaml may not include metrics: null, which causes the CLIDriver initialization to fail)
  • cdpy could be published to pypi

pre-releases could of course still depend on cdpcli-beta rather than cdpcli, however, stable releases we believe would benefit to rely on cdpcli.

Base 7.1.5 / Private Cloud 1.1 / OpenShift 4.5: sdk.gather_clusters does not work as it seems to expect a string starting with crn:cdp:environments instead of crn:altus:environments

Env: Base 7.1.5 / Private Cloud 1.1 / OpenShift 4.5

Test program: https://github.com/marcredhat/cdpy/blob/main/testprivate1.py

sdk.describe_all_environments()) and sdk.summarize_environment("marccdp"))
work fine and display the following CDP environment crn:

#RESULT:
#[{'environmentName': 'marccdp', 'crn': 'crn:altus:environments:us-west-1:27c485f2-d664-4a62-911c-8454d5ea311a:environment:marccdp/5b56f5d8-6089-43f6-96bb-fa67e9d3ba44', 'status': 'AVAILABLE', 'cloudPlatform': 'OPENSHIFT'}]

Issue:
sdk.gather_clusters("crn:altus:environments:us-west-1:27c485f2-d664-4a62-911c-8454d5ea311a:environment:marccdp/5b56f5d8-6089-43f6-96bb-fa67e9d3ba44"))

does not work as it seems to expect a string starting with crn:cdp:environments instead of crn:altus:environments

#RESULT (NOK)
#cdpy.common.CdpError: CdpError('Supplied env_crn crn:altus:environments:us-west-1:27c485f2-d664-4a62-911c-8454d5ea311a:environment:marccdp/5b56f5d8-6089-43f6-96bb-fa67e9d3ba44 is not a valid CDP Environment crn',)
#seems related to the fact that https://github.com/cloudera-labs/cdpy/blob/main/src/cdpy/dw.py expects
#a string starting with
#crn:cdp:environments instead of
#crn:altus:environments

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.