commit ebfc4fe4c4c3910bf8b1229cb75259befa530877
Author: Grzegorz Grasza <email address hidden>
Date: Mon Dec 19 11:32:34 2016 +0100
Add version column
This extends versioned objects and uses the object's
convert_to_version() to perform conversions between different
versions of the object. This conversion is only done at the
"boundaries" of the api and conductor services. That is, when
reading/writing to the database and when serializing/deserializing
(for RPC). Internally, the services deal with the latest versions
of the objects.
Version column is introduced to make sure reading the DB object
versions happens transparently for the developer. An exception
is raised in case of a version compatibility error.
The version column is null at first and will be filled with the
appropriate versions by a data migration script in a following patch.
Change-Id: I34629a5cbab7ff3f246ea19c0cb766badc7061db
Partial-Bug: #1526283
Co-Authored-By: Ruby Loo <email address hidden>
Reviewed: https:/ /review. openstack. org/412397 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=ebfc4fe4c4c 3910bf8b1229cb7 5259befa530877
Committed: https:/
Submitter: Jenkins
Branch: master
commit ebfc4fe4c4c3910 bf8b1229cb75259 befa530877
Author: Grzegorz Grasza <email address hidden>
Date: Mon Dec 19 11:32:34 2016 +0100
Add version column
This extends versioned objects and uses the object's to_version( ) to perform conversions between different deserializing
convert_
versions of the object. This conversion is only done at the
"boundaries" of the api and conductor services. That is, when
reading/writing to the database and when serializing/
(for RPC). Internally, the services deal with the latest versions
of the objects.
Version column is introduced to make sure reading the DB object
versions happens transparently for the developer. An exception
is raised in case of a version compatibility error.
The version column is null at first and will be filled with the
appropriate versions by a data migration script in a following patch.
Change-Id: I34629a5cbab7ff 3f246ea19c0cb76 6badc7061db
Partial-Bug: #1526283
Co-Authored-By: Ruby Loo <email address hidden>