Ask Your Question
0

Glance api and Glance registry client version issue

asked 2016-11-22 12:04:57 -0600

vathanlal gravatar image

I installed openstack HA newton release.. Iam using ceph for glance backend.. when I tried to launch an instance I found that in my glance-api.log it is using registry client as v1

2016-11-22 18:23:23.797 2824 WARNING keystonemiddleware.auth_token [-] Using the in-process token cache is deprecated as of the 4.2.0 release and may be removed in the 5.0.0 release or the 'O' development cycle. The in-process cache causes inconsistent results and high memory usage. When the feature is removed the auth_token middleware will not cache tokens by default which may result in performance issues. It is recommended to use  memcache for the auth_token token cache by setting the memcached_servers option.
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client [req-ca40aef3-c3be-4c12-a08c-486e4807d775 2cfe6360fd8d494c80ee2740b901e1e1 20d65370e91d428d8d83abb84b5c2c21 - default default] Registry client request GET /images/detail raised BadStatusLine
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 124, in do_request
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     **kwargs)
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 70, in wrapped
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 373, in do_request
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 87, in wrapped
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 507, in _do_request
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     res = c.getresponse()
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/httplib.py", line 1136, in getresponse
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     response.begin()
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/httplib.py", line 453, in begin
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     version, status, reason = self._read_status()
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/httplib.py", line 417, in _read_status
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client     raise BadStatusLine(line)
2016-11-22 18:23:35.415 2824 ERROR glance.registry.client.v1.client BadStatusLine: ''
2016-11-22 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-11-25 09:52:50 -0600

vathanlal gravatar image

I solved this issue by adding in glance-api.conf

registry_host = HA proxy IP
edit flag offensive delete link more
0

answered 2016-11-22 17:16:22 -0600

you could disable Glance API v1 and the registry http://docs.openstack.org/newton/conf....

edit flag offensive delete link more

Comments

Dear Bernd.. I dont know why my registry client is using v1 version because I didn't change anything related to version still now.. I read the above doc and it is mentioned that if api V2 is using then registry is V2 by default.. I dont know why this behaviour happens..

vathanlal gravatar imagevathanlal ( 2016-11-23 02:35:52 -0600 )edit

I disable Glance API v1 and the registry now the glance error gone but I have new error in nova-api.log like "HTTPMultipleChoices: HTTPMultipleChoices (HTTP 300) Requested version of OpenStack Images API is not available. "

vathanlal gravatar imagevathanlal ( 2016-11-23 02:52:32 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-22 12:04:57 -0600

Seen: 574 times

Last updated: Nov 25 '16