oauth1 downgrade fail with sqlite

Bug #1366606 reported by Brant Knudson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Brant Knudson

Bug Description

The oauth1 extension migrations fail with sqlite when doing the version 2 downgrade. This is because the migration is attempting to compare a string to an sqlalchemy Engine object.

NotSupportedError: SQLite does not support ALTER TABLE DROP CONSTRAINT; see http://www.sqlite.org/lang_altertable.html

Brant Knudson (blk-u)
Changed in keystone:
assignee: nobody → Brant Knudson (blk-u)
milestone: none → juno-rc1
status: New → In Progress
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

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

Reviewed: https://review.openstack.org/119653
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=6ae4d7713ee4d97fb3b52eebe7b833b84c7f3492
Submitter: Jenkins
Branch: master

commit 6ae4d7713ee4d97fb3b52eebe7b833b84c7f3492
Author: Brant Knudson <email address hidden>
Date: Sun Sep 7 15:21:07 2014 -0500

    Fix oauth sqlite migration downgrade failure

    The oauth migration downgrade was failing because it tried to drop
    a constraint which sqlite doesn't support. The code tried to not do
    the drop on sqlite but didn't check for the sqlite engine properly.

    Change-Id: Ie7900d352a26900f913bdefe1eb93d511283efc0
    Closes-Bug: #1366606

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-rc1 → 2014.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.