ERROR "CRITICAL glance [-] AttributeError: 'NoneType' object has no attribute 'drivername'" in /var/log/glance/api.log

Bug #1307518 reported by Youhei Tooyama
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Fix Released
Undecided
Unassigned
glance (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

How reproducible:

Steps to Reproduce:
1.Install the Ubuntu Server 12.04.4
2.Install the Keystone
3.Install the Glance
4.type "glance-manage db_sync" commands.

Actual results:
2014-04-14 10:40:37.697 15295 CRITICAL glance [-] AttributeError: 'NoneType'
object has no attribute 'drivername'

The installed version:

# dpkg -l |grep glance
ii glance 1:2014.1~rc1-0ubuntu1~cloud0
OpenStack Image Registry and Delivery Service - Daemons
ii glance-api 1:2014.1~rc1-0ubuntu1~cloud0
OpenStack Image Registry and Delivery Service - API
ii glance-common 1:2014.1~rc1-0ubuntu1~cloud0
OpenStack Image Registry and Delivery Service - Common
ii glance-registry 1:2014.1~rc1-0ubuntu1~cloud0
OpenStack Image Registry and Delivery Service - Registry
ii python-glance 1:2014.1~rc1-0ubuntu1~cloud0
OpenStack Image Registry and Delivery Service - Python library
ii python-glanceclient 1:0.12.0-0ubuntu1~cloud0 Client
library for Openstack glance server.

Workaround:

# cd /etc/glance
# mkdir bak
# mv *.ini *.conf *.json bak/
# cd
# wget https://github.com/openstack/glance/archive/master.zip
# unzip master.zip
# cp glance-master/etc/* /etc/glance
# chown glance.glance *
# ls -l /etc/glance/
total 76
drwxr-xr-x 2 glance glance 4096 Apr 14 13:46 bak
-rw-r--r-- 1 glance glance 24066 Apr 14 13:54 glance-api.conf
-rw-r--r-- 1 glance glance 2603 Apr 14 13:47 glance-api-paste.ini
-rw-r--r-- 1 glance glance 7210 Apr 14 13:47 glance-cache.conf
-rw-r--r-- 1 glance glance 6036 Apr 14 13:54 glance-registry.conf
-rw-r--r-- 1 glance glance 863 Apr 14 13:47 glance-registry-paste.ini
-rw-r--r-- 1 glance glance 1860 Apr 14 13:47 glance-scrubber.conf
-rw-r--r-- 1 glance glance 982 Apr 14 13:47 logging.cnf.sample
-rw-r--r-- 1 glance glance 611 Apr 14 13:47 policy.json
-rw-r--r-- 1 glance glance 1186 Apr 14 13:47
property-protections-policies.conf.sample
-rw-r--r-- 1 glance glance 1065 Apr 14 13:47
property-protections-roles.conf.sample
-rw-r--r-- 1 glance glance 1259 Apr 14 13:47 schema-image.json
# glance-manage db_sync

Related branches

Revision history for this message
Youhei Tooyama (ytooyama) wrote :

Of course,I'm using "icehouse cloud-archive"!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glance - 1:2014.1~rc2-0ubuntu1

---------------
glance (1:2014.1~rc2-0ubuntu1) trusty; urgency=medium

   [ Chuck Short ]
   * New upstream release candidate (LP: #1299055).
   * debian/patches/sql_conn.patch: Refreshed.
   * debian/glance-api.install: Install missing schema.json file.
     (LP: #1307518)

  [ Thomas Bechtold ]
  * debian/glance-common.postinst: Set correct owner/group for /var/lib/glance
    and subdirs only on local filesystems (LP: #1302044).
 -- Chuck Short <email address hidden> Sat, 12 Apr 2014 08:45:20 -0400

Changed in glance (Ubuntu Trusty):
status: New → Fix Released
James Page (james-page)
Changed in cloud-archive:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.