connection in alembic.env doesn't close

Bug #1213897 reported by Svetlana Shturm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Svetlana Shturm

Bug Description

There is connection to database in ceilometer/storage/sqlalchemy/alembic/env.py that doesn't close.
We can get in some situations error like this
Failed to run: psql -w -U openstack_citest -h localhost -c 'drop database if exists openstack_citest;' -d template1
ERROR: database "openstack_citest" is being accessed by other users
DETAIL: There are 1 other session(s) using the database.

It will fail after integration of migrations tests from oslo.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/42618

Changed in ceilometer:
assignee: nobody → Svetlana Shturm (sshturm)
status: New → In Progress
Julien Danjou (jdanjou)
Changed in ceilometer:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/42618
Committed: http://github.com/openstack/ceilometer/commit/872c973dd957afa31c7a1ff6f5f5fa1ea344f888
Submitter: Jenkins
Branch: master

commit 872c973dd957afa31c7a1ff6f5f5fa1ea344f888
Author: Svetlana Shturm <email address hidden>
Date: Mon Aug 19 15:51:42 2013 +0400

    Close database connection for alembic env

    Bug: 1213897

    Change-Id: I2fdb738b61ff85db9240cf95e2ee26930edd56c0

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: havana-3 → 2013.2
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.