islamgulov / libcloud.rest Goto Github PK
View Code? Open in Web Editor NEWREST Interface for Libcloud
License: Apache License 2.0
REST Interface for Libcloud
License: Apache License 2.0
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:
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
now provider information endpoint contain description only for extra methods
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
They are looking ugly and must be refactored. (urls.py and handlers.py)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.