Need to specify glance API version in rally task when using SSL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Expired
|
Undecided
|
Unassigned |
Bug 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(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/
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine with context.
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/
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/
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/
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/
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/
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine image = self.client.
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/
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/
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine return self._request(
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine resp, body_iter = self._handle_
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine File "/usr/lib/
2016-05-25 18:43:36.824 14972 ERROR rally.task.engine raise exc.from_
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-
summary: |
- Need to specify glance API version in rally task + Need to specify glance API version in rally task when using SSL |
description: | updated |
If you specify glance version to 1 via task config, rally fails too?