namespace not supported when using postgresql

Bug #1838635 reported by Artem Lapin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Undecided
Unassigned

Bug Description

New unique constraint for postgresql is being created (name + namespace + project_id) in 022_namespace_support.py migration, but an old one for (name + project_id) is not deleted. For this reason, creating and using workflow with different namespaces is not possible.

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

Reviewed: https://review.opendev.org/675361
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=c3434b48eccf070c44f56b92218b1b8c3bfa6310
Submitter: Zuul
Branch: master

commit c3434b48eccf070c44f56b92218b1b8c3bfa6310
Author: Artem Lapin <email address hidden>
Date: Thu Aug 8 17:42:12 2019 +0300

    New alembic migration to support namespaces in postgresql

    We are now using drop_index to delete old constraint (name + project_id)
    in namespace support migration. It works only for MySQL, for PostgreSQL
    we should use drop_constraint to delete old constraint.
    drop_index does not affect PostgreSQL and drop_constraint does not affect
    MySQL, so we should use both for namespace support for both databases.
    Added old constraint (name + project_id) deletion for
    PostgreSQL with new migration.

    Change-Id: I137162dd2b643b24f02799c6a13e3b0c0a8d3fb5
    Closes-bug: #1838635

Changed in mistral:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 10.0.0.0b1

This issue was fixed in the openstack/mistral 10.0.0.0b1 development milestone.

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.