当前位置: 首页 > 工具软件 > Glance > 使用案例 >

Openstack glance服务配置错误

庄子平
2023-12-01

Ubuntu open stack安装配置glance ,上传image时,报错.

500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

查找日志显示:

2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return f(*args, **kwargs)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 184, in create_engine
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     test_conn = _test_connection(engine, max_retries, retry_interval)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 362, in _test_connection
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return engine.connect()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2091, in connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return self._connection_cls(self, **kwargs)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 90, in __init__
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     if connection is not None else engine.raw_connection()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2177, in raw_connection
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     self.pool.unique_connection, _connection)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2151, in _wrap_pool_connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     e, dialect, self)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1461, in _handle_dbapi_exception_noconnection
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     util.raise_from_cause(newraise, exc_info)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     reraise(type(exception), exception, tb=exc_tb, cause=cause)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2147, in _wrap_pool_connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return fn()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 328, in unique_connection
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return _ConnectionFairy._checkout(self)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 766, in _checkout
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     fairy = _ConnectionRecord.checkout(pool)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 516, in checkout
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     rec = pool._do_get()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1138, in _do_get
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     self._dec_overflow()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 66, in __exit__
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     compat.reraise(exc_type, exc_value, exc_tb)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1135, in _do_get
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return self._create_connection()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 333, in _create_connection
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return _ConnectionRecord(self)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 461, in __init__
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     self.__connect(first_connect_check=True)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 651, in __connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     connection = pool._invoke_creator(self)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 105, in connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return dialect.connect(*cargs, **cparams)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 393, in connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return self.dbapi.connect(*cargs, **cparams)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/__init__.py", line 90, in Connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     return Connection(*args, **kwargs)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 699, in __init__
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     self.connect()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 936, in connect
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     self._request_authentication()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 1156, in _request_authentication
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     auth_packet = self._read_packet()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 1018, in _read_packet
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     packet.check_error()
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 384, in check_error
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     err.raise_mysql_exception(self._data)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 107, in raise_mysql_exception
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi     raise errorclass(errno, errval)
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi OperationalError: (pymysql.err.OperationalError) (1045, u"Access denied for user 'glance'@'controller' (using password: YES)")
2021-06-16 16:30:03.690 9604 ERROR glance.common.wsgi 
2021-06-16 16:30:03.702 9604 INFO eventlet.wsgi.server [req-02c7c609-fc30-4bf7-9892-522ba02990b3 427cbb5c3b504ce880a964fcf6379668 edeb5885c9db488ba850b928233907ee - default default] 10.20.8.11 - - [16/Jun/2021 16:30:03] "POST /v2/images HTTP/1.1" 500 454 0.038844

大神求解,跟着官方文档走的.

 类似资料: