dbsync fail on empty database

Bug #1473406 reported by Mehdi Abaakouk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

Hi,

The dbsync seems borken

...
2015-07-10 10:41:58.024 26886 ERROR aodh File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/compiler.py", line 261, in process
2015-07-10 10:41:58.024 26886 ERROR aodh return type_._compiler_dispatch(self, **kw)
2015-07-10 10:41:58.024 26886 ERROR aodh File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
2015-07-10 10:41:58.024 26886 ERROR aodh return meth(self, **kw)
2015-07-10 10:41:58.024 26886 ERROR aodh File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/compiler.py", line 2578, in visit_string
2015-07-10 10:41:58.024 26886 ERROR aodh return self.visit_VARCHAR(type_, **kw)
2015-07-10 10:41:58.024 26886 ERROR aodh File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/dialects/mysql/base.py", line 2306, in visit_VARCHAR
2015-07-10 10:41:58.024 26886 ERROR aodh self.dialect.name)
2015-07-10 10:41:58.024 26886 ERROR aodh CompileError: (in table 'alarm', column 'ok_actions'): VARCHAR requires a length on dialect mysql
2015-07-10 10:41:58.024 26886 ERROR aodh

Cheers,

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

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

Changed in aodh:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to aodh (master)

Reviewed: https://review.openstack.org/200476
Committed: https://git.openstack.org/cgit/openstack/aodh/commit/?id=4d1fd52673fae8e225e4d8e361cf89f0e9ef6abb
Submitter: Jenkins
Branch: master

commit 4d1fd52673fae8e225e4d8e361cf89f0e9ef6abb
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Jul 10 13:05:48 2015 +0200

    Use the right sqla type for JSONEncodedDict

    In ceilometer the database migration was creating a Text
    when the running code think it was a String.

    This change fixes that.

    Closes-bug: #1473406

    Change-Id: I6810440af6c13845874f066009ee25479ceb30ec

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