glance 服务报错HTTPInternalServerError (HTTP 500)解决方案

时间:2024-03-24 13:43:13

glance 服务报错HTTPInternalServerError (HTTP 500)解决方案

直接上图看报错信息

glance 服务报错HTTPInternalServerError (HTTP 500)解决方案

看不出所以然,去看日志

caa0acbf57c88c76ca - - -] 127.0.0.1 - - [02/Apr/2019 07:44:42] “GET /images/detail?is_public=none&limit=20 HTTP/1.1” 200 915 0.135810
2019-04-02 14:05:37.812 4728 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:05:39.269 4746 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:05:40.783 4772 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:05:42.496 4784 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:05:44.003 4794 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:29:29.057 5890 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:29:30.610 5913 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:29:32.103 5939 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:29:33.592 5951 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)
2019-04-02 14:29:35.098 5961 ERROR glance.common.config [-] Unable to load glance-registry-keystone from configuration file /usr/share/glance/glance-api-dist-paste.ini.
Got: LookupError(“No section ‘glance-registry-keystone’ (prefixed by ‘app’ or ‘application’ or ‘composite’ or ‘composit’ or ‘pipeline’ or ‘filter-app’) found in config /usr/share/glance/glance-api-dist-paste.ini”,)


通过日志可以看出大概是glance-registry.conf配置文件中的keystone出错了
我们检查一下配置文件果然有错
glance 服务报错HTTPInternalServerError (HTTP 500)解决方案
对照文档一点一点检查发现memcached_servers这个忘了写节点名字,加上之后重启一下glance服务
glance 服务报错HTTPInternalServerError (HTTP 500)解决方案
OK,终于正常了。
glance 报错一定要看报错信息和日志,然后去解决问题,glance的两个配置文件api,registry一定要细心检查防止出错。