Restart fails with column references in rules

Bug #1435592 reported by Tim Hinrichs
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
congress
Fix Released
High
Tim Hinrichs

Bug Description

When you restart Congress and (i) you have rules that use column references and (ii) you have deleted the datasource driver for the table in which column references appear, Congress fails to restart since it cannot read in the rules.

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

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

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

Reviewed: https://review.openstack.org/167032
Committed: https://git.openstack.org/cgit/stackforge/congress/commit/?id=c960d8e822f4f7b248c1d87abee721fae0684f3d
Submitter: Jenkins
Branch: master

commit c960d8e822f4f7b248c1d87abee721fae0684f3d
Author: Tim Hinrichs <email address hidden>
Date: Mon Mar 23 15:05:11 2015 -0700

    Disallow deletion of datasource if dangling references

    Previously, you could delete a datasource even if there
    were policy statements referencing the tables in that
    datasource.

    This change ensures it is impossible to delete a datasource
    if you still have references to that table provided by that
    datasource. This change fixes a bug where Congress
    fails to start because it does not have a schema for the
    rules contained in the database, which can only happen
    if the user has deleted the datasource with rules that
    still reference it.

    Closes-bug: 1435592
    Change-Id: I040f2829fc284b1ddb954b757cea886a498171b4

Changed in congress:
status: In Progress → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → kilo-3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.