GithubHelp home page GithubHelp logo

libcloud.rest's People

Contributors

islamgulov avatar kami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

libcloud.rest's Issues

Provider info API erroring out on MAC OS X

Hi,
I am trying out this lib & set it up on local as described in the setup guide on my MAC OS High Sierra, 10. 13.12. When i wanted to fetch the details of the individual provider, i got an error.

$ curl -k http://localhost:5000/0.1/compute/providers/EC2_EU
 {
  "error": {
    "message": "We encountered an internal error.",
    "code": 1002,
    "name": "InternalError",
    "detail": "Unknown type name C{list}"
  }
}

Also, PFB the stacktrace from the libcloud_rest process as seen on the console:

16 Feb 2018 08:37:15 : ERROR    : Exception on /0.1/compute/providers/EC2_EU [GET]
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/libcloud_rest-0.0.1-py2.7.egg/libcloud_rest/application.py", line 87, in __call__
    response = self.dispatch_request(handler, request)
  File "/Library/Python/2.7/site-packages/libcloud_rest-0.0.1-py2.7.egg/libcloud_rest/application.py", line 34, in dispatch_request
    return handler(request)
  File "/Library/Python/2.7/site-packages/libcloud_rest-0.0.1-py2.7.egg/libcloud_rest/api/handlers/__init__.py", line 103, in provider_info
    driver_method = DriverMethod(driver, method_name)
  File "/Library/Python/2.7/site-packages/libcloud_rest-0.0.1-py2.7.egg/libcloud_rest/api/providers.py", line 57, in __init__
    for arg_name in kwargs]
  File "/Library/Python/2.7/site-packages/libcloud_rest-0.0.1-py2.7.egg/libcloud_rest/api/entries.py", line 939, in __new__
    raise ValueError('Unknown type name %s' % (type_name))
ValueError: Unknown type name C{list}

Couldnt get around this issue. Would appreciate any help around this.

Also, a follow up question, though not related the above issue:

  1. Can we configure our own provider? ex., a private openstack setup that we might have., If yes any documentation around would be great.

PS: Also, had setup issues on my mac osx. Had to run the below to manually install mock and ignore installed six

 pip install mock --ignore-installed six

Real object required annotation

We should add recognize then real node object required, so docstrings should provide more information about such objects. For example: Usually in libcloud only ID of node is used, but sometimes other fields are used also

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.