Need to specify glance API version in rally task when using SSL

Bug #1585748 reported by Erick Cardona
6
This bug affects 1 person
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/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.

Tags: glance ssl
summary: - Need to specify glance API version in rally task
+ Need to specify glance API version in rally task when using SSL
description: updated
Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

If you specify glance version to 1 via task config, rally fails too?

Changed in rally:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Rally because there has been no activity for 60 days.]

Changed in rally:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.