valian / arubacloud-createserver Goto Github PK
View Code? Open in Web Editor NEWEasy way to create multiple smart servers on ArubaCloud
Easy way to create multiple smart servers on ArubaCloud
Hi,
thanks for this great product, i have been using it but since recenlty it has stopped working. I am getting
Logging to ArubaCloud DC4 Creating SmartVm test1... DEBUG: request data {u'ApplicationId': u'SetEnqueueServerCreation', u'Password': u'******!i', u'RequestId': u'SetEnqueueServerCreation', u'Server': {u'AdministratorPassword': u'*******', u'Name': u'test1', u'Note': u'Create by pyArubaCloud', u'OSTemplateId': 618, u'SmartVMWarePackageID': 2}, u'Username': u'FCZ-xxxx'} Traceback (most recent call last): File "/srv/entrypoint.py", line 74, in <module> cli() File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/srv/entrypoint.py", line 57, in create_server if not c.commit(url=ci.wcf_baseurl, debug=debug): File "/usr/local/lib/python2.7/site-packages/ArubaCloud/objects/__init__.py", line 22, in commit response = Http.post(url=url, data=self.get_json(), headers=headers) File "/usr/local/lib/python2.7/site-packages/ArubaCloud/helper/__init__.py", line 31, in post response = requests.post(url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 112, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 494, in request prep = self.prepare_request(req) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 437, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 306, in prepare self.prepare_headers(headers) File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 440, in prepare_headers check_header_validity(header) File "/usr/local/lib/python2.7/site-packages/requests/utils.py", line 872, in check_header_validity "bytes, not %s" % (name, value, type(value))) requests.exceptions.InvalidHeader: Value for header {Content-Length: 290} must be of type str or bytes, not <type 'int'>
I have tried the Docker version and also on seperate Ubuntu14 with Python 2.7 version on it. both commands throw similar exception with type.
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.