ceilometer 2013.2~b2-0ubuntu4 is uninstallable

Bug #1221956 reported by Adam Gandelman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceilometer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Attempting to install 2013.2~b2-0ubuntu4 fails for several dependency and config related issues:

2013.2~b2-0ubuntu4 0

ubuntu@saucy-09-06-1521:~$ sudo apt-get install ceilometer-agent-compute

Not creating home directory `/var/lib/ceilometer'.
Traceback (most recent call last):
  File "/usr/bin/ceilometer-dbsync", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-keystoneclient>=0.2,<0.3.2

Traceback (most recent call last):
  File "/usr/bin/ceilometer-dbsync", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Flask==0.9

(Manually hacked /usr/share/pyshared/ceilometer-2013.2.b2.egg-info/requires.txt to work
around the dependency issues. The available versions: python-keystoneclient 1:0.3.2-0ubuntu1
and python-flask 0.10.1-1.)

ubuntu@saucy-09-06-1521:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up ceilometer-common (2013.2~b2-0ubuntu4) ...
2013-09-06 22:31:19.784 13362 CRITICAL ceilometer [-] (OperationalError) unable to open database file None None
dpkg: error processing ceilometer-common (--configure):
 subprocess installed post-installation script returned error exit status 1

It looks like the sqlite path is being defined as sqlite_db in the [DEFAULT] section
of config. Moving this instead to the [database] section fixes the issue
and allows the maintainer script to migrate the database.

Additionally, Bug #1182964 suggests migrating the database from ceilometer-common
is wrong.

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Looks like dependency issues have been resolved upstream.

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

This bug was fixed in the package ceilometer - 2013.2~b3-0ubuntu1

---------------
ceilometer (2013.2~b3-0ubuntu1) saucy; urgency=low

  [ Chuck Short ]
  * New upstream release.
  * debian/patches/fix-setup-requirements.patch: Refreshed
  * debian/patches/skip-database.patch: Refreshed

  [ Yolanda Robla ]
  * debian/control,debian/tests: Add basic autopkgtests.

  [ Adam Gandelman ]
  * debian/patches/default-dbconnection-sqlite.patch: Set 'connection' flag
    in [database] section, referencing 'sqlite_db' (LP: #1221956).
  * debian/patches/skip-database-tests.patch: Also patch out db2 and hbase
    scenarios in v2 test_statistics_scenarios.py.
  * debian/rules: Clean python-pbr egg if it exists, set PYTHONPATH to build
    dir when running tests.
 -- Chuck Short <email address hidden> Sat, 07 Sep 2013 15:58:58 -0400

Changed in ceilometer (Ubuntu):
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.