Resize fails when using postgresql and when the request body sends flavorRef as integer

Bug #1123525 reported by Tiago Mello
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Tiago Mello

Bug Description

flavorid is string type in the db and we should force it to be string as early as possible in the api. Mysql silently accepts both types but PostgreSQL expcets the right data type.

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

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

Changed in nova:
assignee: nobody → Tiago Rodrigues de Mello (tmello)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/21825
Committed: http://github.com/openstack/nova/commit/f59a0373834655346b50eac2a033c7cb31061c3a
Submitter: Jenkins
Branch: master

commit f59a0373834655346b50eac2a033c7cb31061c3a
Author: Tiago Mello <email address hidden>
Date: Tue Feb 12 20:32:59 2013 -0200

    Forces flavorRef to be string in servers resize api

    flavorid column is a string in the database model and
    MySQL silently accepts either integer or string as
    data type. However PostgreSQL expects the right data
    type. So we force it to be string as early as possible
    in the api.

    Fixes Bug 1123525

    Change-Id: Id117868b3a2f840f5d7ab463f3b79b6631b3b514

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.1
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.