CRITICAL glance AttributeError: 'NoneType' bject has no attribute 'drivername' [closed]

asked 2014-05-03 05:55:01 -0500

rajcoumar gravatar image

updated 2014-05-03 05:58:12 -0500

I am installing the Openstack Icehouse package to my ubuntu 12.04 server. Keystone, Glance, Horizon and Cinder in one server. I am using default sqlite only. Whenever I execute this command

          cinder-manage db sync   (or)    su -s /bin/sh -c "glance-manage db_sync" glance

I got this errors,

     2014-05-03 16:14:37.079 9787 CRITICAL glance [-] AttributeError: 'NoneType' object has no attribute 'drivername'
     2014-05-03 16:14:37.079 9787 TRACE glance Traceback (most recent call last):
     2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/bin/glance-manage", line 10, in <module>
     2014-05-03 16:14:37.079 9787 TRACE glance     sys.exit(main())
     2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 259, in main
    2014-05-03 16:14:37.079 9787 TRACE glance     return CONF.command.action_fn()
    2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 160, in sync
   2014-05-03 16:14:37.079 9787 TRACE glance     CONF.command.current_version)
   2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 134, in sync
   2014-05-03 16:14:37.079 9787 TRACE glance     migration.db_sync(db_api.get_engine(),
   2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/db/sqlalchemy/api.py", line 64, in get_engine
   2014-05-03 16:14:37.079 9787 TRACE glance     facade = _create_facade_lazily()
   2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/db/sqlalchemy/api.py", line 59, in _create_facade_lazily
  2014-05-03 16:14:37.079 9787 TRACE glance     **dict(CONF.database.iteritems()))
  2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/openstack/common/db/sqlalchemy/session.py", line 847, in __init__
  2014-05-03 16:14:37.079 9787 TRACE glance     retry_interval=kwargs.get('retry_interval', 10))
  2014-05-03 16:14:37.079 9787 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/openstack/common/db/sqlalchemy/session.py", line 628, in create_engine
  2014-05-03 16:14:37.079 9787 TRACE glance     if "sqlite" in connection_dict.drivername:
  2014-05-03 16:14:37.079 9787 TRACE glance AttributeError: 'NoneType' object has no attribute 'drivername'
  2014-05-03 16:14:37.079 9787 TRACE glance

And also glance.sqlite database file not created under the /var/lib/glance. How to Solve this problem ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2016-09-21 16:00:03.580454

Comments

Do you have the backend and connection attributes correctly set in your glance conf file? Try reading Glance configuration reference. If this does not solve your problem try pastebin your conf files here.

Antonio G. gravatar imageAntonio G. ( 2014-05-03 14:19:13 -0500 )edit

glance.sqlite file is not created under the /var/lib/glance.

rajcoumar gravatar imagerajcoumar ( 2014-05-04 00:20:11 -0500 )edit

finally i cleared this errors and now my glance working fine.......

rajcoumar gravatar imagerajcoumar ( 2014-05-04 01:20:49 -0500 )edit
1

Please add the steps you followed to solve this problem as an answer to this question and accept the answer to close the question.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-05-05 12:25:51 -0500 )edit

Hi rajcoumar, I'm getting the same CRITICAL error message when trying to run another service, gnocchi-api. Do you know what it was that fixed the problem for you?

Thanks!

atmalagon gravatar imageatmalagon ( 2014-05-28 09:20:25 -0500 )edit