nova/nova/tests/unit/conductor
Hans Lindgren 7b15ecc22f Do not try to backport when db has older object version
Instance extras are stored as serialized objects in the database and
because of this it is possible to get a version back that is older
than what the client requested. This is in itself not a problem, but
the way we do things right now in conductor we end up trying to
backport to a newer version, which raises InvalidTargetVersion.

This change adds a check to make sure we skip backporting if the
requested version is newer than the actual db version as long as the
major version is the same.

Change-Id: I34ac0abd016b72d585f83ae2ce34790751082180
Closes-Bug: #1596119
(cherry picked from commit 1e3e730999)
2016-10-17 08:22:43 +00:00
..
tasks Merge "Update RequestSpec nested flavor when a resize comes in" 2016-07-29 19:34:56 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_conductor.py Do not try to backport when db has older object version 2016-10-17 08:22:43 +00:00