CompileError: (in table 'status', column 'text'): VARCHAR requires a length on dialect mysql

Bug #1341132 reported by Serg Melikyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Critical
Serg Melikyan

Bug Description

Tests are failing due to error in database model on MySQL dialect
Traceback: http://paste.openstack.org/show/86222/

Changed in murano:
importance: Undecided → High
importance: High → Critical
assignee: nobody → Serg Melikyan (smelikyan)
milestone: none → juno-2
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

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

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

Reviewed: https://review.openstack.org/106563
Committed: https://git.openstack.org/cgit/stackforge/murano/commit/?id=2611893c202517e5417ffe967739339d1108a827
Submitter: Jenkins
Branch: master

commit 2611893c202517e5417ffe967739339d1108a827
Author: Serg Melikyan <email address hidden>
Date: Sat Jul 12 18:50:10 2014 +0400

    Fix issue with incorrect model on MySQL

    In 'Status' model, 'text' attribute is declared as String. SQLAlchemy
    translates String type to VARCHAR type in MySQL dialect. When column
    with VARCHAR type is declared in MySQL, user must specify
    size of the column.

    We can't specify size for text attribute because Reporter class from
    core library that gives ability to publish different deployment statuses
    from MuranoPL doesn't limit user input. Solution is to change attribute
    type to Text.

    Change-Id: If72e6db4b3c2039504f77649118ac9e1f68b8289
    Closes-bug: #1341132

Changed in murano:
status: In Progress → Fix Committed
ruhe (ruhe)
Changed in murano:
status: Fix Committed → Fix Released
Changed in murano:
milestone: juno-2 → 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.