The migration for scheduled jobs needs to drop the table first

Bug #1845482 reported by Renat Akhmerov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Critical
Renat Akhmerov

Bug Description

We have to check if the table already exists and drop it in the migration first, if needed. This is because the DB model for scheduled jobs was released w/o a migration in the first place, so for some users the table was created automatically at Mistral run based on the model. But the structure of the table is old so we need to recreate it anyway in this migration. It's safe to drop this table because it contains temporary data.

See https://bugs.launchpad.net/tripleo/+bug/1844111 for more details.

Changed in mistral:
assignee: nobody → Renat Akhmerov (rakhmerov)
milestone: none → ussuri-rc1
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.opendev.org/685036

Changed in mistral:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

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

commit 6fb833882110bdb309213a1e6a2680c9cb8509a8
Author: Renat Akhmerov <email address hidden>
Date: Thu Sep 26 18:15:21 2019 +0700

    Fix scheduled jobs migration

    Change-Id: I764586d4f93cca42722f7d598a5c9ac0463730c2
    Closes-Bug: #1845482

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 9.0.0.0rc1

This issue was fixed in the openstack/mistral 9.0.0.0rc1 release candidate.

Changed in mistral:
milestone: ussuri-rc1 → train-rc1
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.