Fuel 8.0 DB migration test failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Alexander Kislitsky |
Bug Description
Python2.7, requirements installed from nailgun/
On running migration test I have error:
$ nosetests nailgun/
INFO [alembic.migration] Context impl PostgresqlImpl.
INFO [alembic.migration] Will assume transactional DDL.
INFO [alembic.migration] Running upgrade None -> 1a1504d469f8, fuel_5_0
INFO [alembic.migration] Running upgrade 1a1504d469f8 -> 52924111f7d8, fuel_5_1
INFO [alembic.migration] Running upgrade 52924111f7d8 -> 1b1d4016375d, fuel_6_0
INFO [alembic.migration] Running upgrade 1b1d4016375d -> 37608259013, Fuel 6.1 migration
INFO [alembic.migration] Running upgrade 37608259013 -> 1e50a4903910, Fuel 7.0
INFO [alembic.migration] Context impl PostgresqlImpl.
INFO [alembic.migration] Will assume transactional DDL.
INFO [alembic.migration] Running upgrade 1e50a4903910 -> 43b2cb64dae6, Fuel 8.0
......E.....
=======
ERROR: test_unique_
-------
Traceback (most recent call last):
File "/home/
'name': uuid.uuid4()})
File "/home/
[row_data]
File "/home/
return getattr(
File "/home/
bind, close_with_
File "/home/
return meth(self, multiparams, params)
File "/home/
return connection.
File "/home/
compiled_sql, distilled_params
File "/home/
context)
File "/home/
exc_info
File "/home/
reraise(
File "/home/
context)
File "/home/
cursor.
ProgrammingError: (ProgrammingError) can't adapt type 'UUID' 'INSERT INTO nodegroups (cluster_id, name) VALUES (%(cluster_id)s, %(name)s) RETURNING nodegroups.id' {'cluster_id': 1, 'name': UUID('4fc652cf-
-------
compiled_sql, distilled_params
File "/home/
context)
File "/home/
exc_info
File "/home/
reraise(
File "/home/
context)
File "/home/
cursor.
ProgrammingError: (ProgrammingError) can't adapt type 'UUID' 'INSERT INTO nodegroups (cluster_id, name) VALUES (%(cluster_id)s, %(name)s) RETURNING nodegroups.id' {'cluster_id': 1, 'name': UUID('4fc652cf-
-------
Fix is simple - to wrap uuid.uuid4() to six.text_type
tags: | added: tech-debt |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky) |
Changed in fuel: | |
assignee: | Alexander Kislitsky (akislitsky) → Igor Kalnitsky (ikalnitsky) |
Changed in fuel: | |
assignee: | Igor Kalnitsky (ikalnitsky) → Alexander Kislitsky (akislitsky) |
tags: | added: area-python |
tags: | added: on-verification |
Fix proposed to branch: master /review. openstack. org/240156
Review: https:/