Limitation on fuel version length in DB should be removed

Bug #1316154 reported by Alexander Kislitsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Alexander Kislitsky

Bug Description

If we try to create environment with fuel version length greater than 30, service returns 500 error.

Exception details:

File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 331, in execute
    rec.execute(self)
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 475, in execute
    uow
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/persistence.py", line 64, in save_obj
    table, insert)
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/persistence.py", line 558, in _emit_insert_statements
    execute(statement, params)
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
    params)
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
    context)
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
    context)
  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
    cursor.execute(statement, parameters)
DataError: (DataError) value too long for type character varying(30)
 'INSERT INTO clusters (mode, status, net_provider, grouping, name, release_id, replaced_deployment_info, replaced_provisioning_info, is_customized, fuel_version) VALUES (%(mode)s, %(status)s, %(net_provider)s, %(grouping)s, %(name)s, %(release_id)s, %(replaced_deployment_info)s, %(replaced_provisioning_info)s, %(is_customized)s, %(fuel_version)s) RETURNING clusters.id' {'status': 'new', 'is_customized': False, 'release_id': 1, 'name': u'jfkhdjfhjk', 'replaced_provisioning_info': '{}', 'fuel_version': '2014-05-05 10:03:21 +0000 c4a39c8894d6ed5517f6d8338306e050d75021e2', 'net_provider': u'nova_network', 'replaced_deployment_info': '{}', 'mode': u'ha_compact', 'grouping': 'roles'}

Tags: nailgun
summary: - Limitation of fuel version length in DB should be removed
+ Limitation on fuel version length in DB should be removed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to fuel-web (master)

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

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

Reviewed: https://review.openstack.org/92148
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=a72477feea71ce402dda5605fb97605d85b9443c
Submitter: Jenkins
Branch: master

commit a72477feea71ce402dda5605fb97605d85b9443c
Author: Alexander Kislitsky <email address hidden>
Date: Mon May 5 19:40:02 2014 +0400

    Restriction on length of fuel_version removed

    500 error raised in case of cluster created with fuel_version length
    greater than 30. Restriction on length of field fuel_version removed
    from DB. Text type used instead String(30)

    Change-Id: I163b276aed5aa08cfee494751a22682512128060
    Closes-Bug: #1316154

Changed in fuel:
status: In Progress → Fix Committed
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.