2016-05-25 18:55:25 |
Erick Cardona |
description |
Rally use glance default API version(v1) if no version is specified in a rally task.
This is a problem when using SSL APIs. I'm using Glance API v2 and https endpoints(Kestone and Glance).
If I don't specify api_version(glance v2) it throws the following error. Otherwise, it works.
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine Traceback (most recent call last):
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/engine.py", line 346, in run
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine with context.ContextManager(context_obj):
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/context.py", line 218, in __enter__
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine self.setup()
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/context.py", line 181, in setup
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine ctx.setup()
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/common/logging.py", line 197, in wrapper
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine result = f(self, *args, **kwargs)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/context/glance/images.py", line 116, in setup
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine name=cur_name, **kwargs)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/wrappers/glance.py", line 110, in create_image
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine image = self.client.images.create(**kw)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 324, in create
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine data=image_data)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 278, in post
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine return self._request('POST', url, **kwargs)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 267, in _request
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine resp, body_iter = self._handle_response(resp)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 83, in _handle_response
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine raise exc.from_response(resp, resp.content)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine HTTPBadRequest: 400 Bad Request
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine Failed to reserve image. Got error: 400 The plain HTTP request was sent to HTTPS port 400 Bad Request The plain HTTP request was sent to HTTPS port nginx/1.10.0
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine (HTTP 400)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine
2016-05-25 18:43:36.847 14972 INFO rally.task.engine [-] Task b4bb0a6e-af61-41c4-a280-eaf14d728c3e | Completed: Benchmarking. |
Rally use glance default API version(v1) if no version is specified in a rally task.
This is a problem when using SSL APIs. I'm using Glance API v2 and https endpoints(Keystone and Glance).
If I don't specify api_version(glance v2) it throws the following error. Otherwise, it works.
Using Keystone with uwsgi and nginx(SSL) and
Glance with nginx and a reverse proxy(SSL).
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine Traceback (most recent call last):
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/engine.py", line 346, in run
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine with context.ContextManager(context_obj):
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/context.py", line 218, in __enter__
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine self.setup()
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/context.py", line 181, in setup
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine ctx.setup()
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/common/logging.py", line 197, in wrapper
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine result = f(self, *args, **kwargs)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/context/glance/images.py", line 116, in setup
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine name=cur_name, **kwargs)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/wrappers/glance.py", line 110, in create_image
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine image = self.client.images.create(**kw)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 324, in create
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine data=image_data)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 278, in post
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine return self._request('POST', url, **kwargs)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 267, in _request
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine resp, body_iter = self._handle_response(resp)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 83, in _handle_response
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine raise exc.from_response(resp, resp.content)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine HTTPBadRequest: 400 Bad Request
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine Failed to reserve image. Got error: 400 The plain HTTP request was sent to HTTPS port 400 Bad Request The plain HTTP request was sent to HTTPS port nginx/1.10.0
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine (HTTP 400)
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine
2016-05-25 18:43:36.847 14972 INFO rally.task.engine [-] Task b4bb0a6e-af61-41c4-a280-eaf14d728c3e | Completed: Benchmarking. |
|