db migration failing when upgrading glance - trying to create existing tables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned |
Bug Description
error happened when upgrading Ubuntu to Natty
ProblemType: Package
DistroRelease: Ubuntu 11.10
Package: glance 2011.3-0ubuntu4
ProcVersionSign
Uname: Linux 2.6.38-11-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Sun Oct 30 16:47:41 2011
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitec
SourcePackage: glance
Title: package glance 2011.3-0ubuntu4 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to oneiric on 2011-10-30 (0 days ago)
Related branches
summary: |
- package glance 2011.3-0ubuntu4 failed to install/upgrade: ErrorMessage: - subprocess installed post-installation script returned error exit status - 1 + db migration failing when upgrading glance - trying to create existing + tables |
tags: | added: rls-p-tracking |
Changed in glance (Ubuntu Precise): | |
status: | Confirmed → Triaged |
Installing new version of config file /etc/init/ glance- registry. conf ... python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1244, in _execute_ddl execute_ context( context) python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1302, in __execute_context parameters[ 0], context=context) python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1401, in _cursor_execute python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1394, in _cursor_execute python2. 7/dist- packages/ sqlalchemy/ engine/ default. py", line 299, in do_execute execute( statement, parameters) exc.Operational Error: (OperationalError) table images already exists u'\nCREATE TABLE images (\n\tid INTEGER NOT NULL, \n\tname VARCHAR(255), \n\ttype VARCHAR(30), \n\tsize INTEGER, \n\tstatus VARCHAR(30) NOT NULL, \n\tis_public BOOLEAN NOT NULL, \n\tlocation TEXT, \n\tcreated_at DATETIME NOT NULL, \n\tupdated_at DATETIME, \n\tdeleted_at DATETIME, \n\tdeleted BOOLEAN NOT NULL, \n\tPRIMARY KEY (id), \n\tCHECK (deleted IN (0, 1)), \n\tCHECK (is_public IN (0, 1))\n)\n\n' ()
params)
File "/usr/lib/
return self.__
File "/usr/lib/
context.
File "/usr/lib/
context)
File "/usr/lib/
context)
File "/usr/lib/
cursor.
sqlalchemy.
dpkg: error processing glance (--configure):
subprocess installed post-installation script returned error exit status 1