分享

请问创建image失败怎么诊断?

tscswcn 发表于 2017-9-3 08:46:19 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 8571
[root@openstack ~]# openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img  --disk-format qcow2 --container-format bare --public
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
[root@openstack ~]# ls
admin-openrc  cirros-0.3.4-x86_64-disk.img  demo-openrc
[root@openstack ~]# pwd
/root
[root@openstack ~]# openstack image list
Internal Server Error (HTTP 500) (Request-ID: req-cda84b0c-cfde-43a4-abfa-cb21733e769f)
[root@openstack ~]# openstack image-list
openstack: 'image-list' is not an openstack command. See 'openstack --help'.
Did you mean one of these?
  availability zone list
[root@openstack ~]# glance image-list
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
[root@openstack ~]#      

已有(5)人评论

跳转到指定楼层
tscswcn 发表于 2017-9-3 08:51:03
2017-09-03 08:26:40.746 89153 CRITICAL glance [-] NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:26:40.746 89153 ERROR glance Traceback (most recent call last):
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/bin/glance-manage", line 10, in <module>
2017-09-03 08:26:40.746 89153 ERROR glance     sys.exit(main())
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/glance/cmd/manage.py", line 341, in main
2017-09-03 08:26:40.746 89153 ERROR glance     return CONF.command.action_fn()
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/glance/cmd/manage.py", line 196, in sync
2017-09-03 08:26:40.746 89153 ERROR glance     CONF.command.current_version)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/glance/cmd/manage.py", line 118, in sync
2017-09-03 08:26:40.746 89153 ERROR glance     migration.db_sync(db_api.get_engine(),
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 98, in get_engine
2017-09-03 08:26:40.746 89153 ERROR glance     facade = _create_facade_lazily()
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 88, in _create_facade_lazily
2017-09-03 08:26:40.746 89153 ERROR glance     _FACADE = session.EngineFacade.from_config(CONF)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 1056, in from_config
2017-09-03 08:26:40.746 89153 ERROR glance     expire_on_commit=expire_on_commit, _conf=conf)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 977, in __init__
2017-09-03 08:26:40.746 89153 ERROR glance     slave_connection=slave_connection)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start
2017-09-03 08:26:40.746 89153 ERROR glance     engine_args, maker_args)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection
2017-09-03 08:26:40.746 89153 ERROR glance     sql_connection=sql_connection, **engine_kwargs)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 128, in create_engine
2017-09-03 08:26:40.746 89153 ERROR glance     pool_timeout=pool_timeout
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 913, in __call__
2017-09-03 08:26:40.746 89153 ERROR glance     self._url_from_target(target), target, arg, kw)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 950, in _dispatch_on
2017-09-03 08:26:40.746 89153 ERROR glance     return self._dispatch_on_db_driver(dbname, driver, arg, kw)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 1004, in _dispatch_on_db_driver
2017-09-03 08:26:40.746 89153 ERROR glance     if self._invoke_fn(fn, arg, kw) is not None:
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 953, in _invoke_fn
2017-09-03 08:26:40.746 89153 ERROR glance     return fn(*arg, **kw)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 163, in _init_connection_args
2017-09-03 08:26:40.746 89153 ERROR glance     pool_class = url.get_dialect().get_pool_class(url)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 146, in get_dialect
2017-09-03 08:26:40.746 89153 ERROR glance     entrypoint = self._get_entrypoint()
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 131, in _get_entrypoint
2017-09-03 08:26:40.746 89153 ERROR glance     cls = registry.load(name)
2017-09-03 08:26:40.746 89153 ERROR glance   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 205, in load
2017-09-03 08:26:40.746 89153 ERROR glance     (self.group, name))
2017-09-03 08:26:40.746 89153 ERROR glance NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:26:40.746 89153 ERROR glance
2017-09-03 08:27:18.885 89192 INFO glance_store._drivers.filesystem [-] Directory to write image files does not exist (/var/lib/glance/images/). Creating.
2017-09-03 08:27:18.886 89192 INFO glance.common.wsgi [-] Starting 4 workers
2017-09-03 08:27:18.892 89214 INFO eventlet.wsgi.server [-] (89214) wsgi starting up on http://0.0.0.0:9292
2017-09-03 08:27:18.892 89192 INFO glance.common.wsgi [-] Started child 89214
2017-09-03 08:27:18.899 89215 INFO eventlet.wsgi.server [-] (89215) wsgi starting up on http://0.0.0.0:9292
2017-09-03 08:27:18.900 89192 INFO glance.common.wsgi [-] Started child 89215
2017-09-03 08:27:18.907 89216 INFO eventlet.wsgi.server [-] (89216) wsgi starting up on http://0.0.0.0:9292
2017-09-03 08:27:18.908 89192 INFO glance.common.wsgi [-] Started child 89216
2017-09-03 08:27:18.915 89217 INFO eventlet.wsgi.server [-] (89217) wsgi starting up on http://0.0.0.0:9292
2017-09-03 08:27:18.915 89192 INFO glance.common.wsgi [-] Started child 89217
2017-09-03 08:40:44.386 89215 INFO eventlet.wsgi.server [req-41aca34f-10f2-40b7-948b-16be4b81f278 ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] 192.168.0.14 - - [03/Sep/2017 08:40:44] "GET /v2/schemas/image HTTP/1.1" 200 4344 0.598792
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi [req-f7ed0af5-690d-4982-af5b-4681e88e7fc0 ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] Caught error: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi Traceback (most recent call last):
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 902, in __call__
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     request, **action_args)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 941, in dispatch
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return method(*args, **kwargs)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/utils.py", line 362, in wrapped
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return func(self, req, *args, **kwargs)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/v2/images.py", line 65, in create
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     image_repo.add(image)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 94, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     result = self.base.add(base_item)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/notifier.py", line 483, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     super(ImageRepoProxy, self).add(image)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 94, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     result = self.base.add(base_item)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/policy.py", line 129, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return super(ImageRepoProxy, self).add(image)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 94, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     result = self.base.add(base_item)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/quota/__init__.py", line 116, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return super(ImageRepoProxy, self).add(image)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 94, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     result = self.base.add(base_item)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/location.py", line 66, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     result = super(ImageRepoProxy, self).add(image)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 94, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     result = self.base.add(base_item)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/__init__.py", line 261, in add
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     new_values = self.db_api.image_create(self.context, image_values)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 130, in image_create
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return _image_update(context, values, None, purge_props=False)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return Retrying(*dargs, **dkw).call(f, *args, **kw)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/retrying.py", line 223, in call
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return attempt.get(self._wrap_exception)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     six.reraise(self.value[0], self.value[1], self.value[2])
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/utils.py", line 547, in wrapper
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return f(*args, **kwargs)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 762, in _image_update
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     session = get_session()
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 103, in get_session
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     facade = _create_facade_lazily()
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 88, in _create_facade_lazily
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     _FACADE = session.EngineFacade.from_config(CONF)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 1056, in from_config
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     expire_on_commit=expire_on_commit, _conf=conf)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 977, in __init__
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     slave_connection=slave_connection)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     engine_args, maker_args)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     sql_connection=sql_connection, **engine_kwargs)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 128, in create_engine
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     pool_timeout=pool_timeout
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 913, in __call__
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     self._url_from_target(target), target, arg, kw)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 950, in _dispatch_on
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return self._dispatch_on_db_driver(dbname, driver, arg, kw)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 1004, in _dispatch_on_db_driver
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     if self._invoke_fn(fn, arg, kw) is not None:
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 953, in _invoke_fn
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     return fn(*arg, **kw)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 163, in _init_connection_args
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     pool_class = url.get_dialect().get_pool_class(url)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 146, in get_dialect
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     entrypoint = self._get_entrypoint()
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 131, in _get_entrypoint
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     cls = registry.load(name)
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 205, in load
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi     (self.group, name))
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:40:44.864 89215 ERROR glance.common.wsgi
2017-09-03 08:40:44.871 89215 INFO eventlet.wsgi.server [req-f7ed0af5-690d-4982-af5b-4681e88e7fc0 ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] 192.168.0.14 - - [03/Sep/2017 08:40:44] "POST /v2/images HTTP/1.1" 500 454 0.435452
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi [req-cda84b0c-cfde-43a4-abfa-cb21733e769f ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] Caught error: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi Traceback (most recent call last):
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 902, in __call__
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     request, **action_args)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 941, in dispatch
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     return method(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/v2/images.py", line 110, in index
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     member_status=member_status)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/authorization.py", line 111, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     images = self.image_repo.list(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/policy.py", line 121, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     return super(ImageRepoProxy, self).list(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/__init__.py", line 180, in list
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     member_status=member_status, return_tag=True)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 636, in image_get_all
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     visibility)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 548, in _select_images_query
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     session = get_session()
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 103, in get_session
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     facade = _create_facade_lazily()
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 88, in _create_facade_lazily
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     _FACADE = session.EngineFacade.from_config(CONF)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 1056, in from_config
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     expire_on_commit=expire_on_commit, _conf=conf)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 977, in __init__
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     slave_connection=slave_connection)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     engine_args, maker_args)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     sql_connection=sql_connection, **engine_kwargs)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 128, in create_engine
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     pool_timeout=pool_timeout
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 913, in __call__
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     self._url_from_target(target), target, arg, kw)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 950, in _dispatch_on
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     return self._dispatch_on_db_driver(dbname, driver, arg, kw)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 1004, in _dispatch_on_db_driver
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     if self._invoke_fn(fn, arg, kw) is not None:
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 953, in _invoke_fn
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     return fn(*arg, **kw)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 163, in _init_connection_args
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     pool_class = url.get_dialect().get_pool_class(url)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 146, in get_dialect
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     entrypoint = self._get_entrypoint()
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 131, in _get_entrypoint
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     cls = registry.load(name)
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 205, in load
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi     (self.group, name))
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:42:11.738 89217 ERROR glance.common.wsgi
2017-09-03 08:42:11.744 89217 INFO eventlet.wsgi.server [req-cda84b0c-cfde-43a4-abfa-cb21733e769f ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] 192.168.0.14 - - [03/Sep/2017 08:42:11] "GET /v2/images HTTP/1.1" 500 454 0.631582
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi [req-5dd8cc47-1eec-4497-9fec-8e52504142e7 ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] Caught error: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi Traceback (most recent call last):
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 902, in __call__
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     request, **action_args)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 941, in dispatch
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     return method(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/v2/images.py", line 110, in index
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     member_status=member_status)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/authorization.py", line 111, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     images = self.image_repo.list(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/api/policy.py", line 121, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     return super(ImageRepoProxy, self).list(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     items = self.base.list(*args, **kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/__init__.py", line 180, in list
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     member_status=member_status, return_tag=True)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 636, in image_get_all
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     visibility)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 548, in _select_images_query
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     session = get_session()
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 103, in get_session
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     facade = _create_facade_lazily()
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 88, in _create_facade_lazily
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     _FACADE = session.EngineFacade.from_config(CONF)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 1056, in from_config
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     expire_on_commit=expire_on_commit, _conf=conf)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 977, in __init__
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     slave_connection=slave_connection)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     engine_args, maker_args)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     sql_connection=sql_connection, **engine_kwargs)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 128, in create_engine
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     pool_timeout=pool_timeout
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 913, in __call__
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     self._url_from_target(target), target, arg, kw)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 950, in _dispatch_on
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     return self._dispatch_on_db_driver(dbname, driver, arg, kw)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 1004, in _dispatch_on_db_driver
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     if self._invoke_fn(fn, arg, kw) is not None:
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 953, in _invoke_fn
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     return fn(*arg, **kw)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 163, in _init_connection_args
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     pool_class = url.get_dialect().get_pool_class(url)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 146, in get_dialect
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     entrypoint = self._get_entrypoint()
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 131, in _get_entrypoint
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     cls = registry.load(name)
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 205, in load
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi     (self.group, name))
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:sql.pymysql
2017-09-03 08:42:37.148 89215 ERROR glance.common.wsgi
2017-09-03 08:42:37.151 89215 INFO eventlet.wsgi.server [req-5dd8cc47-1eec-4497-9fec-8e52504142e7 ab1a200c80c74dd8b5643e098470abd5 498b28a39df549fb9dc5f192cf9ec52d - - -] 192.168.0.14 - - [03/Sep/2017 08:42:37] "GET /v2/images?limit=20&sort_key=name&sort_dir=asc HTTP/1.1" 500 454 0.364502

回复

使用道具 举报

tscswcn 发表于 2017-9-3 08:56:27
日志在这里

Downloads.zip

3.14 KB, 下载次数: 3

回复

使用道具 举报

xng2012 发表于 2017-9-3 09:39:06

控制节点可能出问题了,先看看image的控制节点的服务,是否正常。
回复

使用道具 举报

tscswcn 发表于 2017-9-3 09:45:08
205 行出的问题
    186
    187         if self.auto_fn:
    188             loader = self.auto_fn(name)
    189             if loader:
    190                 self.impls[name] = loader
    191                 return loader()
    192
    193         try:
    194             import pkg_resources
    195         except ImportError:
    196             pass
    197         else:
    198             for impl in pkg_resources.iter_entry_points(
    199                     self.group, name):
    200                 self.impls[name] = impl.load
    201                 return impl.load()
    202
    203         raise exc.NoSuchModuleError(
    204             "Can't load plugin: %s:%s" %
    205             (self.group, name))
回复

使用道具 举报

xng2012 发表于 2017-9-3 10:20:23
tscswcn 发表于 2017-9-3 09:45
205 行出的问题
    186
    187         if self.auto_fn:

安装的时候,特别是下载安装,一定安装完全。重新安装下数据库。
[mw_shl_code=bash,true]# apt-get install mariadb-server python-pymysql
[/mw_shl_code]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条