glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress

asked 2015-06-18 12:18:48 -0500

prakashs gravatar image

updated 2015-06-18 12:46:03 -0500

Ranjit gravatar image

When i try above command in Ubuntu 14.04 im getting below error. HTTPInternalServerError (HTTP 500)

I tried the remediation in the site but it didn't work.

/var/log/glance/api.log Please find the output of log file below:

2015-06-18 10:11:45.453 3115 TRACE glance Traceback (most recent call last):
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/bin/glance-manage", line 10, in <module>
2015-06-18 10:11:45.453 3115 TRACE glance     sys.exit(main())
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 303, in main
2015-06-18 10:11:45.453 3115 TRACE glance     return CONF.command.action_fn()
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 171, in sync
2015-06-18 10:11:45.453 3115 TRACE glance     CONF.command.current_version)
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 114, in sync
2015-06-18 10:11:45.453 3115 TRACE glance     migration.db_sync(db_api.get_engine(),
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/db/sqlalchemy/api.py", line 97, in get_engine
2015-06-18 10:11:45.453 3115 TRACE glance     facade = _create_facade_lazily()
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/db/sqlalchemy/api.py", line 87, in _create_facade_lazily
2015-06-18 10:11:45.453 3115 TRACE glance     _FACADE = session.EngineFacade.from_config(CONF)
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/session.py", line 880, in from_config
2015-06-18 10:11:45.453 3115 TRACE glance     retry_interval=conf.database.retry_interval)
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/session.py", line 796, in __init__
2015-06-18 10:11:45.453 3115 TRACE glance     **engine_kwargs)
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/session.py", line 392, in create_engine
2015-06-18 10:11:45.453 3115 TRACE glance     pool_timeout=pool_timeout
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/utils.py", line 887, in __call__
2015-06-18 10:11:45.453 3115 TRACE glance     self._url_from_target(target), target, arg, kw)
2015-06-18 10:11:45.453 3115 TRACE glance   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/utils.py", line 901, in _url_from_target
2015-06-18 10:11:45.453 3115 TRACE glance     raise ValueError("Invalid target type: %r" % target)
2015-06-18 10:11:45.453 3115 TRACE glance ValueError: Invalid target type: None
edit retag flag offensive close merge delete

Comments

Logs look like the output of glance-manage db sync. check if you have tables inside glance db or not?

Ranjit gravatar imageRanjit ( 2015-06-18 12:53:40 -0500 )edit

Ranjith Please let me know how to check the tables inside the glance db

prakashs gravatar imageprakashs ( 2015-06-19 10:26:41 -0500 )edit