apt-get install trove-common fails with critical OperationalError

Bug #1365561 reported by Corey Bryant
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-trove (Ubuntu)
Fix Released
Undecided
James Page

Bug Description

$ sudo apt-get install trove-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dbconfig-common sqlite3
Suggested packages:
  virtual-mysql-client mysql-client postgresql-client sqlite3-doc
The following NEW packages will be installed:
  dbconfig-common sqlite3 trove-common
0 upgraded, 3 newly installed, 0 to remove and 167 not upgraded.
Need to get 506 kB of archives.
After this operation, 1,462 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ utopic/main dbconfig-common all 1.8.47+nmu1 [468 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ utopic/main sqlite3 amd64 3.8.5-2ubuntu1 [31.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ utopic/universe trove-common all 2014.2~b2-0ubuntu1 [6,846 B]
Fetched 506 kB in 1s (255 kB/s)
Preconfiguring packages ...
Selecting previously unselected package dbconfig-common.
(Reading database ... 92078 files and directories currently installed.)
Preparing to unpack .../dbconfig-common_1.8.47+nmu1_all.deb ...
Unpacking dbconfig-common (1.8.47+nmu1) ...
Selecting previously unselected package sqlite3.
Preparing to unpack .../sqlite3_3.8.5-2ubuntu1_amd64.deb ...
Unpacking sqlite3 (3.8.5-2ubuntu1) ...
Selecting previously unselected package trove-common.
Preparing to unpack .../trove-common_2014.2~b2-0ubuntu1_all.deb ...
Unpacking trove-common (2014.2~b2-0ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up dbconfig-common (1.8.47+nmu1) ...

Creating config file /etc/dbconfig-common/config with new version
Setting up sqlite3 (3.8.5-2ubuntu1) ...
Setting up trove-common (2014.2~b2-0ubuntu1) ...
Adding system user `trove' (UID 106) ...
Adding new user `trove' (UID 106) with group `trove' ...
Not creating home directory `/var/lib/trove'.
Command failed, please check log for more info.
2014-09-04 15:28:26.986 5351 CRITICAL root [-] OperationalError: (OperationalError) unable to open database file None None
2014-09-04 15:28:26.986 5351 TRACE root Traceback (most recent call last):
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/bin/trove-manage", line 10, in <module>
2014-09-04 15:28:26.986 5351 TRACE root sys.exit(main())
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/trove/cmd/manage.py", line 151, in main
2014-09-04 15:28:26.986 5351 TRACE root Commands().execute()
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/trove/cmd/manage.py", line 56, in execute
2014-09-04 15:28:26.986 5351 TRACE root exec_method(**kwargs)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/trove/cmd/manage.py", line 41, in db_sync
2014-09-04 15:28:26.986 5351 TRACE root self.db_api.db_sync(CONF, repo_path=repo_path)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/trove/db/sqlalchemy/api.py", line 103, in db_sync
2014-09-04 15:28:26.986 5351 TRACE root migration.db_sync(options, version, repo_path)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/trove/db/sqlalchemy/migration.py", line 118, in db_sync
2014-09-04 15:28:26.986 5351 TRACE root _version_control(options, repo_path)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/trove/db/sqlalchemy/migration.py", line 106, in _version_control
2014-09-04 15:28:26.986 5351 TRACE root return versioning_api.version_control(sql_connection, repo_path)
2014-09-04 15:28:26.986 5351 TRACE root File "<string>", line 2, in version_control
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py", line 160, in with_engine
2014-09-04 15:28:26.986 5351 TRACE root return f(*a, **kw)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 250, in version_control
2014-09-04 15:28:26.986 5351 TRACE root ControlledSchema.create(engine, repository, version)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 141, in create
2014-09-04 15:28:26.986 5351 TRACE root table = cls._create_table_version(engine, repository, version)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 182, in _create_table_version
2014-09-04 15:28:26.986 5351 TRACE root if not table.exists():
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 638, in exists
2014-09-04 15:28:26.986 5351 TRACE root self.name, schema=self.schema)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1732, in run_callable
2014-09-04 15:28:26.986 5351 TRACE root with self.contextual_connect() as conn:
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
2014-09-04 15:28:26.986 5351 TRACE root self.pool.connect(),
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
2014-09-04 15:28:26.986 5351 TRACE root return _ConnectionFairy._checkout(self)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
2014-09-04 15:28:26.986 5351 TRACE root fairy = _ConnectionRecord.checkout(pool)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
2014-09-04 15:28:26.986 5351 TRACE root rec = pool._do_get()
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
2014-09-04 15:28:26.986 5351 TRACE root return self._create_connection()
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
2014-09-04 15:28:26.986 5351 TRACE root return _ConnectionRecord(self)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
2014-09-04 15:28:26.986 5351 TRACE root self.connection = self.__connect()
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
2014-09-04 15:28:26.986 5351 TRACE root connection = self.__pool._creator()
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
2014-09-04 15:28:26.986 5351 TRACE root connection_invalidated=invalidated
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
2014-09-04 15:28:26.986 5351 TRACE root reraise(type(exception), exception, tb=exc_tb)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
2014-09-04 15:28:26.986 5351 TRACE root return dialect.connect(*cargs, **cparams)
2014-09-04 15:28:26.986 5351 TRACE root File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
2014-09-04 15:28:26.986 5351 TRACE root return self.dbapi.connect(*cargs, **cparams)
2014-09-04 15:28:26.986 5351 TRACE root OperationalError: (OperationalError) unable to open database file None None
2014-09-04 15:28:26.986 5351 TRACE root
dpkg: error processing package trove-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 trove-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Corey Bryant (corey.bryant) wrote :

This is on utopic.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

This occurs for: trove-common, trove-api, trove-guestagent, trove-taskmanager, trove-conductor

James Page (james-page)
Changed in openstack-trove (Ubuntu):
assignee: nobody → James Page (james-page)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openstack-trove - 2014.2~b3-0ubuntu2

---------------
openstack-trove (2014.2~b3-0ubuntu2) utopic; urgency=medium

  * d/trove-common.postinst: Ensure permissions are set on /var/lib/trove
    before completing any db sync operations (LP: #1365561, #1359656).
  * d/control: Drop dependency on dbconfig-common, unused.
  * d/po/*: Drop, not used.
  * d/trove-*.post*: Tidy up tab/space formatting.
 -- James Page <email address hidden> Thu, 25 Sep 2014 16:32:57 +0100

Changed in openstack-trove (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Martin Mágr (mmagr) wrote :

This bug haven't been fixed and is still occuring when installing 2015.1~rc1-0ubuntu2~cloud0:

http://logs.openstack.org/47/184247/5/check/gate-puppet-trove-puppet-beaker-rspec-dsvm-trusty/e542a29/console.html#_2015-05-21_13_09_58_412

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.