test_postgresql_opportunistically fails in stable/havana due to: "ERROR: source database "template1" is being accessed by other users"

Bug #1355929 reported by Matt Riedemann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Roman Podoliaka
Icehouse
Fix Released
Undecided
Unassigned
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Joe Gordon (jogo) wrote :

no hits any more

Changed in nova:
status: New → Incomplete
Revision history for this message
Alan Pevec (apevec) wrote :
Changed in nova:
status: Incomplete → New
Revision history for this message
Sean Dague (sdague) wrote :

Marking as high because this is bad unit test design. We need a lock around the pg tests because they make admin level actions which can conflict.

Changed in nova:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Roman Podoliaka (rpodolyaka)
status: Confirmed → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :
Matt Riedemann (mriedem)
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/124437

Matt Riedemann (mriedem)
tags: removed: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/122011
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=02fa15b4caaa414930b6ddf6a3a9fe8019751c26
Submitter: Jenkins
Branch: master

commit 02fa15b4caaa414930b6ddf6a3a9fe8019751c26
Author: Roman Podoliaka <email address hidden>
Date: Wed Sep 17 01:06:33 2014 +0300

    postgresql: use postgres db instead of template1

    In PostgreSQL template1 database is kind of special, as all new databases are
    copied from it, when you do CREATE DATABASE. This implies a few restrictions:
    e.g. you can't have more than one active session to template1, if one of them
    tries to create a database. It will fail with:

        ERROR: source database "template1" is being accessed by other users

    Using of postgres database instead of template1 resolves this issue.

    Closes-Bug: #1355929

    Change-Id: I8b1a36163984fbef6be66964456072d32da6a9d0

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-rc1 → 2014.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/icehouse)

Reviewed: https://review.openstack.org/124437
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=98a6c1e4c4c1b72463f1200650ff54e94f742999
Submitter: Jenkins
Branch: stable/icehouse

commit 98a6c1e4c4c1b72463f1200650ff54e94f742999
Author: Roman Podoliaka <email address hidden>
Date: Wed Sep 17 01:06:33 2014 +0300

    postgresql: use postgres db instead of template1

    In PostgreSQL template1 database is kind of special, as all new databases are
    copied from it, when you do CREATE DATABASE. This implies a few restrictions:
    e.g. you can't have more than one active session to template1, if one of them
    tries to create a database. It will fail with:

        ERROR: source database "template1" is being accessed by other users

    Using of postgres database instead of template1 resolves this issue.

    Closes-Bug: #1355929

    Change-Id: I8b1a36163984fbef6be66964456072d32da6a9d0
    (cherry picked from commit 02fa15b4caaa414930b6ddf6a3a9fe8019751c26)

tags: added: in-stable-icehouse
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.