Ask Your Question
0

after upgrade rdo pike, glance image-list report error

asked 2018-08-25 04:53:40 -0600

yixuan178 gravatar image

updated 2018-08-25 04:54:26 -0600

hello all, i updated my rdo pike cluster with one addition node through packstack. i added it successfully in COMPUTE_NODE list and also controller node apply for update as well. (from centos 7.4 to centos 7.5, meanwhile, some of components should be upgraded as well) however, when i check my openstack environment, most of functions seems workable. only glance service has error information. when i execute glance image-list on controller node, it will report error. [root@rdopikectrlnode etc(keystone_admin)]# glance image-list 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

In glance/api.log as following:

"GET /v2/images?limit=20&sort_key=name&sort_dir=asc HTTP/1.1" 500 454 0.898499
2018-08-25 17:42:31.845 4185 WARNING glance.api.versions [-] The Images (Glance) v1 API is deprecated and will be removed on or after the Pike release, following the standard OpenStack deprecation policy. Currently, the solution is to set enable_v1_api=False and enable_v2_api=True in your glance-api.conf file. Once those options are removed from the code, Images (Glance) v2 API will be switched on by default and will be the only option to deploy and use.
2018-08-25 17:42:31.848 4185 INFO eventlet.wsgi.server [-] 10.240.212.184 - - [25/Aug/2018 17:42:31] "GET /versions HTTP/1.1" 200 1019 0.003930
2018-08-25 17:42:32.481 4167 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.
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi [req-a739913a-6378-4b89-b139-12199e99cc23 a1ff325163b245eeb37e14ec93411a11 dbdaeef98bca45df89f40193a9e1e59e - default default] Caught error: 'location_order': KeyError: 'location_order'
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi Traceback (most recent call last):
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 1175, in __call__
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi     request, **action_args)
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 1214, in dispatch
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi     return method(*args, **kwargs)
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/v2/images.py", line 143, in index
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi     member_status=member_status)
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/authorization.py", line 111, in list
2018-08-25 17:42:33.357 4167 ERROR glance.common.wsgi     images = self.image_repo.list(*args, **kwargs ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-08-26 20:50:05 -0600

yixuan178 gravatar image

i have fixed it. due to there has options for stores in glance configuration, which include 'file, swift'. but in my environment, i actually only support 'file'. after change to file only and restart service, it can show all images.

edit flag offensive delete link more

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: 2018-08-25 04:53:40 -0600

Seen: 44 times

Last updated: Aug 26