glance ValueError: Invalid target type: None

asked 2015-12-30 15:55:46 -0500

philipjlee gravatar image

After following the procedure to install glance, all went OK up to running: /bin/sh -c "glance-manage db_sync" glance When I got the response below. I checked my database is utf8.

2015-12-30 21:27:29.279 26502 CRITICAL glance [-] ValueError: Invalid target type: None 2015-12-30 21:27:29.279 26502 TRACE glance Traceback (most recent call last): 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/bin/glance-manage", line 10, in <module> 2015-12-30 21:27:29.279 26502 TRACE glance sys.exit(main()) 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 279, in main 2015-12-30 21:27:29.279 26502 TRACE glance return CONF.command.action_fn() 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 157, in sync 2015-12-30 21:27:29.279 26502 TRACE glance CONF.command.current_version) 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 113, in sync 2015-12-30 21:27:29.279 26502 TRACE glance migration.db_sync(db_api.get_engine(), 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/db/sqlalchemy/api.py", line 92, in get_engine 2015-12-30 21:27:29.279 26502 TRACE glance facade = _create_facade_lazily() 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/db/sqlalchemy/api.py", line 82, in _create_facade_lazily 2015-12-30 21:27:29.279 26502 TRACE glance _FACADE = session.EngineFacade.from_config(CONF) 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 795, in from_config 2015-12-30 21:27:29.279 26502 TRACE glance retry_interval=conf.database.retry_interval) 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 711, in __init__ 2015-12-30 21:27:29.279 26502 TRACE glance **engine_kwargs) 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 375, in create_engine 2015-12-30 21:27:29.279 26502 TRACE glance pool_timeout=pool_timeout 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/utils.py", line 890, in __call__ 2015-12-30 21:27:29.279 26502 TRACE glance self._url_from_target(target), target, arg, kw) 2015-12-30 21:27:29.279 26502 TRACE glance File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/utils.py", line 904, in _url_from_target 2015-12-30 21:27:29.279 26502 TRACE glance raise ValueError("Invalid target type: %r" % target) 2015-12-30 21:27:29.279 26502 TRACE glance ValueError: Invalid target type: None 2015-12-30 21:27:29.279 26502 TRACE glance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
-1

answered 2016-01-04 13:55:36 -0500

philipjlee gravatar image

I've just re-built the server and this problem doesn't occur. I think typo'd the keystone endpoint create statement for glance originally.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-12-30 15:55:46 -0500

Seen: 202 times

Last updated: Jan 04 '16