From 65e79ec56007de4a4445cc59d3d7e8381bc25181 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Thu, 10 Jul 2014 10:23:50 -0400 Subject: rally: sqlalchemy-db missing name for ENUM Command "rally-manage db recreate" gives the following error: TRACE rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/postgresql/base.py", line 898, in format_type TRACE rally raise exc.CompileError("Postgresql ENUM type requires a name.") TRACE rally CompileError: Postgresql ENUM type requires a name. Signed-off-by: Vu Tran --- .../sqlalchemy-db-missing-name-for-ENUM.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch (limited to 'meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch') diff --git a/meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch b/meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch new file mode 100644 index 0000000..afb425c --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch @@ -0,0 +1,25 @@ +sqlalchemy-db: missing name for ENUM + +Command "rally-manage db recreate" gives the following error: + +TRACE rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/postgresql/base.py", line 898, in format_type +TRACE rally raise exc.CompileError("Postgresql ENUM type requires a name.") +TRACE rally CompileError: Postgresql ENUM type requires a name. + +Signed-off-by: Vu Tran + +diff --git a/rally/db/sqlalchemy/models.py b/rally/db/sqlalchemy/models.py +index c68e345..5b2dbc0 100644 +--- a/rally/db/sqlalchemy/models.py ++++ b/rally/db/sqlalchemy/models.py +@@ -85,8 +85,8 @@ class Deployment(BASE, RallyBase): + ) + + status = sa.Column( +- sa.Enum(*consts.DeployStatus), +- name='enum_deployments_status', ++ sa.Enum(*consts.DeployStatus, ++ name='enum_deployments_status'), + default=consts.DeployStatus.DEPLOY_INIT, + nullable=False, + ) -- cgit v1.2.3-54-g00ecf