Ask Your Question

Daniel Ilie's profile - activity

2014-09-16 03:51:51 -0500 received badge  Famous Question (source)
2014-07-11 03:05:58 -0500 received badge  Famous Question (source)
2014-07-08 04:57:04 -0500 answered a question CRITICAL error glance. AttributeError: 'NoneType' object has no attribute 'drivername'

I found the problem. In configuration files glance-api.conf and glance-registry.conf I wrote connect = instead connection = specifying the location of the database.

2014-07-08 04:49:00 -0500 received badge  Notable Question (source)
2014-07-07 07:04:01 -0500 received badge  Popular Question (source)
2014-07-04 07:30:58 -0500 commented answer glance-manage db_sync problem

I ran pip install -r requirements.txt as you said but nothing has changed.

Sorry for any misunderstanding I'm pretty inexperienced in this.

2014-07-04 07:30:36 -0500 commented answer glance-manage db_sync problem

I searched answers and I found it was a bug and a new version was deployed. I tried apt-get update but in the repository there wasn't any change. So, finally, I had to install from sources(with python install). This is the link from where I downloaded the package https://launchpad.net/ubuntu/+source/glance/1:2014.1~rc2-0ubuntu1

2014-07-04 07:29:38 -0500 commented answer glance-manage db_sync problem

Thanks for reply,

First time I tried to install with apt-get install glance. Well, there was a problem with that package because at the same command the output was "CRITICAL glance AttributeError: 'NoneType' object has no attribute 'drivername'

2014-07-04 06:45:35 -0500 received badge  Notable Question (source)
2014-07-03 22:31:25 -0500 received badge  Popular Question (source)
2014-07-03 16:19:32 -0500 commented answer glance-manage db_sync problem

Thanks,

Well, I tried either glance-api.conf and glance-api-paste.ini as --config-file option but the output is the same. Glance user has permissions on these files.

Also using glance-manager help or any other glance-manager command the result is the same.

2014-07-03 12:27:22 -0500 asked a question glance-manage db_sync problem

Hi guys,

I am trying to create the database tables for the Image Service. When I run the following command su -s /bin/sh -c "glance-manage db_sync" glance I receive:

Traceback (most recent call last):

  File "/usr/local/bin/glance-manage", line 6, in <module>
        from glance.cmd.manage import main
  File "/usr/local/lib/python2.7/dist-packages/glance/cmd/manage.py", line 41, in <module>
        from oslo.config import cfg
  ImportError: No module named config
2014-07-02 08:32:43 -0500 received badge  Editor (source)
2014-07-02 08:29:23 -0500 asked a question CRITICAL error glance. AttributeError: 'NoneType' object has no attribute 'drivername'

Hi guys,

I am trying to configure the Image Service. Well, my knowledges are not very large and I follow this link in order to complete the installation. When I try to create the database tables for the Image Service with su -s /bin/sh -c "glance-manage db_sync" glance I receive the following error: "CRITICAL glance AttributeError: 'NoneType' object has no attribute 'drivername'". I searched an answer and I observed that there are others with this problem too and there is not a solution for this situation so far. I mention that I have the last update for glance project. This is how /var/log/glance/api.log looks like LOG

Thanks

Later Edit: I didn't know I couldn't share links, my bad