diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-07-10 10:23:50 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-17 00:12:13 -0400 |
| commit | f550a375c091a27aeb80d64140c943beba788127 (patch) | |
| tree | 9cc2f4676469d6444ec5be1012d9b641985bb86e /meta-openstack/recipes-devtools/python/python-rally | |
| parent | e2683e0335c6166dd8fc34d1c3656738a9e8518e (diff) | |
| download | meta-cloud-services-f550a375c091a27aeb80d64140c943beba788127.tar.gz | |
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 <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-rally')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ | |||
| 1 | sqlalchemy-db: missing name for ENUM | ||
| 2 | |||
| 3 | Command "rally-manage db recreate" gives the following error: | ||
| 4 | |||
| 5 | TRACE rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/postgresql/base.py", line 898, in format_type | ||
| 6 | TRACE rally raise exc.CompileError("Postgresql ENUM type requires a name.") | ||
| 7 | TRACE rally CompileError: Postgresql ENUM type requires a name. | ||
| 8 | |||
| 9 | Signed-off-by: Vu Tran <vu.tran@windriver.com> | ||
| 10 | |||
| 11 | diff --git a/rally/db/sqlalchemy/models.py b/rally/db/sqlalchemy/models.py | ||
| 12 | index c68e345..5b2dbc0 100644 | ||
| 13 | --- a/rally/db/sqlalchemy/models.py | ||
| 14 | +++ b/rally/db/sqlalchemy/models.py | ||
| 15 | @@ -85,8 +85,8 @@ class Deployment(BASE, RallyBase): | ||
| 16 | ) | ||
| 17 | |||
| 18 | status = sa.Column( | ||
| 19 | - sa.Enum(*consts.DeployStatus), | ||
| 20 | - name='enum_deployments_status', | ||
| 21 | + sa.Enum(*consts.DeployStatus, | ||
| 22 | + name='enum_deployments_status'), | ||
| 23 | default=consts.DeployStatus.DEPLOY_INIT, | ||
| 24 | nullable=False, | ||
| 25 | ) | ||
