39 to 40 upgrade fails when DB is caring about boolean type
Bug #1457033 reported by
Romain Chantereau
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Romain Chantereau |
Bug Description
When applying the 39 to 40 upgrade, the new volume_attachment table is populated with migrated values.
In this process, the records are tagged as not deleted by default.
As the deleted column type is “boolean”, the upgrade code specifies “0” as value. But 0 is a logically false integer value but not a boolean False value. Then sqlAlchemy just pass the integer value and if the DB cares about boolean type (like Postgresql) the insert fails.
Just by letting sqlalchemy do the conversion to the DB relative type the upgrade works in every case, and if not, it will be a sqlalchemy bug ;-)
Changed in cinder: | |
status: | In Progress → Fix Committed |
Changed in cinder: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | liberty-1 → 7.0.0 |
tags: | added: kilo-backport-potential |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/184478
Review: https:/